/* Plan de Vol : styles du thème (Hezign). Base reprise de la maquette v2 validée. */


:root {
  --encre: #122e43;
  --nuit: #0b1f2e;
  --papier: #f7f4ee;
  --blanc: #fffdf9;
  --sauge: #b5d2c9;
  --sauge-fonce: #4f7a7e;
  --or: #b8893a;
  --or-clair: #d9b26a;
  --or-texte: #8a6420; /* or lisible sur fond clair (contraste 4,9:1 minimum) */
  --texte: #182733;
  --doux: #55636d;
  --ligne: #e3ddd1;
  --rayon: 6px;
  --serif: var(--wp--preset--font-family--serif);
  --sans: var(--wp--preset--font-family--sans);
  --large: min(1240px, 100% - 2.5rem);
  --barre-mobile: 0px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 1rem/1.55 var(--sans); color: var(--texte); background: var(--papier); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em { font-style: italic; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller-contenu { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 50; border-radius: var(--rayon); }
.aller-contenu:focus { top: 1rem; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--encre); flex: none; }
.logo-tuile { width: 40px; height: 40px; flex: none; }
.logo-texte { display: grid; line-height: 1.05; }
.logo-nom { font-family: var(--serif); font-size: 1.42rem; letter-spacing: -.01em; }
.logo-sous { font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--or-texte); margin-top: .2rem; }
.logo--clair { color: #fff; }
.logo--clair .logo-tuile rect { fill: rgba(255,255,255,.12); }
.logo--clair .logo-sous { color: var(--or-clair); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: var(--rayon); background: var(--encre); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s; }
.bouton:hover { background: var(--nuit); }
.bouton:active { transform: translateY(1px); }
.bouton--or { background: var(--or-clair); color: var(--nuit); }
.bouton--or:hover { background: #e6c587; }
.bouton--ligne { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.bouton--ligne:hover { background: var(--encre); color: #fff; }
.lien-fleche { font-weight: 600; text-decoration: none; color: var(--encre); white-space: nowrap; }
.lien-fleche::after { content: " →"; transition: margin .2s; }
.lien-fleche:hover::after { margin-left: .25rem; }

/* ===== Entrée ===== */
.entree { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: #fff; background: var(--nuit); overflow: hidden; }
.entree-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entree-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,46,.92) 0%, rgba(11,31,46,.75) 45%, rgba(11,31,46,.25) 100%); }
.entree-contenu { position: relative; align-self: center; width: var(--large); margin: 0 auto; padding: 3rem 0 2rem; max-width: 1240px; }
.entree-contenu > * { max-width: 34rem; }
.entree h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin: 2.6rem 0 1.1rem; }
.entree h1 em { color: var(--or-clair); }
.entree-texte { font-size: 1.08rem; color: rgba(255,255,255,.82); margin: 0 0 2.2rem; }
.entree-form { display: grid; gap: .55rem; max-width: 26rem; }
.entree-form label { font-weight: 600; font-size: .92rem; }
.champ-mdp { display: flex; background: #fff; border-radius: var(--rayon); }
.champ-mdp input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; padding: 0 1rem; color: var(--texte); font-size: 1.05rem; letter-spacing: .06em; border-radius: var(--rayon); }
.champ-mdp input:focus { outline: none; }
.champ-mdp:focus-within { outline: 2px solid var(--or-clair); outline-offset: 2px; }
.voir-mdp { border: 0; background: none; padding: 0 1rem; color: var(--doux); font-size: .85rem; font-weight: 600; cursor: pointer; }
.entree-form .bouton { margin-top: .5rem; }
.erreur { margin: 0; color: #ffd2c4; font-size: .92rem; }
.entree-form.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.entree-aide { margin-top: 1.6rem; font-size: .88rem; color: rgba(255,255,255,.7); }
.entree-contenu > .entree-aide { max-width: none; }
@media (min-width: 721px) { .entree-aide { white-space: nowrap; } }
.entree-aide a { color: #fff; overflow-wrap: anywhere; }
.pause-video { position: absolute; z-index: 2; right: max(1.25rem, calc((100vw - 1240px) / 2)); top: calc(1.25rem + env(safe-area-inset-top, 0px)); display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.4); border-radius: 2rem; background: rgba(11,31,46,.45); color: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; }
.pause-video:hover { background: rgba(11,31,46,.7); }
.pause-video svg { width: 16px; height: 16px; fill: currentColor; }
.entree-pied { position: relative; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; width: var(--large); margin: 0 auto; padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; color: rgba(255,255,255,.65); }
.entree-pied span { margin-right: auto; }
.entree-pied a { color: rgba(255,255,255,.85); text-decoration: none; }
.entree-pied a:hover { color: #fff; text-decoration: underline; }

/* ===== En-tête ===== */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247,244,238,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); padding-top: env(safe-area-inset-top, 0px); }
.entete-in { width: var(--large); margin: 0 auto; height: 76px; display: flex; align-items: center; gap: 1.2rem; }
.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a { position: relative; display: flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: var(--rayon); text-decoration: none; font-weight: 500; color: var(--doux); }
.nav a:hover { color: var(--encre); background: rgba(18,46,67,.05); }
.nav a[aria-current="page"] { color: var(--encre); background: rgba(18,46,67,.07); }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.pastille { min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 1rem; background: var(--or); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.sortir button { border: 0; background: none; color: var(--doux); font-size: .88rem; cursor: pointer; padding: .5rem; text-decoration: underline; text-underline-offset: 3px; }
.sortir button:hover { color: var(--encre); }

main { min-height: 70vh; }
main:focus { outline: none; }

/* ===== Accueil ===== */
.hero { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); background: var(--encre); color: #fff; min-height: min(78vh, 680px); }
.hero-texte { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem) max(1.25rem, calc((100vw - 1240px) / 2)); }
.hero .edition { color: var(--or-clair); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 2rem; }
.hero h1 em { color: var(--or-clair); }
.recherche--hero { border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 36rem; }
.hero .proches { margin-top: 1.5rem; }
.hero .proches-villes { color: rgba(255,255,255,.7); }
.hero .proches-villes a { color: #fff; }
.hero .geo-info { color: #ffd2c4; margin: 0; }
.bouton--clair { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.bouton--clair:hover { background: rgba(255,255,255,.18); }
.hero-image { position: relative; margin: 0; overflow: hidden; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: approche 18s ease-out both; }
@keyframes approche { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--encre) 0%, rgba(18,46,67,0) 22%); pointer-events: none; }
.hero-image figcaption { position: absolute; z-index: 2; right: 1.2rem; bottom: 1rem; font-size: .75rem; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.chiffres { width: var(--large); margin: 0 auto; list-style: none; padding: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; color: var(--doux); font-size: .95rem; }
.chiffres li { display: grid; gap: .1rem; padding-left: 1.2rem; border-left: 1px solid var(--ligne); }
.chiffres li:first-child { border-left: 0; padding-left: 0; }
.chiffres strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--encre); }
.carte-geo--accueil { aspect-ratio: auto; }
.edition { margin: 0 0 1rem; font-weight: 600; color: var(--or-texte); font-size: .95rem; }
.recherche { position: relative; display: flex; align-items: center; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .35rem .35rem .35rem 2.9rem; box-shadow: 0 1px 2px rgba(18,46,67,.05); }
.recherche:focus-within { border-color: var(--encre); }
.recherche svg { position: absolute; left: 1rem; width: 20px; height: 20px; fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; }
.recherche input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font-size: 1.05rem; color: var(--texte); }
.recherche input:focus { outline: none; }
.recherche--compacte { padding-right: .35rem; }
.bouton-fleche { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recherche .bouton-fleche { position: static; stroke: currentColor; }
.recherche--compacte input { height: 44px; font-size: 1rem; }
.carte-note { margin: 0; font-size: .82rem; color: var(--doux); }
.carte-geo { width: 100%; aspect-ratio: 4/3.4; border-radius: var(--rayon); border: 1px solid var(--ligne); background: #e9e6df; z-index: 0; }
.carte-geo--offres { aspect-ratio: auto; }
.carte-bloc--offres { margin-bottom: 1.5rem; }
.carte-bloc--offres .carte-geo { min-height: min(68vh, 600px); }
.carte-bloc--offres .geo-liste { max-height: min(68vh, 600px); }
.carte-geo--mini { aspect-ratio: 16/9; border-radius: 4px; }
.leaflet-container { font-family: var(--sans); }
.tuiles { filter: grayscale(1) sepia(.35) hue-rotate(115deg) saturate(.55) brightness(1.02) contrast(.9); }
.carte-geo { background: #dfe9e5 !important; }
.leaflet-control-attribution { font-size: .68rem; }
.epingle { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--encre); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(11,31,46,.35); display: grid; place-items: center; transition: background .2s, transform .2s; }
.epingle svg { width: 15px; height: 14px; transform: rotate(45deg); }
.epingle--or { background: var(--or); }
.epingle.est-actif { background: var(--or); transform: rotate(-45deg) scale(1.22); }
.carte-bloc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
.carte-bloc .carte-geo { border: 0; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 460px; }
.geo-liste { display: flex; flex-direction: column; max-height: 560px; border-left: 1px solid var(--ligne); }
.geo-liste-tete { padding: .9rem 1rem; border-bottom: 1px solid var(--ligne); font-size: .88rem; color: var(--doux); display: flex; gap: .6rem; align-items: center; }
.geo-liste-tete input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--ligne); border-radius: 2rem; padding: 0 .9rem; background: var(--papier); font-size: .9rem; }
.geo-liste ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.geo-liste li + li { border-top: 1px solid #efe9de; }
.geo-liste a { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; text-align: left; border: 0; background: none; padding: .75rem 1rem; cursor: pointer; }
.geo-liste a:hover, .geo-liste a.est-actif { background: #f1ede4; }
.geo-liste strong { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; color: var(--encre); }
.geo-liste small { grid-column: 1; color: var(--doux); font-size: .8rem; }
.geo-liste em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--or-texte); }
.geo-liste-vide { padding: 1rem; color: var(--doux); font-size: .9rem; }
.leaflet-popup-content-wrapper { border-radius: var(--rayon); }
.leaflet-popup-content { margin: .8rem 1rem; font-size: .9rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.leaflet-popup-content a { color: var(--encre); font-weight: 600; }
.proches { margin-top: 1.4rem; display: grid; gap: .9rem; justify-items: start; }
.proches-villes { margin: 0; font-size: .9rem; color: var(--doux); }
.proches-villes a { color: var(--encre); font-weight: 600; margin-right: .2rem; }
.proches-villes a::after { content: ","; }
.proches-villes a:last-child::after { content: ""; }
.bouton--geo svg, .segment svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.recherche-entete { position: relative; margin-left: .5rem; }
.recherche-entete svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.recherche-entete input { width: 190px; height: 40px; border: 1px solid var(--ligne); border-radius: 2rem; background: var(--blanc); padding: 0 .9rem 0 2.2rem; font-size: .92rem; transition: width .2s, border-color .2s; }
.recherche-entete input:focus { outline: none; border-color: var(--encre); width: 240px; }
.outils { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin: -.6rem 0 1.4rem; }
.segment { display: inline-flex; background: #ebe6dc; border-radius: var(--rayon); padding: 3px; }
.segment button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .45rem .9rem; border-radius: 4px; font-size: .9rem; font-weight: 500; color: var(--doux); cursor: pointer; min-height: 38px; }
.segment button[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 3px rgba(18,46,67,.12); }
.geo-info { margin: -.6rem 0 1.2rem; font-size: .88rem; color: var(--doux); }
.distance { position: absolute; z-index: 2; left: .6rem; top: .6rem; background: var(--encre); color: #fff; font-size: .76rem; font-weight: 600; padding: .2rem .55rem; border-radius: 2rem; }
.actions-mobile { display: none; }

.bloc { width: var(--large); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--ligne); }
.bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.bloc-tete h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.univers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.univers a { position: relative; height: 100%; min-height: 190px; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 3.2rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); text-decoration: none; overflow: hidden; transition: background .25s, border-color .25s, color .25s; }
.univers a::before { content: ""; position: absolute; left: 1.4rem; top: 0; width: 2.2rem; height: 3px; background: var(--or); transition: width .3s; }
.univers strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.12; color: var(--encre); }
.univers-nb { font-size: .82rem; font-weight: 600; color: var(--or-texte); font-variant-numeric: tabular-nums; }
.univers-ex { font-size: .86rem; color: var(--doux); line-height: 1.45; }
.univers-fleche { position: absolute; left: 1.4rem; bottom: 1.1rem; font-size: 1.2rem; color: var(--encre); transition: transform .25s; }
.univers a:focus-visible { outline-offset: 2px; }
@media (hover: hover) { .univers a:hover .univers-fleche { color: var(--or-clair); transform: translateX(6px); } }
@media (hover: hover) { .univers a:hover .univers-ex { color: rgba(255,255,255,.75); } }
@media (hover: hover) { .univers a:hover .univers-nb { color: var(--or-clair); } }
@media (hover: hover) { .univers a:hover strong { color: #fff; } }
@media (hover: hover) { .univers a:hover::before { width: calc(100% - 2.8rem); } }
@media (hover: hover) { .univers a:hover { background: var(--encre); border-color: var(--encre); } }

.defile { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 1.25rem) / 4)); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.defile > * { scroll-snap-align: start; }

