/* CPH Visit — mise en page propre au site, construite sur le design system Roavia (tokens.css et roavia.css).
   Ce fichier n'introduit aucune couleur d'interface : tout passe par les jetons Roavia.
   Les éléments absents de Roavia (formulaires, statuts, programme, frise, barre mobile) en sont des extensions. */
:root { color-scheme: light; --gutter: clamp(16px, 5.5vw, 80px); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { overflow-x: hidden; }
svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.16; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.3; }
h3 { font-size: 22px; line-height: 30px; }
/* Roavia : titres, libellés et boutons en Title Case. */
h1, h2, h3, .btn, .ro-btn, .ro-link, .link, .ro-menu a, .tabbar a, .site-foot h2, .chip, .day-tab { text-transform: capitalize; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--night); color: var(--on-night); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
section.block { padding-block: clamp(48px, 7vw, var(--space-8)); }
.lede { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 62ch; margin: 0; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ro-eyebrow { margin-bottom: var(--space-2); }
.ro-section-head { margin-bottom: clamp(24px, 4vw, var(--space-6)); }
.ai-note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.art { position: relative; }
.art-tag { position: absolute; left: var(--space-2); bottom: var(--space-2); min-height: 28px; padding: 4px var(--space-2); }

/* Boutons secondaires : Roavia ne définit qu'un seul bouton principal par écran. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font: 500 16px/24px var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .18s ease; }
.btn:hover { background: var(--line); }
.btn.sm { min-height: 40px; padding: 0 var(--space-3); font-size: 14px; }
.btn.danger { background: none; text-decoration: underline; text-underline-offset: .2em; padding-inline: 0; color: var(--ink-muted); }
.btn[disabled] { color: var(--ink-muted); cursor: not-allowed; }
.ro-photo .btn { background: var(--glass-dark); color: var(--on-photo); -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass)); }
.ro-photo .btn:hover { background: var(--night); }
.ro-btn.full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
/* Lien Roavia avec pastille de flèche, sans markup supplémentaire */
.link { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding-right: 48px; font: 500 16px/24px var(--font-sans); color: var(--ink); text-decoration: none; }
.link::after { content: ''; position: absolute; right: 0; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--surface-sunken); transition: background-color .18s ease; }
.link::before { content: ''; position: absolute; z-index: 1; right: 9px; top: 50%; margin-top: -9px; width: 18px; height: 18px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%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='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .18s ease; }
.link:hover::after { background: var(--lime); }
.link:hover::before { transform: rotate(45deg); }

/* En-tête : la bande de verre Roavia sur l'image du port */
.site-head { padding: var(--space-1) 0; }
.site-head.ro-photo { background-position: center 62%; background-size: cover; }
.site-head.ro-photo::after { background: var(--scrim); opacity: .6; }
.ro-menu button { flex: none; }
.menu-panel { position: fixed; z-index: 60; top: 88px; right: var(--gutter); width: min(300px, calc(100vw - 32px)); padding: var(--space-1); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.menu-panel a { display: block; padding: var(--space-1) var(--space-3); border-radius: var(--radius-md); font-weight: 500; text-decoration: none; text-transform: capitalize; }
.menu-panel a:hover { background: var(--surface-sunken); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-1) var(--space-3); }

/* Barre mobile : extension Roavia, en `night`, pour garder le séjour à portée de pouce */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--night); color: var(--on-night); padding-bottom: env(safe-area-inset-bottom); }
.tabbar ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; text-decoration: none; font-size: 12px; line-height: 16px; font-weight: 500; --focus: var(--focus-on-photo); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current='page'] { color: var(--lime); }
@media (max-width: 860px) { .tabbar { display: block; } body { padding-bottom: 64px; } }

