/**
 * FastFide — Effets premium globaux (Bootstrap 5.3 + AOS + Bootstrap Icons)
 * Styles scopés à .ff-modern, appliqué sur <body> de toutes les pages
 *
 * Stratégie : Bootstrap apporte le système (utilities, grid, accordion, icônes)
 * et ce fichier ajoute les effets visuels premium (glassmorphism, gradients
 * animés, hover colorés, glow, etc.).
 */

/* =========================================================
   Variables maison alignées sur Bootstrap pour mixer propre
   ========================================================= */
.ff-modern {
    --ff-grad-primary: linear-gradient(135deg, #18cb96 0%, #0d9488 50%, #0f766e 100%);
    --ff-grad-accent:  linear-gradient(135deg, #18cb96 0%, #34d399 100%);
    --ff-grad-dark:    linear-gradient(135deg, #1f2937 0%, #373643 100%);
    --ff-glow-primary: 0 14px 40px rgba(24, 203, 150, 0.2);
    --ff-glow-soft:    0 8px 24px rgba(24, 203, 150, 0.12);
    --ff-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ff-ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Patch pour empêcher Bootstrap de casser le système de container/typo existant */
.ff-modern .container,
.ff-modern .container-fluid {
    --bs-gutter-x: 0;
}

/* =========================================================
   1. HERO — texte gradient + dashboard glassmorphism
   ========================================================= */

.ff-modern .hero-title-grad {
    background: linear-gradient(135deg, #0f5132 0%, #18cb96 45%, #0d9488 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.ff-modern .hero-title-grad-anim {
    background: linear-gradient(
        90deg,
        #18cb96 0%,
        #0d9488 25%,
        #0f766e 50%,
        #0d9488 75%,
        #18cb96 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: ff-grad-shift 6s ease infinite;
}

@keyframes ff-grad-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Eyebrow modernisé — pill avec border gradient */
.ff-modern .hero-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(24, 203, 150, 0.08);
    border: 1px solid rgba(24, 203, 150, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    color: #129673;
    letter-spacing: 0.02em;
    text-transform: none;
}

.ff-modern .hero-eyebrow-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18cb96;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(24, 203, 150, 0.6);
    animation: ff-pulse 2.2s ease infinite;
}

@keyframes ff-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(24, 203, 150, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(24, 203, 150, 0); }
}

/* Hero — fond animé en mesh-gradient subtil */
.ff-modern .hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ff-modern .hero-bg::before,
.ff-modern .hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.ff-modern .hero-bg::before {
    top: -180px;
    right: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #18cb96 0%, transparent 70%);
    animation: ff-blob 14s ease-in-out infinite;
}

.ff-modern .hero-bg::after {
    bottom: -200px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #0f766e 0%, transparent 70%);
    opacity: 0.25;
    animation: ff-blob 18s ease-in-out infinite reverse;
}

@keyframes ff-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -30px) scale(1.05); }
    66%      { transform: translate(-15px, 20px) scale(0.95); }
}

/* Avatars empilés */
.ff-modern .avatar-stack {
    display: flex;
    align-items: center;
}

.ff-modern .avatar-stack__item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--av-bg, #18cb96);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ff-modern .avatar-stack__item:first-child {
    margin-left: 0;
}

