/* Kofiam Plus — site public : thème sombre et menu latéral à gauche
   Neutres sombres inspirés de syzel.ai (fond #0C0E12, surfaces #141415 / #1f1f22, bordures #29303D, rayons 10–16 px,
   halo lumineux sous le bouton principal). Couleurs du logo : noir, or (#D4A03A → #F0CF74) et blanc ; le vert reste pour les confirmations. */

body.public {
  --bg: #0a0a0b;
  --surface: #141415;
  --surface-2: #1f1f22;
  --ink: #f8fafc;
  --muted: #9b9ba1;
  --line: #2c2c30;
  --green: #3fb27f;        /* vert clair : lisible en texte sur fond sombre */
  --green-deep: #0f4d34;   /* vert de la marque, pour les fonds décoratifs */
  --green-soft: #142a20;
  --yellow: #e2b956;       /* or clair du logo : textes, repères, sièges choisis */
  --gold: #d4a03a;       /* or du logo : boutons principaux */
  --on-green: #0a0a0b;
  --danger: #f2998f;
  --radius: 10px;
  --radius-lg: 16px;
  --glow: 0 0 20px -5px rgba(212, 160, 58, .5);
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
}
html:has(body.public) { background: #0a0a0b; color-scheme: dark; }

/* ---------- Structure : menu à gauche + contenu ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.pub-main { min-width: 0; display: flex; flex-direction: column; }
/* Les ancres et étapes ne passent jamais sous le haut de page collant. */
.pub-main main [id], .pub-main main .flow { scroll-margin-top: calc(var(--top-h, 64px) + 16px); }
.pub-main > main { flex: 1; position: relative; z-index: 0; isolation: isolate; } /* le contenu ne passe jamais devant la barre du haut */
.public .wrap { --wrap: 1080px; padding-inline: 28px; }

.pub-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
  display: flex; flex-direction: column; gap: 18px; padding: 20px 14px 18px;
  background: linear-gradient(180deg, #111112 0%, #0a0a0b 60%, #0d1a14 100%);
  border-right: 1px solid #1f1f22;
}
.pub-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.public .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.public .brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--green-deep); box-shadow: 0 0 0 2px #d4a03a; }
.public .brand-name { font-size: 1.55rem; color: var(--ink); white-space: nowrap; }
.public .brand-name b { color: var(--yellow); }
.side-close { display: none; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 34px; height: 34px; font-size: 1.4rem; line-height: 1; cursor: pointer; }

.pub-nav { display: grid; gap: 10px; }
.pub-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pub-nav hr { border: 0; border-top: 1px solid #1f1f22; margin: 4px 8px; }
.pub-nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px;
  color: #b4b4b9; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, transform .18s ease;
}
.pub-nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pub-nav a:hover { background: #19191b; color: var(--ink); transform: scale(1.03); }
.pub-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--yellow); }
.pub-nav a[aria-current="page"] svg { stroke: var(--yellow); }

.pub-side-foot { margin-top: auto; display: grid; gap: 10px; padding: 14px 6px 0; border-top: 1px solid #1f1f22; font-size: .82rem; color: var(--muted); }
.pub-side-foot p { display: grid; gap: 1px; }
.pub-side-foot p span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pub-side-foot strong { color: var(--ink); justify-self: start; }
.pub-side-foot a { color: inherit; text-decoration: none; justify-self: start; }
.pub-side-foot a:hover strong { color: var(--yellow); }

/* Haut de page : barre + (accueil) bandeau, réunis dans UN SEUL bloc collant.
   Deux éléments collants superposés faisaient disparaître la barre dans Chrome et Brave. */
.pub-sticky { position: sticky; top: 0; z-index: 50; }

/* Barre du haut du contenu */
.pub-top {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 28px; min-height: 64px;
  /* Fond opaque, sans backdrop-filter : le flou sur un bandeau collant fait disparaître
     la barre dans Chrome et Brave quand le bandeau de l'accueil est lui aussi collant. */
  background: #0a0a0b;
  border-bottom: 1px solid #1d1d20;
}
.pub-crumb { color: var(--muted); font-size: .92rem; display: flex; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-crumb strong { color: var(--ink); }
.pub-crumb .sep { opacity: .5; }
.pub-top .header-actions { margin-left: auto; display: flex; gap: 10px; }
.brand-top { display: none !important; }
.public .menu-toggle {
  display: none; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius); padding: 8px 12px; font: 600 .92rem var(--body); cursor: pointer;
}
.public .menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.side-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(5, 6, 9, .6); backdrop-filter: blur(2px); }

