/* JARVIS OS — style « Premium » (réécrit le 30/09/2026, choix C d'Anthony : esprit Apple, épuré).
   Fond nacré, verre dépoli pour le menu, cartes blanches en relief doux (reflet en haut, ombre ample et légère),
   grands arrondis, chiffres très gras. Une seule couleur d'action : le dégradé bleu → violet, réservé au bouton
   principal, à l'urgent et à l'écran actif. Mode sombre automatique, mêmes rôles.
   Règles TDAH gardées : une action principale par écran, couleur réservée aux états et toujours doublée d'un mot.
   Organisation : 1 jetons · 2 base · 3 cadre et menu · 4 éléments communs · 5 écrans · 6 écrans moyens · 7 téléphone. */

/* ============================================================ 1. Jetons */
:root {
  color-scheme: light;
  --fond: linear-gradient(160deg, #EEF1F7 0%, #E8EAF3 45%, #EEE9F6 100%);
  --fond-plein: #ECEEF5;
  --surface: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .86)); --surface-plein: #FFFFFF;
  --surface-haute: #FFFFFF;
  --menu: rgba(255, 255, 255, .58); --menu-bord: rgba(255, 255, 255, .75);
  --puits: rgba(18, 21, 38, .045); --puits-bord: rgba(18, 21, 38, .08);
  --encre: #121526; --doux: #5C6178; --tres-doux: #8C91A6; --neutre: #3A3F55;
  --trait: rgba(18, 21, 38, .08); --trait-doux: rgba(18, 21, 38, .055); --trait-fort: rgba(18, 21, 38, .14);
  --survol: rgba(255, 255, 255, .65); --survol-doux: rgba(91, 108, 255, .035);
  --accent: #5B5CF0; --accent-fonce: #4B45D6; --accent-fond: rgba(91, 108, 255, .10); --lien: #4F4FE0;
  --degrade: linear-gradient(120deg, #4F5BFF 0%, #7B4DF0 55%, #A34DE0 100%);
  --degrade-clair: linear-gradient(135deg, #5B6CFF, #9B5CF6);
  --ok: #13703A; --ok-fond: #E4F5EA; --ok-bord: #BFE5CC;
  --warn: #9A4A05; --warn-fond: #FFF3DF; --warn-bord: #F6D9A6;
  --bad: #B4232B; --bad-fond: #FFECEE; --bad-bord: #F5C6CB;
  --neutre-fond: rgba(18, 21, 38, .05);
  --rayon: 20px; --rayon-moyen: 14px; --rayon-petit: 11px; --ease-out: cubic-bezier(.23, 1, .32, 1); --transition: 180ms var(--ease-out);
  --police: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --relief: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(18, 21, 38, .04), 0 10px 30px -12px rgba(76, 57, 160, .18), 0 30px 60px -34px rgba(18, 21, 38, .28);
  --relief-doux: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(18, 21, 38, .06), 0 6px 16px -8px rgba(76, 57, 160, .2);
  --relief-actif: inset 0 1px 0 #FFFFFF, 0 6px 16px -6px rgba(76, 57, 160, .35);
  --creux: inset 0 1px 2px rgba(18, 21, 38, .08);
  --ombre-accent: 0 10px 24px -8px rgba(111, 77, 240, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
  --bord-carte: 1px solid rgba(255, 255, 255, .9);
  --flou: saturate(180%) blur(22px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: radial-gradient(900px 480px at 85% -10%, rgba(123, 92, 246, .22), transparent 60%), radial-gradient(700px 420px at 0% 0%, rgba(79, 91, 255, .14), transparent 60%), #0B0C12;
    --fond-plein: #0B0C12;
    --surface: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .04)); --surface-plein: #171924; --surface-haute: #1D2030;
    --menu: rgba(20, 22, 32, .66); --menu-bord: rgba(255, 255, 255, .07);
    --puits: rgba(0, 0, 0, .28); --puits-bord: rgba(255, 255, 255, .08);
    --encre: #ECEDF5; --doux: #A2A6BA; --tres-doux: #767B92; --neutre: #CDD0DE;
    --trait: rgba(255, 255, 255, .08); --trait-doux: rgba(255, 255, 255, .055); --trait-fort: rgba(255, 255, 255, .15);
    --survol: rgba(255, 255, 255, .06); --survol-doux: rgba(255, 255, 255, .03);
    --accent: #8C8CFF; --accent-fonce: #7474F5; --accent-fond: rgba(124, 124, 255, .16); --lien: #A5A8FF;
    --ok: #7EDBA0; --ok-fond: rgba(126, 219, 160, .12); --ok-bord: rgba(126, 219, 160, .28);
    --warn: #F4C27A; --warn-fond: rgba(244, 194, 122, .12); --warn-bord: rgba(244, 194, 122, .28);
    --bad: #FF9A9F; --bad-fond: rgba(255, 110, 120, .13); --bad-bord: rgba(255, 110, 120, .32);
    --neutre-fond: rgba(255, 255, 255, .06);
    --relief: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(0, 0, 0, .35), 0 24px 50px -24px rgba(0, 0, 0, .8);
    --relief-doux: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(0, 0, 0, .3), 0 8px 18px -10px rgba(0, 0, 0, .7);
    --relief-actif: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(124, 124, 255, .25), 0 8px 18px -8px rgba(0, 0, 0, .7);
    --creux: inset 0 1px 3px rgba(0, 0, 0, .5);
    --bord-carte: 1px solid rgba(255, 255, 255, .08);
  }
}