/* ----- Dashboard mockup (glassmorphism) ----- */
.ff-modern .dash-mockup {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 0;
    outline: 6px solid rgba(24, 203, 150, 0.06);
    outline-offset: 6px;
    box-shadow:
        0 0 0 1px rgba(55, 54, 67, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 30px 80px rgba(15, 81, 50, 0.14),
        0 8px 24px rgba(55, 54, 67, 0.06);
    overflow: hidden;
    animation: ff-float 7s var(--ff-ease) infinite;
    animation-delay: 0.3s;
}

@keyframes ff-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.ff-modern .dash-mockup__topbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(249, 250, 251, 0.6);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ff-modern .dash-mockup__dots {
    display: flex;
    gap: 6px;
}

.ff-modern .dash-mockup__dot {
    width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
}
.ff-modern .dash-mockup__dot--red    { background: #ff5f57; }
.ff-modern .dash-mockup__dot--yellow { background: #febc2e; }
.ff-modern .dash-mockup__dot--green  { background: #28c840; }

.ff-modern .dash-mockup__title {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.ff-modern .dash-mockup__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Stats internes du dashboard */
.ff-modern .dash-stat {
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.06) 0%, rgba(255,255,255,0.5) 100%);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.ff-modern .dash-stat__label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.ff-modern .dash-stat__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
    display: block;
}

.ff-modern .dash-stat--up .dash-stat__value {
    background: linear-gradient(135deg, #18cb96 0%, #0d9488 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ff-modern .dash-stat__trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #18cb96;
    margin-top: 2px;
}

/* Mini-graphique à barres animé */
.ff-modern .dash-chart {
    background: rgba(249, 250, 251, 0.5);
    border-radius: 0.75rem;
    padding: 0.85rem;
}

.ff-modern .dash-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 76px;
    margin-bottom: 8px;
}

.ff-modern .dash-chart__bar {
    flex: 1;
    height: var(--h, 60%);
    background: linear-gradient(180deg, rgba(24, 203, 150, 0.18) 0%, rgba(24, 203, 150, 0.08) 100%);
    border-radius: 4px 4px 2px 2px;
    border-bottom: 2px solid rgba(24, 203, 150, 0.3);
    animation: ff-bar-grow 1s cubic-bezier(.4,0,.2,1) both;
}

.ff-modern .dash-chart__bar--accent {
    background: linear-gradient(180deg, #18cb96 0%, #0d9488 100%);
    border-bottom-color: #0d9488;
    box-shadow: 0 4px 12px rgba(24, 203, 150, 0.3);
}

@keyframes ff-bar-grow {
    from { height: 0; opacity: 0; }
    to   { height: var(--h, 60%); opacity: 1; }
}

.ff-modern .dash-chart__bar:nth-child(1) { animation-delay: 0.1s; }
.ff-modern .dash-chart__bar:nth-child(2) { animation-delay: 0.2s; }
.ff-modern .dash-chart__bar:nth-child(3) { animation-delay: 0.3s; }
.ff-modern .dash-chart__bar:nth-child(4) { animation-delay: 0.4s; }
.ff-modern .dash-chart__bar:nth-child(5) { animation-delay: 0.5s; }
.ff-modern .dash-chart__bar:nth-child(6) { animation-delay: 0.6s; }
.ff-modern .dash-chart__bar:nth-child(7) { animation-delay: 0.7s; }

.ff-modern .dash-chart__caption {
    font-size: 0.65rem;
    text-align: center;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Liste de clients miniature */
.ff-modern .dash-client {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    background: rgba(249, 250, 251, 0.6);
    border-radius: 0.6rem;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.ff-modern .dash-client:hover {
    border-color: rgba(24, 203, 150, 0.2);
    background: rgba(24, 203, 150, 0.05);
}

.ff-modern .dash-client__av {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--av, #18cb96);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.ff-modern .dash-client__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    display: block;
}

.ff-modern .dash-client__pts {
    font-size: 0.66rem;
    color: #6b7280;
}

.ff-modern .dash-client__tag {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid;
}

.ff-modern .dash-client__tag--star {
    background: #fef9c3;
    color: #92400e;
    border-color: #fde68a;
}

.ff-modern .dash-client__tag--gift {
    background: rgba(24, 203, 150, 0.12);
    color: #0d9488;
    border-color: rgba(24, 203, 150, 0.3);
}

.ff-modern .dash-client__tag--new {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* Notification flottante */
.ff-modern .floating-notif {
    position: absolute;
    bottom: -22px;
    left: -32px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border-radius: 0.85rem;
    padding: 0.7rem 1rem;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 12px 32px rgba(0,0,0,0.12);
    animation: ff-notif-in 0.7s ease 1.5s both;
    z-index: 2;
}

.ff-modern .floating-notif__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ff-grad-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--ff-glow-soft);
}

.ff-modern .floating-notif__title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f2937;
    display: block;
}

.ff-modern .floating-notif__sub {
    font-size: 0.66rem;
    color: #6b7280;
}

@keyframes ff-notif-in {
    from { opacity: 0; transform: translateY(16px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991.98px) {
    .ff-modern .floating-notif {
        left: 8px;
        bottom: -28px;
    }
}

@media (max-width: 575.98px) {
    .ff-modern .floating-notif {
        display: none;
    }
}

/* =========================================================
   2. STATS BAR — barre sombre avec compteurs
   ========================================================= */

.ff-modern .stats-bar-modern {
    background: var(--ff-grad-dark);
    color: #fff;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.ff-modern .stats-bar-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(24, 203, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ff-modern .stats-bar-modern__item {
    text-align: center;
    padding: 0.5rem 0;
}

.ff-modern .stats-bar-modern__value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #18cb96 0%, #34d399 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: block;
}

.ff-modern .stats-bar-modern__label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ff-modern .stats-bar-modern__sep {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

/* =========================================================
   3. PROBLÈME / SOLUTION — cards Bootstrap stylisées
   ========================================================= */

.ff-modern .problem-grid {
    position: relative;
}

.ff-modern .problem-card {
    border-radius: 1.25rem;
    padding: 1.1rem;
    border-width: 1px;
    border-style: solid;
    height: 100%;
    background: var(--surface-card, #fff);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition:
        transform 0.45s var(--ff-ease-spring),
        box-shadow 0.45s var(--ff-ease),
        border-color 0.35s var(--ff-ease);
}

.ff-modern .problem-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.7;
}

.ff-modern .problem-card:hover {
    transform: translateY(-4px);
}

.ff-modern .problem-card--bad {
    border-color: rgba(220, 38, 38, 0.16);
    background: linear-gradient(145deg, #fff6f6 0%, #fff 45%);
}

.ff-modern .problem-card--bad::before {
    background: linear-gradient(90deg, #fca5a5, #ef4444);
}

.ff-modern .problem-card--bad:hover {
    box-shadow: 0 20px 42px rgba(220, 38, 38, 0.14);
}

.ff-modern .problem-card--good {
    border-color: rgba(13, 148, 136, 0.2);
    background: linear-gradient(145deg, #f2fffa 0%, #fff 45%);
}

.ff-modern .problem-card--good::before {
    background: linear-gradient(90deg, #34d399, #0d9488);
}

.ff-modern .problem-card--good:hover {
    box-shadow: 0 20px 42px rgba(13, 148, 136, 0.16);
}

.ff-modern .problem-card__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.95rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    width: fit-content;
}

.ff-modern .problem-card--bad .problem-card__header { color: #dc2626; }
.ff-modern .problem-card--good .problem-card__header { color: #0d9488; }

.ff-modern .problem-card--bad .problem-card__header { background: rgba(254, 226, 226, 0.7); }
.ff-modern .problem-card--good .problem-card__header { background: rgba(209, 250, 229, 0.65); }

.ff-modern .problem-card__icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ff-modern .problem-card--bad .problem-card__icon-circle {
    background: #fee2e2;
    color: #dc2626;
}

.ff-modern .problem-card--good .problem-card__icon-circle {
    background: #d1fae5;
    color: #059669;
}

.ff-modern .problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ff-modern .problem-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.72rem 0.78rem;
}

.ff-modern .problem-list__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ff-modern .problem-list--bad .problem-list__icon {
    background: #fee2e2;
    color: #dc2626;
}

.ff-modern .problem-list--good .problem-list__icon {
    background: #d1fae5;
    color: #059669;
}

.ff-modern .problem-vs {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    font-size: 0.8rem;
    font-weight: 800;
    color: #6b7280;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.ff-modern .problem-vs i {
    font-size: 0.9rem;
    color: #18cb96;
}

@media (max-width: 767.98px) {
    .ff-modern .problem-vs {
        margin: 0.5rem auto;
        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   4. ÉTAPES — timeline horizontale connectée
   ========================================================= */

.ff-modern .steps-timeline {
    position: relative;
}

.ff-modern .steps-timeline::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(24, 203, 150, 0.1),
        #18cb96 30%,
        #18cb96 70%,
        rgba(24, 203, 150, 0.1)
    );
    z-index: 0;
}

@media (max-width: 767.98px) {
    .ff-modern .steps-timeline::before {
        display: none;
    }
}

.ff-modern .step-bubble {
    position: relative;
    z-index: 1;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.35rem 1.15rem 1.25rem;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ff-modern .step-bubble:hover {
    transform: translateY(-6px);
    border-color: rgba(24, 203, 150, 0.35);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.ff-modern .step-bubble__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ff-modern .step-bubble__circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #18cb96;
    color: #18cb96;
    font-size: 0.98rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(24, 203, 150, 0.08), var(--ff-glow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.ff-modern .step-bubble:hover .step-bubble__circle {
    transform: scale(1.05);
    background: var(--ff-grad-accent);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(24, 203, 150, 0.16), var(--ff-glow-primary);
}

.ff-modern .step-bubble__circle i {
    font-size: 1.35rem;
    line-height: 1;
}

.ff-modern .step-bubble__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(24, 203, 150, 0.28);
    background: rgba(24, 203, 150, 0.07);
    border-radius: 999px;
    padding: 0.33rem 0.66rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
}

.ff-modern .step-bubble__tag i {
    font-size: 0.83rem;
}

.ff-modern .step-bubble__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.ff-modern .step-bubble__text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 270px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .ff-modern .step-bubble {
        text-align: left;
        padding: 1.1rem 1rem 1rem;
    }

    .ff-modern .step-bubble__circle {
        margin-left: 0;
        margin-right: 0;
    }

    .ff-modern .step-bubble__text {
        max-width: 100%;
        margin: 0;
    }
}

/* =========================================================
   5. CARDS FONCTIONNALITÉS — hover lift coloré
   ========================================================= */

.ff-modern .feature-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--surface-border, #e5e7eb);
    border-radius: 1.25rem;
    padding: 1.75rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        transform 0.45s var(--ff-ease-spring),
        box-shadow 0.45s var(--ff-ease),
        border-color 0.35s var(--ff-ease);
}

.ff-modern .feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ff-grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ff-modern .feature-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(24, 203, 150, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ff-modern .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 203, 150, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        var(--ff-glow-primary);
}

.ff-modern .feature-card:hover::before {
    transform: scaleX(1);
}

.ff-modern .feature-card:hover::after {
    opacity: 1;
}

.ff-modern .feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.12) 0%, rgba(13, 148, 136, 0.06) 100%);
    border: 1px solid rgba(24, 203, 150, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0d9488;
    margin-bottom: 1.25rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.ff-modern .feature-card:hover .feature-card__icon {
    background: var(--ff-grad-accent);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.ff-modern .feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.6rem;
}

.ff-modern .feature-card__text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.ff-modern .feature-card__more {
    color: #18cb96;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.25s ease;
}

.ff-modern .feature-card__more:hover {
    color: #0d9488;
    gap: 0.6rem;
}

/* =========================================================
   6. CARDS SECTEURS — gros icône emoji + hover lift
   ========================================================= */

.ff-modern .sector-card {
    display: block;
    background: var(--surface-card, #fff);
    border: 1px solid var(--surface-border, #e5e7eb);
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        transform 0.45s var(--ff-ease-spring),
        box-shadow 0.45s var(--ff-ease),
        border-color 0.35s var(--ff-ease),
        color 0.35s var(--ff-ease);
}

.ff-modern .sector-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ff-grad-accent);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ff-modern .sector-card > * {
    position: relative;
    z-index: 1;
}

.ff-modern .sector-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 48px rgba(24, 203, 150, 0.32);
    text-decoration: none;
}

.ff-modern .sector-card:hover::before {
    opacity: 1;
}

.ff-modern .sector-card:hover .sector-card__text,
.ff-modern .sector-card:hover .sector-card__title,
.ff-modern .sector-card:hover .sector-card__arrow {
    color: #fff;
}

.ff-modern .sector-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.16), rgba(24, 203, 150, 0.05));
    color: #0f766e;
    border: 1px solid rgba(24, 203, 150, 0.25);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.ff-modern .sector-card:hover .sector-card__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.06);
}

.ff-modern .sector-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.ff-modern .sector-card__text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    transition: color 0.3s;
}

.ff-modern .sector-card__arrow {
    color: #18cb96;
    font-weight: 700;
    font-size: 1.15rem;
    transition: transform 0.3s ease, color 0.3s;
    display: inline-block;
}

.ff-modern .sector-card:hover .sector-card__arrow {
    transform: translateX(6px);
}

/* =========================================================
   7. PRICING — cards modernisées
   ========================================================= */

.ff-modern .price-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--surface-border, #e5e7eb);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        transform 0.45s var(--ff-ease-spring),
        box-shadow 0.45s var(--ff-ease),
        border-color 0.35s var(--ff-ease);
}

.ff-modern .price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 203, 150, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        var(--ff-glow-soft);
}

.ff-modern .price-card--popular {
    background: linear-gradient(180deg, #f0fdf8 0%, #fff 50%);
    border: 2px solid #18cb96;
    box-shadow: var(--ff-glow-primary);
    transform: scale(1.03);
}

.ff-modern .price-card--popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.ff-modern .price-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ff-grad-accent);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--ff-glow-soft);
    white-space: nowrap;
}

