/* Maquette UI UX Pro Max : peau par-dessus structure.css (copie de la mise en page existante).
   Parti pris : livre d'images de nuit douce. Vert d'eau et encre profonde, rose du logo, lueur de lanterne.
   Titres en empattements italiques, étiquettes en Fredoka, vignettes en arche, bords festonnés (ourlet de fantôme),
   boutons « autocollant » à ombre pleine. Aucun dégradé violet-bleu, aucune carte arrondie identique. */

:root {
  --bg: #D9EAE3;
  --surface: #EEF6F2;
  --surface-tint: #C6DFD6;
  --header-bg: #C6DFD6;
  --ink: #14303A;
  --ink-2: #2A4650;
  --muted: #3A5760;
  --brand: #1B5663;
  --brand-hover: #123F4A;
  --pink: #EC65BB;
  --pink-text: #9E2670;
  --on-pink: #14303A;
  --cta: #EC65BB;
  --cta-hover: #F28CCC;
  --on-cta: #14303A;
  --on-brand: #EEF6F2;
  --nav-link: #14303A;
  --nav-current: #14303A;
  --glow: #F6C85F;
  --border: #9CC2B5;
  --border-control: #4E7A6E;
  --focus: #14303A;
  --error: #A3002F;
  --pin-bg: #14303A;
  --pin-ink: #EEF6F2;
  --map-bg: #14303A;
  --backdrop: rgba(14, 31, 38, 0.74);
  --shadow: 4px 4px 0 var(--ink);
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 22px 22px 6px 22px;
  --hem: radial-gradient(circle at 12px 0, transparent 11px, var(--bg) 11.5px) 0 0 / 24px 14px repeat-x;
}

[data-theme="night-pastel"] {
  --bg: #0F222A;
  --surface: #173540;
  --surface-tint: #1F4553;
  --header-bg: #173540;
  --ink: #E9F3EF;
  --ink-2: #CFE2DB;
  --muted: #A9C7BE;
  --brand: #8ED4C4;
  --brand-hover: #B3E6DA;
  --pink-text: #F08CCB;
  --on-cta: #14303A;
  --nav-link: #E9F3EF;
  --nav-current: #F6C85F;
  --border: #2D5967;
  --border-control: #86B3A6;
  --focus: #F6C85F;
  --error: #FFB3C8;
  --backdrop: rgba(5, 14, 18, 0.82);
  --shadow: 4px 4px 0 #06141A;
}

body { font-family: var(--font-body); }
body::before, body::after, :root:not([data-theme="night-pastel"]) body::before, :root:not([data-theme="night-pastel"]) body::after,
[data-theme="night-pastel"] body::after { content: none !important; display: none !important; }
:root:not([data-theme="night-pastel"]) .hero-text { background: none; }

/* Titres : empattements italiques, l'accent est en rose foncé */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: -0.01em; color: var(--ink); }
h1 { line-height: 1.05; }
.accent { color: var(--pink-text); font-style: italic; }
.eyebrow { font-family: var(--font-body); font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8125rem; color: var(--brand); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--glow); border-radius: 2px; }
.lead { color: var(--ink-2); }
.lead strong { font-family: var(--font-display); font-style: italic; font-size: 1.25em; font-weight: 700; color: var(--ink); line-height: 1.25; display: block; }