/* Carte d'offre */
.carte { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; transition: border-color .2s, transform .2s; }
.carte:hover { border-color: #c9c0ae; transform: translateY(-2px); }
.carte-visuel { aspect-ratio: 4/3; background: #ece7dc; display: grid; place-items: center; overflow: hidden; }
.carte-visuel img { width: 100%; height: 100%; object-fit: contain; }
.carte-visuel.est-photo img { object-fit: cover; }
.carte-corps { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .25rem; }
.carte-corps :is(h2, h3) { font-size: 1.32rem; }
.carte-corps :is(h2, h3) a { text-decoration: none; }
.carte-corps :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.carte-meta { margin: 0; font-size: .88rem; color: var(--doux); }
.coeur { position: absolute; z-index: 2; top: .6rem; right: .6rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,253,249,.94); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.coeur svg { width: 20px; height: 20px; fill: none; stroke: var(--encre); stroke-width: 1.7; }
.coeur[aria-pressed="true"] svg { fill: var(--or); stroke: var(--or); }
.coeur:hover svg { stroke: var(--or); }

/* Bandeau guide papier */
.papier { width: var(--large); margin: 2rem auto clamp(3rem, 6vw, 5rem); background: var(--encre); color: #fff; border-radius: var(--rayon); display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.papier-texte { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.papier h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.papier p { margin: 0 0 .6rem; color: rgba(255,255,255,.78); max-width: 30rem; }
.papier-pages { position: relative; min-height: 320px; }
.papier-pages img { position: absolute; width: 42%; top: 50%; left: 50%; border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.papier-pages img:nth-child(1) { transform: translate(-105%, -46%) rotate(-7deg); }
.papier-pages img:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.papier-pages img:nth-child(3) { transform: translate(5%, -46%) rotate(7deg); }

/* ===== Offres ===== */
.offres { width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0 4rem; }
.filtres { position: sticky; top: 96px; align-self: start; display: grid; gap: 1.6rem; }
.plus-filtres > summary { display: none; }
.plus-filtres-in { display: grid; gap: 1.6rem; }
.filtre { border: 0; margin: 0; padding: 0; display: grid; gap: .55rem; }
.filtre label, .filtre legend { font-weight: 600; font-size: .9rem; padding: 0; }
.filtre select { height: 44px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); padding: 0 .8rem; }
.puces { display: flex; flex-direction: column; }
.puce { display: flex; justify-content: space-between; gap: 1rem; text-align: left; border: 0; border-left: 2px solid transparent; background: none; padding: .5rem .8rem; cursor: pointer; color: var(--doux); }
.puce:hover { color: var(--encre); }
.puce[aria-current] { border-left-color: var(--or); color: var(--encre); font-weight: 600; background: rgba(184,137,58,.07); }
.puce small { font-variant-numeric: tabular-nums; }
.sous-puces { display: flex; flex-wrap: wrap; gap: .4rem; }
.sous-puce { border: 1px solid var(--ligne); background: var(--blanc); border-radius: 2rem; padding: .3rem .75rem; font-size: .84rem; cursor: pointer; }
.sous-puce[aria-current] { background: var(--encre); color: #fff; border-color: var(--encre); }
.resultats-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.6rem; }
.resultats-tete h1 { font-size: clamp(2rem, 3.5vw, 2.9rem); }
.compte { margin: 0; color: var(--doux); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.vide { padding: 3rem 0; display: grid; justify-items: start; gap: 1rem; color: var(--doux); }

/* ===== Fiche : carte d'embarquement ===== */
.fiche { width: var(--large); margin: 0 auto; padding: 2rem 0 4rem; }
.retour { display: inline-flex; gap: .4rem; margin-bottom: 1.5rem; color: var(--doux); text-decoration: none; font-weight: 500; }
.retour:hover { color: var(--encre); }
.fiche-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; }
.fiche-visuel { margin: 0; background: #ece7dc; border-radius: var(--rayon); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.fiche-visuel img { width: 100%; height: auto; }
.billet { position: sticky; top: 96px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; }
.billet-tete { background: var(--encre); color: #fff; padding: 1.4rem 1.6rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.billet-tete h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.billet-tete p { margin: .5rem 0 0; color: var(--sauge); font-size: .92rem; }
.billet-tete .coeur { position: static; flex: none; }
.billet-perfo { position: relative; height: 22px; background: var(--blanc); }
.billet-perfo::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed var(--ligne); }
.billet-perfo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 50%, var(--papier) 10px, transparent 11px), radial-gradient(circle at 100% 50%, var(--papier) 10px, transparent 11px); }
.billet-corps { padding: .4rem 1.6rem 1.6rem; display: grid; gap: 1.2rem; }
.champ dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); font-weight: 600; margin-bottom: .2rem; }
.champ dd { margin: 0; }
.champ a { overflow-wrap: anywhere; }
.billet dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.billet dl > .champ { grid-column: 1 / -1; }
.billet dl > .champ--demi { grid-column: auto; }
.horaires { width: 100%; border-collapse: collapse; font-size: .92rem; }
.horaires th { text-align: left; font-weight: 500; color: var(--doux); padding: .28rem 0; width: 42%; }
.horaires td { padding: .28rem 0; font-variant-numeric: tabular-nums; }
.horaires tr + tr { border-top: 1px solid #efe9de; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--encre); font-weight: 700; }
.billet-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.billet-actions .bouton { flex: 1 1 auto; }
.fiche-texte { margin-top: 1.5rem; max-width: 46rem; }
.voisines { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--ligne); }
.voisines h2 { font-size: 1.9rem; margin-bottom: 1.4rem; }

