/* Marché de Noël du Château de Coppet — mêmes couleurs que l'affiche (voir DA-2026/CHARTE.md) */
:root {
  --sapin: #1E3A2F;
  --sapin-clair: #2A4A3D;
  --creme: #F3ECDF;
  --papier: #E7DDCB;
  --or: #C29B57;
  --bordeaux: #7B2230;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Jost", Futura, "Gill Sans", system-ui, sans-serif;
  --largeur: 1120px;
  --gouttiere: clamp(16px, 5vw, 48px);
  --entete: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sapin); color: var(--creme); font-family: var(--serif); font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.05; }
em { font-style: italic; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--creme); color: var(--sapin); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }

.eyebrow { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--or); margin: 0 0 18px; }
.eyebrow-accent { color: var(--bordeaux); }

.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid var(--or); background: var(--or); color: var(--sapin); transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--or); }
.btn-ghost { background: transparent; color: var(--or); }
.btn-ghost:hover { background: var(--or); color: var(--sapin); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--entete); padding: 0 var(--gouttiere); background: rgba(30, 58, 47, .94); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(194, 155, 87, .35); }
.brand { display: block; }
.brand img { height: 38px; width: auto; }
.top nav { display: flex; gap: 28px; font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover { border-color: var(--or); color: var(--or); }

/* Accueil */
/* L'accueil remplit l'écran ; le château prend la place restante, posé sur le bas */
.hero { display: flex; flex-direction: column; align-items: center; min-height: calc(100svh - var(--entete)); text-align: center; padding: clamp(32px, 6vh, 80px) var(--gouttiere) 0; overflow: hidden; }
/* Optique « texte » de Bodoni Moda : déliés moins fins en très grand */
.hero h1, .dates .jours { font-variation-settings: "opsz" 28; }
.hero h1 { font-size: clamp(2.4rem, min(7.6vw, 9vh), 5.6rem); letter-spacing: -.01em; }
.hero h1 span { display: block; margin-top: .25em; font-size: .46em; font-style: italic; color: var(--or); }
.filet { display: flex; align-items: center; justify-content: center; gap: 14px; margin: clamp(14px, 3vh, 30px) auto; color: var(--or); font-size: .8rem; }
.filet::before, .filet::after { content: ""; width: 70px; height: 1px; background: var(--or); }
.dates { margin: 0; }
.dates .jours { display: block; font-size: clamp(2.6rem, min(8.4vw, 10vh), 6.2rem); line-height: 1; }
.dates .mois { display: block; margin-top: 14px; font-family: var(--sans); font-weight: 600; font-size: clamp(.85rem, 2vw, 1.05rem); letter-spacing: .42em; text-transform: uppercase; color: var(--or); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: clamp(20px, 4vh, 42px) 0 0; }
/* Décor de l'accueil, repris de l'affiche : double cadre, étoiles, sapins */
.hero { position: relative; }
.hero > :not(.decor) { position: relative; z-index: 1; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border: solid var(--or); border-bottom: 0; }
.hero::before { inset: clamp(12px, 2vw, 28px) clamp(12px, 2vw, 28px) 0; border-width: 1px 1px 0; opacity: .7; }
.hero::after { inset: calc(clamp(12px, 2vw, 28px) + 6px) calc(clamp(12px, 2vw, 28px) + 6px) 0; border-width: .5px .5px 0; opacity: .45; }
.decor { position: absolute; inset: 0; pointer-events: none; }
.decor i { position: absolute; left: var(--x); top: var(--y); width: var(--t); aspect-ratio: 1; background: var(--or); clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%); animation: scintille 4s ease-in-out infinite; animation-delay: calc(var(--t) * -.37s); }
@keyframes scintille { 50% { opacity: .35; transform: scale(.8); } }
.sapin { position: absolute; bottom: 0; left: var(--x); height: var(--h); width: auto; display: none; }
.sapin-d { left: auto; right: var(--x); }
@media (min-width: 1100px) and (min-aspect-ratio: 4/3) { .sapin { display: block; } }
@media (max-width: 820px) { .decor i:nth-child(n+4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .decor i { animation: none; } }

.hero .chateau { flex: 1 0 140px; height: 0; width: min(100%, 1120px); margin-top: clamp(28px, 5vh, 64px); object-fit: contain; object-position: center bottom; }

/* Programme */
.programme { background: var(--creme); color: var(--sapin); text-align: center; padding: clamp(64px, 9vw, 110px) var(--gouttiere); border-top: 1px solid var(--or); }
.programme h2, .infos h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: clamp(40px, 6vw, 64px); }
.jours-grille { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--largeur); margin: 0 auto; }
.jour { padding: 0 clamp(16px, 3vw, 40px); }
.jour + .jour { border-left: 1px solid var(--or); }
.jour h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; }
.heures { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; margin: 10px 0 28px; }
.jour ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; font-size: 1.25rem; }
.jour li span { display: block; font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 2px; }