/* En-tête : bande vert d'eau et ourlet de fantôme en dessous */
.site-header { background: var(--header-bg); border-bottom: 0; position: sticky; top: 0; z-index: 20; padding-bottom: 0; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: radial-gradient(circle at 12px 0, var(--header-bg) 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
.brand-logo { height: 56px; width: auto; }
.main-nav a { font-family: var(--font-body); font-weight: 600; border-radius: 999px; }
.main-nav a:hover { background: var(--surface); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
[data-theme="night-pastel"] .main-nav a[aria-current="page"] { background: var(--glow); color: #14303A; }
.main-nav a.nav-cta { background: var(--cta); color: var(--on-cta); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.main-nav a.nav-cta:hover { background: var(--cta-hover); }
[data-theme="night-pastel"] .main-nav a.nav-cta { border-color: #06141A; box-shadow: 3px 3px 0 #06141A; }
.icon-btn { border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--ink); }
[data-theme="night-pastel"] .icon-btn { border-color: var(--border-control); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--glow); color: #14303A; border-color: var(--ink); }

/* Boutons « autocollant » : contour encre, ombre pleine, enfoncés au clic */
.btn { font-family: var(--font-body); font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease; }
[data-theme="night-pastel"] .btn { border-color: #06141A; box-shadow: 3px 3px 0 #06141A; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--brand); }
[data-theme="night-pastel"] .btn-primary { background: var(--glow); color: #14303A; border-color: #06141A; }
[data-theme="night-pastel"] .btn-primary:hover { background: #FFDB85; }
.btn-cta, .btn-secondary { background: var(--cta); color: var(--on-cta); }

/* Accueil : texte à gauche, deux vignettes en arche décalées à droite */
.hero { gap: clamp(24px, 4vw, 64px); padding-block: clamp(24px, 5vw, 56px); }
.hero-text { max-width: 36rem; }
.gate-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.park-gate { position: relative; display: block; border: 3px solid var(--ink); border-radius: 999px 999px 10px 10px; overflow: hidden; background: var(--surface);
  aspect-ratio: 3 / 4; box-shadow: 6px 6px 0 var(--ink); }
[data-theme="night-pastel"] .park-gate { border-color: var(--border-control); box-shadow: 6px 6px 0 #06141A; }
.park-gate:nth-child(2) { margin-top: 48px; border-radius: 10px 10px 999px 999px; }
.park-gate .gate-img { width: 100%; height: 100%; object-fit: cover; }
.gate-beams { display: none; }
.gate-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: 88%;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.9375rem; }
.park-gate:nth-child(2) .gate-label { bottom: auto; top: 14px; }
.park-gate:hover .gate-img, .park-gate:focus-visible .gate-img { transform: scale(1.04); }
.gate-img { transition: transform 400ms ease; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.park-gate:nth-child(1) { animation: flotte 7s ease-in-out infinite; }

/* Sections : tête de page avec filet lanterne */
.section-head h1 { position: relative; padding-bottom: 14px; }
.section-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 3px; background: var(--glow); }
.section-intro { color: var(--ink-2); }
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
[data-theme="night-pastel"] .panel { border-color: var(--border-control); }

/* Carte des parcs */
.parks { background: var(--surface-tint); border-radius: 0; position: relative; margin-top: 40px; padding-top: 28px; }
.parks::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px;
  background: radial-gradient(circle at 12px 14px, var(--surface-tint) 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
.park-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px 18px 4px 18px; box-shadow: 3px 3px 0 var(--ink); }
.park-card.is-selected { background: var(--glow); color: #14303A; }
.park-card.is-selected * { color: #14303A; }
[data-theme="night-pastel"] .park-card { border-color: var(--border-control); box-shadow: none; }
.parks-map { border: 2px solid var(--ink); border-radius: 22px 6px 22px 6px; }
.park-pin { background: var(--glow); border-color: var(--ink); }

/* Plan : repères en arche, bulle en billet */
.plan-item { border: 2px solid var(--ink); background: var(--surface); border-radius: 999px 999px 8px 8px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.plan-item:nth-child(even) { border-radius: 8px 8px 999px 999px; }
.plan-item.is-active { background: var(--glow); }
.plan-item.is-active .plan-item-label, .plan-item.is-active strong { color: #14303A; }
[data-theme="night-pastel"] .plan-item { border-color: var(--border-control); box-shadow: none; }
.map-image { border: 3px solid var(--ink); border-radius: 22px 6px 22px 6px; box-shadow: 6px 6px 0 var(--ink); }
[data-theme="night-pastel"] .map-image { border-color: var(--border-control); box-shadow: 6px 6px 0 #06141A; }
.pin { background: var(--glow); color: #14303A; border: 3px solid var(--ink); border-radius: 50% 50% 50% 8px; }
.pin.is-active, .pin:hover { background: var(--cta); }
.pin-label { background: var(--ink); color: var(--surface); border-radius: 999px; }
.pin-bubble { background: var(--surface); border: 2px solid var(--ink); border-radius: 22px 22px 6px 22px; box-shadow: var(--shadow); }
.bubble-thumb { border-radius: 999px 999px 8px 8px; }
.modal { border: 3px solid var(--ink); border-radius: 22px 22px 6px 22px; background: var(--surface); color: var(--ink); }
.modal-image { border-radius: 0; }

/* Réservation : calendrier en bulles, billet perforé */
.calendar { background: var(--surface); border: 2px solid var(--ink); border-radius: 22px 6px 22px 6px; box-shadow: var(--shadow); padding: var(--s-4); }
.calendar-table th { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.day { border-radius: 50%; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
[data-theme="night-pastel"] .day[aria-pressed="true"] { background: var(--glow); color: #14303A; }
.day.in-range:not(.range-start):not(.range-end) { background: var(--glow); color: #14303A; border-radius: 0; }
.day[aria-current="date"] { outline: 3px dotted var(--pink-text); outline-offset: -4px; }
.booking-form { border-radius: 6px 22px 6px 22px; }
.field input, .field select, .field textarea { background: var(--surface); border: 2px solid var(--border-control); border-radius: 8px; color: var(--ink); }
.total { font-family: var(--font-display); font-style: italic; font-weight: 700; }
.total output { color: var(--pink-text); font-size: 1.5em; }
.ticket { background: var(--glow); color: #14303A; border: 3px dashed #14303A; border-radius: 8px;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket * { color: #14303A; }
.ticket h2 { font-style: italic; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--surface); position: relative; margin-top: 56px; }
[data-theme="night-pastel"] .site-footer { background: #0A171D; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px;
  background: radial-gradient(circle at 12px 14px, var(--ink) 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
[data-theme="night-pastel"] .site-footer::before { background: radial-gradient(circle at 12px 14px, #0A171D 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
.site-footer a, .site-footer p, .site-footer cite { color: #E3EFEA; }
.site-footer a:hover { color: var(--glow); }
.footer-project { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; }

@media (max-width: 719px) {
  .gate-stage { gap: 10px; }
  .park-gate:nth-child(2) { margin-top: 28px; }
  .gate-label { font-size: 0.8125rem; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .park-gate:nth-child(1) { animation: none; }
  .btn, .gate-img { transition: none; }
}

/* Mise en page de l'accueil (écrase la grille centrée de structure.css) */
.hero { justify-items: start; text-align: left; align-items: center; }
.lead { margin-inline: 0; max-width: 52ch; }
.gate-stage { margin: 0; padding: 0 0 24px; overflow: visible; width: 100%; }
.park-gate { width: 100%; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .gate-stage { grid-template-columns: 1fr 1fr; gap: 20px; } }
.hero-text *, .accent { text-shadow: none !important; background: none !important; }

@media (max-width: 899px) {
  .site-header { position: static; }
  .calendar { padding: var(--s-3) 0; }
  .calendar-head { padding-inline: var(--s-3); }
  .calendar-table { border-spacing: 0; }
  .calendar-table td { padding: 0; }
  .day { min-width: 48px; width: 100%; }
}
