/* CheckMyVisa : identité visuelle bleue (couche de design, chargée en dernier).
   Palette : bleu marine profond, bleu royal moderne, bleu clair, blanc.
   Principe : on ne change que les variables (les « tokens » de index.html et site.css) puis quelques finitions.
   Pour revenir à l'ancien rendu, il suffit de retirer la ligne <link rel="stylesheet" href="/brand.css"> des pages.
   Les couleurs d'état (succès, alerte, erreur) restent inchangées : elles ont un sens. */

:root{
  /* palette de marque */
  --navy-950:#061330; --navy-900:#0b1f4b; --navy-800:#12306b;
  --royal-700:#1e40af; --royal-600:#1d4ed8; --royal-500:#2563eb; --royal-400:#3b82f6;
  --sky-400:#38bdf8; --sky-200:#bae6fd; --ice-100:#dbeafe; --ice-50:#eaf2ff; --mist:#f4f8ff;

  /* tokens de l'application */
  --bg:var(--mist); --surface:#ffffff; --ink:var(--navy-900); --muted:#4a5f86; --line:#d6e2f7;
  --accent:var(--royal-600); --accent-soft:#e6efff; --accent-ink:var(--royal-700); --accent-deep:var(--navy-900);
  --accent-wash:#cfe0ff; --accent-2:var(--royal-400); --on-accent:#ffffff;
  --rec:var(--royal-600); --rec-soft:#e3edff;
  --hot-b:var(--royal-500); --hot-c:var(--sky-400); --hot-d:var(--royal-700);
  --blob-1:var(--ice-100); --blob-2:#bfdbfe;
  --scrim:rgba(6,19,48,.6);
  --shadow-card:0 10px 30px -18px rgba(11,31,75,.38);
  --shadow-lift:0 16px 32px -16px rgba(11,31,75,.45);
  --shadow-sticky:0 8px 14px -12px rgba(11,31,75,.4);
  --shadow-modal:0 24px 60px -12px rgba(6,19,48,.55);
  --glow-accent:rgba(29,78,216,.4); --glow-accent-0:rgba(29,78,216,0);
  --page-glow:radial-gradient(900px 420px at 85% -120px,var(--ice-100),transparent 70%),radial-gradient(700px 380px at -10% 20%,rgba(186,230,253,.45),transparent 70%);

  /* anciens noms de site.css (pages de contenu) : gardés, mais en bleu */
  --orange:var(--royal-600); --orange-dark:var(--navy-900); --orange-soft:var(--ice-50);
}

:root[data-theme="dark"]{
  --bg:var(--navy-950); --surface:#0b1f4b; --ink:#e8f0ff; --muted:#9db3dc; --line:#1c3a7a;
  --accent:#6ea0ff; --accent-soft:#102a63; --accent-ink:#9dbcff; --accent-deep:#c3d6ff;
  --accent-wash:#183a7a; --accent-2:#4f8cff; --on-accent:#061330;
  --rec:#8fb4ff; --rec-soft:#10285a;
  --hot-b:#4f8cff; --hot-c:#7dd3fc; --hot-d:#6ea0ff;
  --blob-1:#102a63; --blob-2:#0f3a7a;
  --scrim:rgba(0,4,16,.72);
  --shadow-card:0 10px 30px -18px rgba(0,0,0,.7);
  --shadow-lift:0 16px 32px -16px rgba(0,0,0,.75);
  --page-glow:radial-gradient(900px 420px at 85% -120px,rgba(37,99,235,.28),transparent 70%);
  --orange:#6ea0ff; --orange-dark:#c3d6ff; --orange-soft:#102a63;
}