/* Hero d'accueil */
.home-hero { min-height: min(100svh, 860px); justify-content: space-between; gap: var(--space-4); }
.home-hero .ro-hero__photo { top: 0; left: 0; width: 100%; height: 100%; transform: none; object-position: 50% 60%; }
.home-hero .ro-hero__title { margin-top: clamp(8px, 3cqi, 48px); }
.hero-sub { position: relative; z-index: 3; margin: calc(-1 * var(--space-2)) auto 0; max-width: 46ch; text-align: center; font-size: 18px; line-height: 28px; }
.home-hero .ro-hero__foot { margin-top: auto; }
.home-hero .ro-proof { flex: 1 1 420px; max-width: 760px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--glass-dark); -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass)); border: 1px solid var(--glass-line); font-size: 16px; line-height: 24px; }
.home-hero .ro-proof dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-1) var(--space-4); margin: 0; }
.home-hero .ro-proof dt { font-size: 14px; line-height: 20px; opacity: .85; }
.home-hero .ro-proof dd { margin: 0; font-weight: 500; }
.home-hero .ro-proof a { color: inherit; }
.home-hero .ro-stat strong { font-size: 40px; line-height: 44px; }
@media (max-width: 720px) { .home-hero .ro-stat { display: none; } }

.journeys { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.journey { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); }
.journey ol { list-style: none; counter-reset: s; margin: var(--space-3) 0 var(--space-4); }
.journey li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.journey li::before { content: counter(s); font-weight: 500; color: var(--ink); }
@media (max-width: 900px) { .journeys { grid-template-columns: 1fr; } .journey { padding: var(--space-4); } }

/* Cartes destination : grilles de colonnes égales */
.grid { display: grid; gap: var(--space-4); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ro-dest { transition: opacity .18s ease; min-height: 400px; }
.ro-dest:hover { opacity: .94; color: var(--on-photo); }
/* Les titres portent parfois trois lignes : le voile monte plus haut que dans Roavia pour garder 4.5:1. */
.ro-dest.ro-photo::after { background: linear-gradient(to top, var(--scrim) 42%, rgba(10, 12, 4, 0) 88%); }
.ro-dest h3 { font-size: 26px; line-height: 32px; }
.ro-dest__top { justify-content: flex-start; flex-wrap: wrap; }

/* Statuts : Roavia n'a pas de couleurs d'état. La forme du point et le texte portent le sens, jamais la teinte seule. */
.status { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.status::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.status.open::before { background: currentColor; }
.status.soon::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status.unknown::before { border-style: dotted; }
.status.closed, .status.unknown { color: var(--ink-muted); }
.ro-photo .status, .ro-tag.status { color: var(--on-photo); font-weight: 400; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font-size: 14px; line-height: 20px; white-space: nowrap; }

/* Lignes : quartiers et guides */
.rows { display: grid; gap: var(--space-1); }
.row-link { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-1) var(--space-4) var(--space-1) var(--space-1); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-decoration: none; }
.row-link .thumb { aspect-ratio: 4 / 3; border-radius: 12px; }
.row-link .thumb::after { display: none; }
.row-link p { margin: 0; color: var(--ink-muted); }
.row-link:hover .ro-disc--chip { background: var(--lime); color: var(--on-lime); }
.row-link:hover .ro-icon { transform: rotate(45deg); }
@media (max-width: 760px) {
  .row-link { grid-template-columns: 84px minmax(0, 1fr); gap: var(--space-1) var(--space-3); padding-right: var(--space-3); }
  .row-link p { grid-column: 2; font-size: 14px; line-height: 20px; }
  .row-link .ro-disc { display: none; }
}
.dated { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); }
.dated > div { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); }
.dated strong { display: block; font-size: 22px; line-height: 30px; font-weight: 400; margin-bottom: var(--space-1); }
.dated p { margin: 0; color: var(--ink-muted); }
.ro-facts.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: var(--space-5); }

