/* accueil-v15.css — l'accueil en v15 (T4, lot 666, MARQUE_LOT666). La feuille de la maquette validée le 5/11/2026
   (docs/maquettes/accueil-v15/accueil-v15.css), sans les règles de la page de résultat, ramenée à l'alphabet que la page du séjour
   rend (mesurer_theme_v15.py : 0 écart) : 16 px -> 15 px (la promesse, les valeurs des rangées, le bouton) et 18 px -> 17 px (les
   titres de section) ; aucune marge négative (la recherche chevauche la photo par une grille) ; les espaces de la photo et des
   sections pris dans ceux de la référence (48, 32). Les champs de saisie restent à 16 px : en dessous, Safari sur iPhone agrandit
   la page au toucher (une valeur de champ n'est pas un texte que le banc relève).
   Aucun jeton déclaré : elle lit ceux de theme.css. Classes en a5- (aucune collision avec pages-v15.css ni theme.css). */
main.a5 { display: block; max-width: 760px; margin: 0 auto; padding-bottom: 40px }
main.a5 :is(h1, h2, h3, h4, p) { margin: 0 }
main.a5 .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

/* la photo d'abord, la recherche posée dessus : la grille fait chevaucher la recherche de 32 px sur le bas de la photo */
.a5-ouv { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 32px auto }
.a5-ouv-ph { position: relative; margin: 0; grid-row: 1 / 3; grid-column: 1 }
.a5-ouv-ph img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 360px; object-fit: cover; background: var(--case) }
.a5-ouv-ph > small { position: absolute; top: 10px; right: 10px; padding: 3px 7px; border-radius: 4px; background: #ffffff;
  color: var(--encre-2); font: 400 13px/1.3 var(--corps) }
/* le voile porte la lisibilité (CLAUDE.md § 8) : au pire cas d'une photo blanche, 3:1 sous le titre (26 px, 600 : texte large) et
   4,5:1 sous la promesse ; vérifié par le verif du lot sur le dégradé calculé */
.a5-ouv-ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 48px 16px 48px;
  background: linear-gradient(to bottom, rgb(10 30 50 / 0) 0, rgb(10 30 50 / .62) 30%, var(--voile-ph) 56%); color: #ffffff }