/* Calendrier de l'Avent */
.avent { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: var(--largeur); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gouttiere); }
.avent h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 24px; }
.avent h2 em { display: block; color: var(--or); }
.avent p:not(.eyebrow) { max-width: 30em; margin: 0 0 32px; }
.fenetres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 22px); }
.fenetres li { aspect-ratio: 3 / 5; border: 1px solid var(--or); border-radius: 999px 999px 0 0; outline: 1px solid rgba(194, 155, 87, .45); outline-offset: 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; font-style: italic; font-size: 1.6rem; color: var(--or); background: linear-gradient(var(--sapin-clair), var(--sapin-clair)) top / 100% 100% no-repeat, var(--or); transition: background-size .6s ease, color .6s ease; }
/* Une fenêtre « ouverte » (allumée), les autres s'ouvrent au survol */
.fenetres li:nth-child(2), .avent:hover .fenetres li { background-size: 100% 38%; color: var(--sapin); }
@media (prefers-reduced-motion: reduce) { .fenetres li { transition: none; } }

/* Infos pratiques */
.infos { background: var(--creme); color: var(--sapin); padding: clamp(64px, 9vw, 110px) var(--gouttiere); text-align: center; }
.infos-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); max-width: var(--largeur); margin: 0 auto; text-align: left; }
.infos-grille > div { border-top: 1px solid var(--or); padding-top: 22px; }
.infos dt { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 12px; }
.infos dd { margin: 0 0 10px; }
.lien { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .08em; color: var(--bordeaux); }

/* Contact */
.contact { text-align: center; padding: clamp(64px, 9vw, 110px) var(--gouttiere); }
.contact h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: 18px; }
.contact h2 em { display: block; color: var(--or); }
.contact p { margin: 0 0 10px; }
.email { display: inline-block; margin-top: 14px; font-size: clamp(1.3rem, 4vw, 2rem); font-style: italic; color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }

/* Pied de page */
.pied { text-align: center; padding: 0 var(--gouttiere) 40px; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; }
.pied img { width: min(100%, 420px); margin: 0 auto 28px; opacity: .8; }
.pied p { margin: 6px 0; }
.pied a { color: var(--or); text-decoration: none; }
.mentions { opacity: .7; }

@media (max-width: 820px) {
  .top nav { display: none; }
  .top { justify-content: center; }
  .jours-grille, .infos-grille { grid-template-columns: 1fr; }
  .jour + .jour { border-left: 0; border-top: 1px solid var(--or); margin-top: 32px; padding-top: 32px; }
  .avent { grid-template-columns: 1fr; text-align: center; }
  .avent p:not(.eyebrow) { margin-inline: auto; }
  .fenetres { width: 100%; max-width: 320px; margin: 0 auto; gap: 16px; }
  .fenetres li { outline-offset: 4px; }
}