/* Entête de page */
.page-head { padding-block: clamp(32px, 5vw, var(--space-7)) clamp(24px, 3vw, var(--space-6)); }
.page-head .lede { margin-top: var(--space-2); }
.crumbs { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-bottom: var(--space-3); }
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.split-hero .art { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.split-hero .art::after { display: none; }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; gap: var(--space-4); } .split-hero .art { order: -1; aspect-ratio: 16 / 9; } }

/* Fiche lieu */
.place-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--space-6); align-items: start; padding-bottom: var(--space-7); }
.prose { max-width: 68ch; font-size: 16px; line-height: 26px; }
.prose > p:first-child { font-size: 18px; line-height: 30px; }
.prose h2 { font-size: 30px; line-height: 38px; margin: 1.5em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-underline-offset: .18em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.prose th, .prose td { text-align: left; padding: var(--space-1) var(--space-2) var(--space-1) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; }
.table-scroll { overflow-x: auto; }
.tipbox { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface); margin: 1.4em 0; }
.tipbox b { display: block; font-weight: 500; margin-bottom: 4px; }
.alertbox { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--night); color: var(--on-night); margin: 1.2em 0; }
.alertbox strong { font-weight: 500; }
.side-card { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); position: sticky; top: var(--space-3); }
.side-card .ro-facts { margin-top: var(--space-2); }
.side-card .ro-facts div { flex-direction: column; gap: 2px; padding: var(--space-2) 0; }
.side-card .ro-facts dd { text-align: left; font-weight: 400; }
.side-card .ro-facts dt { font-size: 14px; line-height: 20px; }
.week { list-style: none; font-size: 14px; line-height: 20px; }
.week li { display: flex; justify-content: space-between; gap: var(--space-2); padding: 3px 0; font-variant-numeric: tabular-nums; }
.week li.today { font-weight: 600; }
.sources { font-size: 14px; line-height: 20px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: var(--space-3); margin-top: var(--space-5); }
.sources strong { font-weight: 500; }
.sources ul { list-style: none; padding: 0; margin-top: var(--space-1); }
.sources li { margin-bottom: 3px; }
@media (max-width: 900px) { .place-layout { grid-template-columns: 1fr; gap: var(--space-4); } .side-card { position: static; } }

/* Filtres */
.filters { position: sticky; top: 0; z-index: 20; background: var(--page); padding-block: var(--space-2); margin-bottom: var(--space-3); }
.filters-row { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.field-inline { min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); max-width: 100%; }
input.field-inline[type='search'] { flex: 1 1 220px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: 14px; line-height: 20px; }
.chip:hover { background: var(--surface-sunken); }
.chip:has(input:checked) { background: var(--night); border-color: var(--night); color: var(--on-night); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 860px) { .filters { position: static; } }
.empty { padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); background: var(--surface); text-align: center; color: var(--ink-muted); }

/* Formulaire de préparation */
.form-grid { display: grid; gap: var(--space-5); max-width: 760px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .label { font-size: 22px; line-height: 30px; padding: 0; margin-bottom: var(--space-2); display: block; text-transform: capitalize; }
.hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: -4px 0 var(--space-2); }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.date-fields label { font-size: 14px; line-height: 20px; font-weight: 500; display: block; }
.date-fields input, .date-fields select, .input { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 16px; font-weight: 400; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--space-1); }
.choice { position: relative; display: block; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; line-height: 22px; }
.choice b { display: block; font-weight: 500; }
.choice span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.form-error { font-weight: 500; margin-top: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: var(--radius-md); background: var(--night); color: var(--on-night); }
.prep-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--space-6); align-items: start; padding-bottom: var(--space-7); }
.prep-aside { position: sticky; top: var(--space-3); color: var(--ink-muted); }
.prep-aside .art { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); margin-bottom: var(--space-2); }
.prep-aside .art::after { display: none; }
@media (max-width: 900px) { .prep-layout { grid-template-columns: 1fr; } .prep-aside { position: static; } .prep-aside .art { display: none; } }