.a5-ouv-ph h1 { font: 600 26px/1.15 var(--titres); color: #ffffff }
.a5-ouv-ph figcaption p { font: 400 15px/1.35 var(--corps); color: #ffffff }
.a5-ouv-ph figcaption b { font-weight: 600 }
.a5-ouv-sans { display: grid; gap: 6px; padding: 32px 16px 48px; background: var(--marque); color: #ffffff }
.a5-ouv-sans h1 { font: 600 26px/1.15 var(--titres); color: #ffffff }
.a5-ouv-sans p { font: 400 15px/1.35 var(--corps); color: #ffffff }

.a5-q { position: relative; z-index: 1; grid-row: 2 / 4; grid-column: 1; display: grid; margin: 0 16px; padding: 4px 16px 16px;
  border-radius: 10px; background: #ffffff; box-shadow: var(--ombre) }
.a5-ch { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--filet); background: transparent; color: var(--encre); font: inherit; text-align: left; cursor: pointer }
.a5-ch > .ic { width: 20px; height: 20px; flex: none; color: var(--titre) }
.a5-ch > span { flex: 1; min-width: 0; display: grid; gap: 2px }
.a5-ch small { font: 500 13px/1.2 var(--corps); color: var(--encre-2) }
.a5-ch input, .a5-ch select { width: 100%; min-width: 0; height: 24px; padding: 0; margin: 0; border: 0; outline: 0; background: transparent;
  appearance: none; font: 400 16px/1.3 var(--corps); color: var(--encre) }
.a5-ch input::placeholder { color: var(--encre-2); opacity: 1 }
.a5-ch b { font: 500 15px/1.3 var(--corps); color: var(--encre) }
.a5-ch .a5-bas { width: 16px; height: 16px; flex: none; color: var(--encre-2) }
.a5-ch:focus-within, .a5-ch:focus-visible { outline: 2px solid var(--marque); outline-offset: 2px; border-radius: 4px }
.a5-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 16px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--marque); color: #ffffff; font: 600 15px/1.2 var(--corps); text-decoration: none; cursor: pointer }
.a5-go .ic { width: 18px; height: 18px }
.a5-go-2 { background: #ffffff; color: var(--titre); box-shadow: inset 0 0 0 1px var(--titre) }

/* la feuille des dates (les commandes du 575) : un dialogue modal, en bas de l'écran sur un téléphone */
.a5-feuille { width: min(100%, 520px); max-width: 100%; margin: auto auto 0; padding: 0; border: 0; border-radius: 10px 10px 0 0;
  background: #ffffff; color: var(--encre); box-shadow: var(--ombre) }
.a5-feuille::backdrop { background: rgb(10 30 50 / .45) }
.a5-feuille-f { display: grid; gap: 14px; padding: 16px 16px 24px }
.a5-feuille-h { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.a5-feuille-h h2 { font: 600 17px/1.3 var(--titres); color: var(--titre) }
.a5-feuille-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--titre); cursor: pointer }
.a5-feuille-d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px }
.a5-feuille label { display: grid; gap: 6px; font: 500 13px/1.2 var(--corps); color: var(--encre-2) }
.a5-feuille input, .a5-feuille select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--filet); border-radius: 8px;
  background: #ffffff; color: var(--encre); font: 400 16px/1.3 var(--corps) }
.a5-feuille-dit { font: 400 13px/1.4 var(--corps); color: var(--encre-2) }
.a5-feuille-dit:has(> span:empty):has(> button[hidden]) { display: none }
.a5-lien { min-height: 44px; padding: 0; border: 0; background: none; color: var(--titre); font: 500 13px/1.4 var(--corps);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.a5-lien[hidden] { display: none }
.a5-feuille .a5-go { margin-top: 0 }
@media (min-width: 760px) { .a5-feuille { margin: auto; border-radius: 10px } }

/* les sections */
.a5-sec { padding: 32px 16px 0 }
.a5-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px }
.a5-sec-h h2 { font: 600 17px/1.3 var(--titres); color: var(--titre) }
.a5-sec-h a { flex: none; font: 500 14px/1.2 var(--corps); color: var(--titre); text-decoration: underline; text-underline-offset: 3px }
.a5-def { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font: 400 13px/1.35 var(--corps); color: var(--encre) }
.a5-def > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap }
.a5-def .ic { width: 15px; height: 15px; color: var(--te) }
.a5-date { display: flex; align-items: center; gap: 5px; margin-top: 4px; font: 400 13px/1.35 var(--corps); color: var(--encre-2) }
.a5-date .ic { width: 15px; height: 15px; flex: none }

/* le trajet : l'icône du mode, la durée, la gare ; puis direct ou les correspondances, et la marche avec bagages */
.a5-tr { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font: 400 14px/1.35 var(--corps); color: var(--encre) }
.a5-tr > .ic { width: 16px; height: 16px; margin-top: 1px; flex: none; color: var(--titre) }
.a5-tr b { font-weight: 600 }
.a5-v-ok { color: var(--te) }
.a5-v-ko, b.a5-v-ko { color: var(--tm) }
.a5-v-ko2, b.a5-v-ko2 { color: var(--th) }
.a5-tr-x { margin-top: 2px; padding-left: 22px; font: 400 13px/1.35 var(--corps); color: var(--encre-2) }
.a5-tr-x .a5-v-ko, .a5-tr-x .a5-v-ko2 { font-weight: 600 }
p.a5-tr.a5-tr-x { padding-left: 0 }

/* les rails : des cartes photo, toute la carte est le lien, le cœur sur la photo */
.a5-rail { list-style: none; display: flex; gap: 12px; margin: 14px -16px 0; padding: 2px 16px 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none }
.a5-rail::-webkit-scrollbar { display: none }
.a5-c { position: relative; flex: none; width: 244px; scroll-snap-align: start }
.a5-c-a { display: flex; flex-direction: column; height: 100%; padding-bottom: 14px; border-radius: 10px; overflow: hidden; background: #ffffff;
  box-shadow: var(--ombre-carte); text-decoration: none; color: var(--encre) }
.a5-c-a > :not(.a5-c-ph) { margin-left: 12px; margin-right: 12px }
.a5-c-ph { position: relative; display: block; margin-bottom: 10px }
.a5-c-ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--case) }
.a5-c-ph small { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 6px; border-radius: 4px;
  background: #ffffff; color: var(--encre-2); font: 400 13px/1.3 var(--corps); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.a5-c-a > b { font: 600 15px/1.3 var(--titres); color: var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.a5-c-l { margin-top: 1px; font: 400 13px/1.3 var(--corps); color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.a5-coeur { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0;
  border-radius: 50%; background: #ffffff; color: var(--titre); box-shadow: 0 1px 3px rgb(21 59 101 / .16); cursor: pointer }
.a5-coeur .ic { width: 18px; height: 18px }
.a5-coeur[aria-pressed="true"] .ic { fill: currentColor }

/* les régions : le nombre de campings faciles, la plus fournie d'abord */
.a5-reg { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 14px 0 0; padding: 0 }
.a5-reg a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 8px;
  background: #ffffff; box-shadow: var(--ombre-carte); text-decoration: none; color: var(--titre); font: 500 14px/1.25 var(--corps) }
.a5-reg b { flex: none; font: 600 15px/1 var(--corps); color: var(--te) }
.a5-reg b.a5-zero { font: 400 13px/1 var(--corps); color: var(--encre-2) }

/* le carnet : un aplat du marine pâle, un bouton */
.a5-carnet { display: grid; gap: 8px; padding: 20px 16px 16px; border-radius: 10px; background: var(--surface-2) }
.a5-carnet h2 { display: flex; align-items: center; gap: 8px; font: 600 17px/1.3 var(--titres); color: var(--titre) }
.a5-carnet h2 .ic { width: 20px; height: 20px }
.a5-carnet p { font: 400 14px/1.4 var(--corps); color: var(--encre) }
.a5-carnet-b { display: grid; gap: 4px }
.a5-carnet .a5-go { margin-top: 8px }
.a5-pass { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--titre);
  font: 400 14px/1.2 var(--corps) }
.a5-pass b { font-weight: 600 }
.a5-pass .ic { width: 18px; height: 18px }

@media (min-width: 760px) {
  .a5-ouv-ph img { border-radius: 0 0 10px 10px }
}