/* ===== Finitions ===== */
body{background:var(--page-glow),var(--bg);background-attachment:fixed}
::selection{background:var(--royal-500);color:#fff}
:focus-visible{outline:3px solid var(--royal-400);outline-offset:2px}

/* Titres : marine profond, avec un trait bleu discret sous le titre principal */
h1{color:var(--ink)}
h2,h3{color:var(--ink)}

/* Cartes et panneaux : bord bleuté, coins plus ronds, ombre douce */
.panel,.aibox,.evdetail{border-color:var(--line);border-radius:var(--r-6);box-shadow:var(--shadow-card)}
.mcard,.mdcard,.chip,.sel{border-color:var(--line);background:var(--mist)}
:root[data-theme="dark"] .mcard,:root[data-theme="dark"] .mdcard,:root[data-theme="dark"] .chip,:root[data-theme="dark"] .sel{background:var(--navy-950)}
.mcard:hover,.mdcard:hover{border-color:var(--royal-500);box-shadow:var(--shadow-card)}
.mcard[aria-pressed="true"]{border-color:var(--royal-600);box-shadow:inset 0 0 0 1px var(--royal-600);background:var(--accent-soft)}
.chip[aria-pressed="true"]{background:var(--navy-900);border-color:var(--navy-900);color:#fff}
:root[data-theme="dark"] .chip[aria-pressed="true"]{background:var(--royal-500);border-color:var(--royal-500);color:#fff}
.sel:focus{border-color:var(--royal-500);box-shadow:0 0 0 3px rgba(59,130,246,.28);outline:none}
.book{border-color:var(--royal-400);background:var(--accent-soft);border-radius:var(--r-5)}

/* Bouton principal : dégradé royal vers marine, relief au survol */
.pay{background:linear-gradient(135deg,var(--royal-500),var(--royal-700));color:#fff;border:0;border-radius:var(--r-4);
  box-shadow:0 10px 20px -10px rgba(29,78,216,.7);transition:transform var(--t-fast),box-shadow var(--t-fast),filter var(--t-fast)}
.pay:hover{transform:translateY(-1px);box-shadow:0 14px 24px -10px rgba(29,78,216,.8);filter:brightness(1.05)}
.pay:active{transform:translateY(0)}
.pay[disabled]{filter:grayscale(.4);opacity:.6;box-shadow:none;transform:none}

/* Barre du bas et barre de navigation */
.dock{background:rgba(255,255,255,.94);border-top-color:var(--line);box-shadow:0 -10px 24px -18px rgba(11,31,75,.45);backdrop-filter:saturate(1.2) blur(8px)}
:root[data-theme="dark"] .dock{background:rgba(11,31,75,.94)}
.sitenav{background:var(--surface);border-bottom-color:var(--line)}
.sitenav a{color:var(--ink)}
.sitenav a:hover,.sitenav a[aria-current="page"]{color:var(--royal-700);border-bottom-color:var(--royal-600)}
:root[data-theme="dark"] .sitenav a:hover,:root[data-theme="dark"] .sitenav a[aria-current="page"]{color:#9dbcff;border-bottom-color:#6ea0ff}

/* Progression */
.bar{background:var(--ice-100)}
:root[data-theme="dark"] .bar{background:var(--navy-800)}

/* Photo d'accueil : coins arrondis et cadre marine (la photo elle-même n'est pas modifiée) */
.hero-img{border-radius:var(--r-7);box-shadow:var(--shadow-lift);outline:1px solid rgba(11,31,75,.08)}

/* Pied de page : marine profond au lieu du noir */
footer{background:var(--navy-900)}
footer .reset{background:#fff;color:var(--navy-900);border-color:#fff}

/* Pages de contenu (guide, à propos, contact, conditions, confidentialité) */
th{background:var(--ice-50)}
.toc{background:var(--mist);border-color:var(--line)}
.note{border-left-color:var(--royal-600)}

/* Boutons de navigation (retour, accueil, haut de page) : bleu, pas rouge. Le rouge reste réservé aux vraies alertes. */
.nav .reset[data-go="-1"],.reset[data-go="-1"]{background:var(--royal-600);border-color:var(--royal-600);color:#fff}
.reset[data-go="-1"]:hover{background:var(--royal-700);border-color:var(--royal-700);box-shadow:0 10px 20px -10px rgba(29,78,216,.7)}
.totop{background:var(--navy-900);border-color:var(--navy-800);color:#fff;box-shadow:0 10px 20px -10px rgba(11,31,75,.7)}
.totop:hover{background:var(--royal-600)}
.home-btn{color:var(--royal-700);background:var(--ice-50);border-color:var(--line)}
.home-btn:hover{background:var(--royal-600);border-color:var(--royal-600);color:#fff}
:root[data-theme="dark"] .home-btn{color:#9dbcff;background:var(--accent-soft);border-color:var(--line)}
:root[data-theme="dark"] .totop{background:var(--royal-500);border-color:var(--royal-400)}

/* Mouvements : doux, et coupés si la personne a demandé moins d'animations */
@media (prefers-reduced-motion:reduce){
  .pay,.pay:hover{transition:none;transform:none}
}


/* CheckMyVisa — unified premium blue system */
:root{
  --royal-950:#081b3d;--royal-900:#0b2452;--royal-800:#123775;
  --royal-700:#1749a5;--royal-600:#245bd4;--royal-500:#3478ed;
  --royal-100:#e8f1ff;--royal-50:#f5f8ff;
  --brand-border:#d9e5f5;
}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{background:radial-gradient(ellipse at 88% -8%,rgba(96,165,250,.16),transparent 34rem),var(--bg);color:var(--ink)}
.sitenav{
  min-height:68px;background:rgba(255,255,255,.9)!important;
  border-bottom:1px solid rgba(191,210,239,.85)!important;
  box-shadow:0 8px 28px -25px rgba(8,27,61,.55);
  backdrop-filter:blur(18px) saturate(1.35);
}
.sitenav .sn-logo{font-weight:800;letter-spacing:-.045em}
.sitenav .sn-logo b{color:var(--royal-600)}
.sitenav ul{align-items:center}
.sitenav a{border-radius:9px;transition:color .18s,background .18s,border-color .18s}
.sitenav a:hover{background:var(--royal-50)}
.sitenav a[aria-current="page"]{font-weight:700}
.panel,.agency,.refus,.aibox,.evdetail,.lt,.adapt,.sponsors .sp{
  border-color:var(--brand-border);
  box-shadow:0 12px 34px -29px rgba(11,36,82,.42);
}
.panel{background:color-mix(in srgb,var(--surface) 96%,#edf4ff)}
h1,h2,h3{letter-spacing:-.025em}
.q-label,.tag{color:var(--muted)}
.pay{
  background:linear-gradient(120deg,var(--royal-600),var(--royal-800));
  box-shadow:0 10px 22px -13px rgba(36,91,212,.8);
}
.pay:hover{filter:brightness(1.06);box-shadow:0 14px 28px -14px rgba(36,91,212,.72)}
.chip[aria-pressed="true"],.mcard[aria-pressed="true"]{border-color:var(--royal-600)}
:root[data-theme="dark"] .sitenav{background:rgba(11,27,57,.92)!important;border-bottom-color:#29436d!important}
:root[data-theme="dark"] .sitenav a:hover{background:#172f57}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .agency,:root[data-theme="dark"] .refus{
  background:linear-gradient(145deg,#17283f,#142235);border-color:#2b4263;
}
:root[data-theme="dark"] .pay{background:linear-gradient(120deg,#3478ed,#1749a5)}
@media(max-width:700px){
  .sitenav{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .sitenav::-webkit-scrollbar{display:none}
  .sitenav.in-app ul{flex-wrap:nowrap;white-space:nowrap}
  .sitenav a{min-height:38px;display:inline-flex;align-items:center}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sitenav a,.pay{transition:none}
}

/* Accueil sur grand écran : .hero y est en display:contents (index.html), son fond bleu n'existe donc plus.
   Les paragraphes héritaient quand même du blanc de .hero (.hero p{color:inherit}) et devenaient illisibles sur fond clair. */
@media (min-width:900px){
  body[data-step="0"] .hero{color:var(--ink)!important}
  body[data-step="0"] .hero .ag-sub,
  body[data-step="0"] .hero .ag-note,
  body[data-step="0"] .hero .ag-none{color:var(--muted)}
}

/* Drapeaux en images (voir flag() dans visa-app.js) : taille stable dans les pastilles et le bandeau du bas. */
.pill .fimg{width:22px;height:16.5px}
.flag .fimg{flex:none}

/* Les cartes claires (.panel) posées dans le bloc bleu .hero héritaient aussi du blanc : titre « Où partez-vous ? » illisible sur mobile. */
.hero .panel{color:var(--ink)}
.hero .panel .ag-sub,.hero .panel .ag-note,.hero .panel .ag-none{color:var(--muted)}

/* Mobile : l'accueil est un grand bloc bleu foncé. La légende de la photo et les titres en dégradé y étaient foncés sur foncé. */
@media (max-width:899px){
  body[data-step="0"] .hero .photo figcaption{color:#fff}
  body[data-step="0"] .hero .needs h2.hot{background:none;-webkit-text-fill-color:#fff;color:#fff}
}

/* Traducteurs assermentés : pastilles de villes et groupes repliables par ville. */
.trd-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}
.trd-chips .chip{min-height:40px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:600 14px var(--f-body);cursor:pointer}
.trd-chips .chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.trd-grp{width:100%;border:1px solid var(--line);border-radius:var(--r-6);background:var(--surface);overflow:hidden}
.trd-grp>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 16px;cursor:pointer;list-style:none;font:700 16px var(--f-body);color:var(--ink)}
.trd-grp>summary::-webkit-details-marker{display:none}
.trd-grp>summary b{flex:1}
.trd-grp>summary::after{content:"";width:9px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .2s;flex:none;margin-inline-start:4px}
.trd-grp[open]>summary::after{transform:rotate(-135deg)}
.trd-grp[open]>summary{border-bottom:1px solid var(--line)}
.trd-cnt{font:600 13px var(--f-mono);color:var(--accent-ink);background:var(--accent-soft);border-radius:999px;padding:2px 10px}
.trd-grp .trd-list{padding:12px}
.trd-grp .trd-card{box-shadow:none}
.trd-grp>summary{text-align:start}

/* Assistantes IA (Aicha et Joury) : portraits sous les tuiles « Billet d'avion » et « Réservation d'hôtel ».
   Ces styles étaient dans style.css, que la page d'accueil ne charge pas. */
.vc-hero-assistants{width:100%;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,var(--surface),var(--accent-soft));color:var(--ink);box-shadow:0 14px 34px -22px rgba(11,36,82,.45)}
.vc-hero-assistants-head{margin:0 0 12px;text-align:center;font:800 11px var(--f-mono);letter-spacing:.12em;color:var(--muted)}
.vc-hero-assistants-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.vc-hero-assistant{min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px 12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);text-align:center;text-decoration:none;box-shadow:0 8px 20px -14px rgba(22,61,130,.35);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.vc-hero-assistant img,.vc-hero-assistant canvas.a3d{display:block;width:112px;height:112px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px var(--surface),0 0 0 6px var(--line);transition:transform .25s ease,box-shadow .25s ease}
.vc-hero-aicha img{background:#f3e9de}.vc-hero-joury img{background:#cfe3fb}
.vc-hero-assistant-copy{display:flex;flex-direction:column;align-items:center;gap:4px}
.vc-hero-assistant-copy>b{font:800 19px var(--f-display);color:var(--accent-ink)}
.vc-hero-assistant-copy>small{min-height:2.6em;font-size:12px;line-height:1.4;color:var(--muted)}
.vc-hero-assistant-copy>em{font-style:normal;font-size:12px;font-weight:800;color:var(--accent-ink)}
@media(hover:hover){.vc-hero-assistant:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 16px 30px -16px rgba(22,61,130,.5)}.vc-hero-assistant:hover img,.vc-hero-assistant:hover canvas.a3d{transform:scale(1.04)}}
.vc-hero-assistant:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:380px){.vc-hero-assistants{padding:12px}.vc-hero-assistant{padding:10px 6px}.vc-hero-assistant img,.vc-hero-assistant canvas.a3d{width:88px;height:88px}.vc-hero-assistant-copy>small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.vc-hero-assistant,.vc-hero-assistant img,.vc-hero-assistant canvas.a3d{transition:none}.vc-hero-assistant:hover,.vc-hero-assistant:hover img,.vc-hero-assistant:hover canvas.a3d{transform:none}}

/* Consulat Saden : troisième assistant, sous Joury et Aïcha, sur toute la largeur */
.vc-hero-saden{grid-column:1/-1}

/* Raccourci vers Aïcha en haut de l'étape « Analyse IA » (ouvre view-dossier.html) */
.vc-aicha-go{display:flex;align-items:center;gap:14px;width:100%;margin:0 0 16px;padding:14px 16px;border:2px solid var(--accent);border-radius:20px;background:linear-gradient(145deg,var(--surface),var(--accent-soft));color:var(--ink);text-decoration:none;box-shadow:var(--shadow-card);transition:transform .22s ease,box-shadow .22s ease}
.vc-aicha-go img,.vc-aicha-go canvas.a3d{display:block;flex:none;width:72px;height:72px;border-radius:50%;object-fit:cover;background:#f3e9de;box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--line)}
.vc-aicha-go-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.vc-aicha-go-copy>strong{font:800 17px var(--f-display);color:var(--accent-ink);line-height:1.25}
.vc-aicha-go-copy>small{font-size:13px;line-height:1.4;color:var(--muted)}
.vc-aicha-go-cta{flex:none;padding:9px 14px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:13px;font-weight:800;white-space:nowrap}
@media(hover:hover){.vc-aicha-go:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift)}}
.vc-aicha-go:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:520px){.vc-aicha-go{flex-wrap:wrap;gap:10px 12px}.vc-aicha-go-copy{flex:1 1 calc(100% - 90px)}.vc-aicha-go-cta{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.vc-aicha-go{transition:none}.vc-aicha-go:hover{transform:none}}