/* Programme */
.prog-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-3); flex-wrap: wrap; }
.day-card { background: var(--surface); border-radius: var(--radius-lg); margin-bottom: var(--space-3); overflow: hidden; }
.day-card > header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.day-card h2 { font-size: 22px; line-height: 30px; }
.day-card .day-sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.stops { list-style: none; }
.stop { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px var(--space-2); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); align-items: start; }
.stop .time { font-weight: 500; font-variant-numeric: tabular-nums; }
.stop .name { font-weight: 500; text-decoration: none; }
a.name { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .18em; }
.stop .sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.stop.is-break { background: var(--page); }
.stop .warn { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin-top: 4px; width: fit-content; padding: 2px var(--space-2); border-radius: var(--radius-md); background: var(--night); color: var(--on-night); }
.stop .warn.soft { font-weight: 400; background: var(--surface-sunken); color: var(--ink); }
.stop-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: var(--surface-sunken); color: var(--ink); border-radius: var(--radius-pill); cursor: pointer; }
.icon-btn:hover { background: var(--line); }
.icon-btn[disabled] { color: var(--line); cursor: not-allowed; background: var(--page); }
.icon-btn .ro-icon { width: 18px; height: 18px; }
.icon-btn .up { transform: rotate(90deg); }
.icon-btn .down { transform: rotate(-90deg); }
select.icon-btn { width: 104px; padding: 0 var(--space-1); font-size: 14px; }
.day-add { padding: var(--space-2) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.day-add select { min-height: 40px; flex: 1 1 200px; max-width: 340px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.none { padding: var(--space-2) var(--space-4); margin: 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
@media (max-width: 620px) {
  .stop { grid-template-columns: 52px minmax(0, 1fr); padding-inline: var(--space-3); }
  .stop-actions { grid-column: 2; justify-content: flex-start; }
  .day-card > header, .day-add { padding-inline: var(--space-3); }
}
.prog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-4); align-items: start; padding-bottom: var(--space-7); }
.prog-side { display: grid; gap: var(--space-3); position: sticky; top: var(--space-3); }
.panel { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-4); }
.panel h2, .panel h3 { font-size: 22px; line-height: 30px; margin-bottom: var(--space-1); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-1); padding: var(--space-1) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; cursor: pointer; align-items: start; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--night); }
.check:has(input:checked) span { text-decoration: line-through; color: var(--ink-muted); }
.pass-line { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-1) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.pass-opt { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--page); margin-bottom: var(--space-1); }
.pass-opt.best { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.pass-opt .amount { font-size: 22px; line-height: 30px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pass-opt header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.pass-opt strong { font-weight: 500; }
.pass-opt summary { cursor: pointer; }
@media (max-width: 980px) { .prog-layout { grid-template-columns: 1fr; } .prog-side { position: static; } }
@media print {
  .site-head, .tabbar, .site-foot, .stop-actions, .day-add, .prog-side, .no-print, .menu-panel { display: none !important; }
  body { background: #fff; padding: 0; }
  .prog-layout { display: block; }
  .day-card { break-inside: avoid; box-shadow: 0 0 0 1px var(--line); }
}

/* Sur place */
.now-card { padding: var(--space-5); border-radius: var(--radius-lg); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.now-card.ro-photo::after { background: linear-gradient(to top, var(--scrim) 55%, rgba(10, 12, 4, .25)); }
.now-card h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; margin: var(--space-1) 0; }
.now-card .kicker { font-weight: 500; }
.now-card p { font-size: 16px; line-height: 26px; max-width: 70ch; }
.now-card a:not(.ro-btn) { color: inherit; }
.now-card.plain { min-height: 0; }
@media (max-width: 760px) { .now-card { padding: var(--space-4) var(--space-3); min-height: 300px; } }
.day-tabs { display: flex; gap: var(--space-1); overflow-x: auto; padding: 2px 2px var(--space-1); scrollbar-width: thin; }
.day-tab { flex: none; min-height: 44px; padding: 0 var(--space-3); border: 0; background: var(--surface-sunken); border-radius: var(--radius-pill); cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 500; }
.day-tab[aria-selected='true'] { background: var(--night); color: var(--on-night); }
.site-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-5); }
@media (max-width: 900px) { .site-layout { grid-template-columns: 1fr; } }
.site-layout h2 { font-size: 30px; line-height: 38px; }
.timeline { list-style: none; position: relative; }
.tl { position: relative; display: grid; grid-template-columns: 52px 28px minmax(0, 1fr); gap: 0 var(--space-1); padding-bottom: var(--space-4); }
.tl .time { font-weight: 500; font-variant-numeric: tabular-nums; }
.tl .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; font-size: 14px; line-height: 1; font-weight: 500; position: relative; z-index: 1; }
.tl .dot .ro-icon { width: 16px; height: 16px; }
.tl::before { content: ''; position: absolute; left: 73px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl.done .tl-name, .tl.done .tiny { color: var(--ink-muted); }
.tl.current .dot { background: var(--night); color: var(--on-night); }
.tl .tl-body { min-width: 0; }
.tl .tl-name { font-weight: 500; }
.tl .tl-warn { width: fit-content; font-size: 14px; line-height: 20px; font-weight: 500; padding: 2px var(--space-2); margin-top: 4px; border-radius: var(--radius-md); background: var(--night); color: var(--on-night); }
.tl .tl-actions { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-top: var(--space-1); }
.map-box { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.map-box svg { width: 100%; height: auto; touch-action: manipulation; }
.map-box .map-note { padding: var(--space-1) var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.map-pin { cursor: pointer; }
.map-box text { paint-order: stroke; stroke: rgba(247, 247, 247, .85); stroke-width: .7px; }
.map-pin text { stroke: none; }
.banner { display: flex; gap: var(--space-1); align-items: flex-start; flex-wrap: wrap; justify-content: space-between; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.banner strong { font-weight: 500; }
.banner.info, .banner.warnb { background: var(--surface-sunken); }
.banner.alert { background: var(--night); color: var(--on-night); }
.nearby { list-style: none; padding: 0; }
.nearby li { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.nearby strong { font-weight: 500; }
.sos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-1); }
.sos a { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); text-decoration: none; background: var(--surface); }
.sos a:hover { background: var(--surface-sunken); }
.sos b { font-size: 30px; line-height: 38px; font-weight: 400; display: block; font-variant-numeric: tabular-nums; }
.sos span { font-size: 14px; line-height: 20px; color: var(--ink-muted); display: block; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--night); color: var(--on-night); padding: var(--space-1) var(--space-4); border-radius: var(--radius-pill); z-index: 70; max-width: calc(100vw - 32px); }
@media (min-width: 861px) { .toast { bottom: 28px; } }

/* Pied de page */
.site-foot { background: var(--night); color: var(--on-night); padding-block: var(--space-6) var(--space-4); --focus: var(--focus-on-photo); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-4); }
.site-foot h2 { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .02em; margin-bottom: var(--space-2); }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-foot p { font-size: 14px; line-height: 20px; margin-top: var(--space-1); max-width: 42ch; }
.foot-legal { border-top: 1px solid var(--dusk); margin-top: var(--space-5); padding-top: var(--space-3); font-size: 14px; line-height: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Le mot, le titre et le sous-titre restent lisibles sur une image chargée. */
.home-hero.ro-hero::before { height: 72%; background: linear-gradient(to bottom, var(--scrim) 40%, rgba(10, 12, 4, 0)); }

/* Petits écrans : les colonnes ne s'élargissent jamais au-delà de la page. */
.prep-layout > *, .prog-layout > *, .form-grid > *, .date-fields > *, .site-layout > * { min-width: 0; }
.date-fields input, .date-fields select { min-width: 0; max-width: 100%; }
@media (max-width: 980px) { .prog-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .prep-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .home-hero .ro-proof { padding: var(--space-2) var(--space-3); flex-basis: 100%; }
  .home-hero .ro-proof dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-2); }
  .home-hero .ro-proof dd { font-size: 14px; line-height: 20px; }
  .home-hero .ro-proof dt { font-size: 12px; line-height: 16px; }
}
.day-add select { min-width: 0; width: 100%; }
@media (min-width: 621px) { .day-add select { width: auto; } }

