/* KashPilot — site vitrine (même charte que l'espace privé : thème clair, Avenir Next, dégradé de la marque) */

@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plex-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: light only;

    --primaire: #087b7e;
    --primaire-fonce: #06666a;
    --primaire-teinte: rgba(19, 231, 235, .12);
    --cyan: #13e7eb;
    --anneau: rgba(19, 231, 235, .5);
    --sur-primaire: #14123a;
    --degrade: linear-gradient(135deg, #ccfcc8, #13e7eb);
    --degrade-fonce: linear-gradient(135deg, #b3f5ae, #0fd0d4);
    --degrade-texte: linear-gradient(100deg, #087b7e, #0fb5c4 55%, #3c91fb);
    --nav-fond: #191933;
    --nuit: #14123a;

    --fond: #f5f7f6;
    --carte: #ffffff;
    --carte-2: #f0f4f2;
    --texte: #14211a;
    --texte-2: #4b5e54;
    --texte-3: #6b7d73;
    --trait: #e3e9e6;
    --trait-fort: #cdd7d2;

    --recette: #0a8f52;
    --depense: #d23a2a;
    --alerte: #b86e00;

    --police: "Avenir Next", "Avenir", "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --rayon: 6px;
    --rayon-petit: 4px;
    --largeur: 1160px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 400 16px/1.6 var(--police);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primaire); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--anneau); outline-offset: 2px; }

.ic { width: 1em; height: 1em; flex: none; }
.recette { color: var(--recette); }
.depense { color: var(--depense); }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .conteneur { padding: 0 16px; } }