/* ============================================================ 2. Base */
* { box-sizing: border-box; }
html { background: var(--fond-plein); }
html, body { margin: 0; color: var(--encre); font-family: var(--police); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
body { background: var(--fond); background-attachment: fixed; min-height: 100vh; }
::selection { background: rgba(91, 108, 255, .22); }
a { color: var(--lien); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
a, button, summary, .bouton { transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Réglages d'accessibilité d'iOS / macOS : « Réduire la transparence » rend les surfaces pleines ; « Augmenter le
   contraste » renforce traits et textes secondaires. */
@media (prefers-reduced-transparency: reduce) { :root { --menu: var(--fond-plein); --flou: none; --surface: var(--surface-plein); } }
@media (prefers-contrast: more) { :root { --trait: var(--trait-fort); --trait-doux: var(--trait-fort);
  --doux: color-mix(in srgb, var(--encre) 84%, transparent); --tres-doux: color-mix(in srgb, var(--encre) 70%, transparent); } }

/* ============================================================ 3. Cadre et menu */
.cadre { display: flex; min-height: 100vh; }
.menu { width: 272px; flex-shrink: 0; padding: 24px 14px 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; background: var(--menu); border-right: 1px solid var(--menu-bord); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  box-shadow: 1px 0 0 var(--trait-doux); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; padding: 0 8px; }
.logo-j { width: 32px; height: 32px; border-radius: 8px; flex: none; display: block; box-shadow: 0 6px 14px -6px rgba(123, 92, 246, .7); }
.choix-boutique { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; font-size: 11px; font-weight: 700; color: var(--tres-doux);
  text-transform: uppercase; letter-spacing: .07em; }
.boutique-seule { margin: 0 6px; padding: 9px 13px; border-radius: 12px; background: var(--puits); box-shadow: var(--creux); font-weight: 600; font-size: 14px; }
.rayons { display: flex; flex-direction: column; gap: 4px; }
.rayon > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px;
  border-radius: 12px; user-select: none; font-size: 14px; font-weight: 650; color: var(--couleur); text-transform: none; letter-spacing: 0; }
.rayon > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .rayon > summary:hover { background: var(--survol); } }
.rayon > summary span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rayon > summary .icone { color: var(--couleur); }
.rayon > summary .icone:last-child { transition: transform .15s; opacity: .6; }
.rayon:not([open]) > summary .icone:last-child { transform: rotate(-90deg); }
.rayon[open] > summary { margin-bottom: 2px; background: color-mix(in srgb, var(--couleur) 9%, transparent); }
.rayon > summary .pastille-rouge { margin-left: 0; }
.sous-ecrans { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 20px; padding-left: 10px;
  border-left: 1.5px solid color-mix(in srgb, var(--couleur) 25%, transparent); }
.ecran { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: var(--doux); text-decoration: none; }
@media (hover: hover) { .ecran:hover { background: var(--survol); color: var(--encre); } }
.ecran .icone { color: var(--tres-doux); flex: none; }
.ecran.actif { background: var(--surface-haute); color: var(--encre); font-weight: 650; box-shadow: var(--relief-actif); }
.ecran.actif .icone { color: var(--couleur, var(--accent)); }
.menu-bas { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--trait); }
.ecran-bas { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--doux); text-decoration: none; font-size: 14px; }
@media (hover: hover) { .ecran-bas:hover { background: var(--survol); color: var(--encre); } }
.ecran-bas .icone { color: var(--tres-doux); }
.ecran-bas.actif { background: var(--surface-haute); color: var(--encre); font-weight: 650; box-shadow: var(--relief-actif); }
.ecran-bas.actif .icone { color: var(--accent); }
.ecran .pastille-rouge, .ecran-bas .pastille-rouge { margin-left: auto; }
.deconnexion { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font-size: 13px; color: var(--tres-doux); }
.lien { background: none; border: 0; color: var(--lien); font: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.icone { display: inline-block; vertical-align: middle; flex: none; }

.contenu { flex-grow: 1; padding: 40px 48px 96px; display: flex; flex-direction: column; gap: 26px; min-width: 0; max-width: 1760px; }
.entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 2px; }
.entete > .bouton, .entete > form .bouton, .entete-boutons .bouton { flex: none; white-space: nowrap; }
.sur-titre { font-size: 12px; font-weight: 700; color: var(--tres-doux); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.sur-titre a { color: var(--doux); }
.chapo { margin: 10px 0 0; color: var(--doux); max-width: 66ch; font-size: 16px; }
.onglets, .barre-mobile, .sous-menu { display: none; }

/* ============================================================ 4. Éléments communs */
.carte { background: var(--surface); border: var(--bord-carte); border-radius: var(--rayon); padding: 22px 24px; box-shadow: var(--relief); }
.titre-bloc { font-size: 12px; font-weight: 700; color: var(--tres-doux); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
.colonne { display: flex; flex-direction: column; gap: 18px; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grille-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

/* États */
.ok { background: var(--ok-fond); color: var(--ok); } .warn { background: var(--warn-fond); color: var(--warn); }
.bad { background: var(--bad-fond); color: var(--bad); } .neutral { background: var(--neutre-fond); color: var(--neutre); }
.chip { display: inline-flex; align-items: center; padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; line-height: 1.7;
  box-shadow: inset 0 0 0 1px var(--trait); }
.chip.ok { box-shadow: inset 0 0 0 1px var(--ok-bord); } .chip.warn { box-shadow: inset 0 0 0 1px var(--warn-bord); } .chip.bad { box-shadow: inset 0 0 0 1px var(--bad-bord); }
.etat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--neutre); white-space: nowrap; background: none; }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--trait-fort); flex: none; }
.etat.ok::before { background: #22C55E; } .etat.warn::before { background: #F59E0B; } .etat.bad::before { background: #EF4444; }
.valeur-ton, .nombre { font-variant-numeric: tabular-nums; white-space: nowrap; }
.valeur-ton { background: none; font-weight: 750; }
.valeur-ton.ok { color: var(--ok); } .valeur-ton.warn { color: var(--warn); } .valeur-ton.bad { color: var(--bad); } .valeur-ton.neutral { color: var(--encre); }
.tendance { font-size: 13px; color: var(--doux); font-variant-numeric: tabular-nums; background: none; }
.tendance strong { font-weight: 750; }
.tendance.ok strong { color: var(--ok); } .tendance.warn strong { color: var(--warn); } .tendance.bad { color: var(--bad); }
.rouge { color: var(--bad); } .vert { color: var(--ok); }

/* Bandeau urgent : dégradé bleu → violet, lumière en haut à droite. .action-claire : version calme, blanche. */
.action { display: block; position: relative; overflow: hidden; padding: 26px 28px; border-radius: var(--rayon); background: var(--degrade); color: #fff;
  text-decoration: none; box-shadow: 0 24px 50px -22px rgba(111, 77, 240, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.action::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 220px at 92% -30%, rgba(255, 255, 255, .35), transparent 60%); pointer-events: none; }
@media (hover: hover) { a.action:hover { color: #fff; box-shadow: 0 30px 60px -22px rgba(111, 77, 240, .85), inset 0 1px 0 rgba(255, 255, 255, .25); } }
.action-sur { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.action-titre { position: relative; font-size: 23px; font-weight: 750; letter-spacing: -0.02em; margin: 8px 0 4px; }
.action-detail { position: relative; color: rgba(255, 255, 255, .88); max-width: 70ch; }
.action-claire { background: var(--surface); color: var(--encre); border: var(--bord-carte); box-shadow: var(--relief); }
.action-claire::after { display: none; }
@media (hover: hover) { a.action-claire:hover { color: var(--encre); box-shadow: var(--relief); } }
.action-claire .action-sur { color: var(--accent); }
.action-claire .action-detail { color: var(--doux); }

/* Chiffres */
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--rayon); background: var(--surface); border: var(--bord-carte);
  box-shadow: var(--relief); color: var(--encre); text-decoration: none; }
@media (hover: hover) { a.kpi:hover { color: var(--encre); box-shadow: var(--relief), 0 0 0 1px var(--accent-fond); } }
.kpi-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 650; color: var(--doux); font-size: 14px; }
.kpi-titre { font-size: 13.5px; font-weight: 650; color: var(--doux); }
.kpi-valeur { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-detail { font-size: 13.5px; color: var(--doux); }
.kpi-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kpi-moyen { font-size: 24px; }
.kpi-compact .kpi-valeur { font-size: 28px; }
.kpi-compact .chip { align-self: flex-start; white-space: normal; }
.grille-4 .kpi-valeur { font-size: clamp(22px, 2.1vw, 32px); white-space: nowrap; }
.gros-chiffre { font-size: 48px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.gros-moyen { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0; }
.grand { font-size: 20px; font-weight: 750; }
.petit-titre { font-size: 15px; font-weight: 700; }

/* Listes */
.liste { padding: 20px 0 6px; }
.liste h2 { padding: 0 24px 10px; }
.liste > details > summary { cursor: pointer; padding: 12px 24px; color: var(--doux); font-size: 14px; border-top: 1px solid var(--trait-doux); }
.liste-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 24px 8px; }
.liste-tete h2 { padding: 0; margin: 0; }
.liste-tete form { margin: 0; }
.ligne { display: flex; gap: 16px; align-items: flex-start; padding: 14px 24px; position: relative; color: var(--encre); text-decoration: none; }
.ligne::before { content: ""; position: absolute; top: 0; left: 24px; right: 0; border-top: 1px solid var(--trait-doux); pointer-events: none; }
a.ligne { padding-right: 48px; }
a.ligne::after, .liste-liens > a.ligne::after { content: ""; position: absolute; right: 22px; top: 50%; width: 7px; height: 7px; margin: 0;
  border-right: 2px solid var(--tres-doux); border-top: 2px solid var(--tres-doux); transform: translateY(-50%) rotate(45deg); opacity: .7; font-size: 0; }
@media (hover: hover) { a.ligne:hover { background: var(--survol-doux); color: var(--encre); } }
.ligne .chip { min-width: 104px; justify-content: center; }
.ligne-texte { display: flex; flex-direction: column; gap: 2px; font-size: 15px; min-width: 0; }
.ligne-texte strong { font-weight: 650; }
.ligne-texte span { color: var(--doux); font-size: 13.5px; }
.ligne-texte .erreur { color: var(--bad); }
.liste-liens > a.ligne { align-items: center; }
.liste-simple { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.liste-aide, .liste > .aide { padding: 0 24px 8px; margin: 0; }
.vide { padding: 8px 24px 12px; color: var(--doux); }
.carte:not(.liste):not(.tableau) > .vide { padding: 4px 0 0; }
.vide-grand { padding: 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
/* État vide : un plateau vide, discret, avant la phrase (01/10/2026 : « une icône et une phrase plutôt qu'un — »). */
.vide-grand::before { content: ""; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--accent-fond);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235B5CF0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; }
.vide-grand p { margin: 0; }
.aide { font-size: 14px; color: var(--doux); }
.aide-repliee > summary { cursor: pointer; font-size: 14px; color: var(--doux); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.aide-repliee > summary::-webkit-details-marker { display: none; }
.aide-repliee > summary::after { content: "›"; font-weight: 700; transition: transform var(--transition); }
.aide-repliee[open] > summary::after { transform: rotate(90deg); }
.aide-repliee > p { margin: 4px 0 0; }
.petit { font-size: 13px; font-weight: 700; color: var(--neutre); }
.petit-texte { font-size: 13px; color: var(--doux); }
.texte-long { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
.titre-section { margin: 24px 0 4px; }
.pousse-droite { margin: 0 0 0 auto; align-self: center; }
.sans-bord { border-top: 0; }
.dans-carte { margin: 6px 20px; }
.montant { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--trait); background: var(--surface-plein); color: var(--encre); font: inherit; font-weight: 650; font-size: 15px;
  cursor: pointer; text-decoration: none; box-shadow: var(--relief-doux); }
@media (hover: hover) { .bouton:hover { color: var(--encre); box-shadow: var(--relief-actif); } }
.bouton:active { transform: scale(.97); transition-duration: 80ms; }
.bouton.principal, .bouton.sombre, .principal-court { color: #fff; border-color: transparent; background: var(--degrade-clair); box-shadow: var(--ombre-accent); }
@media (hover: hover) { .bouton.principal:hover, .bouton.sombre:hover, .principal-court:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(111, 77, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.bouton.principal { width: 100%; }
/* Une seule action en couleur par écran : quand la carte « À faire maintenant » est là, les boutons d'en-tête redeviennent
   secondaires (le dégradé reste au geste à faire). */
.contenu:has(> .prochaine) .entete .bouton.sombre { color: var(--encre); background: var(--surface-plein); border-color: var(--trait); box-shadow: var(--relief-doux); }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.petit-bouton { min-height: 36px; font-size: 14px; padding: 0 14px; border-radius: 10px; }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.entete-boutons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Bascules segmentées (7 jours / 30 jours, filtres) */
.bascule { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--puits); box-shadow: var(--creux); width: fit-content; }
.filtres { flex-wrap: wrap; }
.pastille { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--doux); text-decoration: none;
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .pastille:hover { color: var(--encre); } }
.pastille.actif { background: var(--surface-haute); color: var(--encre); font-weight: 700; box-shadow: var(--relief-actif); }

/* Alertes et pastilles rouges */
.alerte { margin: 0; padding: 12px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--trait); }
.alerte.ok { box-shadow: inset 0 0 0 1px var(--ok-bord); } .alerte.warn { box-shadow: inset 0 0 0 1px var(--warn-bord); } .alerte.bad { box-shadow: inset 0 0 0 1px var(--bad-bord); }
.bandeau-demo { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: var(--accent-fond); color: var(--accent); }
.pastille-rouge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #FF3B30; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; margin-left: auto; box-shadow: 0 2px 6px -2px rgba(255, 59, 48, .7); }
.pastille-explication { background: transparent; color: var(--doux); padding: 0; font-size: 14px; display: flex; gap: 10px; align-items: center; margin-bottom: 4px; box-shadow: none; }
.pastille-explication .pastille-rouge { margin: 0; flex: none; }
.pastilles-legende { font-size: 12px; line-height: 1.45; color: var(--tres-doux); padding: 8px 12px 0; }

/* Champs */
select, textarea, input[type=text], input[type=url], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search] {
  min-height: 44px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--puits-bord); background: var(--surface-plein); box-shadow: var(--creux);
  font: inherit; color: var(--encre); width: 100%; transition: border-color var(--transition), box-shadow var(--transition); }
textarea { padding: 11px 13px; line-height: 1.5; resize: vertical; }
select { padding-right: 34px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C91A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
select:focus, textarea:focus, input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px var(--accent-fond); }
::placeholder { color: var(--tres-doux); opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input[type=file] { font: inherit; font-size: 14px; color: var(--doux); }
input[type=file]::file-selector-button { font: inherit; font-weight: 650; font-size: 14px; min-height: 40px; padding: 0 14px; margin-right: 12px; border-radius: 11px;
  border: 1px solid var(--trait); background: var(--surface-plein); color: var(--encre); box-shadow: var(--relief-doux); cursor: pointer; }
.fichier-cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seul { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 10px; }
.seul h1 { text-align: center; }
.seul > .bandeau-demo { width: 100%; max-width: 420px; margin: 0; box-sizing: border-box; }
.formulaire { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; padding: 30px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 14px; }
.formulaire-large { display: flex; flex-direction: column; gap: 14px; }
.formulaire-large .champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.formulaire-large label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 650; }
.formulaire-large .bouton.principal { width: auto; align-self: flex-start; }
.ligne-formulaire { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 20px 8px; border-top: 1px solid var(--trait-doux); }
.ligne-formulaire label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 650; color: var(--neutre); min-width: 110px; flex: 1; }
.note-formulaire label { flex: 4; }
.en-ligne { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.liste-cases { display: flex; flex-direction: column; gap: 12px; }
.liste-cases label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 650; }
.case { display: flex; flex-direction: column; gap: 6px; }
.case-coche { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 15px !important; }
.case-coche input { width: 22px; height: 22px; }
.changer-etape { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.champs-etiquettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.champs-etiquettes label { display: flex; flex-direction: column; gap: 5px; font-weight: 650; font-size: 13.5px; }
.champs-etiquettes .large { grid-column: span 3; }
.cle { display: block; margin-top: 8px; padding: 11px; border-radius: 10px; background: var(--puits); box-shadow: var(--creux); word-break: break-all; font-family: var(--mono); font-size: 14px; }
.etapes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.etapes .bouton { margin-top: 8px; }
.sous-lien { margin: 0; }

/* Tableaux */
.tableau { padding: 6px 0; overflow-x: auto; }
.titre-tableau { padding: 14px 20px 4px; }
.rangee { display: grid; grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr 1fr 2fr; gap: 12px; align-items: center; min-height: 56px; padding: 10px 20px;
  border-top: 1px solid var(--trait-doux); color: var(--encre); text-decoration: none; font-size: 15px; }
@media (hover: hover) { a.rangee:hover { background: var(--survol-doux); color: var(--encre); } }
.entete-tableau { min-height: 38px; font-size: 12px; font-weight: 700; color: var(--tres-doux); text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.entete-tableau > span { line-height: 1.3; }
.produit-nom, .a-faire { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.produit-nom strong { font-weight: 650; }
.produit-nom span, .a-faire > span:last-child { font-size: 13px; color: var(--doux); }
.a-faire .chip { align-self: flex-start; }
.regle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pied-tableau { padding: 8px 20px 0; margin: 0; }
.jauge { height: 10px; border-radius: 999px; background: var(--puits); box-shadow: var(--creux); overflow: hidden; margin: 6px 0 4px; }
.jauge-plus { height: 100%; background: var(--degrade-clair); border-radius: 999px; }
.jauge-moins { height: 100%; background: linear-gradient(90deg, #FF9F43, #FF7A45); border-radius: 999px; }
.progression { height: 8px; background: var(--puits); box-shadow: var(--creux); border-radius: 999px; overflow: hidden; }
.progression span { display: block; height: 100%; background: var(--degrade-clair); border-radius: 999px; }
.arreter-creation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--trait); }
.arreter-creation .aide { flex: 1 1 220px; margin: 0; }
.supprimer-brouillon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.supprimer-brouillon .aide { flex: 1 1 220px; margin: 0; }

/* Graphiques en barres */
.entete-graphe, .entete-liste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.entete-liste { padding: 0 20px 8px; }
.legende { display: flex; gap: 16px; font-size: 13px; color: var(--doux); }
.point { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.point.ca, .barre.ca { background: linear-gradient(180deg, #7B8BFF, #5B5CF0); }
.point.dep, .barre.dep { background: linear-gradient(180deg, #FFB86B, #FF8A3D); }
.graphe { display: flex; gap: 14px; height: 200px; align-items: stretch; margin-top: 14px; }
.graphe.serre { gap: 3px; }
.graphe.tresor { position: relative; }
.jour { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.barres { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--trait-fort); }
.barre { flex: 1; max-width: 30px; border-radius: 6px 6px 2px 2px; min-height: 1px; }
.barre.solde { background: linear-gradient(180deg, #7B8BFF, #5B5CF0); max-width: 30px; }
.barre.sous-seuil { background: linear-gradient(180deg, #FF8A80, #E5484D); max-width: 30px; }
.ligne-seuil { position: absolute; left: 0; right: 0; border-top: 2px dashed #E5484D; pointer-events: none; }
.etiquette { font-size: 11.5px; color: var(--tres-doux); text-align: center; height: 18px; padding-top: 5px; font-variant-numeric: tabular-nums; }
.graphe.courbe .etiquette { font-size: 11.5px; text-align: center; }

/* ============================================================ 5. Écrans */
/* Accueil */
.accueil-colonnes { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ligne-credit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.credit-reste { justify-self: end; text-align: right; white-space: nowrap; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.jauge-credit { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--puits); box-shadow: var(--creux); overflow: hidden; }
.jauge-credit > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34D399, #22C55E); }
.jauge-credit.warn > span { background: linear-gradient(90deg, #FBBF24, #F59E0B); } .jauge-credit.bad > span { background: linear-gradient(90deg, #FB7185, #EF4444); }
.jauge-credit.ok, .jauge-credit.warn, .jauge-credit.bad, .jauge-credit.neutral { background: var(--puits); }
.credits-pied { padding: 10px 24px 8px; }

/* Produits */
.etapes-filtre { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.etape-filtre { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; border: var(--bord-carte); background: var(--surface);
  box-shadow: var(--relief-doux); color: var(--doux); text-decoration: none; font-size: 13px; font-weight: 600; }
.etape-filtre strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--encre); }
@media (hover: hover) { .etape-filtre:hover { color: var(--encre); } }
.etape-filtre.actif { background: var(--degrade-clair); border-color: transparent; color: rgba(255, 255, 255, .85); box-shadow: var(--ombre-accent); }
.etape-filtre.actif strong { color: #fff; }
.rangee-produits { grid-template-columns: minmax(170px, 1.6fr) 1.2fr 0.7fr 0.9fr 0.9fr 0.6fr 0.9fr minmax(200px, 1.8fr); gap: 14px; }
.rangee-produits .produit-nom > span { white-space: nowrap; }
.rangee-produits > .produit-nom:first-child > span { white-space: normal; }
.produit-actif { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rangee-devis { grid-template-columns: 0.6fr 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr 0.7fr; }
.rangee-offres { grid-template-columns: 1.8fr 1fr 0.6fr 1fr 1fr 0.7fr; }
.rangee-benef > span, .rangee-devis > span { font-variant-numeric: tabular-nums; }
.saisie-devis { margin-top: 12px; }
.saisie-devis > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 24px; color: var(--lien); font-weight: 650; }
.grille-devis { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.grille-devis > div { display: grid; grid-template-columns: 60px 1fr 1fr 70px 1.3fr; gap: 8px; align-items: center; padding: 3px 6px; border-radius: 10px; }
.grille-devis input, .grille-devis select { width: 100%; min-height: 40px; }
.grille-devis .ligne-lue { background: var(--ok-fond); }
.lien-drive a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
/* Prochaine étape de la fiche produit */
.prochaine { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--rayon);
  background: linear-gradient(135deg, rgba(91, 108, 255, .10), rgba(155, 92, 246, .10)), var(--surface-plein); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: var(--relief); }
.prochaine .action-sur { color: var(--accent); }
.prochaine-titre { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 2px; }
.prochaine-detail { color: var(--doux); max-width: 70ch; }
.prochaine-boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.prochaine-boutons form { margin: 0; }
.prochaine-boutons .bouton.principal { width: auto; }
.prochaine.bad { background: var(--bad-fond); border-color: var(--bad-bord); color: var(--encre); }
.prochaine.bad .action-sur { color: var(--bad); }
.carte.preparer { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.carte.preparer .aide { max-width: 640px; }
.connexion-modifier { padding: 0 20px 14px; }
.connexion-modifier summary { cursor: pointer; font-size: 14px; color: var(--doux); padding: 6px 0; }
/* Créas du concurrent sur la fiche */
.ligne-crea { display: grid; grid-template-columns: 64px minmax(0, 1fr) 210px 150px 120px; gap: 16px; align-items: center; }
.ligne-crea .chip { min-width: 0; justify-self: start; }
.ligne-crea > .chip:first-child { justify-self: stretch; }
.ligne-crea > .bouton { justify-self: end; width: 100%; }
.ligne-texte .arrivee-pub { overflow-wrap: anywhere; }
.liste-tete .boutons { margin-top: 0; justify-content: flex-end; }
.depenses-crea { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-variant-numeric: tabular-nums; }
.depenses-crea > span { display: flex; flex-direction: column; align-items: flex-end; }
.depenses-crea .aide { font-size: 12px; }
.entete-creas { display: grid; grid-template-columns: 64px minmax(0, 1fr) 210px 150px 120px; gap: 16px; padding: 4px 24px 8px;
  font-size: 12px; font-weight: 700; color: var(--tres-doux); text-transform: uppercase; letter-spacing: .05em; }
.entete-creas .droite { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: right; }
@media (min-width: 1280px) {
  .recherche-produit .liste-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .recherche-produit .liste-cases > label:last-of-type, .recherche-produit .liste-cases > .bouton { grid-column: 1 / -1; }
  .recherche-produit .liste-cases > .bouton { justify-self: start; }
}

/* Campagnes, décisions, journal */
.rangee-camp { grid-template-columns: minmax(180px, 1.5fr) 0.8fr 0.7fr 0.55fr 0.55fr 0.9fr 0.55fr minmax(260px, 2.4fr); gap: 14px; }
.rangee-jour { grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 40px; }
.rangee-journal { grid-template-columns: 0.5fr 1.8fr 1.8fr 0.6fr 1.2fr; }
.coupees > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 0 24px 12px; }
.coupees > summary::-webkit-details-marker { display: none; }
.coupees > summary h2 { padding: 0; margin: 0; }
.coupees > summary h2::before { content: "›"; display: inline-block; width: 16px; color: var(--tres-doux); transition: transform var(--transition); }
.coupees[open] > summary h2::before { transform: rotate(90deg); }
.ligne-coupee { align-items: center; justify-content: space-between; }
.ligne-coupee .nombre { color: var(--doux); font-size: 14px; }
.confirmation { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); display: flex; flex-direction: column; gap: 8px; }
.confirmation p { margin: 0; }
.ligne-decision { align-items: center; flex-wrap: wrap; }
.ligne-decision .ligne-texte { flex: 1; min-width: 240px; }
.actions-decision { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.refus summary { list-style: none; }
.refus summary::-webkit-details-marker { display: none; }
.refus-formulaire { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 260px; }
.refus-formulaire label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 650; }
/* Analyse media buying */
.analyse-mb { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; border-left: 4px solid var(--trait-fort); }
.analyse-mb p, .analyse-mb ul { margin: 0; }
.analyse-mb ul { padding-left: 20px; }
.analyse-mb.verdict-ok { border-left-color: #22C55E; } .analyse-mb.verdict-warn { border-left-color: #F59E0B; } .analyse-mb.verdict-bad { border-left-color: #EF4444; }
.analyse-mb .verdict { font-size: 19px; }
.analyse-mb .action-mb { background: var(--puits); padding: 10px 13px; border-radius: 12px; }
.entonnoir { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
.etape { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--puits); border-left: 4px solid var(--trait-fort); }
.etape.ok { border-left-color: #22C55E; color: var(--encre); } .etape.bad { border-left-color: #EF4444; color: var(--encre); }

/* Bénéfice */
.cascade { display: flex; flex-direction: column; gap: 14px; }
.cascade-haut { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.cascade-haut strong.rouge { color: var(--bad); }
.cascade-ligne.total { border-top: 1px solid var(--trait-fort); padding-top: 12px; font-size: 20px; }
.resume-benefice { display: flex; flex-direction: column; gap: 6px; }
.resume-benefice.positif { background: linear-gradient(180deg, var(--ok-fond), var(--ok-fond)), var(--surface-plein); border-color: var(--ok-bord); color: var(--ok); }
.resume-benefice.negatif { background: linear-gradient(180deg, var(--bad-fond), var(--bad-fond)), var(--surface-plein); border-color: var(--bad-bord); color: var(--bad); }
.rangee-benef { grid-template-columns: 1.8fr 0.6fr 0.8fr 0.8fr 0.7fr 0.9fr 0.7fr; }

/* Factures et trésorerie */
.depot { display: flex; }
.depot-zone { position: relative; flex: 1; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-fond); cursor: pointer; color: var(--encre); }
@media (hover: hover) { .depot-zone:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); } }
.depot-zone > span { display: flex; flex-direction: column; gap: 2px; }
.depot-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.facture { padding-bottom: 8px; }
.entete-facture { padding-top: 12px; align-items: flex-start; }
.rangee-facture { grid-template-columns: 2fr 0.6fr 0.8fr 0.7fr 0.8fr 1.4fr; }
.rangee-facture > span:not(.produit-nom):not(.controle-ligne) { font-variant-numeric: tabular-nums; }

/* Créas */
.cartes-creas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.crea { display: flex; flex-direction: column; gap: 10px; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.crea.choisie { color: inherit; box-shadow: var(--relief), 0 0 0 2px var(--accent); }
@media (hover: hover) { .crea:hover { color: inherit; box-shadow: var(--relief), 0 0 0 2px var(--accent); } }
.vignette { position: relative; aspect-ratio: 1 / 1; background: var(--puits); display: flex; align-items: center; justify-content: center; color: var(--tres-doux); font-weight: 650; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette.grande { width: 100%; max-width: 280px; border-radius: 16px; overflow: hidden; box-shadow: var(--relief-doux); }
.rang { position: absolute; top: 10px; left: 10px; background: rgba(18, 21, 38, .72); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.crea-corps { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 16px; }
.crea-corps .chip { align-self: flex-start; white-space: normal; }
.crea-nom { overflow-wrap: anywhere; }
.crea-chiffres { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.crea-metriques { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.crea-metriques div { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.crea-metriques dt { color: var(--doux); font-size: 13.5px; }
.crea-metriques dd { margin: 0; font-weight: 750; display: flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.crea-metriques .chip { font-size: 11.5px; padding: 1px 8px; }
.detail-crea { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.detail-grille { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.detail-crea h3, .tableau h3 { margin: 8px 0 4px; font-size: 15px; }
.chiffres-crea { margin: 0; line-height: 1.6; }
.rangee-etiquette { grid-template-columns: 2fr 0.6fr 1fr 0.8fr 0.8fr; min-height: 40px; }
.champs-etiquettes input, .champs-etiquettes select { min-height: 44px; }
.filtres-creas { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.filtres-creas label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--doux); }
.filtres-creas select, .filtres-creas input[type=number] { min-height: 40px; min-width: 150px; max-width: 260px; }
.filtres-creas label.case { flex-direction: row; align-items: center; min-height: 40px; gap: 8px; color: var(--encre); }

/* Clients (SAV) */
.client { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; scroll-margin-top: 16px; }
.client h2 { margin: 0; overflow-wrap: anywhere; }
.client-tete { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.message-client { margin: 0; padding: 13px 16px; border-radius: 16px; background: var(--puits); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; }
.reponse { display: flex; flex-direction: column; gap: 10px; }
.reponse label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 14px; }
.reponse textarea { width: 100%; font-weight: 400; }
.historique summary { cursor: pointer; font-weight: 650; min-height: 40px; display: flex; align-items: center; color: var(--doux); }
.bulle { padding: 10px 14px; border-radius: 18px; margin: 6px 0; max-width: 90%; }
.bulle p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.client { background: var(--puits); border-bottom-left-radius: 6px; }
.bulle.nous { background: var(--degrade-clair); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; box-shadow: 0 8px 18px -10px rgba(111, 77, 240, .6); }
.bulle.nous a { color: #fff; }

/* Contenu, pages produit, recherche */
.idee { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.idee h2 { margin: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.galerie a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--puits); aspect-ratio: 4 / 5; box-shadow: var(--relief-doux); }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie span { position: absolute; top: 8px; left: 8px; background: rgba(18, 21, 38, .72); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; font-weight: 700; }
.charte { max-height: 60vh; overflow-y: auto; padding: 14px 18px; background: var(--puits); border-radius: 14px; }
.slides { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.slides li span { display: block; color: var(--doux); font-size: 14px; }
.action-repliee summary { cursor: pointer; font-weight: 650; min-height: 40px; display: flex; align-items: center; }
.choix-slides { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.choix-slides legend { font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.choix-slides label { display: flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 400; }
.ligne .boutons form { margin: 0; }
.diagnostic { border-left: 4px solid #F59E0B; padding: 10px 14px; background: var(--warn-fond); border-radius: 0 12px 12px 0; }
.diagnostic ol { margin: 6px 0; padding-left: 22px; }
.candidat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.candidat h2 { margin: 0; }
.rapport-copie textarea { width: 100%; font: 13px/1.45 var(--mono); padding: 10px; margin-top: 8px; }

/* Alertes, coffre, assistant, membres */
.activer-alertes { display: flex; flex-direction: column; gap: 12px; }
.activer-alertes ol { margin: 8px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.code-court input { width: 8ch; min-height: 40px; }
.coffre-ouvert { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.secret { font-family: var(--mono); font-size: 16px; background: var(--puits); padding: 2px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.conversation { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.conversation .bulle { max-width: 85%; }
.conversation .bulle p { white-space: pre-wrap; }
.lot-pubs { border-color: color-mix(in srgb, var(--accent) 35%, transparent); display: flex; flex-direction: column; gap: 8px; }
.envoi-assistant { margin-top: 12px; }
.lien-invitation { width: 100%; margin-top: 12px; font-family: var(--mono); font-size: 14px; }
.invitation-formulaire { margin-top: 12px; max-width: 520px; }

/* Tâches */
.ajout-rapide { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ajout-rapide input[type=text] { flex: 1 1 260px; min-height: 48px; font-size: 17px; }
.ajout-rapide select, .ajout-rapide input[type=date] { min-height: 48px; width: auto; }
.liste-taches { display: flex; flex-direction: column; margin-top: 12px; padding-top: 8px; padding-bottom: 8px; }
.liste-taches h2 { margin: 8px 0; }
.tache-ligne { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--trait-doux); }
.tache-ligne:last-child { border-bottom: 0; }
.tache-ligne form { margin: 0; }
.case-tache { width: 28px; height: 28px; margin-top: 8px; border-radius: 999px; border: 1.5px solid var(--trait-fort); background: var(--surface-plein); cursor: pointer;
  font-weight: 700; color: #fff; padding: 0; box-shadow: var(--creux); }
@media (hover: hover) { .case-tache:hover { border-color: var(--accent); } }
.faite .case-tache { background: #22C55E; border-color: #22C55E; box-shadow: 0 4px 10px -4px rgba(34, 197, 94, .7); }
.faite .tache-titre { text-decoration: line-through; color: var(--tres-doux); }
.tache-detail { flex: 1; min-width: 0; }
.tache-detail > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; }
.tache-detail > summary::-webkit-details-marker { display: none; }
.tache-titre { font-weight: 650; overflow-wrap: anywhere; }
.tache-meta { display: flex; gap: 8px; align-items: center; }
.tache-edition { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.tache-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding: 0 0 6px 40px; }
.tache-actions form { margin: 0; }
.tache-note { margin: 4px 0; }

/* Parcours produits */
.grille-parcours { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.parcours-produit { display: flex; flex-direction: column; gap: 14px; color: var(--encre); text-decoration: none; }
@media (hover: hover) { a.parcours-produit:hover { color: var(--encre); box-shadow: var(--relief), 0 0 0 1px var(--accent-fond); } }
.parcours-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 17px; }
.parcours-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.parcours-etapes li { display: flex; gap: 12px; align-items: flex-start; }
.parcours-etapes li > span:last-child { display: flex; flex-direction: column; }
.parcours-etapes .aide { font-size: 13px; }
.puce { width: 14px; height: 14px; border-radius: 999px; margin-top: 4px; flex: none; border: 1.5px solid var(--trait-fort); background: var(--surface-plein); }
.etape-fait .puce { background: #22C55E; border-color: #22C55E; }
.etape-fait .parcours-titre { color: var(--tres-doux); text-decoration: line-through; }
.etape-en_cours .puce { border-color: transparent; background: var(--degrade-clair); box-shadow: 0 0 0 4px var(--accent-fond); }
.etape-en_cours .parcours-titre { font-weight: 650; }
.etape-a_venir .parcours-titre { color: var(--doux); }

/* Navigation instantanée (01/10/2026) : l'appui se voit tout de suite, même si la page met un instant. */
.barre-chargement { position: fixed; top: 0; left: 0; z-index: 1000; height: 3px; width: 0; background: var(--degrade-clair);
  box-shadow: 0 0 10px rgba(111, 77, 240, .5); transition: width 2.5s cubic-bezier(.1, .7, .2, 1); pointer-events: none; }
.barre-chargement.partie { width: 85%; }
.chargement .contenu { opacity: .6; transition: opacity .15s ease; }
a.kpi:active, .etapes-campagne a:active, a.choix:active, a.parcours-produit:active { transform: scale(.98); transition-duration: 80ms; }
a.ligne:active, a.rangee:active { background: var(--puits); transition-duration: 0ms; }
@media (prefers-reduced-motion: reduce) { .barre-chargement { transition: none; } }

/* Notifications (01/10/2026) : verre dépoli posé en haut, elles arrivent du haut et y repartent (même chemin),
   sortie plus rapide que l'entrée ; le doigt les chasse vers le haut. Message d'origine caché dès que le JS tourne. */
.js [data-toast] { display: none; }
.toasts { position: fixed; z-index: 900; top: 16px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface-plein) 98%, transparent); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  border: var(--bord-carte); box-shadow: var(--relief); color: var(--encre); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  touch-action: none; user-select: none; opacity: 0; transform: translateY(-14px) scale(.98);
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out); }
.toast::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.7 2.7L16.5 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.7 2.7L16.5 9.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.toast.warn::before, .toast.bad::before { background: var(--warn);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.toast.bad::before { background: var(--bad); }
.toast.visible { opacity: 1; transform: none; }
.toast.sort { opacity: 0; transform: translateY(-14px) scale(.98); transition-duration: 180ms; }
.toast.tire { transition: none; }
.toast-texte { flex: 1; min-width: 0; }
.toast-action { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--degrade-clair); color: #fff;
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; box-shadow: var(--ombre-accent); }
.toast-action:active { transform: scale(.97); }

/* Actualiser (01/10/2026) : en bas du menu sur ordinateur, à côté de la roue sur téléphone ; la flèche tourne pendant
   que le serveur oublie ses lectures, puis la page se recharge. */
.actualiser-menu { margin: 0; }
.actualiser-menu .ecran-bas { width: 100%; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.actualiser-menu .ecran-bas small { margin-left: auto; font-size: 11.5px; color: var(--tres-doux); white-space: nowrap; }
/* Téléphone : tirer la page vers le bas pour actualiser. La flèche sort de sous la barre du haut, suit le doigt en
   résistant, se colore quand c'est assez, puis tourne pendant l'actualisation ; lâchée trop tôt, elle repart en haut. */
.tirer { position: fixed; z-index: 15; left: 50%; top: calc(env(safe-area-inset-top) + 60px); margin-top: -48px; width: 40px; height: 40px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0;
  background: var(--surface-plein); border: var(--bord-carte); box-shadow: var(--relief); color: var(--tres-doux); transform: translate(-50%, 0); }
.tirer.pret { color: var(--accent); }
.tirer.revient { transition: transform 320ms var(--ease-out), opacity 200ms var(--ease-out); }
.tirer.charge svg { animation: tourne .8s linear infinite; }
.tourne .icone { animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.toast-fermer { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--tres-doux);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
@media (hover: hover) { .toast-fermer:hover { background: var(--puits); color: var(--encre); } }
/* Téléphone : sous la barre JARVIS, pas par-dessus */
@media (max-width: 800px) { .toasts { top: calc(env(safe-area-inset-top) + 62px); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.sort { transform: none !important; } }
@media (prefers-reduced-transparency: reduce) { .toast { background: var(--surface-plein); backdrop-filter: none; } }

/* Chargement d'une carte (Pub aujourd'hui, crédits) : la forme du contenu à venir, qui respire doucement. */
.squelette { display: flex; flex-direction: column; gap: 10px; padding: 6px 24px 16px; }
.squelette i { display: block; height: 14px; border-radius: 7px; width: 72%;
  background: linear-gradient(90deg, var(--puits) 0%, color-mix(in srgb, var(--puits) 40%, transparent) 50%, var(--puits) 100%);
  background-size: 200% 100%; animation: respire 1.4s linear infinite; }
.squelette i:nth-child(2) { width: 92%; height: 22px; }
.squelette i:nth-child(3) { width: 48%; }
@keyframes respire { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Accueil (01/10/2026) : chaque ligne dit le geste à faire ; la pub du jour en direct. */
.ligne-geste { align-items: center; }
.ligne-bouton { margin-left: auto; flex: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650;
  color: var(--accent); background: var(--accent-fond); white-space: nowrap; }
@media (hover: hover) { a.ligne-geste:hover .ligne-bouton { background: var(--degrade-clair); color: #fff; } }
a.ligne.ligne-geste { padding-right: 24px; }
a.ligne.ligne-geste::after { display: none; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 24px 10px; padding: 12px 14px;
  border-radius: var(--rayon-moyen); background: var(--puits); box-shadow: var(--creux); color: var(--encre); text-decoration: none; }
.mini-kpis span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-kpis small { font-size: 12px; font-weight: 650; color: var(--doux); }
.mini-kpis strong { font-size: 19px; font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { .mini-kpis:hover { color: var(--encre); box-shadow: var(--creux), 0 0 0 1px var(--accent-fond); } }

/* Campagnes Meta (01/10/2026) : tableau de bord, détail, Nouvelle campagne en 5 étapes */
.info { background: var(--accent-fond); color: var(--accent); }
.chip.info { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.bouton.bad { background: var(--bad-fond); color: var(--bad); border-color: var(--bad-bord); }
@media (hover: hover) { .bouton.bad:hover { color: var(--bad); } }
.geste { display: inline; margin: 0; }
.kpis-compte .kpi-valeur { white-space: nowrap; }
/* Une campagne par ligne, sur toute la largeur : les 5 chiffres ont la place d'être lus d'un coup d'œil. */
.cartes-campagnes { display: grid; grid-template-columns: 1fr; gap: 18px; }
.carte-campagne { display: flex; flex-direction: column; gap: 14px; }
.carte-campagne.etat-pause { opacity: .82; }
.campagne-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.campagne-nom { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.campagne-nom a { color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .campagne-nom a:hover { color: var(--lien); } }
.campagne-detail { margin: -6px 0 0; }
.kpis-campagne { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px; margin: 0; padding: 12px 16px;
  border-radius: var(--rayon-moyen); background: var(--puits); box-shadow: var(--creux); }
.kpis-campagne > div { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-width: 0; }
.kpis-campagne dt { font-size: 12.5px; font-weight: 650; color: var(--doux); }
.kpis-campagne dd { margin: 0; font-size: 21px; font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: var(--encre); }
.kpis-campagne > div + div { border-left: 1px solid var(--trait); padding-left: 12px; }
.campagne-budget { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.campagne-budget .plafond { color: var(--doux); font-size: 13.5px; }
.campagne-budget .jauge-credit { margin-top: 2px; }
.campagne-decision { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.campagne-gestes { margin-top: 0; align-items: flex-start; }
.changer-budget { position: relative; }
.changer-budget > summary { list-style: none; }
.changer-budget > summary::-webkit-details-marker { display: none; }
.changer-budget[open] { flex-basis: 100%; }
.changer-budget[open] > summary { margin-bottom: 8px; }
.changer-budget .ligne-formulaire { padding: 10px 0 4px; border-top: 0; }
.zone-danger > summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.periodes { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.periodes::-webkit-scrollbar { display: none; }
.tete-ensemble { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 20px 10px; }
.tete-ensemble h2 { margin: 0; }
.tete-ensemble .geste { margin-left: auto; }
.zone-danger .ligne-formulaire { padding: 14px 0 6px; border-top: 0; }
.rangee-pub { grid-template-columns: minmax(200px, 2.2fr) minmax(150px, 1.2fr) 0.8fr 0.6fr 0.6fr 0.7fr 0.6fr 0.8fr; }
.rangee-pub .produit-nom { flex-direction: row; align-items: center; gap: 10px; }
.rangee-pub .produit-nom > span { display: flex; flex-direction: column; gap: 2px; }
.rangee-pub .vignette { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.rangee-pub .refus { display: block; margin-top: 4px; color: var(--bad); }
.h1-doux { color: var(--tres-doux); font-weight: 700; }
.etapes-campagne { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.etapes-campagne li { display: flex; border-radius: 14px; background: var(--surface); border: var(--bord-carte); box-shadow: var(--relief-doux);
  color: var(--doux); font-weight: 650; font-size: 14px; min-width: 0; }
.etapes-campagne li > a, .etapes-campagne .etape-case { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-width: 0;
  color: inherit; text-decoration: none; border-radius: 14px; }
@media (hover: hover) { .etapes-campagne li > a:hover { background: var(--survol-doux); color: var(--encre); } }
.etapes-campagne .nom small { display: block; font-size: 12px; font-weight: 600; color: var(--tres-doux); overflow: hidden; text-overflow: ellipsis; }
.etapes-campagne .a { opacity: .55; box-shadow: none; }
.etape-carte { display: flex; flex-direction: column; gap: 18px; }
.etape-tete { display: flex; flex-direction: column; gap: 4px; }
.etape-tete h2 { font-size: 24px; font-weight: 780; letter-spacing: -0.02em; margin: 0; }
.etape-tete p { margin: 0; color: var(--doux); max-width: 70ch; }
.etape-num { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.etape-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--trait-doux); }
.etape-pied .bouton.principal { width: auto; min-width: 200px; }
.grille-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.choix { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface-plein);
  border: 1px solid var(--trait); box-shadow: var(--relief-doux); color: var(--encre); text-decoration: none; cursor: pointer; }
@media (hover: hover) { a.choix:hover, .choix-radio:hover { box-shadow: var(--relief-actif); color: var(--encre); } }
.choix-nom { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.choix-detail { font-size: 13.5px; color: var(--doux); }
.choix-radio input { position: absolute; opacity: 0; pointer-events: none; }
.choix-radio:has(input:checked) { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), var(--relief-doux); background: var(--accent-fond); }
.choix-lien { font-size: 13px; align-self: flex-start; }
.pas-prets > summary { cursor: pointer; color: var(--doux); font-size: 14px; }
.colonnes-etape { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.colonne-principale, .colonne-reglages { display: flex; flex-direction: column; gap: 12px; }
.colonne-reglages { padding: 16px; border-radius: 16px; background: var(--puits); box-shadow: var(--creux); }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--neutre); }
.champ-unite { display: flex; align-items: center; gap: 8px; }
.champ-unite input { max-width: 120px; font-size: 20px; font-weight: 750; }
.champ-unite span { font-size: 18px; font-weight: 700; color: var(--doux); }
.ligne-corriger { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.ligne-corriger .champ { flex: 1; min-width: 240px; }
.etapes-campagne .numero { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  flex: none; font-size: 13px; font-weight: 750; background: var(--puits); box-shadow: var(--creux); color: var(--doux); }
.etapes-campagne .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etapes-campagne .fait { color: var(--ok); }
.etapes-campagne .fait .numero { background: var(--ok-fond); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-bord); }
.etapes-campagne .en { color: var(--encre); box-shadow: var(--relief-actif); }
.etapes-campagne .en .numero { background: var(--degrade-clair); color: #fff; box-shadow: var(--ombre-accent); }
.case-batch { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px !important; padding: 12px 14px;
  border-radius: var(--rayon-moyen); background: var(--puits); cursor: pointer; }
.case-batch input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.case-batch > span { display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.case-batch:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-fond); }
.recap-campagne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 6px 0 12px; }
.grille-reglages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 4px 0 16px; }
.grille-reglages .champ-large { grid-column: 1 / -1; }
.grille-reglages div.champ { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 650; }
.grille-reglages div.champ strong { font-size: 17px; }
.recap-fixe { opacity: .85; }
.pays-diffusion { border: 0; padding: 0; margin: 0; min-width: 0; }
.pays-diffusion legend { padding: 0; margin-bottom: 6px; }
.cases-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.case-pays { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  background: var(--surface-plein); border: 1px solid var(--trait); font-size: 15px; font-weight: 600; color: var(--encre); }
.case-pays:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-fond); }
.case-pays input { width: 18px; height: 18px; }
.noms-pubs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.noms-pubs legend { padding: 0; margin-bottom: 6px; }
.nom-pub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.nom-pub a { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 800px) { .nom-pub { grid-template-columns: 1fr; gap: 4px; } }
.recap-campagne > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recap-campagne dt { font-size: 12px; font-weight: 700; color: var(--tres-doux); text-transform: uppercase; letter-spacing: .05em; }
.recap-campagne dd { margin: 0; overflow-wrap: anywhere; }
.point-regle { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; }
.ou-sont-creas { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ou-sont-creas li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ou-sont-creas li > strong { min-width: 70px; }
.point-regle q { font-style: italic; }
.controles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.controles li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--trait-doux); }
.controles li:first-child { border-top: 0; }
.controles .chip { min-width: 84px; justify-content: center; }
.apercus { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.apercus figure { margin: 0; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.apercus iframe { border: 0; border-radius: 14px; background: #fff; box-shadow: var(--relief-doux); }
.apercus figcaption { font-size: 13px; color: var(--doux); }

/* Parcours guidé (01/10/2026) : étapes du produit, blocs repliés quand ils sont faits, retour visible. */
.etapes-produit { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 16px; }
.etapes-produit li > a { padding: 10px; gap: 8px; }
.etapes-produit .nom { white-space: normal; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.sur-titre a.retour { color: var(--lien); font-weight: 650; }
.bloc-replie > summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; cursor: pointer; list-style: none; min-height: 44px; }
.bloc-replie > summary::-webkit-details-marker { display: none; }
.bloc-replie > summary h2 { margin: 0; padding: 0; }
.bloc-replie .resume { color: var(--doux); font-size: 14px; }
.bloc-replie:not([open]) > summary::after { content: "Modifier"; margin-left: auto; color: var(--lien); font-weight: 650; font-size: 14px; }
.bloc-replie[open] > summary { margin-bottom: 12px; }

/* ============================================================ 6. Écrans moyens et grands */
@media (min-width: 801px) and (max-width: 1100px) {
  .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contenu { padding: 32px 28px 96px; }
}
@media (min-width: 801px) and (max-width: 1440px) {
  .rangee-produits { grid-template-columns: minmax(160px, 1.6fr) 1.2fr 0.7fr 0.8fr 0.9fr 0.6fr minmax(190px, 1.8fr); }
  .rangee-produits > [data-label="Point mort / cible"], .rangee-produits.entete-tableau > span:nth-child(7) { display: none; }
}
@media (min-width: 1280px) {
  .accueil-colonnes { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
  .accueil-colonnes .kpi-pile { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .accueil-colonnes .kpi-pile .kpi { padding: 16px 20px; gap: 6px; }
  .accueil-colonnes .kpi-pile .kpi-valeur { font-size: 26px; }
  .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .accueil-colonnes .kpi-pile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accueil-colonnes .kpi-pile > :first-child { grid-column: 1 / -1; }
}
/* Mode sombre : couleurs des rayons éclaircies pour rester lisibles */
@media (prefers-color-scheme: dark) {
  .rayon > summary, .rayon > summary .icone, .ecran.actif .icone, .onglets a.actif { color: color-mix(in srgb, var(--couleur) 55%, #FFFFFF); }
  .rayon[open] > summary { background: color-mix(in srgb, var(--couleur) 20%, transparent); }
  .sous-ecrans { border-left-color: color-mix(in srgb, var(--couleur) 45%, transparent); }
  img { opacity: .94; }
}

/* ============================================================ 7. Téléphone (iPhone, Android) */
@media (max-width: 800px) {
  html { -webkit-text-size-adjust: 100%; }
  .cartes-campagnes { grid-template-columns: 1fr; gap: 14px; }
  .kpis-compte { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis-compte > .kpi { padding: 14px 16px; gap: 4px; border-radius: 16px; }
  .kpis-compte > .kpi:last-child { grid-column: 1 / -1; }
  .kpis-compte .kpi-valeur { font-size: 24px; }
  .kpis-compte .kpi-detail { font-size: 12.5px; }
  /* 5 chiffres en deux rangées pleines : 3 en haut, 2 en bas */
  .kpis-campagne { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; padding: 12px; }
  .kpis-campagne > div { grid-column: span 2; }
  .kpis-campagne > div:nth-child(n+4) { grid-column: span 3; }
  .kpis-campagne > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .kpis-campagne dd { font-size: 17px; }
  .carte-campagne .campagne-gestes > .bouton, .carte-campagne .campagne-gestes > .geste { flex: 1 1 calc(50% - 10px); }
  .campagne-gestes .geste .bouton { width: 100%; }
  .changer-budget { flex: 1 1 100%; order: 9; }
  .changer-budget > summary { width: 100%; }
  .tete-ensemble { padding: 0 16px 10px; }
  .ligne.ligne-geste { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ligne-geste .ligne-texte { flex: 1 1 100%; order: 2; }
  .ligne-geste .ligne-bouton { order: 1; }
  .mini-kpis { margin: 4px 16px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes-campagne { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .etapes-campagne li > a, .etapes-campagne .etape-case { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: 11px; text-align: center; }
  .etapes-campagne .nom { white-space: normal; }
  .etapes-campagne .nom small { display: none; }
  .etapes-produit { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .etapes-produit li > a { padding: 8px 2px; font-size: 10.5px; }
  .etape-tete h2 { font-size: 21px; }
  .colonnes-etape { grid-template-columns: 1fr; gap: 16px; }
  .grille-choix { grid-template-columns: 1fr; }
  .etape-pied { position: sticky; bottom: 76px; background: var(--surface-plein); margin: 0 -16px -16px; padding: 12px 16px;
    border-radius: 0 0 18px 18px; }
  .etape-pied .bouton.principal { min-width: 0; flex: 1; }
  .recap-campagne { grid-template-columns: 1fr; }
  .grille-reglages { grid-template-columns: 1fr; }
  .rangee-pub { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; }
  .rangee-pub > .produit-nom, .rangee-pub > span:first-child { grid-column: 1 / -1; }
  .apercus iframe { width: 300px; height: 540px; }
  body { overscroll-behavior-y: none; background-attachment: scroll; }
  a, button, summary, select, label { -webkit-tap-highlight-color: transparent; }
  .cadre { flex-direction: column; }
  .menu { display: none; }
  h1 { font-size: 28px; }
  .contenu { padding: 16px max(16px, env(safe-area-inset-right)) 108px max(16px, env(safe-area-inset-left)); gap: 20px; }
  .entete { flex-direction: column; align-items: stretch; }
  .entete .bouton { width: auto; align-self: flex-start; }
  .entete .bascule { flex-wrap: wrap; }
  .entete-boutons > a.bouton { display: none; }
  .carte { padding: 16px; border-radius: 18px; }
  .carte.liste, .carte.tableau { padding: 16px 0 6px; }
  .liste h2, .liste-tete { padding-left: 16px; padding-right: 16px; }
  .liste-tete h2 { padding: 0; }
  /* L'intro de l'écran tient en 3 lignes : la carte « À faire maintenant » reste visible sans défiler. */
  .chapo { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ligne { padding: 14px 16px; flex-direction: column; gap: 6px; }
  .ligne::before { left: 16px; }
  a.ligne { padding-right: 40px; }
  a.ligne::after { right: 18px; }
  .ligne .chip { min-width: 0; }
  .ligne-credit, .ligne-coupee, .liste-liens > a.ligne { flex-direction: row; }
  .credits-pied { padding: 10px 16px 8px; }
  .coupees > summary { padding: 0 16px 12px; }
  .vide { padding: 8px 16px 12px; }
  summary { min-height: 44px; display: flex; align-items: center; }
  select, input[type=text], input[type=url], input[type=email], input[type=password], input[type=date], input[type=number], textarea { font-size: 16px; }
  input[type=checkbox] { width: 22px; height: 22px; }
  .onglets a:active { transform: scale(.94); transition-duration: 80ms; }
  .boutons { width: 100%; }
  .boutons .bouton, .boutons form { flex: 1 1 auto; }
  .kpi-info { display: none; }
  /* Grilles */
  .grille-2, .formulaire-large .champs, .detail-grille, .champs-etiquettes { grid-template-columns: 1fr; }
  .champs-etiquettes .large { grid-column: auto; }
  .grille-3, .grille-4, .grille-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grille-3 > :last-child:nth-child(odd), .grille-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Bénéfice : le chiffre qui compte d'abord, le détail du calcul ensuite, ses explications en plus discret */
  .grille-benefice > .colonne { order: -1; }
  .cascade-ligne .petit-texte { font-size: 12.5px; color: var(--tres-doux); }
  .grille-3 .kpi, .grille-4 .kpi { padding: 14px; gap: 6px; border-radius: 18px; }
  .kpi-valeur, .grille-3 .kpi-valeur, .grille-4 .kpi-valeur { font-size: 24px; }
  .grille-3 .kpi-haut { flex-wrap: wrap; font-size: 13px; }
  .grille-3 .kpi-detail, .grille-3 .kpi-titre { font-size: 13px; }
  .accueil-colonnes .kpi-pile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graphe { gap: 4px; height: 160px; }
  /* Barre du haut : logo et outils, en verre dépoli */
  .barre-mobile { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20;
    padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
    background: var(--menu); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); border-bottom: 1px solid var(--trait-doux); }
  .barre-mobile .logo { padding: 0; text-decoration: none; color: var(--encre); font-size: 16px; }
  .outils-mobile { position: relative; }
  .outils-mobile > summary { list-style: none; width: 44px; height: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 999px; color: var(--neutre); cursor: pointer; position: relative; }
  .outils-mobile > summary::-webkit-details-marker { display: none; }
  .outils-mobile[open] > summary { background: var(--survol); }
  .outils-mobile > summary .pastille-rouge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 11px; }
  .outils-feuille { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: var(--surface-plein); border: var(--bord-carte);
    border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--relief); }
  .outils-feuille a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--encre); text-decoration: none; }
  .outils-feuille a.actif { background: var(--accent-fond); font-weight: 650; }
  .outils-feuille a .pastille-rouge { margin-left: auto; }
  .outils-feuille form { margin: 4px 0 0; padding: 8px 12px 4px; border-top: 1px solid var(--trait); }
  /* Écrans du rayon : une rangée segmentée qui défile */
  .sous-menu { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 2px 16px 6px; scrollbar-width: none; }
  .sous-menu::-webkit-scrollbar { display: none; }
  .sous-menu a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
    color: var(--doux); text-decoration: none; white-space: nowrap; background: var(--surface-plein); box-shadow: var(--relief-doux); }
  .sous-menu a.actif { color: #fff; background: var(--degrade-clair); box-shadow: var(--ombre-accent); }
  .sous-menu .pastille-rouge { margin-left: 4px; }
  /* Barre du bas : les cinq rayons, en verre dépoli */
  .onglets { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; justify-content: space-around;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--menu); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); border-top: 1px solid var(--trait-doux); }
  .onglets a { min-height: 48px; min-width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11.5px; font-weight: 600; color: var(--tres-doux); text-decoration: none; }
  .onglets a.actif { color: var(--couleur, var(--accent)); font-weight: 750; }
  .onglet-icone { position: relative; display: inline-flex; }
  .onglet-icone .pastille-rouge { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; font-size: 11px; }
  /* Tableaux en cartes : libellé devant chaque valeur */
  .rangee { grid-template-columns: 1fr 1fr; }
  .entete-tableau, .entete-creas { display: none; }
  .rangee [data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--tres-doux);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
  .rangee .chip { justify-self: start; width: fit-content; max-width: 100%; }
  .produit-nom { align-items: flex-start; }
  .rangee-produits { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; }
  .rangee-produits > .produit-nom:first-child, .rangee-produits > .a-faire { grid-column: 1 / -1; }
  .rangee-produits > .a-faire { order: -1; }
  .rangee-produits > .produit-nom:first-child { order: -2; font-size: 17px; }
  .rangee-camp { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 16px; }
  .rangee-camp > .produit-nom, .rangee-camp > .a-faire { grid-column: 1 / -1; }
  .rangee-camp > .produit-nom { font-size: 16px; overflow-wrap: anywhere; }
  .rangee-camp > .a-faire { order: 1; }
  .rangee-camp .regle { -webkit-line-clamp: 3; }
  .rangee-jour { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rangee-etiquette { grid-template-columns: 2fr 1fr 1fr; }
  .etapes-filtre { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .etapes-filtre::-webkit-scrollbar { display: none; }
  .etape-filtre { flex: none; min-width: 96px; scroll-snap-align: start; }
  .grille-devis > div { grid-template-columns: 44px 1fr 1fr 58px; }
  .grille-devis > div > span:last-child { grid-column: 2 / -1; }
  .ligne-crea { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; }
  .ligne-crea .depenses-crea, .ligne-crea > .chip:nth-last-child(2), .ligne-crea > .bouton { grid-column: 2; }
  .depenses-crea > span { align-items: flex-start; }
  .ligne-crea > .bouton { justify-self: stretch; }
  .prochaine { padding: 18px; }
  .prochaine-titre { font-size: 18px; }
  .prochaine-boutons, .prochaine-boutons form, .prochaine-boutons .bouton, .prochaine-boutons .bouton.principal { width: 100%; }
  .carte.preparer { flex-direction: column; }
  .action { padding: 20px; }
  .action-titre { font-size: 20px; }
  /* Tâches */
  .tache-actions { padding-left: 0; }
  .tache-actions .bouton { flex: 1 1 auto; }
  .ajout-rapide select, .ajout-rapide input[type=date] { flex: 1 1 40%; }
  .ajout-rapide .bouton { flex: 1 1 100%; min-height: 48px; }
  /* Factures */
  .resume-factures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .resume-factures .depot { grid-column: 1 / -1; }
  .resume-factures .kpi { padding: 12px; gap: 4px; }
  .resume-factures .kpi-valeur { font-size: 20px; }
  .resume-factures .kpi-detail { display: none; }
  .resume-factures .kpi-haut { font-size: 12px; }
  .entete-facture { flex-direction: column; gap: 8px; }
  .rangee-facture { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; padding: 14px 16px; }
  .rangee-facture > .produit-nom, .rangee-facture > .controle-ligne { grid-column: 1 / -1; }
  .rangee-facture > .controle-ligne:empty { display: none; }
  .facture .ligne-formulaire { flex-direction: column; align-items: stretch; }
  .facture .ligne-formulaire form, .facture .ligne-formulaire .bouton, .facture .refus, .facture .refus summary { width: 100%; }
  .facture .en-ligne { display: flex; flex-direction: column; gap: 10px; }
  .facture .en-ligne label, .facture .en-ligne input { width: 100%; }
  .facture .dans-carte { margin: 0 16px 8px; }
}
@media (prefers-reduced-motion: reduce) { .bouton:active, a.kpi:active, .etapes-campagne a:active, a.choix:active, a.parcours-produit:active, .onglets a:active { transform: none; } }

/* ---- Fiche produit : nom, code, lien Shopify (30/09/2026) */
.modifier-identite { margin: 6px 0 2px; }
.modifier-identite > summary { list-style: none; cursor: pointer; color: var(--lien); font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.modifier-identite > summary::-webkit-details-marker { display: none; }
.identite-formulaire { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 4px; }
.identite-formulaire label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--doux); }
.identite-formulaire label:first-of-type { flex: 1 1 280px; }
.identite-formulaire input[name=code] { width: 120px; text-transform: uppercase; }
.relier-shopify { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.relier-shopify label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