/* Le bouton principal et son disque de flèche ne se touchent pas. */
.ro-cta { gap: var(--space-1); }

/* Texte blanc sur le bouton principal, à la demande : 3.89:1 sur le bleu, 4.9:1 au survol. */
.ro-btn--primary, .ro-btn--primary:hover { color: var(--on-photo); }

/* Logo : texte blanc sur fond transparent, à poser uniquement sur image ou fond sombre. */
.site-logo { display: block; flex: none; line-height: 0; }
.site-logo img { display: block; width: auto; height: 56px; }
.site-foot .site-logo img { height: 72px; }
@media (max-width: 720px) { .ro-nav .site-logo img { height: 48px; } }

/* Sélecteur de langue */
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 var(--space-1); border-radius: var(--radius-pill); font: 500 14px/20px var(--font-sans); text-decoration: none; }
.nav-langs { margin-left: auto; color: var(--on-photo); --focus: var(--focus-on-photo); }
.nav-langs a:hover { background: var(--glass-dark); }
.nav-langs a[aria-current='true'] { background: var(--on-photo); color: var(--night); }
.panel-langs a { background: var(--surface-sunken); color: var(--ink); flex: 1; }
.panel-langs a:hover { background: var(--line); }
.panel-langs a[aria-current='true'] { background: var(--night); color: var(--on-night); }
.menu-panel .panel-langs { padding: var(--space-1); }
.foot-langs { flex-wrap: wrap; margin-top: var(--space-2); }
.foot-langs a { min-width: 0; height: auto; padding: 0; margin-right: var(--space-2); }
.foot-langs a[aria-current='true'] { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1000px) { .nav-langs { display: none; } }