/* ===== Page introuvable ===== */
.introuvable { width: min(40rem, 100% - 2.5rem); margin: 0 auto; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); text-align: center; }
.introuvable-avion { width: 92px; height: 83px; margin: 0 auto 1.6rem; display: block; transform: rotate(-8deg); animation: plane 6s ease-in-out infinite; }
@keyframes plane { 50% { transform: rotate(-4deg) translate(6px, -6px); } }
.introuvable-code { margin: 0 0 .6rem; font-weight: 600; color: var(--or-texte); }
.introuvable h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.introuvable > p:not(.introuvable-code) { color: var(--doux); font-size: 1.06rem; margin: 0 auto 2rem; max-width: 32rem; }
.introuvable .recherche { text-align: left; }
.introuvable-liens { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; }

/* ===== Guide papier ===== */
.guide { width: var(--large); margin: 0 auto; padding: 2.5rem 0 4rem; }
.pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem; }
.pages button { border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; text-align: left; }
.pages img { width: 100%; aspect-ratio: 790/1128; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 10px rgba(18,46,67,.12); transition: transform .2s, box-shadow .2s; background: #fff; }
.pages button:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18,46,67,.18); }
.guide-ouverture { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--encre); color: #fff; border-radius: var(--rayon); padding: 1.6rem; margin-bottom: 2.5rem; }
.guide-ouverture > button { border: 0; padding: 0; background: none; cursor: zoom-in; }
.guide-ouverture img { width: 150px; aspect-ratio: 790/1128; object-fit: cover; border-radius: 3px; box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(-3deg); transition: transform .25s; }
.guide-ouverture > button:hover img { transform: rotate(0); }
.guide-ouverture h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }
.guide-ouverture p { margin: 0 0 1.2rem; color: rgba(255,255,255,.78); }
.guide-sous-titre { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--doux); margin: 0 0 1.2rem; }