/* ---------- Boutons ---------- */
.bouton {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px;
    border: 1px solid var(--trait-fort); border-radius: var(--rayon);
    background: var(--carte); color: var(--texte);
    font: 600 15px/1.2 var(--police); letter-spacing: -0.01em;
    cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.bouton:hover { text-decoration: none; border-color: var(--primaire); transform: translateY(-1px); }
.bouton:active { transform: translateY(0); }
.bouton.principal { background: var(--degrade); border-color: transparent; color: var(--sur-primaire); }
.bouton.principal:hover { box-shadow: 0 8px 24px rgba(19, 231, 235, .35); }
/* Reflet qui balaie le bouton principal au survol */
.bouton.principal::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.bouton.principal:hover::after { left: 130%; }
.bouton.grand { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.bouton .ic { font-size: 18px; transition: transform .2s var(--ease); }
.bouton:hover .ic-fleche { transform: translateX(3px); }

/* ---------- Barre de progression de lecture ---------- */
.progression {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30;
    background: var(--degrade); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- En-tête ---------- */
.entete {
    position: sticky; top: 0; z-index: 20;
    background: rgba(245, 247, 246, .6);
    backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.entete.defile { background: rgba(255, 255, 255, .88); border-bottom-color: var(--trait); box-shadow: 0 6px 24px rgba(20, 18, 58, .06); }
.entete .conteneur { display: flex; align-items: center; gap: 32px; height: 72px; transition: height .3s var(--ease); }
.entete.defile .conteneur { height: 60px; }
.marque img { height: 22px; width: auto; }
.nav { display: flex; gap: 6px; margin-right: auto; position: relative; }
.nav a { position: relative; color: var(--texte-2); font-weight: 500; font-size: 15px; padding: 6px 12px; border-radius: var(--rayon-petit); transition: color .2s, background .2s; }
.nav a:hover { color: var(--texte); text-decoration: none; background: var(--primaire-teinte); }
.nav a.actif { color: var(--primaire); }
.nav a.actif::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--degrade); border-radius: 2px; }
.entete-actions { display: flex; align-items: center; gap: 12px; }
.lien-connexion { color: var(--texte); font-weight: 600; font-size: 15px; }
.bouton-menu { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--texte); cursor: pointer; }
.bouton-menu svg { width: 24px; height: 24px; }
.nav .seulement-mobile { display: none; }

@media (max-width: 900px) {
    .entete .conteneur { gap: 16px; }
    .nav, .lien-connexion { display: none; }
    .marque { margin-right: auto; }
    .bouton-menu { display: block; }
    .entete .bouton { min-height: 38px; padding: 8px 14px; font-size: 14px; }
    .entete.ouvert { background: var(--carte); }
    .entete.ouvert .nav {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--carte); border-bottom: 1px solid var(--trait); padding: 8px 16px 16px;
        box-shadow: 0 20px 40px rgba(20, 18, 58, .08);
    }
    .entete.ouvert .nav a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--trait); font-size: 16px; color: var(--texte); background: none; }
    .entete.ouvert .nav a::after { display: none; }
    .entete.ouvert .nav .seulement-mobile { display: block; border-bottom: 0; color: var(--primaire); font-weight: 600; }
}
@media (max-width: 420px) { .entete .bouton.principal { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 0; overflow: hidden; }
.halo {
    position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px);
    background: radial-gradient(closest-side, rgba(19, 231, 235, .28), rgba(204, 252, 200, .18) 55%, transparent);
}
.halo-1 { width: 820px; height: 820px; top: -360px; right: -220px; }
.halo-2 { width: 560px; height: 560px; top: 340px; left: -300px; background: radial-gradient(closest-side, rgba(60, 145, 251, .14), transparent); }
.grille-fond {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
    opacity: .55;
}
.hero .conteneur { position: relative; }
.hero-texte { max-width: 820px; margin: 0 auto; text-align: center; }
.surtitre {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 6px; margin-bottom: 26px;
    background: var(--carte); border: 1px solid var(--trait); border-radius: 999px;
    color: var(--texte-2); font-size: 14px; font-weight: 500;
}
.surtitre b { background: var(--degrade); color: var(--sur-primaire); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.035em; color: var(--nuit); }
.hero h1 .ligne { display: block; }
.mot-tournant { position: relative; white-space: nowrap; }
.mot-tournant .texte { background: var(--degrade-texte); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mot-tournant .curseur { display: inline-block; width: .06em; height: .9em; margin-left: .04em; background: var(--cyan); vertical-align: -0.08em; animation: clignote-curseur 1s steps(1) infinite; }
@keyframes clignote-curseur { 50% { opacity: 0; } }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.hero h1 em path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.1s .6s var(--ease) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.hero-intro { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: var(--texte-2); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--texte-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ic { color: var(--recette); font-size: 16px; }

/* Entrée du hero, élément par élément */
@media (prefers-reduced-motion: no-preference) {
    .js .entree { opacity: 0; transform: translateY(16px); animation: entree .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
}
@keyframes entree { to { opacity: 1; transform: none; } }

/* ---------- Maquette vivante de l'application ---------- */
.scene { position: relative; margin-top: 64px; perspective: 1600px; }
.apercu {
    position: relative;
    border: 1px solid var(--trait-fort); border-bottom: 0; border-radius: 12px 12px 0 0;
    background: var(--fond); overflow: hidden;
    box-shadow: 0 40px 100px rgba(20, 18, 58, .18), 0 0 0 6px rgba(255,255,255,.5);
    display: grid; grid-template-columns: 220px 1fr;
    font-size: 13px; line-height: 1.45;
    user-select: none;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .4s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
    .js .scene .apercu { opacity: 0; transform: rotateX(18deg) translateY(60px) scale(.96); animation: leve 1.2s .5s var(--ease) forwards; }
    .js .scene.pret .apercu { opacity: 1; animation: none; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
}
@keyframes leve { to { opacity: 1; transform: rotateX(0) translateY(0) scale(1); } }

.apercu-menu { background: var(--nav-fond); color: #c9cbe0; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.apercu-menu img { height: 15px; width: auto; margin: 2px 8px 18px; }
.apercu-asso { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 12px; border-radius: var(--rayon-petit); background: rgba(255,255,255,.06); color: #fff; }
.apercu-asso .ic { font-size: 18px; color: var(--cyan); }
.apercu-asso small { display: block; color: #9a9cb8; font-size: 11px; }
.apercu-ajout { background: var(--degrade); color: var(--sur-primaire); font-weight: 600; text-align: center; padding: 8px; border-radius: var(--rayon-petit); margin-bottom: 14px; }
.apercu-groupe { color: #7c7fa0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin: 12px 8px 4px; font-weight: 600; }
.apercu-lien { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--rayon-petit); }
.apercu-lien .ic { font-size: 16px; }
.apercu-lien.actif { background: rgba(19, 231, 235, .14); color: #fff; }
.apercu-lien.actif .ic { color: var(--cyan); }

.apercu-contenu { padding: 26px 28px 30px; min-width: 0; }
.apercu-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.apercu-contenu .apercu-titre { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; font-size: 22px; color: var(--texte); }
.apercu-contenu .discret { color: var(--texte-3); margin-top: 2px; }
.en-direct { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--recette); background: rgba(10,143,82,.08); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.en-direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--recette); box-shadow: 0 0 0 0 rgba(10,143,82,.5); animation: pouls 1.8s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 7px rgba(10,143,82,0); } 100% { box-shadow: 0 0 0 0 rgba(10,143,82,0); } }
.apercu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.apercu-action { display: flex; align-items: center; gap: 12px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; transition: border-color .3s, box-shadow .3s; }
.apercu-action.appuye { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--primaire-teinte); }
.apercu-action strong { display: block; font-size: 14px; }
.apercu-action small { color: var(--texte-3); }
.pastille { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--rayon); flex: none; font-size: 22px; }
.pastille.depense { background: rgba(210, 58, 42, .09); color: var(--depense); }
.pastille.recette { background: rgba(10, 143, 82, .09); color: var(--recette); }
.pastille.neutre { background: var(--primaire-teinte); color: var(--primaire); }
.apercu-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.apercu-chiffre { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px; transition: box-shadow .4s, border-color .4s; }
.apercu-chiffre.flash { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--primaire-teinte); }
.apercu-chiffre span { display: flex; align-items: center; gap: 6px; color: var(--texte-3); font-size: 12px; }
.apercu-chiffre span .ic { font-size: 15px; color: var(--primaire); }
.apercu-chiffre b { display: block; font-size: 20px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; white-space: nowrap; }
.apercu-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-top: 12px; }
.apercu-panneau { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; overflow: hidden; }
.apercu-panneau-titre { font-weight: 700; margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.apercu-panneau-titre .ic { color: var(--primaire); font-size: 16px; }
.apercu-liste { position: relative; }
.apercu-ligne { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--trait); }
.apercu-liste .apercu-ligne:first-child { border-top: 0; }
.apercu-ligne .pastille { width: 28px; height: 28px; font-size: 15px; }
.apercu-ligne div { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu-ligne small { display: block; color: var(--texte-3); font-size: 11.5px; }
.apercu-ligne b { font-weight: 600; white-space: nowrap; }
.apercu-ligne.nouvelle { animation: glisse .7s var(--ease); background: linear-gradient(90deg, var(--primaire-teinte), transparent 70%); }
@keyframes glisse { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Bulles flottantes autour de la maquette */
.bulle {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 10px;
    background: var(--carte); border: 1px solid var(--trait); border-radius: 8px;
    padding: 10px 14px 10px 10px; font-size: 13.5px; line-height: 1.3;
    box-shadow: 0 18px 40px rgba(20, 18, 58, .14);
}
.bulle .pastille { width: 34px; height: 34px; font-size: 19px; }
.bulle strong { display: block; font-size: 13.5px; }
.bulle small { color: var(--texte-3); font-size: 12px; }
.bulle-1 { left: -36px; top: 210px; }
.bulle-2 { right: -30px; top: 80px; }
.bulle-3 { right: 40px; bottom: 40px; }
@media (prefers-reduced-motion: no-preference) {
    .bulle { animation: flotte 6s ease-in-out infinite; }
    .bulle-2 { animation-delay: -2s; }
    .bulle-3 { animation-delay: -4s; }
}
@keyframes flotte { 50% { transform: translateY(-10px); } }
@media (max-width: 1240px) { .bulle-1 { left: 8px; } .bulle-2 { right: 8px; } }
@media (max-width: 900px) {
    .apercu { grid-template-columns: 1fr; }
    .apercu-menu { display: none; }
    .apercu-chiffres { grid-template-columns: 1fr 1fr; }
    .apercu-grille { grid-template-columns: 1fr; }
    .bulle { display: none; }
}
@media (max-width: 520px) {
    .apercu-contenu { padding: 18px 14px 20px; }
    .apercu-actions { grid-template-columns: 1fr; }
    .apercu-chiffre b { font-size: 16px; }
    .apercu-grille .apercu-panneau:first-child { display: none; }
    .en-direct { display: none; }
}

/* ---------- Bandeau défilant ---------- */
.bandeau { padding: 28px 0; background: var(--carte); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); overflow: hidden; }
.bandeau p { text-align: center; color: var(--texte-3); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.defilant { display: flex; width: max-content; gap: 12px; animation: defile 40s linear infinite; }
.bandeau:hover .defilant { animation-play-state: paused; }
.defilant span {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 8px 16px; border: 1px solid var(--trait); border-radius: 999px; background: var(--fond);
    font-weight: 500; color: var(--texte-2);
}
.defilant .ic { color: var(--primaire); font-size: 18px; }
.bandeau-masque { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@keyframes defile { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .defilant { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .defilant [aria-hidden] { display: none; } }

/* ---------- Sections ---------- */
section.bloc { padding: 120px 0; position: relative; }
section.bloc.clair { background: var(--carte); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
@media (max-width: 700px) { section.bloc { padding: 76px 0; } }
.titre-section { max-width: 720px; margin-bottom: 56px; }
.titre-section.centre { margin-left: auto; margin-right: auto; text-align: center; }
.etiquette { display: inline-flex; align-items: center; gap: 8px; color: var(--primaire); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.etiquette::before { content: ""; width: 18px; height: 2px; background: var(--degrade); border-radius: 2px; }
.titre-section h2 { font-size: clamp(30px, 4vw, 46px); color: var(--nuit); }
.titre-section h2 .accent { background: var(--degrade-texte); -webkit-background-clip: text; background-clip: text; color: transparent; }
.titre-section p { margin-top: 18px; font-size: 18px; color: var(--texte-2); }

/* Apparition au défilement */
@media (prefers-reduced-motion: no-preference) {
    .js .revele { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
    .js .revele.visible { opacity: 1; transform: none; }
}

/* ---------- Démo de saisie ---------- */
.demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.choix { display: grid; gap: 12px; }
.choix button {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
    padding: 20px; background: var(--fond); color: var(--texte);
    border: 1px solid var(--trait); border-radius: 8px; cursor: pointer;
    transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
}
.choix button:hover { transform: translateX(4px); border-color: var(--trait-fort); }
.choix button[aria-pressed="true"] { background: var(--carte); border-color: var(--cyan); box-shadow: 0 12px 30px rgba(20, 18, 58, .08); }
.choix .pastille { width: 52px; height: 52px; font-size: 28px; transition: transform .3s var(--ease); }
.choix button[aria-pressed="true"] .pastille { transform: scale(1.06) rotate(-4deg); }
.choix strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.choix small { display: block; color: var(--texte-2); font-size: 14.5px; margin-top: 2px; }
.choix .barre { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--degrade); transform-origin: 0 50%; transform: scaleX(0); }
.lexique { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.lexique span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--fond); border: 1px dashed var(--trait-fort); border-radius: 999px; font-size: 13.5px; color: var(--texte-3); }
.lexique s { text-decoration: none; position: relative; }
.lexique s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px; background: var(--depense); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 200ms + 400ms); }
.lexique.visible s::after, .no-js .lexique s::after { transform: scaleX(1); }
.lexique b { color: var(--texte); font-weight: 600; opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i, 0) * 200ms + 800ms); }
.lexique.visible b { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lexique s::after { transform: scaleX(1); } .lexique b { opacity: 1; } }

.ecran {
    position: relative; background: var(--carte); border: 1px solid var(--trait-fort); border-radius: 14px;
    box-shadow: 0 30px 80px rgba(20, 18, 58, .12); overflow: hidden; min-height: 470px;
}
.ecran-tete { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--trait); background: var(--fond); font-size: 13.5px; color: var(--texte-3); }
.ecran-tete i { width: 10px; height: 10px; border-radius: 50%; background: var(--trait-fort); }
.ecran-tete span { margin-left: 8px; }
.ecran-corps { padding: 26px 26px 30px; }
.ecran-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ecran-titre .pastille { width: 38px; height: 38px; font-size: 21px; }
.ecran-titre-texte { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; font-size: 21px; }
.champ { margin-bottom: 14px; opacity: .35; transition: opacity .3s; }
.champ.actif, .champ.rempli { opacity: 1; }
.champ label { display: block; font-size: 13px; font-weight: 600; color: var(--texte-2); margin-bottom: 6px; }
.saisie {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: var(--carte); font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.champ.actif .saisie { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--primaire-teinte); }
.saisie.montant { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.saisie .curseur-saisie { width: 1.5px; height: 1.1em; background: var(--primaire); display: none; animation: clignote-curseur 1s steps(1) infinite; }
.champ.actif .curseur-saisie { display: inline-block; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--trait-fort); border-radius: var(--rayon); font-size: 14px; color: var(--texte-2); background: var(--carte); transition: all .25s var(--ease); }
.puce .ic { font-size: 17px; color: var(--primaire); }
.puce.choisie { background: var(--degrade); border-color: transparent; color: var(--sur-primaire); font-weight: 600; transform: scale(1.04); }
.puce.choisie .ic { color: var(--sur-primaire); }
.fichier { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon); color: var(--texte-3); font-size: 14px; }
.fichier .ic { font-size: 20px; color: var(--primaire); }
.fichier.joint { border-style: solid; color: var(--texte); background: var(--fond); animation: glisse .5s var(--ease); }
.fichier .vignette { width: 34px; height: 34px; border-radius: var(--rayon-petit); background: repeating-linear-gradient(0deg, #fff 0 4px, #e8eeeb 4px 5px); border: 1px solid var(--trait); flex: none; }
.ecran-pied { display: flex; justify-content: flex-end; margin-top: 20px; }
.ecran-pied .bouton { pointer-events: none; }
.ecran-pied .bouton.appuye { transform: scale(.96); box-shadow: 0 0 0 4px var(--primaire-teinte); }
.toast {
    position: absolute; left: 50%; top: 62px; transform: translate(-50%, -20px); opacity: 0; z-index: 2;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    background: var(--nuit); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14.5px;
    box-shadow: 0 16px 40px rgba(20, 18, 58, .3);
    transition: opacity .35s, transform .45s var(--ease);
}
.toast .ic { color: var(--cyan); font-size: 20px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: 32px; } .ecran { min-height: 440px; } }
@media (max-width: 520px) { .ecran-corps { padding: 20px 16px 24px; } .choix button { padding: 16px; } .choix strong { font-size: 16px; } .toast { font-size: 13px; } }

/* ---------- Fonctionnalités (onglets animés) ---------- */
.vitrine { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.onglets { display: grid; gap: 6px; }
.onglet {
    position: relative; overflow: hidden; text-align: left; width: 100%;
    display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
    padding: 16px 18px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--texte);
    cursor: pointer; transition: background .25s, border-color .25s;
}
.onglet:hover { background: var(--carte); }
.onglet .ic { font-size: 24px; color: var(--texte-3); transition: color .25s, transform .3s var(--ease); grid-row: span 2; }
.onglet strong { font-size: 16.5px; letter-spacing: -0.015em; }
.onglet span { grid-column: 2; font-size: 14px; color: var(--texte-2); display: none; }
.onglet[aria-selected="true"] { background: var(--carte); border-color: var(--trait); box-shadow: 0 10px 30px rgba(20, 18, 58, .06); }
.onglet[aria-selected="true"] .ic { color: var(--primaire); transform: scale(1.1); }
.onglet[aria-selected="true"] span { display: block; animation: glisse .4s var(--ease); }
.onglet .barre { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--degrade); transform-origin: 0 50%; transform: scaleX(0); }