/* Mobile : le menu devient un tiroir qui glisse depuis la gauche */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .pub-side {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); height: auto;
    transform: translateX(-102%); transition: transform .22s ease, visibility .22s; visibility: hidden;
  }
  .pub-side.open { transform: none; visibility: visible; box-shadow: 20px 0 40px rgba(0,0,0,.5); }
  .side-close { display: inline-grid; place-items: center; flex: none; }
  .pub-side-head .brand-name { font-size: 1.3rem; }
  .pub-side-head .brand-mark { width: 36px; height: 36px; }
  .public .menu-toggle { display: inline-flex; }
  .brand-top { display: flex !important; }
  .pub-crumb { display: none; }
  .pub-top { padding: 10px 20px; gap: 12px; }
  body.side-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .public .wrap { padding-inline: 16px; }
  .pub-top { padding: 10px 16px; }
  .public .menu-toggle span { display: none; }
  .public .menu-toggle { padding: 9px; }
}
@media (max-width: 400px) {
  .brand-top .brand-name { font-size: 1.25rem; }
  .brand-top .brand-mark { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .pub-side, .pub-nav a { transition: none; } .pub-nav a:hover { transform: none; } }

/* ---------- Composants en thème sombre ---------- */
.public .btn { border-radius: var(--radius); }
.public .btn-yellow { background: linear-gradient(135deg, #f0cf74 0%, #d4a03a 55%, #b8862b 100%); color: #0a0a0b; box-shadow: var(--glow); }
.public .btn-yellow:hover { filter: brightness(1.07); box-shadow: 0 0 26px -4px rgba(212, 160, 58, .75); }
.public .btn-green { background: var(--green); color: var(--on-green); box-shadow: 0 0 20px -6px rgba(63, 178, 127, .55); }
.public .btn-ghost-dark { background: var(--bg); color: var(--ink); border: 1px solid var(--surface-2); }
.public .btn-ghost-dark:hover { border-color: var(--yellow); color: var(--ink); }
.public .field input, .public .field select, .public .field textarea {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
}
.public .field input:focus, .public .field select:focus, .public .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(226, 185, 86, .18); }
.public .field input[type="date"] { color-scheme: dark; }
.public .swap { background: var(--surface-2); border-color: var(--line); color: var(--ink); border-radius: var(--radius); }
.public .msg { background: var(--surface-2); }
.public .placeholder { background: rgba(226, 185, 86, .16); color: #f0d58c; }
.public .pill.ok { background: rgba(63, 178, 127, .16); color: #7fdcae; }
.public .pill.wait { background: rgba(226, 185, 86, .16); color: #f0d58c; }
.public .pill.ko { background: rgba(242, 153, 143, .16); color: #f5aea6; }
.public .pill.info { background: rgba(110, 160, 230, .16); color: #a9c8f2; }
.public .tabs { border-bottom-color: var(--line); }
.public .tabs button[aria-selected="true"] { border-bottom-color: var(--yellow); }
.public .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.public .modal-card { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.public .empty-state { border-radius: var(--radius-lg); }

/* Pied de page */
.public footer.site { background: #060607; color: var(--ink); border-top: 1px solid #1d1d20; margin-top: 56px; }
.public footer.site h4 { color: var(--ink); }
.public footer.site .foot-text, .public footer.site a { color: #b4b4b9; }
.public footer.site .legal { border-top-color: #1d1d20; }

/* ---------- Accueil ---------- */
.public .hero, .public .mini-hero, .public .dest-hero {
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(63, 178, 127, .20), transparent 60%),
    radial-gradient(700px 320px at 100% 100%, rgba(226, 185, 86, .10), transparent 60%),
    linear-gradient(180deg, #0f1712 0%, #0a0a0b 100%);
  color: var(--ink);
  border-bottom: 1px solid #1d1d20;
}
.public .hero::after, .public .mini-hero::after, .public .dest-hero::after { height: 4px; opacity: .9; }
.public .hero .lead, .public .dest-hero p.lead { color: #c3c9d3; opacity: 1; }
.public .hero h1 span, .public .dest-hero h1 span { color: var(--yellow); }
.public .hero .wrap { padding-block: 48px 64px; }
.public .search-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.public .search-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.public .sign { border: 1px solid var(--line); }

.public .offer, .public .pay-card, .public .contact-item, .public .faq details, .public .route-wrap, .public .agency {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.public .offer.vip { background: linear-gradient(160deg, #173a2a 0%, #141415 70%); border-color: #2c5a44; color: var(--ink); }
.public .offer:hover, .public .agency:hover, .public .faq details:hover, .public .contact-item:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px #3a3a3f;
}
.public .steps li, .public .service { border-top-color: var(--surface-2); }
.public .step-n { color: var(--yellow); }
.public .colis-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.public .colis-steps li { background: var(--surface-2); }
.public .route::before { background: #2a303c; }
.public .dot { background: var(--bg); }
.public .stop.hub .dot { border-color: #0a0a0b; box-shadow: 0 0 0 2px var(--yellow); }
.public .copy { background: var(--surface-2); color: var(--ink); border-radius: 8px; }
.public .pay span { background: var(--surface); }
.public .faq summary::after { color: var(--yellow); }
.public section.block { padding-block: 56px; }
.public section.block.tight { padding-top: 0; }

/* ---------- Réserver, Suivi, Réclamation ---------- */
.public .stepper li { background: var(--surface); border-color: var(--line); border-radius: var(--radius); }
.public .stepper li.current { border-color: var(--yellow); }
.public .stepper li.current::before { background: var(--gold); color: #0a0a0b; }
.public .hold-timer { top: calc(76px + env(safe-area-inset-top, 0px)); background: rgba(226, 185, 86, .12); color: var(--ink); }
.public .hold-timer.urgent { background: rgba(242, 153, 143, .14); }
.public .result, .public .pax, .public .recap, .public .pay-option, .public .pending, .public .track-form,
.public .live-facts, .public .map-box, .public .done-box, .public .cgv, .public .demo-help, .public .bus {
  border-radius: var(--radius-lg);
}
.public .result:hover { border-color: #45454b; }
.public .recap { top: calc(84px + env(safe-area-inset-top, 0px)); }
.public .seat.sold { background: #232326; border-color: #2e2e33; color: #6b7280; }
.public .seat.held { background: repeating-linear-gradient(45deg, #232326 0 5px, var(--surface) 5px 10px); }
.public .pay-option:has(input:checked) { border-color: var(--yellow); background: rgba(226, 185, 86, .08); }
.public .map-road-casing { stroke: #34343a; }
.public .map-stop.hub circle { stroke: #0a0a0b; }
.public .map-bus circle { stroke: #0a0a0b; }
.public .map-bus text { fill: #0a0a0b; }
.public .map-bus.selected circle { fill: #7fb2f0; }
.public .done-head h2, .public .done-box h2 { color: var(--green); }

/* ---------- Destinations ---------- */
.public .dest-card { border-radius: var(--radius-lg); }
.public .dest-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px #3a3a3f; }
.public .search input { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.public .search input:focus { border-color: var(--yellow); }

/* Le billet reste clair : il s'imprime et se montre à l'embarquement */
.public .ticket { box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }

/* Accent or sur les éléments en dur des autres feuilles */
.public .dest-badge { background: var(--gold); color: #0a0a0b; }
.public .seat.chosen { border-color: var(--gold); }
.public .sign { color: #f0cf74; }
.public .sign-row { border-bottom-color: rgba(226, 185, 86, .25); }
.public .tag { background: var(--yellow); }
.public .tag.std { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.public .dest-sign { color: #f0cf74; background: linear-gradient(160deg, #3a2a0c 0%, #0a0a0b 75%); }
.public .hero, .public .mini-hero, .public .dest-hero {
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(212, 160, 58, .24), transparent 60%),
    radial-gradient(700px 320px at 100% 100%, rgba(63, 178, 127, .10), transparent 60%),
    linear-gradient(180deg, #141109 0%, #0a0a0b 100%);
}
.public .offer.vip { background: linear-gradient(160deg, #2a2110 0%, #141415 70%); border-color: #5c4618; }
.public .pub-side { background: linear-gradient(180deg, #111112 0%, #0a0a0b 60%, #17130a 100%); }

/* ---------- Logo ---------- */
.public .brand-mark { background: none; box-shadow: none; overflow: hidden; }
.public .brand-mark img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.public .brand-name { letter-spacing: .01em; }
.public .brand-name b { background: linear-gradient(180deg, #f0cf74, #c8922e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.public .pub-side-head .brand-mark { width: 44px; height: 44px; }
.hero-logo { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 18px; box-shadow: 0 0 40px -8px rgba(212, 160, 58, .55); }
@media (max-width: 600px) { .hero-logo { width: 84px; height: 84px; } }
.public .pub-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(212, 160, 58, .14), rgba(212, 160, 58, .03)); }
.public .hero::after, .public .mini-hero::after, .public .dest-hero::after {
  background: linear-gradient(90deg, #b8862b 0%, #f0cf74 35%, #d4a03a 65%, #b8862b 100%);
}
/* Bouton secondaire : le blanc du logo */
.public .btn-green { background: #f8fafc; color: #0a0a0b; box-shadow: none; }
.public .btn-green:hover { background: #fff; box-shadow: 0 0 18px -6px rgba(255, 255, 255, .5); }
.public .link-btn { color: var(--yellow); }

/* ---------- Bouton mode clair / sombre ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, transform .18s ease;
}
.theme-toggle:hover { border-color: var(--gold); transform: scale(1.06); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } .theme-toggle:hover { transform: none; } }

/* Le menu latéral et le pied de page restent noirs dans les deux modes, comme le logo */
.pub-side, .public footer.site {
  --bg: #0a0a0b; --surface: #141415; --surface-2: #1f1f22; --ink: #f8fafc; --muted: #9b9ba1; --line: #2c2c30;
  --yellow: #e2b956; color: var(--ink);
}

/* ---------- Mode clair : blanc cassé, or et noir du logo ---------- */
:root[data-theme="light"] body.public {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #f1eee6;
  --ink: #141414;
  --muted: #5f5c55;
  --line: #e3ded2;
  --green: #1d7a52;
  --green-soft: #e3efe7;
  --yellow: #8f6510;       /* or foncé : lisible en texte sur fond clair */
  --gold: #d4a03a;
  --on-green: #ffffff;
  --danger: #b3261e;
  --glow: 0 6px 18px -6px rgba(180, 130, 30, .55);
  color-scheme: light;
}
:root[data-theme="light"]:has(body.public) { background: #f7f5ef; color-scheme: light; }
:root[data-theme="light"] .pub-top { background: #f7f5ef; border-bottom-color: #e3ded2; }
:root[data-theme="light"] .public .brand-top .brand-name b { background-image: linear-gradient(180deg, #c8922e, #8a6212); }
:root[data-theme="light"] .public .hero,
:root[data-theme="light"] .public .mini-hero,
:root[data-theme="light"] .public .dest-hero {
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(212, 160, 58, .22), transparent 60%),
    radial-gradient(700px 320px at 100% 100%, rgba(29, 122, 82, .08), transparent 60%),
    linear-gradient(180deg, #fbf7ec 0%, #f7f5ef 100%);
  border-bottom-color: #e3ded2;
}
:root[data-theme="light"] .public .hero .lead, :root[data-theme="light"] .public .dest-hero p.lead { color: var(--muted); }
:root[data-theme="light"] .public .search-card { box-shadow: 0 24px 50px rgba(60, 45, 10, .12); }
:root[data-theme="light"] .public .offer.vip { background: linear-gradient(160deg, #fbf1d9 0%, #ffffff 70%); border-color: #e6cf98; }
:root[data-theme="light"] .public .offer:hover, :root[data-theme="light"] .public .agency:hover,
:root[data-theme="light"] .public .faq details:hover, :root[data-theme="light"] .public .contact-item:hover,
:root[data-theme="light"] .public .dest-card:hover { box-shadow: 0 16px 34px rgba(60, 45, 10, .12), 0 0 0 1px #e6cf98; }
:root[data-theme="light"] .public .btn-green { background: #141414; color: #fff; }
:root[data-theme="light"] .public .btn-green:hover { background: #000; box-shadow: none; }
:root[data-theme="light"] .public .btn-ghost-dark { background: var(--surface); border-color: var(--line); }
:root[data-theme="light"] .public .field input[type="date"] { color-scheme: light; }
:root[data-theme="light"] .public .placeholder { background: #f6e7bd; color: #5c4208; }
:root[data-theme="light"] .public .pill.ok { background: #d8efe0; color: #135c38; }
:root[data-theme="light"] .public .pill.wait { background: #fbeec2; color: #6b5200; }
:root[data-theme="light"] .public .pill.ko { background: #f6d9d6; color: #8c1d15; }
:root[data-theme="light"] .public .pill.info { background: #dbe8f7; color: #173f6b; }
:root[data-theme="light"] .public .seat.sold { background: #e9e5db; border-color: #e9e5db; color: #8a867c; }
:root[data-theme="light"] .public .seat.held { background: repeating-linear-gradient(45deg, #e9e5db 0 5px, #fff 5px 10px); }
:root[data-theme="light"] .public .seat.chosen { background: var(--gold); color: #141414; border-color: #9a6f14; }
:root[data-theme="light"] .public .result:hover { border-color: #cdbf9b; }
:root[data-theme="light"] .public .route::before { background: #3a3a3f; }
:root[data-theme="light"] .public .dot { background: #fff; }
:root[data-theme="light"] .public .map-bus circle { stroke: #fff; }
:root[data-theme="light"] .public .map-bus text { fill: #fff; }
:root[data-theme="light"] .public .map-bus.selected circle { fill: #173f6b; }
:root[data-theme="light"] .public .map-stop.hub circle { fill: var(--gold); stroke: #141414; }
:root[data-theme="light"] .public .stepper li.current::before { background: var(--gold); color: #141414; }
:root[data-theme="light"] .public .ticket { box-shadow: 0 18px 40px rgba(60, 45, 10, .14); }
:root[data-theme="light"] .public .hold-timer { background: #fbf0d2; }
:root[data-theme="light"] .public .tag { color: #0a0f0c; }
.public .menu-toggle { margin-left: 0; }

/* ---------- Menu de gauche en mode clair ---------- */
:root[data-theme="light"] .pub-side {
  --bg: #f7f5ef; --surface: #ffffff; --surface-2: #f1eee6; --ink: #141414; --muted: #5f5c55; --line: #e3ded2; --yellow: #8f6510;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f4 60%, #f6efdc 100%);
  border-right-color: #e3ded2;
}
:root[data-theme="light"] .pub-nav a { color: #4a4842; }
:root[data-theme="light"] .pub-nav a:hover { background: #f1eee6; color: #141414; }
:root[data-theme="light"] .pub-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(212, 160, 58, .22), rgba(212, 160, 58, .05)); color: #141414; box-shadow: inset 3px 0 0 #d4a03a; }
:root[data-theme="light"] .pub-nav a[aria-current="page"] svg { stroke: #8f6510; }
:root[data-theme="light"] .pub-nav hr, :root[data-theme="light"] .pub-side-foot { border-color: #e3ded2; }
:root[data-theme="light"] .public .pub-side .brand-name b { background-image: linear-gradient(180deg, #c8922e, #8a6212); }
:root[data-theme="light"] .pub-side .placeholder { background: #f6e7bd; color: #5c4208; }
:root[data-theme="light"] .pub-side.open { box-shadow: 20px 0 40px rgba(60, 45, 10, .18); }

/* ---------- Bandeau d'accueil compact, fixe en haut pendant le défilement ---------- */
.public .hero { overflow: visible; }
.public .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 18px 22px; }
.public .hero-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.public .hero-logo { grid-row: 1 / span 2; width: 64px; height: 64px; margin: 0; box-shadow: 0 0 24px -8px rgba(212, 160, 58, .55); }
.public .hero .eyebrow { font-size: .75rem; }
.public .hero-text h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.public .hero h1 span { display: inline; }
.public .hero .lead { display: none; }
.public .search-card { padding: 14px 16px; gap: 0; box-shadow: none; }
.public .search-card > .eyebrow { display: none; }
@media (min-width: 961px) {
  .public .hero { position: relative; }
  .public .search-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr) 96px auto; gap: 10px; }
  .public .search-grid .field, .public .search-grid .btn { grid-column: auto !important; }
  .public #accueil > section { scroll-margin-top: calc(var(--top-h, 300px) + 16px); }
}
/* Petit écran ou fenêtre basse : seule la barre reste en haut, le bandeau défile avec la page. */
@media (max-width: 960px), (max-height: 640px) {
  .pub-sticky { display: contents; }
  .pub-top { position: sticky; top: 0; z-index: 50; }
}
@media (max-width: 600px) { .public .hero-logo { width: 52px; height: 52px; } }
.public .search-grid input, .public .search-grid select { min-width: 0; max-width: 100%; }
.public .offer-head .price { white-space: nowrap; }

/* Lien vers l'espace pro, affiché seulement dans l'aperçu Claude */
.preview-pro { display: block; padding: 9px 12px; border-radius: 8px; border: 1px dashed var(--yellow); color: var(--yellow); text-decoration: none; font-weight: 700; font-size: .88rem; }

/* Lien d'évitement : visible seulement au clavier */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #d4a03a; color: #000; font-weight: 700; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Lisibilité renforcée (site public, deux modes) ----------
   Textes secondaires plus contrastés, corps de texte un peu plus grand, petits textes agrandis. */
html:has(body.public) { font-size: 106.25%; }          /* 17 px au lieu de 16 px */
body.public { line-height: 1.65; }

body.public, .pub-side, .public footer.site { --muted: #cfcfd5; }      /* sombre : 12,6:1 au lieu de 7,4:1 */
:root[data-theme="light"] body.public,
:root[data-theme="light"] .pub-side { --muted: #3d3a34; --ink: #0d0d0d; }   /* clair : 10,6:1 au lieu de 6,1:1 */

.public .pub-nav a { color: #e2e2e6; font-size: 1rem; }
:root[data-theme="light"] .public .pub-nav a { color: #23211d; }
.public footer.site .foot-text, .public footer.site a { color: #dadade; }
.public footer.site .legal { opacity: 1; }
.public .hero .lead, .public .dest-hero p.lead { color: #e4e7ec; }
:root[data-theme="light"] .public .hero .lead, :root[data-theme="light"] .public .dest-hero p.lead { color: var(--muted); }

/* Petits textes : jamais sous 14 px, et un peu plus gras */
.public .field label, .public .pay-methods legend, .public .contact-item .k, .public .bus-front { font-size: .82rem; color: var(--ink); }
.public .note, .public .field-hint, .public .stop .desc, .public .seat-legend, .public .pk,
.public .pub-side-foot, .public .demo-note, .public .ticket-qr { font-size: .85rem; }
.public .pk, .public .agency dt, .public .recap dt, .public .live-facts dt { color: var(--ink); opacity: .85; }
.public .demo-note, .public .offer .price::before { opacity: 1; }
.public .stop.passage { opacity: .8; }
.public .result.off { opacity: .75; }
.public .section-head p, .public .faq details p, .public .steps p, .public .lead-dark { font-size: 1.02rem; }
@media (min-width: 761px) { .public .result { grid-template-columns: minmax(170px, max-content) minmax(0, 1fr) auto auto; } }