/* ===== Visionneuse ===== */
.visionneuse { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(8,22,33,.94); color: #fff; }
.visionneuse[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.visionneuse::backdrop { background: rgba(8,22,33,.6); }
.visionneuse figure { margin: 0; height: 100vh; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 3.5rem 0 1rem; min-width: 0; }
.visionneuse img { max-height: calc(100vh - 7rem); max-width: 100%; object-fit: contain; border-radius: 3px; }
.visionneuse figcaption { padding-top: .8rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.visionneuse-fermer { position: absolute; top: calc(.8rem + env(safe-area-inset-top, 0px)); right: 1rem; width: 48px; height: 48px; font-size: 2rem; line-height: 1; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; cursor: pointer; z-index: 2; }
.visionneuse-nav { width: 56px; height: 56px; margin: 0 1rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; cursor: pointer; }
.visionneuse-nav:hover, .visionneuse-fermer:hover { background: rgba(255,255,255,.2); }
.visionneuse-nav.est-masque { visibility: hidden; }

/* ===== Pages légales ===== */
.legal { background: var(--papier); min-height: 100vh; display: flex; flex-direction: column; }
.legal-entete { background: var(--blanc); border-bottom: 1px solid var(--ligne); padding-top: env(safe-area-inset-top, 0px); }
.legal-retour { margin-left: auto; white-space: nowrap; color: var(--doux); text-decoration: none; font-weight: 500; }
.legal-retour:hover { color: var(--encre); }
.legal-corps { flex: 1; width: var(--large); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.legal-corps:focus { outline: none; }
.legal-onglets { position: sticky; top: 1.5rem; display: grid; gap: .2rem; }
.legal-onglets a { padding: .6rem .9rem; border-left: 2px solid var(--ligne); color: var(--doux); text-decoration: none; font-weight: 500; }
.legal-onglets a:hover { color: var(--encre); }
.legal-onglets a[aria-current="page"] { border-left-color: var(--or); color: var(--encre); font-weight: 700; background: rgba(184,137,58,.07); }
.legal-texte { max-width: 46rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; padding: clamp(1.5rem, 4vw, 3rem); }
.legal-texte h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.legal-texte section { padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid #eee8dd; }
.legal-texte h2 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; margin-bottom: .7rem; color: var(--encre); }
.legal-texte h3 { font-family: var(--sans); font-weight: 600; font-size: .98rem; margin: 1.2rem 0 .4rem; }
.legal-texte p { margin: 0 0 .9rem; line-height: 1.7; color: #2c3b46; }
.legal-texte a { color: var(--encre); overflow-wrap: anywhere; }
.legal-maj { font-size: .88rem; color: var(--doux) !important; }
.legal-intro { font-size: 1.08rem; color: var(--texte) !important; }
.legal-texte mark { background: #fbe9c4; color: #6b4b12; padding: .05rem .35rem; border-radius: 3px; font-size: .92em; }
.tableau { overflow-x: auto; margin: .4rem 0; }
.tableau table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid #eee8dd; line-height: 1.45; }
.tableau thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); font-weight: 700; }
.tableau tbody th { font-weight: 600; color: var(--encre); }
.legal-pied { background: var(--nuit); color: rgba(255,255,255,.6); font-size: .85rem; }
.legal-pied .entete-in { height: auto; padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
.lien-bouton { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.pied .lien-bouton, .legal-pied .lien-bouton { color: #fff; }
.lien-bouton:hover { text-decoration: underline; text-underline-offset: 3px; }
.entree-pied .lien-bouton { color: rgba(255,255,255,.85); }

/* Bandeau cookies */
.cookies { position: fixed; z-index: 40; left: 1.25rem; bottom: calc(1.25rem + var(--barre-mobile)); width: min(440px, calc(100% - 2.5rem)); background: var(--blanc); color: var(--texte); border: 1px solid var(--ligne); border-radius: 10px; padding: 1.2rem 1.3rem; box-shadow: 0 16px 40px rgba(11,31,46,.22); display: grid; gap: 1rem; font-size: .92rem; }
.cookies p { margin: 0; line-height: 1.55; }
.cookies a { color: var(--encre); font-weight: 600; }
.cookies-choix { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cookies-choix .bouton { min-height: 44px; }

/* ===== Pied ===== */
.pied { background: var(--nuit); color: rgba(255,255,255,.72); border-top: 3px solid var(--or); }
.pied-in { width: var(--large); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) 0 calc(1.5rem + var(--barre-mobile)); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem 3rem; font-size: .92rem; }
.pied-marque { display: grid; gap: 1.2rem; align-content: start; }
.pied-marque p { margin: 0; max-width: 24rem; line-height: 1.6; }
.pied-col h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 1rem; }
.pied-col ul, .pied-bas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.pied a { color: #fff; text-decoration: none; }
.pied-col a:hover, .pied-bas a:hover { text-decoration: underline; text-underline-offset: 3px; }
.appstore { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; transition: border-color .2s, background .2s; }
.appstore:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.appstore svg { width: 24px; height: 24px; fill: #fff; }
.appstore span { display: grid; line-height: 1.15; font-weight: 600; font-size: 1rem; }
.appstore small { font-size: .7rem; font-weight: 400; opacity: .8; }
.pied-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }
.pied-bas p { margin: 0; }
.pied-bas ul { display: flex; gap: 1.5rem; }

/* Retour en haut */
.haut { position: fixed; z-index: 24; right: 1.25rem; bottom: calc(1.25rem + var(--barre-mobile) + var(--barre-actions, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--encre); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(11,31,46,.25); transition: opacity .25s, transform .25s, background .2s; }
.haut:hover { background: var(--or); }
.haut svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.haut.est-cache { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* ===== Mobile ===== */
@media (max-width: 1100px) {
  .recherche-entete { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-image { order: -1; aspect-ratio: 16/9; }
  .hero-image::before { background: linear-gradient(0deg, var(--encre) 0%, rgba(18,46,67,0) 35%); }
  .hero-texte { padding: 1.5rem 1.25rem 2.5rem; }
  .chiffres { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .chiffres li:nth-child(3) { border-left: 0; padding-left: 0; }
  .carte-bloc { grid-template-columns: 1fr; }
  .carte-bloc .carte-geo { min-height: 0; aspect-ratio: 4/3; height: auto; }
  .geo-liste { border-left: 0; border-top: 1px solid var(--ligne); max-height: 340px; }
  .pied-in { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
  .univers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-corps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .legal-onglets { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--ligne); }
  .legal-onglets a { border-left: 0; border-bottom: 2px solid transparent; text-align: center; padding: .6rem .4rem; font-size: .92rem; }
  .legal-onglets a[aria-current="page"] { border-bottom-color: var(--or); background: none; }
  .papier { grid-template-columns: 1fr; }
  .papier-pages { min-height: 260px; order: -1; }
  .offres { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .filtres, .resultats { min-width: 0; }
  .filtres { position: static; }
  .puces { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .puce { border: 1px solid var(--ligne); border-radius: 2rem; padding: .35rem .8rem; background: var(--blanc); font-size: .88rem; }
  .puce[aria-current] { border-color: var(--encre); background: var(--encre); color: #fff; }
  .puce small { opacity: .7; }
  .fiche-grille { grid-template-columns: 1fr; }
  .billet { position: static; }
}
@media (max-width: 720px) {
  :root { --large: calc(100% - 2.5rem); --barre-mobile: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .entete { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--papier); }
  .entete-in { height: 62px; }
  .legal-entete .logo-sous { display: none; }
  .legal-retour { font-size: .92rem; }
  .logo-tuile { width: 36px; height: 36px; }
  .logo-nom { font-size: 1.28rem; }
  .carte-geo { aspect-ratio: 4/3; }
  .outils { margin-top: -.8rem; }
  .actions-mobile { display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: var(--barre-mobile); gap: .5rem; padding: .6rem 1.25rem; background: rgba(247,244,238,.97); border-top: 1px solid var(--ligne); }
  .actions-mobile .bouton { flex: 1; min-height: 46px; padding: 0 .5rem; font-size: .92rem; }
  .fiche { padding-bottom: 6rem; }
  body.single-citadela-item { --barre-actions: 70px; }
  .hero-image figcaption { bottom: auto; top: .8rem; }
  .entree-pied span { flex-basis: 100%; }
  .nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; gap: 0; background: var(--blanc); border-top: 1px solid var(--ligne); padding: 0 0 env(safe-area-inset-bottom, 0px); }
  .nav a { flex: 1; flex-direction: column; gap: .15rem; padding: .55rem 0 .5rem; font-size: .7rem; border-radius: 0; min-height: 64px; justify-content: center; }
  .nav a[aria-current="page"] { background: none; color: var(--encre); font-weight: 700; }
  .nav a[aria-current="page"] svg { stroke: var(--or); }
  .nav svg { width: 22px; height: 22px; }
  .pastille { position: absolute; top: .3rem; left: calc(50% + 6px); }
  .sortir button { margin-left: auto; }
  main { padding-bottom: 0; }
  .univers { gap: .7rem; }
  .univers a { min-height: 160px; padding: 1.1rem 1.1rem 2.8rem; }
  .univers a::before { left: 1.1rem; }
  .univers-fleche { left: 1.1rem; bottom: .9rem; }
  .defile { grid-auto-columns: 78%; }
  .recherche .bouton { padding: 0; width: 48px; }
  .bouton-txt { display: none; }
  .bouton-fleche { display: block; }
  .filtres { gap: .8rem; }
  .plus-filtres > summary { display: flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer; font-weight: 600; min-height: 44px; padding: 0 1rem; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); width: max-content; }
  .plus-filtres > summary::-webkit-details-marker { display: none; }
  .plus-filtres > summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; margin-left: .3rem; }
  .plus-filtres > summary::after { transition: transform .2s; }
  .plus-filtres[open] > summary::after { transform: rotate(45deg); }
  .plus-filtres-in { padding-top: 1rem; gap: 1rem; }
  [data-nb-filtres]:not(:empty) { background: var(--encre); color: #fff; border-radius: 2rem; font-size: .75rem; padding: .05rem .5rem; }
  .puces, .sous-puces { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; scrollbar-width: none; }
  .puces::-webkit-scrollbar, .sous-puces::-webkit-scrollbar { display: none; }
  .puce, .sous-puce { flex: none; white-space: nowrap; }
  .puces, .sous-puces { align-items: center; }
  .entree-voile { background: linear-gradient(180deg, rgba(11,31,46,.55) 0%, rgba(11,31,46,.88) 55%, rgba(11,31,46,.96) 100%); }
  .entree h1 { margin-top: 1.8rem; }
  .billet dl > .champ--demi { grid-column: 1 / -1; }
  .grille { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .carte-corps { padding: .75rem .8rem .9rem; }
  .carte-corps :is(h2, h3) { font-size: 1.12rem; }
  .carte-meta { font-size: .8rem; }
  .coeur { width: 36px; height: 36px; top: .4rem; right: .4rem; }
  .pages { grid-template-columns: repeat(3, 1fr); gap: .7rem; }
  .guide-ouverture { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.2rem; }
  .guide-ouverture img { width: 120px; }
  .visionneuse[open] { grid-template-columns: 1fr; }
  .visionneuse-nav { position: absolute; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .visionneuse-nav--prec { left: 1rem; } .visionneuse-nav--suiv { right: 1rem; }
  .visionneuse figure { padding-bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Ajouts propres à WordPress (blocs, gabarits, remises)
   ===================================================================== */

/* Les gabarits gèrent eux-mêmes leurs espacements */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, main.wp-block-group > *, .accueil > * { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.js .sans-js { display: none !important; }

/* En-tête : formulaires */
.sortir { margin: 0; }
.recherche-entete { margin: 0 0 0 .5rem; }
.entete .logo { margin-right: auto; }
@media (min-width: 721px) { .nav { margin-left: 0; } }

/* Têtes de section de l'accueil (blocs Titre + Paragraphe) */
.bloc-tete { margin-bottom: 1.8rem; gap: 1rem; }
.bloc-tete > * { margin: 0; }
.lien-fleche a { font-weight: 600; text-decoration: none; color: var(--encre); white-space: nowrap; }
p.lien-fleche::after { content: none; }
.lien-fleche a::after { content: " →"; transition: margin .2s; }
.lien-fleche a:hover::after { margin-left: .25rem; }
a.lien-fleche::after { content: " →"; }

/* Bouton « Autour de moi » (lien) */
.bouton--geo span { pointer-events: none; }

/* Remises : badge sur les cartes */
.carte-visuel { position: relative; }
.remise { position: absolute; z-index: 1; left: .6rem; bottom: .6rem; background: var(--or-clair); color: var(--nuit); font-weight: 700; font-size: .9rem; line-height: 1; padding: .42rem .6rem; border-radius: 4px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(11,31,46,.18); }
.remise--texte { font-size: .76rem; font-weight: 600; padding: .38rem .55rem; }
.carte .distance { left: auto; right: 3.6rem; }
.carte-sans-visuel { font-family: var(--serif); font-size: 3.2rem; color: var(--sauge-fonce); }

/* Remises : bandeau dans la fiche */
.billet-remise { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; background: var(--or-clair); color: var(--nuit); padding: .9rem 1.6rem; }
.billet-remise-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.billet-remise-valeur { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; text-align: right; }
.billet-sous-titre { margin: 0; font-size: 1.02rem; color: var(--texte); }
.autres-adresses { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .92rem; }
.autres-adresses li { padding-left: .9rem; border-left: 2px solid var(--ligne); }
.fiche-visuels { display: grid; gap: .8rem; }
.fiche-galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.fiche-galerie button { border: 0; padding: 0; background: #ece7dc; border-radius: 4px; overflow: hidden; cursor: zoom-in; width: 100%; aspect-ratio: 1; }
.fiche-galerie img { width: 100%; height: 100%; object-fit: cover; }
.fiche-texte > * + * { margin-top: 1rem; }

/* Filtres : listes de liens */
.puces, .sous-puces { list-style: none; margin: 0; padding: 0; }
.puce, .sous-puce { text-decoration: none; }
.puces li { display: flex; }
.puces li > .puce { flex: 1; }
.sous-puce { display: inline-block; color: var(--texte); }
.filtres-form { display: grid; gap: 1.6rem; }
.filtre-titre { margin: 0; font-weight: 600; font-size: .9rem; }
.filtre select { width: 100%; color: var(--texte); }
.sous-puces li { display: inline-flex; }

/* Liste reliée à la carte */
.geo-liste a { text-decoration: none; color: inherit; }
.geo-liste li[hidden] { display: none; }

/* Pages simples (contact, favoris, guide papier…) */
.page-simple { width: var(--large); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.page-simple > .wp-block-post-title { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0 0 1.5rem; }
.page-simple .wp-block-post-content { max-width: 100%; }
.page-simple .wp-block-post-content > :where(p, ul, ol, h2, h3) { max-width: 46rem; }
.page-simple .wp-block-post-content > * + * { margin-top: 1.1rem; }
.favoris .vide { padding-top: 1rem; }

/* Guide papier : galerie « à feuilleter » */
.wp-block-gallery.is-style-feuilleter { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem !important; }
.wp-block-gallery.is-style-feuilleter > .wp-block-image { width: auto !important; margin: 0 !important; }
.wp-block-gallery.is-style-feuilleter img { width: 100%; height: auto !important; aspect-ratio: 790/1128; object-fit: cover !important; border-radius: 3px; box-shadow: 0 2px 10px rgba(18,46,67,.12); background: #fff; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.wp-block-gallery.is-style-feuilleter img:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18,46,67,.18); }
.wp-block-gallery.is-style-feuilleter figcaption { display: none; }

/* Pages légales */
.legal-entete .entete-in { height: 76px; }
.legal-retour { margin: 0; }
.legal-retour a { color: var(--doux); text-decoration: none; font-weight: 500; white-space: nowrap; }
.legal-retour a:hover { color: var(--encre); }
.legal-texte .wp-block-post-title { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0 0 1.5rem; }
.legal-texte .wp-block-post-content > * + * { margin-top: 0; }
.legal-pied .entete-in p { margin: 0; }
.legal-pied a { color: #fff; text-decoration: none; }
.legal-pied a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-corps > .legal-texte { margin: 0; }

/* Pied (blocs Groupe, Titre, Liste) */
.pied-in > * { margin: 0; }
.pied-col h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or-clair); margin: 0 0 1rem; line-height: 1.3; }
.pied-marque > * { margin: 0; }
.pied-bas > * { margin: 0; }
.pied p { margin: 0; }

/* Page introuvable (blocs) */
.introuvable > * { margin-left: auto; margin-right: auto; }
.introuvable h1 { color: var(--encre); }
.introuvable-texte { color: var(--doux); font-size: 1.06rem; margin: 0 auto 2rem !important; max-width: 32rem; }
.introuvable .recherche .bouton--or { background: var(--encre); color: #fff; }

/* Bandeau cookies (module pcc-cookies) aux couleurs du guide */
body .pcc-cookies { left: 1.25rem; bottom: calc(1.25rem + var(--barre-mobile)); width: min(440px, calc(100% - 2.5rem)); background: var(--blanc); color: var(--texte); border: 1px solid var(--ligne); border-radius: 10px; padding: 1.2rem 1.3rem; box-shadow: 0 16px 40px rgba(11,31,46,.22); font: .92rem/1.55 var(--sans); z-index: 40; }
body .pcc-cookies p { color: var(--texte); font-size: .92rem; }
body .pcc-cookies a { color: var(--encre); }
body .pcc-cookies-choix button { min-height: 44px; border-radius: var(--rayon); font: 600 .95rem var(--sans); border: 0; }
body .pcc-cookies-choix [data-pcc-choix="non"] { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
body .pcc-cookies-choix [data-pcc-choix="oui"] { background: var(--encre); color: #fff; }
body .pcc-cookies-choix button:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* Éditeur : aperçu des blocs */
.pdv-apercu { pointer-events: none; }

@media (max-width: 960px) {
	.puces li { display: inline-flex; }
}
@media (max-width: 720px) {
	.legal-entete .entete-in { height: 62px; }
	.remise { font-size: .8rem; left: .4rem; bottom: .4rem; }
	.pied-in { gap: 2rem 1.5rem; }
	.puces { display: flex; }
}

/* Titres : encre sur fond clair, blanc sur les fonds bleu nuit */
h1, h2, h3, h4 { color: var(--encre); }
.entree h1, .hero h1, .papier h2, .billet-tete h1, .guide-ouverture h2 { color: #fff; }
.pied-col h2 { color: var(--or-clair); }

/* Chapô et questions fréquentes (blocs Détails) */
.page-chapo { font-size: 1.12rem; color: var(--doux); }
.page-simple h2.wp-block-heading { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.5rem !important; }
.wp-block-details.faq { max-width: 46rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 0; }
.wp-block-details.faq + .wp-block-details.faq { margin-top: .6rem !important; }
.wp-block-details.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--encre); list-style-position: inside; }
.wp-block-details.faq > :not(summary) { padding: 0 1.2rem 1.1rem; margin: 0; }
.page-simple .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; }

/* Focus visible : encre sur les fonds clairs (contraste 3:1 minimum), or clair sur les fonds sombres */
:focus-visible { outline-color: var(--encre); }
:is(.entree, .hero, .pied, .billet-tete, .papier, .guide-ouverture, .legal-pied, .visionneuse) :focus-visible { outline-color: var(--or-clair); }
/* Bouton « haut » caché : hors de portée du clavier */
.haut.est-cache { visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }
.haut { transition: opacity .25s, transform .25s, background .2s, visibility 0s; }

/* Compteurs des puces lisibles sur mobile */
.puce small { opacity: 1 !important; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { min-width: 560px; }

/* Bandeau cookies compact sur téléphone ; la page garde la place pour ne rien masquer */
@media (max-width: 720px) {
	body .pcc-cookies { left: .75rem; width: calc(100% - 1.5rem); bottom: calc(.75rem + var(--barre-mobile)); padding: .85rem 1rem; gap: .7rem; font-size: .86rem; }
	body .pcc-cookies p { font-size: .86rem; line-height: 1.45; }
	body .pcc-cookies-choix button { min-height: 44px; }
	body.cookies-ouvert .entree-pied { padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px)); }
	body.cookies-ouvert .pied-in { padding-bottom: calc(10.5rem + var(--barre-mobile)); }
	.entree-contenu { padding-top: 4.5rem; }
}
@media (max-width: 720px) {
	body .pcc-cookies { bottom: calc(.75rem + var(--barre-mobile) + var(--barre-actions, 0px)); }
}

/* =====================================================================
   Retours PCC du 17/11 : vidéos, textes de la maquette, verre, livre
   ===================================================================== */
.surtitre { margin: 0 0 .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
:is(.entree, .hero-video, .bandeau-video, .papier) .surtitre { color: var(--or-clair); }

/* Vidéo de fond commune */
.video-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,46,.9) 0%, rgba(11,31,46,.7) 50%, rgba(11,31,46,.35) 100%); }
.credit-video { position: absolute; z-index: 2; right: max(1.25rem, calc((100vw - 1240px) / 2)); bottom: .8rem; margin: 0; font-size: .74rem; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pause-video { z-index: 3; }

/* Haut de l'accueil en vidéo */
.hero-video { position: relative; overflow: hidden; background: var(--nuit); color: #fff; min-height: min(84vh, 760px); display: grid; align-items: center; }
.hero-video-contenu { position: relative; z-index: 1; width: var(--large); margin: 0 auto; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem); }
.hero-video-contenu > * { max-width: 40rem; }
.hero-video h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); margin-bottom: 1.2rem; color: #fff; }
.hero-video h1 em { color: var(--or-clair); }
.bandeau-texte { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.86); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-actions .bouton--clair svg { width: 14px; height: 14px; fill: currentColor; }

/* Bandeau vidéo des autres pages */
.bandeau-video { position: relative; overflow: hidden; background: var(--nuit); color: #fff; min-height: clamp(280px, 38vh, 420px); display: grid; align-items: end; }
.bandeau-contenu { position: relative; z-index: 1; width: var(--large); margin: 0 auto; padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(2.2rem, 4vw, 3rem); }
.bandeau-contenu > * { max-width: 42rem; }
.bandeau-video :is(h1, h2) { font-size: clamp(2.2rem, 4.4vw, 3.5rem); color: #fff; margin: 0 0 .8rem; }
.bandeau-video .pause-video, .hero-video .pause-video { top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* « Vos offres, près de chez vous » */
.proximite { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.proximite-in { width: var(--large); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: center; }
.proximite h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.proximite p { margin: 0; color: var(--doux); }
.proximite .recherche--hero { box-shadow: 0 1px 2px rgba(18,46,67,.05); border-color: var(--ligne); }
.proximite .proches { margin-top: 1rem; }

/* Chiffres : trois blocs */
.chiffres { grid-template-columns: repeat(3, 1fr); }

/* Encart application */
.appli { width: var(--large); margin: 0 auto clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.appli h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: .4rem; }
.appli p { margin: 0; color: var(--doux); }
.appli .surtitre { color: var(--or-texte); }
.appstore--sombre { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem .7rem 1rem; background: var(--nuit); color: #fff; border-radius: 10px; text-decoration: none; }
.appstore--sombre:hover { background: var(--encre); }
.appstore--sombre svg { width: 26px; height: 26px; fill: #fff; }
.appstore--sombre span { display: grid; line-height: 1.15; font-weight: 600; font-size: 1.05rem; }
.appstore--sombre small { font-size: .72rem; font-weight: 400; opacity: .85; }

/* Bandeau guide : surtitre + titre */
.papier h2 { margin-bottom: .8rem; }

/* Le guide en livre */
.guide-livre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.livre { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; width: clamp(240px, 26vw, 310px); min-height: clamp(330px, 36vw, 420px); padding: 2.2rem 2rem; text-align: left; background: var(--encre); color: #fff; border: 0; border-left: 8px solid #27475d; border-radius: 6px 14px 14px 6px; box-shadow: 10px 14px 30px rgba(18,46,67,.25); cursor: pointer; transition: transform .3s, box-shadow .3s; font: inherit; }
.livre:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 14px 22px 40px rgba(18,46,67,.3); }
.livre small { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); line-height: 1.6; }
.livre-titre { font-family: var(--serif); font-size: clamp(2.8rem, 4.6vw, 3.6rem); line-height: .95; letter-spacing: -.02em; }
.livre-titre b { color: var(--sauge); font-weight: 400; }
.livre em { font-family: var(--serif); font-size: 1.15rem; color: var(--or-clair); }
.guide-livre-texte h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: .6rem; }
.guide-livre-texte p { color: var(--doux); margin: 0 0 1.4rem; }
.wp-block-post-content:has(.guide-livre) .wp-block-gallery.is-style-feuilleter { display: none !important; }

/* Visionneuse : double page pour le livre */
.visionneuse-pages { display: flex; justify-content: center; gap: 4px; max-width: 100%; min-height: 0; }
.visionneuse-pages img { max-height: calc(100vh - 7rem); max-width: 100%; object-fit: contain; }
.visionneuse.est-livre .visionneuse-pages img:not([hidden]) + img:not([hidden]) { max-width: 50%; }
.visionneuse.est-livre .visionneuse-pages:has(img + img:not([hidden])) img { max-width: calc(50% - 2px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.visionneuse.film[open] { display: grid; place-items: center; grid-template-columns: 1fr; }
.visionneuse.film video { width: min(1100px, 94vw); max-height: 86vh; border-radius: 6px; background: #000; }

/* Écran d'entrée : encadré transparent (verre) */
.entree .video-fond { z-index: 0; }
.entree-voile { z-index: 0; }
.entree-contenu > * { max-width: none; }
.entree-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(2rem, 5vw, 3.5rem); }
.entree-textes h1 { margin-top: 0; }
.entree-textes .entree-texte { margin-bottom: 0; }
.verre { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); border-radius: 14px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.entree-panneau { padding: clamp(1.4rem, 3vw, 2rem); }
.entree-panneau-texte { margin: 0 0 1.3rem; font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.88); }
.entree-panneau .entree-form { max-width: none; }
.entree-panneau .champ-mdp { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }
.entree-panneau .champ-mdp input { color: #fff; }
.entree-panneau .voir-mdp { color: rgba(255,255,255,.85); }
.entree-panneau .champ-mdp:focus-within { outline-color: var(--or-clair); }
.entree-liens { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; font-size: .9rem; }
.entree-liens a { color: #fff; text-underline-offset: 3px; }
.entree-liens a:hover { color: var(--or-clair); }
.entree .erreur { color: #ffd2c4; }

@media (max-width: 960px) {
	.proximite-in { grid-template-columns: 1fr; }
	.entree-grille { grid-template-columns: 1fr; }
	.bandeau-voile { background: linear-gradient(180deg, rgba(11,31,46,.45) 0%, rgba(11,31,46,.85) 60%, rgba(11,31,46,.95) 100%); }
}
@media (max-width: 720px) {
	.hero-video { min-height: 0; }
	.hero-video-contenu { padding-top: 5rem; }
	.hero-actions .bouton { flex: 1 1 auto; }
	.chiffres { grid-template-columns: repeat(3, 1fr); }
	.chiffres li:nth-child(3) { border-left: 1px solid var(--ligne); padding-left: 1.2rem; }
	.guide-livre { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.credit-video { right: 1.25rem; }
	.bandeau-video { min-height: 260px; }
	.entree-liens { justify-content: flex-start; flex-direction: column; }
}
.bloc-tete .surtitre { margin-bottom: .5rem; }
.bloc-texte { margin: .6rem 0 0; color: var(--doux); max-width: 38rem; }
.carte-lien { margin-top: .5rem; font-size: .86rem; font-weight: 600; color: var(--or-texte); }
.carte-lien::after { content: " →"; transition: margin .2s; }
.carte:hover .carte-lien::after { margin-left: .25rem; }
.page-simple:has(.bandeau-video) { width: 100%; padding-top: 0; }
.page-simple:has(.bandeau-video) .wp-block-post-content > :not(.bandeau-video) { width: var(--large); margin-left: auto; margin-right: auto; }
.page-simple .wp-block-post-content > .bandeau-video + * { margin-top: clamp(2rem, 4vw, 3rem); }
.note-offres { width: var(--large); margin: 1.4rem auto 0; color: var(--doux); font-size: .92rem; }
.accueil > .papier { margin: clamp(1rem, 3vw, 2rem) auto 1.5rem; }
.accueil > .appli { margin: 0 auto clamp(3rem, 6vw, 5rem); }
/* Entrée sur téléphone : l'encadré du mot de passe vient juste après le titre */
@media (max-width: 720px) {
	.entree-textes { display: contents; }
	.entree-grille { gap: 1.2rem; margin-top: 1.6rem; }
	.entree-textes .surtitre { order: 1; margin-bottom: -.4rem; }
	.entree-textes h1 { order: 2; font-size: clamp(2rem, 9vw, 2.4rem); margin: 0; }
	.entree-panneau { order: 3; }
	.entree-textes .entree-texte { order: 4; font-size: 1rem; }
	.entree-contenu { padding-top: 4.2rem; }
}
.livre--couverture { padding: 0; min-height: 0; width: clamp(230px, 24vw, 320px); border-left: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; background: #0b1f2e; }
.livre--couverture img { display: block; width: 100%; height: auto; }
.livre--couverture::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0)); }
.grille--selection { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grille--selection { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Carte d'achat */
.encart-carte { width: var(--large); margin: clamp(2.5rem, 5vw, 4rem) auto 1rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.accueil > .encart-carte { margin: clamp(2.5rem, 5vw, 4rem) auto 1rem; }
.encart-carte h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: .6rem; }
.encart-carte p { color: var(--doux); margin: 0 0 1.4rem; }
.encart-carte-visuel img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 50px rgba(11,31,46,.28); transform: rotate(-2deg); transition: transform .3s; }
.encart-carte-visuel:hover img { transform: rotate(0); }
.carte-privilege { max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.carte-zoom { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.carte-privilege img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 28px 60px rgba(11,31,46,.3); }
.note-carte { text-align: center; color: var(--doux); font-size: .92rem; }
.page-simple:has(.carte-privilege) .page-chapo { text-align: center; }
@media (max-width: 960px) { .encart-carte { grid-template-columns: 1fr; } .encart-carte-visuel { order: -1; } }

/* Formulaires sur vidéo */
.form-video { position: relative; overflow: hidden; background: var(--nuit); color: #fff; min-height: min(100vh, 900px); display: grid; align-items: center; }
.form-video-in { position: relative; z-index: 1; width: var(--large); margin: 0 auto; padding: clamp(5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-video h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); color: #fff; margin: 0 0 1rem; }
.form-video-panneau { padding: clamp(1.4rem, 3vw, 2rem); }
.form-video .pause-video { top: calc(1rem + env(safe-area-inset-top, 0px)); }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.formulaire > * { grid-column: 1 / -1; }
.form-champ:not(.form-champ--large) { grid-column: auto; }
.form-champ { display: grid; gap: .35rem; min-width: 0; }
.form-champ label { font-weight: 600; font-size: .9rem; color: #fff; }
.form-champ :is(input, select, textarea) { width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--rayon); background: rgba(255,255,255,.12); color: #fff; padding: .7rem .9rem; font-size: 1rem; }
.form-champ select option { color: var(--texte); }
.form-champ textarea { resize: vertical; min-height: 110px; }
.form-champ :is(input, select, textarea):focus { outline: 2px solid var(--or-clair); outline-offset: 2px; border-color: var(--or-clair); }
.form-champ [aria-invalid="true"] { border-color: #ffb4a2; }
.form-aide { margin: 0; font-size: .8rem; color: rgba(255,255,255,.75); }
.form-erreur { margin: 0; font-size: .85rem; color: #ffd2c4; font-weight: 600; }
.form-requis, .form-rgpd { margin: 0; font-size: .82rem; color: rgba(255,255,255,.78); }
.form-rgpd a { color: #fff; }
.formulaire .bouton { justify-self: start; min-width: 12rem; }
.form-retour { border-radius: var(--rayon); padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.form-retour p { margin: 0; }
.form-retour--ok { background: rgba(181,210,201,.25); border: 1px solid var(--sauge); }
.form-retour--erreur { background: rgba(255,180,162,.18); border: 1px solid #ffb4a2; }
.form-retour a { color: #fff; }
.form-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-formulaire > * { margin: 0; }
.page-simple:has(.form-video) { width: 100%; padding: 0; }
.faq-titre { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }
.fiche-signaler { margin: 1.2rem 0 0; font-size: .9rem; }
.fiche-signaler a { color: var(--doux); }
@media (max-width: 960px) { .form-video-in { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .formulaire { grid-template-columns: 1fr; } .form-champ:not(.form-champ--large) { grid-column: 1 / -1; } .formulaire .bouton { width: 100%; } }
.form-video-panneau.verre, .entree-panneau.verre { background: rgba(11,31,46,.42); }

/* Contrôle visuel du 17/11 : pages avec formulaire sur vidéo */
.page-simple:has(.form-video) .wp-block-post-content > :not(.form-video) { width: var(--large); margin-left: auto; margin-right: auto; }
.page-simple:has(.form-video) .wp-block-post-content > :last-child { margin-bottom: clamp(3rem, 6vw, 5rem); }
.page-simple:has(.form-video) .wp-block-details.faq { max-width: 46rem; }
.form-video { min-height: 0; }
.form-champ:has(select) { grid-column: 1 / -1; }
.form-champ:has(select) select { max-width: 30rem; }
:is(.form-video, .bandeau-video, .hero-video, .entree) .surtitre { text-shadow: 0 1px 8px rgba(11,31,46,.7); }
@media (max-width: 960px) {
	.form-video .bandeau-voile, .bandeau-video .bandeau-voile, .hero-video .bandeau-voile { background: linear-gradient(180deg, rgba(11,31,46,.78) 0%, rgba(11,31,46,.85) 55%, rgba(11,31,46,.95) 100%); }
}
/* Carte d'achat : bouton de téléchargement */
.page-simple .wp-block-buttons.telecharger-carte { justify-content: center; margin-top: 1.6rem; }
.form-video .surtitre { color: var(--or-clair); }
.form-champ:has(select) select { max-width: none; }
/* La mention du film ne chevauche jamais le texte des bandeaux */
.bandeau-contenu { padding-bottom: clamp(3rem, 5vw, 3.6rem); }
.form-video-in { padding-bottom: clamp(3.4rem, 6vw, 5rem); }
.hero-video-contenu { padding-bottom: clamp(3.6rem, 7vw, 5rem); }

/* Contrôle de l'accueil du 17/11 */
/* 1. Liens des têtes de section alignés sur le bas du titre */
.bloc-tete { align-items: flex-end !important; }
/* 2. Surtitre de l'encart carte : doré comme les autres */
.encart-carte .surtitre { color: var(--or-texte); margin-bottom: .9rem; }
/* 3. Carte d'achat de l'accueil : plus mesurée, et de l'air avant le bandeau du guide */
.encart-carte-visuel { justify-self: center; width: min(100%, 520px); }
.encart-carte-visuel img { transform: rotate(-1.5deg); }
.accueil > .encart-carte { margin: clamp(3rem, 6vw, 5rem) auto clamp(3rem, 6vw, 4.5rem); }
/* 4. Visuels au format bandeau : fond flouté tiré du visuel, plus de bandes vides */
.carte-visuel[style*="--fond"]::before { content: ""; position: absolute; inset: -12px; background: var(--fond) center / cover no-repeat; filter: blur(14px) saturate(1.1); opacity: .5; }
.carte-visuel img { position: relative; }
/* 5. Cartes des domaines : moins de vide, titres longs mieux coupés */
.univers a { min-height: 150px; }
/* Mots entiers, jamais coupés par un tiret (« Adresses d'exception ») : retour à la ligne entre les mots seulement. */
.univers strong { hyphens: manual; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
@media (max-width: 720px) {
	.univers strong { font-size: 1.15rem; }
	.univers a { min-height: 0; padding-bottom: 2.6rem; }
	.encart-carte-visuel img { transform: none; }
}
/* Bandeau du guide sur mobile : les pages en éventail restent dans leur zone */
.papier-pages { overflow: hidden; }
@media (max-width: 960px) {
	.papier-pages { min-height: 0; aspect-ratio: 4 / 3; }
	.papier-pages img { width: 36%; }
}

/* « Vos offres, près de chez vous » : panneau de recherche flottant sur le bas de la vidéo */
.hero-video-contenu { padding-bottom: clamp(7rem, 11vw, 8.5rem); }
.hero-video .credit-video { bottom: clamp(5.4rem, 8vw, 6.4rem); }
.proximite { position: relative; z-index: 3; background: transparent; border: 0; margin-top: clamp(-5rem, -6vw, -3.5rem); }
.proximite-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.2rem 2.5rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem); background: var(--blanc); border: 1px solid var(--ligne); border-radius: 14px; box-shadow: 0 24px 60px rgba(11,31,46,.16); }
.proximite-tete h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 .35rem; }
.proximite-tete p { margin: 0; color: var(--doux); }
.proximite .recherche--hero { max-width: none; box-shadow: none; border-color: var(--ligne); background: var(--papier); }
.proximite-raccourcis { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-top: 1.1rem; border-top: 1px solid var(--ligne); }
.proximite-sep { width: 1px; height: 1.4rem; background: var(--ligne); margin: 0 .35rem; }
.proximite-label { font-size: .88rem; color: var(--doux); margin-right: .1rem; }
.proximite-villes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pastille-lien { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .95rem; border: 1px solid var(--ligne); border-radius: 2rem; background: var(--papier); color: var(--encre); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.pastille-lien:hover { border-color: var(--encre); background: var(--blanc); }
.pastille-lien--geo { background: var(--encre); border-color: var(--encre); color: #fff; font-weight: 600; }
.pastille-lien--geo:hover { background: var(--nuit); color: #fff; }
.pastille-lien svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.accueil > .chiffres { padding-top: clamp(2.2rem, 4vw, 3rem); }
@media (max-width: 960px) {
	.proximite-in { grid-template-columns: 1fr; }
	.proximite { width: auto; }
}
@media (max-width: 720px) {
	.proximite { margin-top: -2.5rem; }
	.proximite-sep { display: none; }
	.proximite-raccourcis { gap: .5rem; }
	.proximite-label { width: 100%; margin-top: .3rem; }
	.hero-video-contenu { padding-bottom: 5.5rem; }
	.hero-video .credit-video { bottom: 3.6rem; }
}

/* Page qui se termine par un formulaire sur vidéo : pas de bande vide avant le pied */
.page-simple:has(.form-video) .wp-block-post-content > .form-video:last-child { margin-bottom: 0; }
.accueil > .proximite { margin-top: clamp(-5rem, -6vw, -3.5rem); }
@media (max-width: 720px) {
	.accueil > .proximite { margin-top: -2.5rem; }
	.proximite-raccourcis { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 1.1rem 1rem 0; }
	.proximite-raccourcis::-webkit-scrollbar { display: none; }
	.proximite-label { width: auto; margin-top: 0; white-space: nowrap; }
	.proximite-villes { flex-wrap: nowrap; }
	.pastille-lien { white-space: nowrap; flex: none; }
}

/* Retours PCC du 18/11 : « Airbus Helicopters » jamais coupé, vidéo plus visible sur téléphone */
:is(.entree, .hero-video) h1 em { white-space: nowrap; }
@media (max-width: 960px) {
	.form-video .bandeau-voile, .bandeau-video .bandeau-voile, .hero-video .bandeau-voile { background: linear-gradient(180deg, rgba(11,31,46,.3) 0%, rgba(11,31,46,.5) 50%, rgba(11,31,46,.78) 100%); }
	:is(.entree, .hero-video, .bandeau-video, .form-video) :is(h1, h2, p) { text-shadow: 0 1px 10px rgba(11,31,46,.75); }
}
@media (max-width: 720px) {
	.entree-voile { background: linear-gradient(180deg, rgba(11,31,46,.3) 0%, rgba(11,31,46,.5) 50%, rgba(11,31,46,.75) 100%); }
	.entree-panneau.verre, .form-video-panneau.verre { background: rgba(11,31,46,.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
@media (max-width: 960px) { .proximite-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .entree-grille { grid-template-columns: minmax(0, 1fr); } .entree-panneau .champ-mdp input { min-width: 0; width: 100%; } }

/* Horaires propres à un magasin (fiches à plusieurs adresses) */
.horaires-magasin { margin: .35rem 0 .2rem; }
.horaires-magasin summary { cursor: pointer; color: var(--doux); font-size: .88rem; }
.horaires-magasin summary:hover { color: var(--encre); }
.horaires-magasin .horaires { margin-top: .35rem; }
.horaires-portee { margin: 0 0 .4rem; font-size: .86rem; color: var(--doux); }