.panneaux { position: relative; }
.panneau-vitrine {
    background: var(--carte); border: 1px solid var(--trait); border-radius: 12px;
    padding: 28px; min-height: 460px; box-shadow: 0 30px 80px rgba(20, 18, 58, .08);
    position: relative; overflow: hidden;
}
.panneau-vitrine[hidden] { display: none; }
.panneau-vitrine::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--degrade); }
.panneau-vitrine h3 { font-size: 22px; margin-bottom: 6px; }
.panneau-vitrine > p { color: var(--texte-2); margin-bottom: 22px; max-width: 560px; }
.panneau-vitrine ul.points-cles { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.points-cles li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--texte-2); background: var(--fond); border: 1px solid var(--trait); padding: 5px 10px; border-radius: 999px; }
.points-cles .ic { color: var(--recette); font-size: 15px; }
.visuel { background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; padding: 18px; font-size: 14px; }
.visuel-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--texte-3); margin-bottom: 12px; }
.visuel-tete b { color: var(--texte); font-size: 14px; }

/* Animations des visuels : rejouées à chaque affichage du panneau (.joue) */
.js .anim { opacity: 0; }
.joue .anim { animation: glisse .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 280ms + 150ms); }

/* Relevés */
.releve-ligne { display: grid; grid-template-columns: 54px 1fr auto 26px; gap: 10px; align-items: center; padding: 9px 10px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit); margin-bottom: 6px; }
.releve-ligne small { color: var(--texte-3); }
.releve-ligne b { font-weight: 600; }
.coche { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--trait-fort); display: grid; place-items: center; color: transparent; font-size: 14px; }
.joue .coche { animation: coche .4s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 280ms + 700ms); }
@keyframes coche { to { background: var(--recette); border-color: var(--recette); color: #fff; } }
.verdict { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--trait); }
.verdict b { white-space: nowrap; }
.verdict .ok { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--recette); font-weight: 600; opacity: 0; }
.joue .verdict .ok { animation: glisse .5s var(--ease) forwards; animation-delay: 2.4s; }

