/* =========================================================================
   CLARIO CASH — page d'accueil publique
   =========================================================================
   Tout est range sous .ch (la page) ou body:has(.ch) (l'en-tete et le pied
   de page de cette page seulement) : les autres pages publiques ne sont pas
   touchees.

   Les couleurs sont des ROLES, redefinis en sombre. Une regle ecrit
   `color: var(--ch-title)`, jamais une couleur : basculer le theme change
   les valeurs, pas les regles.
   ========================================================================= */

.ch {
    --ch-bg:            #F6FAF7;
    --ch-bg-2:          #FFFFFF;
    --ch-surface:       #FFFFFF;
    --ch-surface-2:     #F2F8F4;
    --ch-border:        rgba(11, 94, 52, 0.10);
    --ch-border-strong: rgba(11, 94, 52, 0.18);
    --ch-shadow:        0 18px 48px -18px rgba(11, 60, 35, 0.28);
    --ch-shadow-sm:     0 8px 24px -12px rgba(11, 60, 35, 0.25);

    --ch-title:         #0B5E34;   /* vert profond des titres */
    --ch-text:          #1E2F26;
    --ch-muted:         #55675D;
    --ch-green:         #0E8C4F;   /* vert de marque */
    --ch-green-soft:    rgba(14, 140, 79, 0.10);
    --ch-green-2:       #10B981;
    --ch-orange:        #FF6B00;   /* orange de marque (aplats, grands textes) */
    --ch-orange-ink:    #C2410C;   /* orange lisible en petit texte sur clair */
    --ch-orange-soft:   rgba(255, 107, 0, 0.10);
    --ch-danger:        #DC2626;

    /* La maquette du logiciel : une fenetre d'application claire. */
    --ch-app:           #FFFFFF;
    --ch-app-2:         #F4F7F5;
    --ch-app-side:      linear-gradient(180deg, #0B6B3A 0%, #0A5530 100%);
    --ch-grid:          rgba(11, 94, 52, 0.08);

    --ch-mark-green:    #0E8C4F;
    --ch-mark-orange:   #F5822C;

    --ch-radius:        20px;
    --ch-radius-sm:     14px;

    background: var(--ch-bg);
    color: var(--ch-text);
    font-family: inherit;
    overflow-x: clip;
}

body.dark-mode .ch {
    --ch-bg:            #061812;
    --ch-bg-2:          #081E16;
    --ch-surface:       #0B221A;
    --ch-surface-2:     #0E2A20;
    --ch-border:        rgba(148, 196, 168, 0.12);
    --ch-border-strong: rgba(148, 196, 168, 0.22);
    --ch-shadow:        0 18px 48px -18px rgba(0, 0, 0, 0.65);
    --ch-shadow-sm:     0 8px 24px -12px rgba(0, 0, 0, 0.6);

    --ch-title:         #E8F5EE;
    --ch-text:          #D6E4DC;
    --ch-muted:         #9DB3A7;
    --ch-green:         #34D399;
    --ch-green-soft:    rgba(52, 211, 153, 0.12);
    --ch-green-2:       #10B981;
    --ch-orange:        #FF8A1F;
    --ch-orange-ink:    #FFB066;
    --ch-orange-soft:   rgba(255, 138, 31, 0.13);

    --ch-app:           #0D261D;
    --ch-app-2:         #102E23;
    --ch-app-side:      linear-gradient(180deg, #0A3D27 0%, #072C1C 100%);
    --ch-grid:          rgba(148, 196, 168, 0.10);

    --ch-mark-green:    #22C55E;
    --ch-mark-orange:   #FF8A1F;
}

.ch *, .ch *::before, .ch *::after { box-sizing: border-box; }
.ch a { text-decoration: none; }
.ch-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ch-accent { color: var(--ch-orange); }

/* ------------------------------------------------------------ En-tete ---- */
/* L'en-tete d'accueil etait transparent, en blanc, pose sur un bandeau
   sombre. Sur cette page claire il devient une barre pleine et lisible. */
body:has(.ch) .header-section.home-header {
    position: sticky !important;
    top: 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(11, 94, 52, 0.08);
    z-index: 50;
}
body.dark-mode:has(.ch) .header-section.home-header {
    background: rgba(6, 24, 18, 0.86);
    border-bottom-color: rgba(148, 196, 168, 0.12);
}
body:has(.ch) .header-section.home-header a { color: #1E2F26 !important; }
body.dark-mode:has(.ch) .header-section.home-header a { color: #D6E4DC !important; }
body:has(.ch) .header-section.home-header .nav-link { font-weight: 600; }
body:has(.ch) .header-section.home-header .nav-link.active,
body:has(.ch) .header-section.home-header .nav-link:hover { color: #0E8C4F !important; }
body.dark-mode:has(.ch) .header-section.home-header .nav-link.active,
body.dark-mode:has(.ch) .header-section.home-header .nav-link:hover { color: #34D399 !important; }
body:has(.ch) .header-section.home-header .nav-link.active { box-shadow: inset 0 -3px 0 #FF6B00; }
body:has(.ch) .header-section .get-app-btn {
    background: #FF6B00;
    color: #fff !important;
    border-radius: 999px;
    box-shadow: 0 10px 24px -10px rgba(255, 107, 0, 0.8);
}
body:has(.ch) .header-section .get-app-btn svg path { fill: #fff; }
body:has(.ch) .header-section .get-app-btn:hover { background: #E85F00; }
body:has(.ch) .header-section .language-btn { color: inherit; }
body.dark-mode:has(.ch) .header-section .dropdown-content,
body.dark-mode:has(.ch) .header-section .dropdown-menu { background: #0B221A; }

/* ------------------------------------------------------------ Boutons ---- */
.ch-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 999px; padding: 14px 26px;
    font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ch-btn-orange { background: var(--ch-orange); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 107, 0, .75); }
body.dark-mode .ch .ch-btn-orange { background: #FF6B00; }
.ch-btn-orange:hover { transform: translateY(-2px); background: #E85F00; color: #fff; }
.ch-btn-ghost { background: var(--ch-surface); color: var(--ch-title); border: 1px solid var(--ch-border-strong); }
.ch-btn-ghost:hover { border-color: var(--ch-green); color: var(--ch-green); }
.ch-btn:focus-visible { outline: 3px solid rgba(255, 107, 0, .45); outline-offset: 3px; }

.ch-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 16px 6px 6px; border-radius: 999px;
    background: var(--ch-surface); border: 1px solid var(--ch-border-strong);
    color: var(--ch-title); font-weight: 700; font-size: 14px;
}
.ch-pill-ico {
    width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
    background: var(--ch-green); color: #fff; font-size: 14px;
}
body.dark-mode .ch .ch-pill-ico { background: #0E8C4F; }

/* ---------------------------------------------------------------- Hero ---- */
.ch-hero {
    position: relative;
    padding: 72px 0 96px;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(16, 185, 129, .10), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(255, 107, 0, .08), transparent 60%),
        var(--ch-bg);
    overflow: hidden;
}
.ch-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px; align-items: center; position: relative; z-index: 2;
}
.ch-hero-title {
    font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; font-weight: 800;
    letter-spacing: -0.02em; color: var(--ch-title); margin: 22px 0 18px;
}
.ch-hero-title .ch-accent { display: inline-block; position: relative; }
.ch-hero-sparks { position: absolute; left: -34px; top: 50%; width: 22px; }
.ch-hero-lead { font-size: 19px; line-height: 1.6; color: var(--ch-muted); max-width: 540px; margin: 0 0 28px; }

.ch-signup {
    display: flex; align-items: center; gap: 6px; max-width: 520px;
    padding: 6px; border-radius: 999px; background: var(--ch-surface);
    border: 1px solid var(--ch-border-strong); box-shadow: var(--ch-shadow-sm);
}
.ch-signup label { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ch-muted); min-width: 0; }
.ch-signup input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    color: var(--ch-text); font-size: 16px; padding: 12px 0;
}
.ch-signup input::placeholder { color: var(--ch-muted); opacity: .85; }
.ch-signup .ch-btn { flex: 0 0 auto; }
.ch-signup:focus-within { border-color: var(--ch-green); }

/* Bouton unique du hero (le champ e-mail a ete retire) */
.ch-hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ch-btn-lg { padding: 17px 34px; font-size: 17px; }
.ch-hero-cta + .ch-checks { margin-top: 24px; }
@media (max-width: 640px) {
    .ch-hero-cta .ch-btn { width: 100%; }
    .ch-checks { gap: 10px 16px; }
}

.ch-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.ch-checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ch-title); }
.ch-checks i { color: var(--ch-green); }


/* --------------------------------------------- Maquette du logiciel ---- */
.ch-stage { position: relative; padding: 18px 30px 70px 18px; }
.ch-stage::before {
    content: ""; position: absolute; inset: -6% -10% 6% 6%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, .22), transparent);
    filter: blur(10px); z-index: 0;
}
.ch-app {
    position: relative; z-index: 1; display: grid; grid-template-columns: 148px minmax(0, 1fr);
    border-radius: 22px; overflow: hidden; background: var(--ch-app);
    border: 1px solid var(--ch-border-strong);
    box-shadow: 0 30px 70px -25px rgba(11, 60, 35, .45), 0 0 0 8px rgba(14, 140, 79, .07);
}
body.dark-mode .ch .ch-app { box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .8), 0 0 0 8px rgba(52, 211, 153, .06); }
.ch-app-side { background: var(--ch-app-side); padding: 16px 10px; color: #D8F3E4; }
.ch-app-logo { display: flex; align-items: center; gap: 6px; padding: 2px 6px 16px; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff; }
.ch-app-logo svg { width: 26px; height: 22px; --ch-mark-green: #FFFFFF; --ch-mark-orange: #FF8A1F; }
.ch-app-logo small { display: block; font-size: 8px; color: #FFB066; letter-spacing: .2em; margin-top: -2px; }
.ch-app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ch-app-nav li { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 7px 8px; border-radius: 8px; opacity: .88; }
.ch-app-nav li i { width: 12px; text-align: center; font-size: 11px; }
.ch-app-nav li.is-on { background: #FF6B00; opacity: 1; color: #fff; font-weight: 700; }

.ch-app-main { padding: 14px 16px 16px; background: var(--ch-app-2); min-width: 0; }
.ch-app-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ch-app-search { flex: 1; height: 26px; border-radius: 8px; background: var(--ch-app); border: 1px solid var(--ch-border); display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 10px; color: var(--ch-muted); }
.ch-app-shop { font-size: 10px; font-weight: 700; color: var(--ch-title); display: flex; align-items: center; gap: 6px; }
.ch-app-avatar { width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(135deg, #0E8C4F, #FF6B00); }
.ch-app-h { font-size: 14px; font-weight: 800; color: var(--ch-title); margin: 0 0 10px; }
.ch-app-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ch-kpi { background: var(--ch-app); border: 1px solid var(--ch-border); border-radius: 12px; padding: 10px 10px 8px; min-width: 0; }
.ch-kpi small { display: block; font-size: 9.5px; font-weight: 700; color: var(--ch-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-kpi.is-orange small { color: var(--ch-orange-ink); }
.ch-kpi strong { display: block; font-size: 17px; font-weight: 800; color: var(--ch-title); margin-top: 3px; white-space: nowrap; }
.ch-kpi strong em { font-style: normal; font-size: 9px; font-weight: 700; margin-left: 2px; color: var(--ch-muted); }
.ch-kpi .ch-up { font-size: 9.5px; font-weight: 700; color: var(--ch-green); }
.ch-app-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.ch-app-card { background: var(--ch-app); border: 1px solid var(--ch-border); border-radius: 12px; padding: 10px; min-width: 0; }
.ch-app-card h6 { font-size: 10.5px; font-weight: 800; margin: 0 0 6px; color: var(--ch-title); }
.ch-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ch-mini-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ch-text); }
.ch-mini-list li b { font-weight: 800; color: var(--ch-title); }
.ch-dot { width: 10px; height: 14px; border-radius: 3px; background: #F59E0B; }
.ch-dot.g { background: #22C55E; } .ch-dot.o { background: #FF6B00; } .ch-dot.y { background: #EAB308; } .ch-dot.b { background: #0E8C4F; }

/* Cartes flottantes */
.ch-float {
    position: absolute; z-index: 3; background: var(--ch-surface);
    border: 1px solid var(--ch-border-strong); border-radius: 16px; box-shadow: var(--ch-shadow);
}
.ch-float-sales { left: -8px; bottom: -6px; width: 232px; padding: 12px 14px; }
.ch-float-sales h6 { font-size: 12px; font-weight: 800; margin: 0 0 8px; color: var(--ch-title); }
.ch-sale { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 12px; gap: 8px; align-items: center; font-size: 10.5px; padding: 5px 0; border-top: 1px solid var(--ch-border); color: var(--ch-muted); }
.ch-sale:first-of-type { border-top: 0; }
.ch-sale b { color: var(--ch-title); font-weight: 800; }
.ch-sale .ch-av { width: 22px; height: 22px; border-radius: 999px; background: var(--ch-green-soft); color: var(--ch-green); display: grid; place-items: center; font-size: 10px; }
.ch-sale .ch-ok { width: 12px; height: 12px; border-radius: 999px; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.ch-float-donut { right: -2px; bottom: 6px; width: 150px; padding: 12px; text-align: center; }
.ch-float-donut small { display: block; text-align: left; font-size: 10px; font-weight: 700; color: var(--ch-muted); }
.ch-float-bars { right: -18px; top: 42%; width: 64px; height: 64px; display: grid; place-items: center; }

/* Petites grilles de points decoratives */
.ch-dots { position: absolute; width: 120px; height: 60px; background-image: radial-gradient(var(--ch-green) 1.6px, transparent 1.8px); background-size: 16px 16px; opacity: .45; pointer-events: none; }
.ch-dots.is-orange { background-image: radial-gradient(var(--ch-orange) 1.6px, transparent 1.8px); }

/* ------------------------------------------------------------- Graphes ---- */
.ch-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ch-chart .grid line { stroke: var(--ch-grid); stroke-width: 1; }
.ch-chart .axis text { fill: var(--ch-muted); font-size: 9px; font-family: inherit; }
.ch-chart .ch-line-g { fill: none; stroke: var(--ch-green-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ch-chart .ch-line-o { fill: none; stroke: #FF8A1F; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ch-chart .ch-area-g { fill: url(#chAreaG); }
.ch-chart .ch-area-o { fill: url(#chAreaO); }
.ch-chart .ch-end { fill: var(--ch-green-2); stroke: var(--ch-surface); stroke-width: 2; }

/* Traces dessines a l'apparition. pathLength="1" : le meme reglage sert a
   toutes les courbes, quelle que soit leur longueur reelle. */
.ch-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ch-fade { opacity: 0; }
.is-in .ch-draw { animation: chDraw 1.8s cubic-bezier(.3, .7, .2, 1) forwards; }
.is-in .ch-draw.d2 { animation-delay: .25s; }
.is-in .ch-fade { animation: chFade 1s ease forwards .9s; }
@keyframes chDraw { to { stroke-dashoffset: 0; } }
@keyframes chFade { to { opacity: 1; } }

.ch-donut { width: 104px; height: 104px; margin: 4px auto 0; position: relative; }
.ch-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ch-donut .track { fill: none; stroke: var(--ch-green-soft); stroke-width: 11; }
.ch-donut .val { fill: none; stroke: url(#chDonutG); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s cubic-bezier(.3, .7, .2, 1) .3s; }
.ch-donut .val2 { fill: none; stroke: #FF8A1F; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 100; stroke-dashoffset: -70; transition: stroke-dasharray 1.2s ease 1.2s; }
.is-in .ch-donut .val { stroke-dasharray: var(--v, 68) 100; }
.is-in .ch-donut .val2 { stroke-dasharray: 18 100; }
.ch-donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--ch-title); }

.ch-bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; }
.ch-bars span { width: 8px; border-radius: 3px 3px 1px 1px; background: #FF8A1F; transform: scaleY(.05); transform-origin: bottom; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.ch-bars span:nth-child(odd) { background: #0E8C4F; }
.is-in .ch-bars span { transform: scaleY(1); }
.is-in .ch-bars span:nth-child(2) { transition-delay: .12s; }
.is-in .ch-bars span:nth-child(3) { transition-delay: .24s; }
.is-in .ch-bars span:nth-child(4) { transition-delay: .36s; }

.ch-meter { height: 5px; border-radius: 999px; background: var(--ch-green-soft); overflow: hidden; }
.ch-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #0E8C4F, #22C55E); transition: width 1.2s cubic-bezier(.3, .7, .2, 1); }
.ch-meter.is-orange i { background: linear-gradient(90deg, #FF6B00, #FFB066); }
.is-in .ch-meter i { width: var(--w, 50%); }

/* ------------------------------------------------------ Sections ----- */
.ch-section { padding: 96px 0; position: relative; }
.ch-section.is-alt { background: var(--ch-bg-2); }
.ch-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.ch-head::before { content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; background: var(--ch-orange); margin: 0 auto 18px; }
.ch-h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; color: var(--ch-title); margin: 0 0 14px; }
.ch-lead { font-size: 18px; line-height: 1.6; color: var(--ch-muted); margin: 0; }

/* Fonctionnalites */
.ch-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ch-feature {
    position: relative; text-align: center; padding: 34px 24px 28px; border-radius: var(--ch-radius);
    background: linear-gradient(180deg, var(--ch-green-soft), transparent 70%), var(--ch-surface);
    border: 1px solid var(--ch-border); box-shadow: var(--ch-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ch-feature.is-orange { background: linear-gradient(180deg, var(--ch-orange-soft), transparent 70%), var(--ch-surface); }
.ch-feature:hover { transform: translateY(-6px); box-shadow: var(--ch-shadow); border-color: var(--ch-border-strong); }
.ch-feature-ico { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 999px; display: grid; place-items: center; font-size: 26px; color: #fff; background: #0E8C4F; box-shadow: 0 12px 26px -10px rgba(14, 140, 79, .8); }
.ch-feature.is-orange .ch-feature-ico { background: #FF6B00; box-shadow: 0 12px 26px -10px rgba(255, 107, 0, .8); }
.ch-feature h3 { line-height: 1.3; font-size: 19px; font-weight: 800; color: var(--ch-title); margin: 0 0 12px; }
.ch-feature.is-orange h3 { color: var(--ch-orange-ink); }
.ch-feature p { font-size: 15px; line-height: 1.6; color: var(--ch-muted); margin: 0 0 18px; }
.ch-more { font-weight: 800; font-size: 15px; color: var(--ch-green); display: inline-flex; gap: 8px; align-items: center; }
.ch-feature.is-orange .ch-more { color: var(--ch-orange-ink); }
.ch-more i { transition: transform .2s ease; }
.ch-more:hover i { transform: translateX(4px); }

/* Blocs texte + visuel */
.ch-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.ch-split.is-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ch-badge-ico { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: #FF6B00; color: #fff; font-size: 22px; margin-bottom: 18px; }
.ch-badge-ico.is-green { background: #0E8C4F; }
.ch-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ch-list li { display: flex; gap: 12px; align-items: center; font-size: 17px; color: var(--ch-text); font-weight: 500; }
.ch-list li i { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #FF6B00; color: #fff; font-size: 12px; flex: 0 0 auto; }

.ch-cluster { position: relative; min-height: 540px; }
.ch-card { background: var(--ch-surface); border: 1px solid var(--ch-border-strong); border-radius: var(--ch-radius); box-shadow: var(--ch-shadow); }
.ch-card-main { position: absolute; left: 0; top: 96px; width: 64%; padding: 22px 22px 16px; z-index: 1; }
.ch-card-main small { font-weight: 700; color: var(--ch-muted); font-size: 14px; }
.ch-card-main .ch-big { display: block; font-size: 30px; font-weight: 800; color: var(--ch-title); margin: 4px 0 2px; }
.ch-card-main .ch-big em { font-style: normal; font-size: 14px; margin-left: 4px; }
.ch-card-main .ch-up { color: var(--ch-green); font-weight: 800; font-size: 14px; }
.ch-card-top { position: absolute; right: 0; top: 0; width: 44%; padding: 16px 18px; z-index: 2; }
.ch-card-low { position: absolute; right: 4%; bottom: 0; width: 44%; padding: 16px 18px; z-index: 2; }
.ch-card-top h6, .ch-card-low h6 { font-size: 14px; font-weight: 800; color: var(--ch-title); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ch-card-low h6 i { color: var(--ch-danger); }
.ch-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ch-rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--ch-text); }
.ch-rows li b { font-weight: 800; color: var(--ch-title); }
.ch-rows .ch-meter { grid-column: 2 / 4; margin-top: -4px; }

/* Collaboration : telephone illustre */
.ch-phone-scene { position: relative; min-height: 480px; display: grid; place-items: center; }
.ch-blob { position: absolute; width: 400px; height: 400px; border-radius: 46% 54% 60% 40% / 45% 45% 55% 55%; background: radial-gradient(circle at 30% 30%, #13A35C, #0B6B3A); animation: chMorph 12s ease-in-out infinite; }
body.dark-mode .ch .ch-blob { background: radial-gradient(circle at 30% 30%, #0E7A45, #063D22); }
@keyframes chMorph { 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; } }
.ch-phone {
    position: relative; z-index: 2; width: 230px; height: 440px; border-radius: 38px; padding: 12px;
    background: #0F172A; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px #334155;
}
.ch-phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--ch-app-2); display: flex; flex-direction: column; }
.ch-phone-bar { background: var(--ch-app-side); color: #fff; padding: 26px 14px 14px; }
.ch-phone-bar small { opacity: .8; font-size: 10px; }
.ch-phone-bar strong { display: block; font-size: 20px; font-weight: 800; }
.ch-phone-body { padding: 12px; display: grid; gap: 10px; }
.ch-phone-tile { background: var(--ch-app); border: 1px solid var(--ch-border); border-radius: 12px; padding: 10px; }
.ch-phone-tile h6 { margin: 0 0 6px; font-size: 10px; font-weight: 800; color: var(--ch-title); }
.ch-stat {
    position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center;
    padding: 12px 16px; border-radius: 16px; background: var(--ch-surface);
    border: 1px solid var(--ch-border-strong); box-shadow: var(--ch-shadow);
}
.ch-stat i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff; background: #0E8C4F; }
.ch-stat.is-orange i { background: #FF6B00; }
.ch-stat small { display: block; font-weight: 800; color: var(--ch-title); font-size: 14px; }
.ch-stat b { color: var(--ch-green); font-weight: 800; font-size: 15px; }
.ch-stat.is-orange b { color: var(--ch-orange-ink); }
.ch-stat-1 { left: 2%; top: 12%; }
.ch-stat-2 { right: 0; top: 30%; }
.ch-stat-3 { right: 6%; bottom: 12%; }
.ch-items { display: grid; gap: 22px; margin-top: 28px; }
.ch-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.ch-item i { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: #0E8C4F; color: #fff; font-size: 19px; }
.ch-item h4 { line-height: 1.3; font-size: 17px; font-weight: 800; color: var(--ch-title); margin: 2px 0 4px; }
.ch-item p { margin: 0; color: var(--ch-muted); font-size: 15px; line-height: 1.55; }

/* ---------------------------------------------------------- Offres ---- */
.ch-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.ch-plan {
    display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--ch-radius);
    background: var(--ch-surface); border: 1px solid var(--ch-border-strong); box-shadow: var(--ch-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ch-plan:hover { transform: translateY(-6px); box-shadow: var(--ch-shadow); border-color: var(--ch-green); }
.ch-plan-name { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ch-green); margin: 0 0 14px; }
.ch-plan-price { font-size: 38px; font-weight: 800; color: var(--ch-title); line-height: 1.1; margin: 0; word-break: break-word; }
.ch-plan-price small { font-size: 15px; font-weight: 600; color: var(--ch-muted); }
.ch-plan-old { color: var(--ch-muted); text-decoration: line-through; font-size: 15px; margin-top: 4px; }
.ch-plan .plan-annual-badge { align-self: flex-start; }
.ch-plan ul { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--ch-border); display: grid; gap: 11px; flex: 1 1 auto; align-content: start; }
.ch-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ch-text); }
.ch-plan li i { margin-top: 3px; color: var(--ch-green); }
.ch-plan li.is-off { color: var(--ch-muted); text-decoration: line-through; opacity: .8; }
.ch-plan li.is-off i { color: var(--ch-muted); }
.ch-plan .ch-btn { width: 100%; }

/* Apparition au defilement */
.ch-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.ch-reveal.is-in { opacity: 1; transform: none; }
.ch-reveal.r2 { transition-delay: .1s; } .ch-reveal.r3 { transition-delay: .2s; } .ch-reveal.r4 { transition-delay: .3s; }
.ch-floaty { animation: chFloat 6s ease-in-out infinite; }
.ch-floaty.f2 { animation-delay: -2s; } .ch-floaty.f3 { animation-delay: -4s; }
@keyframes chFloat { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
    .ch-reveal { opacity: 1; transform: none; transition: none; }
    .ch-draw { stroke-dashoffset: 0; animation: none !important; }
    .ch-fade { opacity: 1; animation: none !important; }
    .ch-floaty, .ch-blob { animation: none; }
    .ch-donut .val, .ch-donut .val2, .ch-bars span, .ch-meter i { transition: none; }
}

/* --------------------------------------------------------- Responsive ---- */
@media (max-width: 1199px) {
    .ch-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .ch-hero { padding: 40px 0 64px; }
    .ch-hero-grid, .ch-split, .ch-split.is-reverse { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .ch-stage { padding: 10px 10px 90px; }
    .ch-section { padding: 72px 0; }
    .ch-split.is-reverse .ch-phone-scene { order: 2; }
}
@media (max-width: 640px) {
    .ch-container { padding: 0 16px; }
    .ch-features { grid-template-columns: minmax(0, 1fr); }
    .ch-signup { flex-direction: column; align-items: stretch; border-radius: 22px; }
    .ch-signup label { padding: 4px 10px; }
    .ch-app { grid-template-columns: minmax(0, 1fr); }
    .ch-app-side { display: none; }
    .ch-app-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .ch-kpi strong { font-size: 14px; }
    .ch-app-row { grid-template-columns: minmax(0, 1fr); }
    /* Sur telephone, les cartes flottantes recouvraient la maquette : la
       carte des ventes passe dessous, en pleine largeur ; l'anneau et les
       barres, purement decoratifs, s'effacent. */
    .ch-stage { padding: 0 0 8px; }
    .ch-float-sales { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 14px; animation: none; }
    .ch-float-donut, .ch-float-bars { display: none; }
    .ch-cluster { min-height: 0; display: grid; gap: 14px; }
    .ch-card-main, .ch-card-top, .ch-card-low { position: static; width: 100%; }
    .ch-phone-scene { min-height: 440px; }
    .ch-blob { width: 300px; height: 300px; }
    .ch-stat { padding: 9px 12px; }
    .ch-stat i { width: 32px; height: 32px; }
    /* Les pastilles laissent visible le haut de l'ecran du telephone. */
    .ch-stat-1 { left: 0; top: auto; bottom: 30%; } .ch-stat-2 { right: 0; top: 46%; } .ch-stat-3 { right: 2%; bottom: 2%; }
}

/* Mode sombre : custom.css force les titres (et leurs span) en blanc avec
   !important. Les accents de marque et les couleurs de roles doivent tenir. */
body.dark-mode .ch .ch-accent { color: var(--ch-orange) !important; }
body.dark-mode .ch .ch-h2,
body.dark-mode .ch .ch-hero-title { color: var(--ch-title) !important; }
body.dark-mode .ch .ch-feature.is-orange h3,
body.dark-mode .ch .ch-feature.is-orange .ch-more { color: var(--ch-orange-ink) !important; }
body.dark-mode .ch h3, body.dark-mode .ch h4, body.dark-mode .ch h6 { color: var(--ch-title); }

/* ---------------------------------------- Sections Catalogue, COD, etc. ---- */
.ch-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase;
    background: var(--ch-green-soft); color: var(--ch-green);
}
.ch-kicker.is-orange { background: var(--ch-orange-soft); color: var(--ch-orange-ink); }
body.dark-mode .ch .ch-kicker.is-orange { color: var(--ch-orange-ink); }

.ch-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ch-mini {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 16px; border-radius: var(--ch-radius-sm); background: var(--ch-surface);
    border: 1px solid var(--ch-border); transition: border-color .25s ease, transform .25s ease;
}
.ch-mini:hover { border-color: var(--ch-green); transform: translateY(-3px); }
.ch-mini > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ch-green-soft); color: var(--ch-green); font-size: 17px; }
.ch-mini:nth-child(even) > i { background: var(--ch-orange-soft); color: var(--ch-orange-ink); }
.ch-mini h4 { font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--ch-title); margin: 0 0 4px; }
.ch-mini p { font-size: 13.5px; line-height: 1.5; color: var(--ch-muted); margin: 0; }

/* Cadre des animations Lottie : un disque doux derriere, jamais de fond plein
   (l'animation se pose aussi bien en clair qu'en sombre). */
.ch-lottie-wrap { position: relative; display: grid; place-items: center; min-height: 420px; }
.ch-lottie-wrap::before {
    content: ""; position: absolute; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, var(--ch-green-soft), transparent 70%);
}
.ch-lottie { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.ch-lottie svg { display: block; }
.ch-chip {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800;
    background: var(--ch-surface); color: var(--ch-title); border: 1px solid var(--ch-border-strong);
    box-shadow: var(--ch-shadow-sm); white-space: nowrap;
}
.ch-chip i { color: var(--ch-green); }
.ch-chip.is-orange i { color: var(--ch-orange); }
.ch-chip-a { left: 2%; top: 16%; }
.ch-chip-b { right: 0; bottom: 14%; }

/* Frise COD : la ligne se remplit, les etapes s'allument l'une apres l'autre. */
.ch-steps { list-style: none; margin: 28px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: step; }
.ch-steps::before, .ch-steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 23px; height: 4px; border-radius: 4px; }
.ch-steps::before { background: var(--ch-green-soft); }
.ch-steps::after { background: linear-gradient(90deg, #0E8C4F, #FF6B00); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.3, .7, .2, 1) .2s; }
.ch-steps.is-in::after { transform: scaleX(1); }
.ch-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13.5px; font-weight: 800; color: var(--ch-title); }
.ch-steps li span {
    width: 50px; height: 50px; border-radius: 999px; display: grid; place-items: center; font-size: 18px;
    background: var(--ch-surface); color: var(--ch-muted); border: 3px solid var(--ch-green-soft);
    transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s ease;
}
.ch-steps.is-in li span { background: #0E8C4F; color: #fff; border-color: #0E8C4F; transform: scale(1.06); }
.ch-steps.is-in li:last-child span { background: #FF6B00; border-color: #FF6B00; }
.ch-steps.is-in li:nth-child(2) span { transition-delay: .6s; }
.ch-steps.is-in li:nth-child(3) span { transition-delay: 1.2s; }
.ch-steps.is-in li:nth-child(4) span { transition-delay: 1.8s; }

.ch-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 4px; }
.ch-logos span {
    padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 14px;
    background: var(--ch-surface); color: var(--ch-title); border: 1px solid var(--ch-border-strong);
}
.ch-logos span:nth-child(1) { box-shadow: inset 0 -3px 0 #FFCC00; }
.ch-logos span:nth-child(2) { box-shadow: inset 0 -3px 0 #FF7900; }
.ch-logos span:nth-child(3) { box-shadow: inset 0 -3px 0 #0066B3; }
.ch-logos span:nth-child(4) { box-shadow: inset 0 -3px 0 #1DC8FF; }
.ch-logos span:nth-child(5) { box-shadow: inset 0 -3px 0 #0E8C4F; }
.ch-logos span:nth-child(6) { box-shadow: inset 0 -3px 0 #94A3B8; }

@media (prefers-reduced-motion: reduce) {
    .ch-steps::after { transform: scaleX(1); transition: none; }
    .ch-steps li span { transition: none; }
}
@media (max-width: 991px) {
    .ch-lottie-wrap { min-height: 320px; }
    .ch-split.is-reverse .ch-lottie-wrap { order: 2; }
}
@media (max-width: 640px) {
    .ch-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .ch-steps li { font-size: 11.5px; }
    .ch-steps li span { width: 42px; height: 42px; font-size: 15px; }
    .ch-steps::before, .ch-steps::after { top: 19px; }
    .ch-chip { font-size: 12px; padding: 8px 12px; }
    .ch-chip-a { left: 0; top: 4%; }
    .ch-chip-b { right: 0; bottom: 4%; }
}