.week .cap { display: inline-block; }

/* Petits écrans : le logo et l'onglet actif tiennent aussi avec un mot long. */
@media (max-width: 420px) {
  .ro-nav { padding-left: var(--space-2); }
  .ro-nav .site-logo img { height: 42px; }
  .ro-menu a[aria-current='page'] { padding: 0 var(--space-2); font-size: 14px; }
}

.hero-note { position: relative; z-index: 3; margin: calc(-1 * var(--space-3)) auto 0; max-width: 60ch; text-align: center; font-size: 14px; line-height: 20px; }

/* Pages légales : champ restant à remplir, visible sans teinte propre. */
.todo { background: var(--surface-sunken); color: var(--ink); padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink-muted); }
.legal h2 { text-transform: none; }

/* Mots longs, surtout en néerlandais : ils se coupent plutôt que de faire déborder la page. */
h1, h2, h3, legend, .prose, .prose td, .prose th, .tipbox, .alertbox { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 560px) {
  .prose h2 { font-size: 24px; line-height: 32px; }
  .legal table { table-layout: fixed; }
  .legal th, .legal td { padding-right: var(--space-1); font-size: 14px; line-height: 20px; }
}

/* Tableaux à quatre colonnes ou plus : ils défilent sur mobile plutôt que de couper les mots. */
@media (max-width: 620px) { .table-scroll table:has(th:nth-child(4)) { min-width: 620px; } }

/* Champ piège pour les robots : invisible pour les visiteurs. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.date-fields input[type='text'], .date-fields input[type='email'] { min-width: 0; }
@media (max-width: 560px) { .contact-fields { grid-template-columns: minmax(0, 1fr); } }