/* Adhérents */
.jauge { height: 10px; border-radius: 999px; background: var(--trait); overflow: hidden; margin: 8px 0 16px; }
.jauge i { display: block; height: 100%; width: 0; background: var(--degrade); border-radius: inherit; }
.joue .jauge i { animation: remplit 1.6s .3s var(--ease) forwards; }
@keyframes remplit { to { width: var(--v); } }
.membre { display: flex; align-items: center; gap: 12px; padding: 9px 10px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit); margin-bottom: 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--sur-primaire); background: var(--degrade); flex: none; }
.membre div { flex: 1; min-width: 0; }
.membre small { display: block; color: var(--texte-3); font-size: 12.5px; }
.statut-cot { position: relative; display: inline-grid; font-size: 12.5px; font-weight: 600; }
.statut-cot > * { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; justify-self: end; }
.paye { background: rgba(10,143,82,.1); color: var(--recette); }
.attente { background: rgba(184,110,0,.1); color: var(--alerte); }
.gratuit { background: var(--primaire-teinte); color: var(--primaire); }
.bascule .paye { opacity: 0; }
.joue .bascule .attente { animation: disparait .3s 2.2s forwards; }
.joue .bascule .paye { animation: apparait .4s 2.4s var(--ease) forwards; }
@keyframes disparait { to { opacity: 0; transform: scale(.8); } }
@keyframes apparait { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* Dons : reçu fiscal */
.recu { position: relative; max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--trait); border-radius: 4px; padding: 22px 24px; box-shadow: 0 16px 40px rgba(20, 18, 58, .1); font-size: 13px; }
.joue .recu { animation: imprime .9s var(--ease) both; }
@keyframes imprime { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.recu-tete { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--trait); padding-bottom: 12px; margin-bottom: 12px; }
.recu-tete strong { font-size: 14px; }
.recu-tete small { color: var(--texte-3); display: block; }
.recu dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.recu dt { color: var(--texte-3); }
.recu dd { margin: 0; font-weight: 600; text-align: right; }
.recu .total { font-size: 20px; }
.tampon {
    position: absolute; right: 18px; bottom: 16px; padding: 4px 10px; border: 2px solid var(--recette); color: var(--recette);
    border-radius: 4px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg); opacity: 0;
}
.joue .tampon { animation: tamponne .45s 1.2s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes tamponne { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* Frais : étapes */
.suivi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 6px 0 18px; position: relative; }
.suivi::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--trait-fort); }
.suivi::after { content: ""; position: absolute; top: 15px; left: 12.5%; height: 2px; width: 0; background: var(--degrade); }
.joue .suivi::after { animation: suivi 2.4s .3s steps(3, end) forwards; }
@keyframes suivi { to { width: 75%; } }
.suivi div { position: relative; z-index: 1; text-align: center; font-size: 12.5px; color: var(--texte-3); }
.suivi i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: var(--carte); border: 2px solid var(--trait-fort); font-style: normal; font-size: 16px; color: var(--texte-3); }
.joue .suivi i { animation: etape-ok .3s forwards; animation-delay: calc(var(--i) * 800ms + 300ms); }
@keyframes etape-ok { to { background: var(--degrade); border-color: transparent; color: var(--sur-primaire); } }
.note-frais { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; }
.note-frais .ligne-frais { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.note-frais .ligne-frais + .ligne-frais { border-top: 1px solid var(--trait); }
.note-frais .ligne-frais div { flex: 1; }
.note-frais small { display: block; color: var(--texte-3); font-size: 12.5px; }
.option-don { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--rayon); background: var(--primaire-teinte); color: var(--primaire-fonce); font-size: 13.5px; }
.option-don .ic { font-size: 20px; }