.ff-modern .price-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.ff-modern .price-card__amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ff-modern .price-card__period {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

.ff-modern .price-card__clients {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.5rem 0 0.25rem;
}

.ff-modern .price-card__highlight {
    font-size: 0.85rem;
    font-weight: 600;
    color: #18cb96;
    margin-bottom: 1.25rem;
}

.ff-modern .price-card__btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.ff-modern .price-card__btn.btn-ff-outline {
    padding: calc(0.75rem - 2px) 1rem;
}

/* =========================================================
   8. TÉMOIGNAGES — cards avec étoiles + highlight
   ========================================================= */

.ff-modern .testimonial-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ff-modern .testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 0.5rem;
    right: 1.25rem;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(24, 203, 150, 0.12);
    font-family: Georgia, serif;
    pointer-events: none;
}

.ff-modern .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ff-glow-soft);
}

.ff-modern .testimonial-card__stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
}

.ff-modern .testimonial-card__text {
    font-size: 0.95rem;
    color: #4b4f5c;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
    flex: 1;
}

.ff-modern .testimonial-card__author {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.ff-modern .testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ff-grad-accent);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--ff-glow-soft);
}

.ff-modern .testimonial-card__name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1f2937;
    font-style: normal;
}

.ff-modern .testimonial-card__role {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

/* =========================================================
   9. FAQ ACCORDION — bootstrap stylisé
   ========================================================= */

.ff-modern .faq-bs .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ff-modern .faq-bs .accordion-item:hover {
    border-color: rgba(24, 203, 150, 0.3);
}

.ff-modern .faq-bs .accordion-button {
    padding: 1.1rem 1.3rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #fff;
    box-shadow: none !important;
    border-radius: 0.85rem !important;
}

.ff-modern .faq-bs .accordion-button:not(.collapsed) {
    color: #0d9488;
    background-color: rgba(24, 203, 150, 0.04);
}

.ff-modern .faq-bs .accordion-button:focus {
    outline: none;
    box-shadow: none;
}

.ff-modern .faq-bs .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2318cb96'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E");
}

.ff-modern .faq-bs .accordion-body {
    padding: 0 1.3rem 1.2rem;
    color: #6b7280;
    font-size: 0.93rem;
    line-height: 1.65;
}

/* =========================================================
   10. CTA BANNER — gradient premium + pattern
   ========================================================= */

.ff-modern .cta-modern {
    position: relative;
    background: linear-gradient(135deg, #0f5132 0%, #18cb96 50%, #0f766e 100%);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    color: #fff;
    overflow: hidden;
    text-align: center;
    margin: 5rem 0 3rem;
    box-shadow: 0 24px 64px rgba(15, 81, 50, 0.25);
}

.ff-modern .cta-modern::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.ff-modern .cta-modern::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ff-modern .cta-modern__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.ff-modern .cta-modern__title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ff-modern .cta-modern__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.ff-modern .cta-modern__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ff-modern .cta-modern .btn-light {
    color: #0d9488;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ff-modern .cta-modern .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.ff-modern .cta-modern .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
}

/* =========================================================
   11. SECTION TITLES — typo et eyebrows
   ========================================================= */

.ff-modern .section-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(24, 203, 150, 0.1);
    color: #0d9488;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
}

.ff-modern .section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-strong, #1f2937);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.ff-modern .section-subtitle {
    color: var(--text-muted, #6b7280);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
    text-wrap: pretty;
}