/* Budget */
.budget-ligne { display: grid; grid-template-columns: 130px 1fr 92px; gap: 14px; align-items: center; padding: 8px 0; }
.budget-ligne + .budget-ligne { border-top: 1px solid var(--trait); }
.budget-ligne span { font-weight: 500; }
.budget-ligne small { text-align: right; color: var(--texte-3); font-size: 12.5px; }
.barres { position: relative; height: 22px; }
.barres i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; width: 0; }
.barres .prevu { background: var(--trait); top: 0; bottom: 0; }
.barres .realise { background: var(--degrade); top: 5px; bottom: 5px; }
.barres .realise.depasse { background: linear-gradient(90deg, #ffd0c8, #f28b7d); }
.joue .barres .prevu { animation: remplit .8s var(--ease) forwards; animation-delay: calc(var(--i) * 150ms); }
.joue .barres .realise { animation: remplit 1.3s var(--ease) forwards; animation-delay: calc(var(--i) * 150ms + 500ms); }
.legende { display: flex; gap: 18px; font-size: 12.5px; color: var(--texte-3); margin-top: 10px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 8px; border-radius: 2px; background: var(--trait); }
.legende i.r { background: var(--degrade); }

/* Bilan */
.bilan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bilan-col { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; }
.bilan-col-titre { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin-bottom: 8px; }
.bilan-col div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13.5px; }
.bilan-col div + div { border-top: 1px solid var(--trait); }
.bilan-total { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--nav-fond); color: #fff; border-radius: var(--rayon); padding: 14px 16px; }
.bilan-total b { font-size: 22px; color: var(--cyan); }
.bilan-total .bouton { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }

@media (max-width: 960px) {
    .vitrine { grid-template-columns: 1fr; gap: 20px; }
    .onglets { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
    .onglets::-webkit-scrollbar { display: none; }
    .onglet { flex: none; width: auto; grid-template-columns: auto auto; padding: 10px 14px; border-color: var(--trait); background: var(--carte); scroll-snap-align: start; }
    .onglet .ic { grid-row: auto; font-size: 20px; }
    .onglet strong { font-size: 14.5px; white-space: nowrap; }
    .onglet[aria-selected="true"] span { display: none; }
}
@media (max-width: 560px) {
    .panneau-vitrine { padding: 20px 14px; min-height: 0; }
    .budget-ligne { grid-template-columns: 90px 1fr; }
    .budget-ligne small { grid-column: 2; text-align: left; margin-top: -6px; }
    .bilan { grid-template-columns: 1fr; }
    .releve-ligne { grid-template-columns: 44px 1fr auto 24px; gap: 8px; font-size: 13px; }
    .visuel { padding: 12px; }
    #p-releves .visuel-tete span { display: none; }
}

/* Autres fonctionnalités */
.autres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.autre { display: flex; gap: 14px; padding: 20px; background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.autre:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20, 18, 58, .08); border-color: var(--trait-fort); }
.autre > .ic { font-size: 26px; color: var(--primaire); }
.autre h3 { font-size: 16.5px; margin-bottom: 4px; }
.autre p { font-size: 14.5px; color: var(--texte-2); }
@media (max-width: 860px) { .autres { grid-template-columns: 1fr; } }

/* ---------- Démarrer ---------- */
.etapes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; }
.etapes-ligne { position: absolute; top: 27px; left: 28px; right: calc(33.33% - 28px); height: 2px; background: var(--trait-fort); }
.etapes-ligne i { display: block; height: 100%; background: var(--degrade); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.etape { position: relative; }
.etape-num {
    position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 24px;
    background: var(--carte); border: 2px solid var(--trait-fort); border-radius: 12px; color: var(--texte-3);
    font-size: 22px; transition: all .4s var(--ease);
}
.etape-num .ic { font-size: 26px; }
.etape.atteinte .etape-num { background: var(--degrade); border-color: transparent; color: var(--sur-primaire); transform: scale(1.06); box-shadow: 0 10px 30px rgba(19, 231, 235, .35); }
.etape small { display: block; color: var(--primaire); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.etape h3 { font-size: 20px; margin-bottom: 10px; }
.etape p { color: var(--texte-2); }
@media (max-width: 800px) {
    .etapes { grid-template-columns: 1fr; gap: 36px; padding-left: 76px; }
    .etapes-ligne { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
    .etapes-ligne i { width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
    .etape-num { position: absolute; left: -76px; top: 0; margin: 0; }
}

/* ---------- Section sombre ---------- */
.sombre { background: var(--nav-fond); color: #d4d6ea; overflow: hidden; }
.sombre::before {
    content: ""; position: absolute; width: 900px; height: 900px; top: -400px; left: 50%; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(19, 231, 235, .14), transparent);
}
.sombre .conteneur { position: relative; }
.sombre .titre-section h2 { color: #fff; }
.sombre .titre-section p { color: #a9abc6; }
.sombre .etiquette { color: var(--cyan); }
.garanties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.garantie {
    position: relative; display: flex; gap: 18px; padding: 28px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.03);
    transition: border-color .3s, transform .3s var(--ease);
}
.garantie::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
    background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(19, 231, 235, .16), transparent 60%);
}
.garantie:hover { border-color: rgba(19, 231, 235, .35); transform: translateY(-3px); }
.garantie:hover::before { opacity: 1; }
.garantie > .ic { position: relative; font-size: 30px; color: var(--cyan); margin-top: 2px; }
.garantie div { position: relative; }
.garantie h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.garantie p { color: #a9abc6; font-size: 15.5px; }
@media (max-width: 800px) { .garanties { grid-template-columns: 1fr; } .garantie { padding: 20px; } }

/* ---------- Rôles : matrice interactive ---------- */
.roles { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.roles-choix { display: grid; gap: 8px; }
.roles-choix button {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; width: 100%;
    background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; cursor: pointer; color: var(--texte);
    font-size: 15.5px; font-weight: 600; transition: all .25s var(--ease);
}
.roles-choix button .ic { font-size: 22px; color: var(--texte-3); transition: color .25s; }
.roles-choix button:hover { border-color: var(--trait-fort); transform: translateX(3px); }
.roles-choix button[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--primaire-teinte); }
.roles-choix button[aria-pressed="true"] .ic { color: var(--primaire); }
.droits { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 26px; box-shadow: 0 24px 60px rgba(20, 18, 58, .06); }
.droits-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.droits-tete .pastille { width: 48px; height: 48px; font-size: 26px; background: var(--degrade); color: var(--sur-primaire); }
.droits-tete h3 { font-size: 21px; }
.droits-tete p { color: var(--texte-2); font-size: 15px; margin-top: 2px; }
.droit { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--trait); transition: opacity .3s; }
.droit > .ic { font-size: 22px; color: var(--primaire); }
.droit > span:not(.etat) { flex: 1; }
.droit .etat { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; transition: background .3s, color .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.droit.oui .etat { background: rgba(10,143,82,.12); color: var(--recette); transform: scale(1); }
.droit.non { opacity: .45; }
.droit.non .etat { background: var(--carte-2); color: var(--texte-3); transform: scale(.85); }
.droit .etat .ic-oui, .droit.non .etat .ic-non { display: block; }
.droit .etat .ic-non, .droit.non .etat .ic-oui { display: none; }
@media (max-width: 860px) {
    .roles { grid-template-columns: 1fr; gap: 16px; }
    .roles-choix { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; }
    .roles-choix::-webkit-scrollbar { display: none; }
    .roles-choix button { flex: none; width: auto; white-space: nowrap; font-size: 14.5px; padding: 10px 14px; }
    .droits { padding: 20px 16px; }
}

/* ---------- Tarifs ---------- */
.essai { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

/* Carte du mois offert, bordure dégradée qui tourne */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.essai-carte {
    position: relative; display: flex; gap: 28px; align-items: flex-start;
    padding: 36px; border-radius: 14px; background: var(--carte);
    border: 2px solid transparent;
    background: linear-gradient(var(--carte), var(--carte)) padding-box,
                conic-gradient(from var(--angle), #ccfcc8, #13e7eb, #3c91fb, #13e7eb, #ccfcc8) border-box;
    box-shadow: 0 30px 80px rgba(19, 231, 235, .18);
}
@media (prefers-reduced-motion: no-preference) { .essai-carte { animation: tourne-bord 6s linear infinite; } }
@keyframes tourne-bord { to { --angle: 360deg; } }
.essai-badge {
    flex: none; width: 112px; height: 112px; border-radius: 14px; display: grid; place-content: center; text-align: center;
    background: var(--degrade); color: var(--sur-primaire);
}
.essai-badge b { font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.essai-badge span { font-size: 12.5px; font-weight: 600; line-height: 1.2; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.essai-texte h3 { font-size: 23px; color: var(--nuit); }
.essai-sans-cb {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    padding: 5px 12px; border-radius: 999px; background: rgba(10, 143, 82, .09); color: var(--recette);
    font-size: 14px; font-weight: 600;
}
.essai-sans-cb .ic { font-size: 18px; }
.essai-note { display: block; margin-top: 12px; color: var(--texte-3); font-size: 13.5px; }
.essai-texte ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; }
.essai-texte li { display: flex; align-items: center; gap: 10px; color: var(--texte-2); }
.essai-texte li .ic { color: var(--recette); font-size: 20px; }

/* Frise du mois offert */
.frise { position: relative; list-style: none; margin: 0; padding: 0 0 0 72px; display: grid; gap: 26px; }
.frise-ligne { display: none; }
.frise-etape { position: relative; }
/* Segment qui relie chaque étape à la suivante, rempli l'un après l'autre */
.frise-etape:not(:last-child)::before, .frise-etape:not(:last-child)::after {
    content: ""; position: absolute; left: -49px; top: 48px; bottom: -26px; width: 2px; background: var(--trait-fort);
}
.frise-etape:not(:last-child)::after {
    background: var(--degrade); transform-origin: 50% 0; transform: scaleY(0);
    transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 700ms + 600ms);
}
.essai.visible .frise-etape::after { transform: scaleY(1); }
.frise-point {
    position: absolute; left: -72px; top: 0; width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 12px; background: var(--carte); border: 2px solid var(--trait-fort); color: var(--texte-3); font-size: 22px;
    transition: all .4s var(--ease); transition-delay: calc(var(--i) * 700ms + 300ms);
}
.essai.visible .frise-point { background: var(--degrade); border-color: transparent; color: var(--sur-primaire); box-shadow: 0 8px 24px rgba(19, 231, 235, .3); }
.frise-etape small { display: block; color: var(--primaire); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.frise-etape strong { display: block; font-size: 18px; letter-spacing: -0.02em; margin: 2px 0 4px; }
.frise-etape p { color: var(--texte-2); font-size: 15px; }

/* Annonce des formules à venir */
.formules-bientot {
    display: flex; align-items: center; gap: 18px; margin-top: 48px; padding: 22px 26px;
    border: 1px dashed var(--trait-fort); border-radius: 12px; background: var(--fond);
}
.formules-bientot > .ic { font-size: 30px; color: var(--primaire); }
@media (prefers-reduced-motion: no-preference) { .formules-bientot > .ic { animation: sablier 3s ease-in-out infinite; } }
@keyframes sablier { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.formules-bientot div { flex: 1; }
.formules-bientot strong { font-size: 17px; }
.formules-bientot p { color: var(--texte-2); font-size: 15px; }

/* Paliers (masqués tant que les tarifs ne sont pas définis) */
.paliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.paliers[hidden] { display: none; }
.palier {
    position: relative; display: flex; flex-direction: column; padding: 30px 26px;
    background: var(--carte); border: 1px solid var(--trait); border-radius: 12px;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.palier:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 18, 58, .1); }
.palier.mise-en-avant { border: 2px solid var(--cyan); box-shadow: 0 24px 60px rgba(19, 231, 235, .2); }
.palier-etiquette { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--degrade); color: var(--sur-primaire); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.palier h3 { font-size: 20px; }
.palier-desc { color: var(--texte-2); font-size: 15px; margin-top: 4px; }
.prix { margin: 20px 0; display: flex; align-items: baseline; gap: 6px; }
.prix b { font-size: 40px; letter-spacing: -0.04em; color: var(--nuit); }
.prix span { color: var(--texte-3); }
.palier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.palier li { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--texte-2); }
.palier li .ic { color: var(--recette); }

@media (max-width: 900px) {
    .essai { grid-template-columns: 1fr; gap: 40px; }
    .paliers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .essai-carte { flex-direction: column; padding: 24px 20px; gap: 20px; }
    .essai-badge { width: 92px; height: 92px; }
    .essai-badge b { font-size: 36px; }
    .essai-texte .bouton { width: 100%; }
    .formules-bientot { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; transition: background .25s, border-color .25s, box-shadow .25s; }
.faq details[open] { background: var(--carte); border-color: var(--trait-fort); box-shadow: 0 12px 30px rgba(20, 18, 58, .06); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
    font-weight: 600; font-size: 17.5px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
    content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
    background: var(--primaire); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .reponse { padding: 0 22px 22px; color: var(--texte-2); max-width: 720px; }
.faq details[open] .reponse { animation: glisse .4s var(--ease); }

/* ---------- Appel final ---------- */
.appel { padding: 0 0 120px; }
.appel-carte {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #ccfcc8, #13e7eb, #8fd8ff, #ccfcc8);
    background-size: 300% 300%; animation: degrade-anime 14s ease infinite;
    color: var(--sur-primaire); border-radius: 14px; padding: 80px 48px; text-align: center;
}
@keyframes degrade-anime { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.chevrons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.chevrons span { position: absolute; font-size: 120px; font-weight: 700; color: rgba(20, 18, 58, .06); line-height: 1; letter-spacing: -0.2em; }
.chevrons span:nth-child(1) { left: -20px; top: 20px; }
.chevrons span:nth-child(2) { right: 4%; bottom: -10px; font-size: 200px; }
@media (prefers-reduced-motion: no-preference) {
    .chevrons span { animation: avance 7s ease-in-out infinite; }
    .chevrons span:nth-child(2) { animation-delay: -3.5s; }
}
@keyframes avance { 50% { transform: translateX(30px); } }
.appel-carte h2 { position: relative; font-size: clamp(30px, 4.4vw, 50px); max-width: 760px; margin: 0 auto; }
.appel-carte p { position: relative; margin: 18px auto 0; max-width: 560px; font-size: 18px; color: rgba(20, 18, 58, .78); }
.appel-carte .hero-actions { position: relative; }
.appel-carte .bouton.principal { background: var(--nuit); color: #fff; }
.appel-carte .bouton.principal:hover { background: #26244f; box-shadow: 0 10px 30px rgba(20, 18, 58, .35); }
.appel-carte .bouton:not(.principal) { background: rgba(255,255,255,.55); border-color: rgba(20,18,58,.18); color: var(--nuit); }
@media (max-width: 600px) { .appel-carte { padding: 56px 20px; } .appel { padding-bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .appel-carte { animation: none; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--nav-fond); color: #a9abc6; padding: 56px 0 40px; font-size: 14.5px; }
.pied .conteneur { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.pied img { height: 20px; width: auto; margin-bottom: 16px; }
.pied-titre { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: #d4d6ea; }
.pied-bas { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; margin-top: 8px; color: #7c7fa0; font-size: 13.5px; }
@media (max-width: 700px) { .pied .conteneur { grid-template-columns: 1fr 1fr; } .pied .conteneur > :first-child { grid-column: 1 / -1; } }

/* ---------- Mouvement réduit : tout est visible, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .anim, .verdict .ok, .tampon { opacity: 1; }
}

/* ── Pages légales (mentions, conditions générales, confidentialité) ── */
.page-legale .entete { position: sticky; }
.legal { padding: 120px 0 96px; }
.legal-tete { max-width: 780px; margin-bottom: 48px; }
.legal-retour { display: inline-block; margin-bottom: 18px; font-size: 14px; }
.legal-tete h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; }
.legal-maj { margin: 0 0 18px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
.legal-intro { margin: 0; font-size: 17px; color: var(--texte-2); }
.legal-grille { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-sommaire { position: sticky; top: 96px; padding: 20px 22px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); font-size: 14px; }
.legal-sommaire p { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.legal-sommaire ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.legal-sommaire a { color: var(--texte-2); }
.legal-sommaire a:hover { color: var(--primaire); }
.legal-texte { max-width: 780px; padding: 40px 48px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
.legal-texte section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--trait); }
.legal-texte h2 { margin: 0 0 16px; font-size: 21px; letter-spacing: -0.02em; }
.legal-texte p, .legal-texte li { color: var(--texte-2); font-size: 15.5px; line-height: 1.7; }
.legal-texte p { margin: 0 0 14px; }
.legal-texte strong { color: var(--texte); font-weight: 600; }
.legal-texte ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.legal-texte ul li::marker { color: var(--primaire); }
.legal-texte a { text-decoration: underline; text-underline-offset: 2px; }
.legal-tableau { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--trait); border-radius: var(--rayon-petit); }
.legal-tableau table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-tableau th { padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); background: var(--carte-2); border-bottom: 1px solid var(--trait); }
.legal-tableau td { padding: 11px 14px; vertical-align: top; color: var(--texte-2); border-bottom: 1px solid var(--trait); }
.legal-tableau tr:last-child td { border-bottom: 0; }
.legal-fiche td:first-child { width: 38%; color: var(--texte-3); font-size: 13.5px; }
.legal-fiche td:last-child { color: var(--texte); font-weight: 500; }
.legal-encadre { padding: 16px 18px; color: #0b5f62; background: #e9fbfb; border: 1px solid #9ee9eb; border-left: 3px solid var(--primaire); border-radius: 3px; font-size: 15px; line-height: 1.65; }
.legal-encadre strong { color: #0b5f62; }
@media (max-width: 900px) {
    .legal { padding-top: 96px; }
    .legal-grille { grid-template-columns: 1fr; gap: 24px; }
    .legal-sommaire { position: static; }
    .legal-texte { padding: 28px 22px; }
}
.pied .conteneur { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .pied .conteneur { grid-template-columns: 1fr 1fr; } .pied .conteneur > :first-child { grid-column: 1 / -1; } }
.page-legale .entete-actions { margin-left: auto; }
/* Tableaux des pages légales sur mobile : une carte par ligne, chaque valeur précédée de son intitulé */
@media (max-width: 700px) {
    .legal-tableau { border: 0; overflow: visible; }
    .legal-tableau table, .legal-tableau tbody, .legal-tableau tr, .legal-tableau td { display: block; width: 100%; }
    .legal-tableau thead { display: none; }
    .legal-tableau tr { margin-bottom: 12px; padding: 4px 14px; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--carte); }
    .legal-tableau td { padding: 9px 0; border-bottom: 1px solid var(--trait); }
    .legal-tableau tr td:last-child { border-bottom: 0; }
    .legal-tableau td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
    .legal-tableau td[data-label]:first-child { font-weight: 600; color: var(--texte); }
    .legal-tableau td[data-label]:first-child::before { display: none; }
    .legal-fiche tr { padding: 10px 14px; }
    .legal-fiche td { padding: 0; border: 0; width: 100% !important; }
    .legal-fiche td:first-child { font-size: 12px; }
    .legal-texte { padding: 24px 18px; }
    .legal-texte h2 { font-size: 19px; }
}
@media (max-width: 700px) {
    .legal-tableau table.legal-fiche { border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--carte); }
    .legal-fiche tr { margin: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0; background: none; }
    .legal-fiche tr:last-child { border-bottom: 0; }
}
.pied-bas .lien-kodoka { color: #fff; font-weight: 600; }
.pied-bas .lien-kodoka:hover { color: var(--cyan); }

/* Paliers : détails */
.palier .prix { margin: 20px 0 2px; }
.prix-annuel { font-size: 14px; color: var(--texte-3); margin-bottom: 20px; }
.prix-annuel strong { color: var(--texte-2); font-weight: 600; }
.palier ul.palier-limites { flex: none; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--trait); }
.palier ul.palier-limites li { color: var(--texte); font-weight: 500; }
.palier ul.palier-limites li .ic { color: var(--primaire); }
.palier-plus { font-size: 13px; font-weight: 600; color: var(--texte-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.paliers-note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--texte-3); }
.palier ul { align-content: start; }