/* =========================================================
   12. LOGOS BAR — niveau de gris au repos, couleur au hover
   ========================================================= */

.ff-modern .logos-bar-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3.5rem;
}

.ff-modern .logos-bar-modern__caption {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2.25rem;
}

.ff-modern .logos-bar-modern img {
    max-height: 38px;
    width: auto;
    opacity: 0.55;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.ff-modern .logos-bar-modern img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

/* =========================================================
   13. BTN custom alignés Bootstrap
   ========================================================= */

.ff-modern .btn-ff-primary {
    background: var(--ff-grad-accent);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(24, 203, 150, 0.28);
    transition:
        transform 0.35s var(--ff-ease-spring),
        box-shadow 0.35s var(--ff-ease),
        filter 0.35s var(--ff-ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.ff-modern .btn-ff-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(24, 203, 150, 0.38);
    color: #fff;
    filter: brightness(1.03);
}

.ff-modern .btn-ff-primary:active {
    transform: scale(0.98) translateY(0);
    filter: brightness(0.98);
}

.ff-modern .btn-ff-primary .bi-arrow-right,
.ff-modern .btn-ff-primary > span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    margin-left: 0.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85em;
    transition: transform 0.35s var(--ff-ease-spring);
}

.ff-modern .btn-ff-primary:hover .bi-arrow-right,
.ff-modern .btn-ff-primary:hover > span[aria-hidden="true"] {
    transform: translateX(2px);
}

.ff-modern .btn-ff-outline {
    background: transparent;
    color: #18cb96;
    border: 2px solid #18cb96;
    padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition:
        transform 0.35s var(--ff-ease-spring),
        background-color 0.3s var(--ff-ease),
        color 0.3s var(--ff-ease),
        border-color 0.3s var(--ff-ease),
        box-shadow 0.3s var(--ff-ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.ff-modern .btn-ff-outline:hover {
    background: rgba(24, 203, 150, 0.08);
    color: #0d9488;
    border-color: #0d9488;
    box-shadow: 0 4px 16px rgba(24, 203, 150, 0.12);
    transform: translateY(-1px);
}

.ff-modern .btn-ff-outline:active {
    transform: scale(0.98) translateY(0);
}

.ff-modern .btn-ff-lg {
    padding: 0.95rem 1.75rem;
    font-size: 1.02rem;
}

.ff-modern .btn-ff-outline.btn-ff-lg {
    padding: calc(0.95rem - 2px) calc(1.75rem - 2px);
}

/* =========================================================
   AOS — fallback si JS désactivé
   ========================================================= */

.ff-modern [data-aos] {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .ff-modern *,
    .ff-modern *::before,
    .ff-modern *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   14. PATCHS GLOBAUX — appliqu\u00e9s \u00e0 toutes les pages
   ========================================================= */

/* Bootstrap normalise le body avec sa propre font, on r\u00e9impose Poppins */
body.ff-modern {
    font-family: var(--font-base);
    color: var(--color-body);
    line-height: 1.6;
}

/* Bootstrap met sa propre font-family sur h1-h6 — on r\u00e9impose Hero pour h1/h2 */
.ff-modern h1,
.ff-modern .h1,
.ff-modern h2,
.ff-modern .h2,
.ff-modern .display-1,
.ff-modern .display-2,
.ff-modern .display-3,
.ff-modern .display-4,
.ff-modern .display-5,
.ff-modern .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ff-modern h3,
.ff-modern h4,
.ff-modern h5,
.ff-modern h6 {
    font-family: var(--font-base);
    font-weight: 700;
}

/* Hero g\u00e9n\u00e9rique pour les pages internes (eyebrow + titre + sous-titre) */
.ff-modern .page-hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
    text-align: center;
}

.ff-modern .page-hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background: radial-gradient(ellipse at center top, rgba(24, 203, 150, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.ff-modern .page-hero > * {
    position: relative;
    z-index: 1;
}

.ff-modern .page-hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(24, 203, 150, 0.1);
    color: #0d9488;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(24, 203, 150, 0.2);
}

.ff-modern .page-hero__eyebrow:has(.badge) {
    display: inline-flex;
    padding: 0;
    background: none;
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

.ff-modern .page-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.ff-modern .page-hero__title .grad {
    background: linear-gradient(135deg, #18cb96 0%, #0d9488 50%, #0f766e 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ff-modern .page-hero--bg-image .page-hero__title {
    color: #fff;
}

.ff-modern .page-hero--bg-image .page-hero__subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.ff-modern .page-hero--bg-image .page-hero__eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.ff-modern .page-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.ff-modern .page-hero__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Eyebrows de section (\u00e0 utiliser au-dessus des h2 dans toutes les pages) */
.ff-modern .section-eyebrow-light {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(24, 203, 150, 0.08);
    color: #0d9488;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

/* Patch hover g\u00e9n\u00e9rique pour les .card existantes (system custom) sur les pages
   internes : on ajoute juste un lift + glow primary subtil au hover */
.ff-modern .card:hover {
    border-color: rgba(24, 203, 150, 0.25);
}

/* Liens \u00ab En savoir plus \u00bb avec fl\u00e8che qui glisse */
.ff-modern .card__more,
.ff-modern .feature-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.25s ease;
}

.ff-modern .card__more:hover,
.ff-modern .feature-card__more:hover {
    gap: 0.6rem;
}

/* Patch CTA banner (template existant cta-banner.php) — gradient premium */
.ff-modern .cta-banner {
    background: linear-gradient(135deg, #0f5132 0%, #18cb96 50%, #0f766e 100%);
    position: relative;
    overflow: hidden;
}

.ff-modern .cta-banner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.ff-modern .cta-banner::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ff-modern .cta-banner > * {
    position: relative;
    z-index: 1;
}

/* Patch hover g\u00e9n\u00e9ral sur les .btn--primary du design system existant */
.ff-modern .btn.btn--primary {
    box-shadow: 0 4px 14px rgba(24, 203, 150, 0.32);
}

.ff-modern .btn.btn--primary:hover {
    box-shadow: 0 8px 24px rgba(24, 203, 150, 0.45);
    transform: translateY(-2px);
}

/* Patch nav — ombre + filet mint au scroll (glass conservé) */
.ff-modern .nav.scrolled {
    box-shadow: 0 8px 28px rgba(10, 10, 12, 0.35);
    border-bottom-color: rgba(24, 203, 150, 0.18);
}

/* Footer — chrome off-black aligné SaaS */
.ff-modern .footer {
    background: var(--chrome-bg, #0a0a0c);
    position: relative;
}

.ff-modern .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(24, 203, 150, 0.3), transparent);
}

/* Animation au scroll : compensation pour reduced-motion */
.ff-modern [data-aos] {
    will-change: transform, opacity;
}

/* Feature page mockups */
.ff-modern .feature-mockup {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ff-modern .feature-mockup__topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
}

.ff-modern .feature-mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ff-modern .feature-mockup__dot--red { background: #ff5f57; }
.ff-modern .feature-mockup__dot--yellow { background: #febc2e; }
.ff-modern .feature-mockup__dot--green { background: #28c840; }

.ff-modern .feature-mockup__title {
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-modern .feature-mockup__body {
    padding: 20px;
}

.ff-modern .feature-mockup__line {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 10px;
    width: 75%;
}

.ff-modern .feature-mockup__line--wide { width: 92%; }

.ff-modern .feature-mockup__cards {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.ff-modern .feature-mockup__card {
    flex: 1;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.ff-modern .feature-mockup__card--accent {
    background: linear-gradient(135deg, #18cb96, #0d9488);
}

.ff-modern .page-hero--compact {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.ff-modern .page-hero--compact .page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.ff-modern .footer__logo-img--secondary {
    opacity: 0.85;
    margin-top: 0.5rem;
}

.ff-modern .blog-featured__cover,
.ff-modern .card-article__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* =========================================================
   Feature mock : maquettes illustratives (esprit hero dash)
   ========================================================= */
.ff-modern .fmock {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 24px 60px rgba(15, 81, 50, 0.12);
    overflow: hidden;
}

.ff-modern .fmock__topbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    background: rgba(249, 250, 251, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ff-modern .fmock__dots {
    display: flex;
    gap: 6px;
}

.ff-modern .fmock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ff-modern .fmock__dot--red { background: #ff5f57; }
.ff-modern .fmock__dot--yellow { background: #febc2e; }
.ff-modern .fmock__dot--green { background: #28c840; }

.ff-modern .fmock__title {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-modern .fmock__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* --- Bloc : lignes toggle (règles / options activables) --- */
.ff-modern .fmock-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ff-modern .fmock-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(249, 250, 251, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f2937;
}

.ff-modern .fmock-toggle--on {
    background: rgba(24, 203, 150, 0.08);
    border-color: rgba(24, 203, 150, 0.28);
}

.ff-modern .fmock-switch {
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.ff-modern .fmock-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.ff-modern .fmock-switch--on {
    background: linear-gradient(135deg, #18cb96, #0d9488);
}

.ff-modern .fmock-switch--on::after {
    transform: translateX(15px);
}

/* --- Bloc : stats --- */
.ff-modern .fmock-stats {
    display: flex;
    gap: 0.55rem;
}

.ff-modern .fmock-stat {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.07) 0%, rgba(255, 255, 255, 0.5) 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.7rem;
    padding: 0.65rem 0.6rem;
}

.ff-modern .fmock-stat__label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.ff-modern .fmock-stat__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
    display: block;
}

.ff-modern .fmock-stat--up .fmock-stat__value {
    background: linear-gradient(135deg, #18cb96 0%, #0d9488 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ff-modern .fmock-stat__trend {
    font-size: 0.62rem;
    font-weight: 600;
    color: #18cb96;
    display: block;
    margin-top: 2px;
}

/* --- Bloc : mini graphique à barres --- */
.ff-modern .fmock-chart {
    background: rgba(249, 250, 251, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.7rem;
    padding: 0.8rem;
}

.ff-modern .fmock-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 74px;
    margin-bottom: 8px;
}

.ff-modern .fmock-chart__bar {
    flex: 1;
    height: var(--h, 60%);
    background: linear-gradient(180deg, rgba(24, 203, 150, 0.2) 0%, rgba(24, 203, 150, 0.08) 100%);
    border-radius: 4px 4px 2px 2px;
    border-bottom: 2px solid rgba(24, 203, 150, 0.3);
}

.ff-modern .fmock-chart__bar--accent {
    background: linear-gradient(180deg, #18cb96 0%, #0d9488 100%);
    border-bottom-color: #0d9488;
    box-shadow: 0 4px 12px rgba(24, 203, 150, 0.3);
}

.ff-modern .fmock-chart__caption {
    font-size: 0.64rem;
    text-align: center;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* --- Bloc : liste (clients, visites…) --- */
.ff-modern .fmock-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ff-modern .fmock-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: rgba(249, 250, 251, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.6rem;
}

.ff-modern .fmock-row__av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--av, #18cb96);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ff-modern .fmock-row__main {
    flex: 1;
    min-width: 0;
}

.ff-modern .fmock-row__name {
    font-size: 0.76rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    display: block;
}

.ff-modern .fmock-row__sub {
    font-size: 0.64rem;
    color: #6b7280;
}

.ff-modern .fmock-tag {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid;
}

.ff-modern .fmock-tag--star { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.ff-modern .fmock-tag--gift { background: rgba(24, 203, 150, 0.12); color: #0d9488; border-color: rgba(24, 203, 150, 0.3); }
.ff-modern .fmock-tag--new { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

/* --- Bloc : badges / pills --- */
.ff-modern .fmock-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ff-modern .fmock-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #374151;
}

.ff-modern .fmock-badge--accent {
    background: linear-gradient(135deg, #18cb96, #0d9488);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(24, 203, 150, 0.25);
}

/* --- Bloc : cartes d'options (types de récompense…) --- */
.ff-modern .fmock-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.ff-modern .fmock-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.7rem;
    background: rgba(249, 250, 251, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.7rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #374151;
}

.ff-modern .fmock-option__icon {
    width: 26px;
    height: 26px;
    border-radius: 0.5rem;
    background: rgba(24, 203, 150, 0.12);
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ff-modern .fmock-option--active {
    background: rgba(24, 203, 150, 0.1);
    border-color: rgba(24, 203, 150, 0.4);
    color: #0d9488;
}

.ff-modern .fmock-option--active .fmock-option__icon {
    background: linear-gradient(135deg, #18cb96, #0d9488);
    color: #fff;
}

/* --- Bloc : progression / seuil --- */
.ff-modern .fmock-progress {
    background: rgba(249, 250, 251, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.7rem;
    padding: 0.85rem;
}

.ff-modern .fmock-progress__value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #18cb96 0%, #0d9488 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: block;
    margin-bottom: 0.55rem;
}

.ff-modern .fmock-bar {
    height: 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ff-modern .fmock-bar__fill {
    height: 100%;
    width: var(--p, 60%);
    border-radius: 999px;
    background: linear-gradient(90deg, #18cb96, #0d9488);
}

.ff-modern .fmock-progress__caption {
    font-size: 0.66rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* --- Bloc : validation QR --- */
.ff-modern .fmock-qr {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(249, 250, 251, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.7rem;
}

.ff-modern .fmock-qr__code {
    width: 62px;
    height: 62px;
    border-radius: 0.55rem;
    flex-shrink: 0;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #0f172a 25%, transparent 25%, transparent 75%, #0f172a 75%),
        linear-gradient(45deg, #0f172a 25%, transparent 25%, transparent 75%, #0f172a 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ff-modern .fmock-qr__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f2937;
    display: block;
    margin-bottom: 0.3rem;
}

/* --- Bloc : champs (éditeur de campagne) --- */
.ff-modern .fmock-field {
    margin-bottom: 0.5rem;
}

.ff-modern .fmock-field__label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 3px;
}

.ff-modern .fmock-field__input {
    font-size: 0.76rem;
    color: #374151;
    padding: 0.5rem 0.65rem;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.55rem;
}

.ff-modern .fmock-field__input--area {
    min-height: 46px;
}

/* --- Bloc : segments --- */
.ff-modern .fmock-seg {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ff-modern .fmock-seg__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #374151;
}

.ff-modern .fmock-seg__label {
    width: 78px;
    flex-shrink: 0;
}

.ff-modern .fmock-seg__track {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ff-modern .fmock-seg__fill {
    height: 100%;
    width: var(--p, 50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(24, 203, 150, 0.55), rgba(24, 203, 150, 0.3));
}

.ff-modern .fmock-seg__fill--accent {
    background: linear-gradient(90deg, #18cb96, #0d9488);
}

.ff-modern .fmock-seg__count {
    width: 40px;
    text-align: right;
    color: #1f2937;
    flex-shrink: 0;
}

/* --- Bloc : bouton --- */
.ff-modern .fmock-btn {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 600;
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #18cb96, #0d9488);
    box-shadow: 0 8px 20px rgba(24, 203, 150, 0.28);
}

/* --- Variante téléphone (espace client) --- */
.ff-modern .fmock--phone {
    max-width: 268px;
    margin: 0 auto;
    border-radius: 2rem;
    border: 8px solid #111318;
    background: #111318;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 30px 70px rgba(15, 81, 50, 0.18);
    overflow: hidden;
}

.ff-modern .fmock--phone .fmock__topbar {
    justify-content: center;
    background: #111318;
    border-bottom: none;
    padding: 0.5rem;
}

.ff-modern .fmock--phone .fmock__notch {
    width: 90px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.ff-modern .fmock--phone .fmock__title {
    display: none;
}

.ff-modern .fmock--phone .fmock__body {
    background: #f8fafc;
    border-radius: 1.25rem 1.25rem 0 0;
}

.ff-modern .fmock__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 0.15rem;
}

/* =========================================================
   15. POLISH UX — Soft Structuralism (préserve marque mint)
   ========================================================= */

/* Rythme vertical des sections Bootstrap sur la home */
.ff-modern .site-main > section.py-5,
.ff-modern .site-main > section.py-lg-5 {
    padding-top: clamp(3.5rem, 6vw, 5.5rem) !important;
    padding-bottom: clamp(4rem, 7vw, 6.5rem) !important;
}

.ff-modern .page-hero {
    padding: 3.25rem 0 2.75rem;
}

@media (min-width: 992px) {
    .ff-modern .page-hero {
        padding: 3.75rem 0 3.25rem;
    }
}

/* Typo display plus présente */
.ff-modern .display-4,
.ff-modern .display-5 {
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.ff-modern .lead {
    line-height: 1.65;
    color: var(--text-muted, #6b7280);
}

/* Cartes : double-bezel léger via wrapper utilitaire éventuel */
.ff-modern .feature-card__icon,
.ff-modern .sector-card__icon {
    transition:
        transform 0.45s var(--ff-ease-spring),
        background 0.4s var(--ff-ease),
        color 0.4s var(--ff-ease),
        border-color 0.4s var(--ff-ease);
}

/* FAQ accordion Bootstrap — états plus tactiles */
.ff-modern .accordion-item {
    border-radius: 1rem !important;
    overflow: hidden;
    border: 1px solid var(--surface-border, #e5e7eb) !important;
    background: var(--surface-card, #fff);
    margin-bottom: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: border-color 0.3s var(--ff-ease), box-shadow 0.3s var(--ff-ease);
}

.ff-modern .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(24, 203, 150, 0.35) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 24px rgba(24, 203, 150, 0.1);
}

.ff-modern .accordion-button {
    font-weight: 600;
    color: var(--text-strong, #1f2937);
    background: transparent;
    box-shadow: none !important;
    transition: color 0.25s var(--ff-ease), background-color 0.25s var(--ff-ease);
}

.ff-modern .accordion-button:not(.collapsed) {
    color: var(--color-primary-dark, #129673);
    background: rgba(24, 203, 150, 0.06);
}

.ff-modern .accordion-button:focus {
    box-shadow: inset 0 0 0 2px rgba(24, 203, 150, 0.35) !important;
}

.ff-modern .accordion-button::after {
    transition: transform 0.35s var(--ff-ease-spring);
}

/* Formulaires contact — focus ring mint cohérent */
.ff-modern .form-control:focus,
.ff-modern .form-select:focus {
    border-color: rgba(24, 203, 150, 0.55);
    box-shadow: 0 0 0 3px rgba(24, 203, 150, 0.18);
}

.ff-modern .form-control,
.ff-modern .form-select {
    border-radius: var(--radius-md, 12px);
    transition:
        border-color 0.25s var(--ff-ease),
        box-shadow 0.25s var(--ff-ease),
        background-color 0.25s var(--ff-ease);
}

/* CTA modern — profondeur + hover boutons */
.ff-modern .cta-modern {
    border-radius: 1.75rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 24px 60px rgba(15, 81, 50, 0.22);
}

.ff-modern .cta-modern .btn {
    transition:
        transform 0.35s var(--ff-ease-spring),
        box-shadow 0.35s var(--ff-ease),
        background-color 0.3s var(--ff-ease),
        color 0.3s var(--ff-ease);
}

.ff-modern .cta-modern .btn:hover {
    transform: translateY(-2px);
}

.ff-modern .cta-modern .btn:active {
    transform: scale(0.98) translateY(0);
}

/* Logos bar — easing premium */
.ff-modern .logos-bar-modern img {
    transition:
        opacity 0.35s var(--ff-ease),
        filter 0.35s var(--ff-ease),
        transform 0.4s var(--ff-ease-spring);
}

/* Menu mobile — slide plus fluide */
.ff-modern .nav__menu {
    transition:
        transform 0.4s var(--ff-ease-spring),
        visibility 0.4s var(--ff-ease),
        opacity 0.35s var(--ff-ease);
}

/* Empêche le grain de passer au-dessus des modales cookie */
body.ff-modern #tarteaucitronRoot,
body.ff-modern #tarteaucitronAlertBig,
body.ff-modern .tarteaucitron {
    z-index: 10001;
}

@media (prefers-reduced-transparency: reduce) {
    .ff-modern .nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: var(--chrome-bg);
    }

    .ff-modern .dash-mockup {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }
}

@media (max-width: 767px) {
    .ff-modern .dash-mockup {
        outline-width: 4px;
        outline-offset: 4px;
    }

    .ff-modern .price-card--popular {
        transform: none;
    }

    .ff-modern .price-card--popular:hover {
        transform: translateY(-3px);
    }
}
