/* ───────── Polices (servies par le site lui-même : aucune demande à un autre serveur). Licence libre SIL OFL. ───────── */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/polices/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/polices/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/polices/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/polices/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/polices/jost-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/polices/jost-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ───────── Base ───────── */
:root {
  --ivoire: #f8f3ea;
  --creme: #f0e7d8;
  --sable: #dcc9ab;
  --or: #b08a4f;
  --or-clair: #d9b97c;
  --or-texte: #7d5e2b; /* doré pour le texte sur fond clair : lisible sur ivoire comme sur crème (contraste ≥ 4,8:1) */
  --anneau: #7d5e2b; /* couleur de l'anneau de focus (clavier) ; plus claire sur les fonds sombres */
  --or-bouton: #8f6d38; /* fond des boutons dorés : texte blanc lisible */
  --terre: #8c573a;
  --cacao: #2b1d15;
  --cacao-doux: #4a372b;
  --texte: #3b2b21;
  --gris: #7b6a5c;
  --rouge: #a23b2a;
  --vert: #3e6b4a;
  --titres: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --corps: "Jost", "Helvetica Neue", Arial, sans-serif;
  --rayon: 4px;
  --ombre: 0 24px 60px -28px rgba(43, 29, 21, .45);
  /* frise géométrique (losanges et triangles) */
  --frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Cg fill='none' stroke='%23b08a4f' stroke-width='1'%3E%3Cpath d='M0 8 8 1l8 7-8 7z'/%3E%3Cpath d='M16 8l8-7 8 7-8 7z' /%3E%3Cpath d='M32 8l8-7 8 7-8 7z'/%3E%3C/g%3E%3Cg fill='%23b08a4f'%3E%3Cpath d='M8 5.5 10.8 8 8 10.500 5.200 8z'/%3E%3Cpath d='M40 5.5 42.800 8 40 10.500 37.200 8z'/%3E%3Ccircle cx='24' cy='8' r='1.600'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after {
  box-sizing: border-box;
  /* Chiffres alignés partout (la police des titres dessine sinon des chiffres « à l'ancienne », où 1 ressemble à I).
     !important parce que le raccourci « font: » remet ce réglage à zéro. Pour des chiffres en colonnes : --chiffres. */
  font-variant-numeric: var(--chiffres, lining-nums) !important;
}
/* Fond sombre derrière la page : c'est la couleur que Safari (iPhone) donne à la zone de l'heure,
   et celle qu'on voit quand on tire la page au-delà du haut (accueil sombre) ou du bas (pied sombre). */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; background: var(--cacao); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--terre); text-underline-offset: 3px; }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 500; margin: 0; color: var(--cacao); line-height: 1.12; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--anneau); outline-offset: 3px; }
.hero, .citation, .lieu, .pied, .recap, .page-simple__tete, .tete, .connexion, .nav:not(.nav--plein) { --anneau: var(--or-clair); }
.insecable { white-space: nowrap; }

.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cacao); color: #fff; padding: 10px 16px; }
.evitement:focus { left: 8px; }

.conteneur { width: min(1160px, 100% - 48px); margin-inline: auto; }
.conteneur--etroit { width: min(720px, 100% - 48px); margin-inline: auto; }
.conteneur .conteneur--etroit { width: min(720px, 100%); }
.centre { text-align: center; }
.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }

.surtitre {
  font-size: 12.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--or-texte); margin: 0 0 18px;
}
.surtitre--clair { color: var(--or-clair); }
.titre { font-size: clamp(34px, 5.2vw, 60px); margin-bottom: 26px; letter-spacing: -.005em; }
.titre em { font-style: italic; color: var(--terre); font-weight: 400; }
.titre--clair { color: var(--ivoire); }
.texte { color: var(--cacao-doux); }
.texte--grand { font-size: clamp(18px, 2vw, 21px); }
.texte--clair { color: rgba(248, 243, 234, .82); }

.frise { height: 16px; background: var(--frise) center / 48px 16px repeat-x; opacity: .7; position: absolute; left: 0; right: 0; top: 28px; }
.frise--sombre { opacity: .55; }

/* ───────── Boutons ───────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font: 500 13.5px/1.2 var(--corps); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--ivoire); background: var(--cacao); border: 1px solid var(--cacao); border-radius: 999px;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.bouton:hover { background: var(--terre); border-color: var(--terre); transform: translateY(-1px); }
.bouton--or { background: var(--or-bouton); border-color: var(--or-bouton); color: #fff; }
.bouton--or:hover { background: #7a5c2e; border-color: #7a5c2e; }
.bouton--contour { background: transparent; color: var(--cacao); border-color: var(--sable); }
.bouton--contour:hover { background: var(--creme); border-color: var(--or); color: var(--cacao); }
.bouton--contour-clair { background: transparent; color: var(--ivoire); border-color: rgba(248, 243, 234, .45); }
.bouton--contour-clair:hover { background: var(--ivoire); color: var(--cacao); border-color: var(--ivoire); }
.bouton--petit { min-height: 42px; padding: 10px 20px; font-size: 12px; }
.bouton--large { width: 100%; min-height: 60px; font-size: 14.5px; }
.bouton[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ───────── Navigation ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: var(--ivoire);
  transition: background .35s, box-shadow .35s, padding .35s, color .35s;
}
.nav__logo { font: 500 26px/1 var(--titres); color: inherit; text-decoration: none; letter-spacing: .06em; }
.nav__logo span { font-style: italic; color: var(--or-clair); }
.nav__liens { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav__liens a { color: inherit; text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; opacity: .9; padding: 8px 0; position: relative; }
.nav__liens a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .3s; }
.nav__liens a:hover::after { right: 0; }
.nav .bouton { background: transparent; border-color: rgba(248, 243, 234, .55); color: inherit; }
.nav .bouton:hover { background: var(--ivoire); color: var(--cacao); }
/* Fond opaque et sans flou : c'est ce qui permet à Safari (iPhone) de donner cette couleur à la zone de l'heure. */
.nav--plein { background: var(--ivoire); color: var(--cacao); box-shadow: 0 1px 0 rgba(43, 29, 21, .08); padding-block: 10px; }
.nav--plein .nav__logo span { color: var(--or); }
.nav--plein .bouton { background: var(--cacao); border-color: var(--cacao); color: var(--ivoire); }
.nav--plein .bouton:hover { background: var(--terre); border-color: var(--terre); color: var(--ivoire); }
.nav__date { display: none; font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--or-texte); }
@media (max-width: 1080px) { .nav__liens { display: none; } }
@media (max-width: 900px) {
  /* sur téléphone, le bouton flottant du bas prend le relais dès qu'on défile : la barre montre la date */
  .nav--plein .bouton { display: none; }
  .nav--plein .nav__date { display: block; }
  .nav--plein { padding-block: 14px; }
}
@media (max-width: 1080px) and (min-width: 901px) { .nav--plein .nav__date { display: block; margin-left: auto; } }
@media (max-width: 420px) { .nav .bouton { padding-inline: 14px; letter-spacing: .1em; font-size: 11px; } }
.nav__logo { white-space: nowrap; }
@media (max-width: 350px) {
  .nav { padding-inline: 12px; gap: 10px; }
  .nav__logo { font-size: 22px; }
  .nav .bouton { padding-inline: 10px; letter-spacing: .04em; font-size: 10.5px; white-space: nowrap; }
  .compte { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .compte span { font-size: 7.5px; letter-spacing: 0; display: block; overflow: hidden; }
  .compte div { padding-inline: 2px; }
  .conteneur, .conteneur--etroit { width: calc(100% - 32px); }
}
/* Téléphone tenu en largeur : une seule barre fixe (celle du haut, avec le bouton), pas deux. */
@media (max-height: 480px) and (max-width: 900px) {
  .flottant { display: none !important; }
  .nav--plein .bouton { display: inline-flex; }
  .nav--plein .nav__date { display: none; }
  .nav--plein { padding-block: 8px; }
}

/* ───────── Accueil ───────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--cacao); color: var(--ivoire);
  padding: 110px 20px 90px;
}
.hero__fond { position: absolute; inset: -12% 0; will-change: transform; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero__voile { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(43, 29, 21, .12), rgba(43, 29, 21, .55) 80%), linear-gradient(180deg, rgba(43, 29, 21, .45), rgba(43, 29, 21, .05) 30%, rgba(43, 29, 21, .6)); }
.hero__motif { position: absolute; inset: 0; pointer-events: none; }
.hero__motif::before, .hero__motif::after {
  content: ""; position: absolute; left: 8%; right: 8%; height: 16px;
  background: var(--frise) center / 48px 16px repeat-x; opacity: .5;
}
.hero__motif::before { top: 92px; bottom: auto; }
.hero__motif::after { bottom: 64px; }
.hero__contenu { position: relative; z-index: 2; max-width: 900px; }
.hero__noms { color: var(--ivoire); font-weight: 400; font-size: clamp(58px, 12.5vw, 150px); line-height: .92; margin: 6px 0 26px; display: flex; flex-direction: column; align-items: center; }
.hero__noms span { display: block; }
.hero__et { font-style: italic; color: var(--or-clair); font-size: .5em; line-height: 1.1; margin: .04em 0; }
.hero__date { font-size: clamp(14px, 1.8vw, 17px); letter-spacing: .3em; text-transform: uppercase; font-weight: 400; margin-bottom: 34px; }
.hero__date span { color: var(--or-clair); margin: 0 .4em; }
@media (max-width: 560px) { .hero__date span { display: none; } .hero__date b { display: block; } }
.hero__date b { font-weight: inherit; }
.compte { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 96px)); gap: 0; margin-bottom: 38px; border-block: 1px solid rgba(217, 185, 124, .4); }
.compte div { padding: 14px 6px 12px; }
.compte div + div { border-left: 1px solid rgba(217, 185, 124, .25); }
.compte strong { display: block; font: 500 clamp(28px, 4.4vw, 42px)/1 var(--titres); --chiffres: lining-nums tabular-nums; }
.compte span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__limite { margin: 0; font-size: 14px; opacity: .85; }
.hero__limite strong { color: var(--or-clair); }
.hero__defiler { position: absolute; z-index: 2; bottom: 14px; left: 50%; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.hero__defiler span { width: 1px; height: 30px; background: linear-gradient(var(--or-clair), transparent); animation: defiler 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes defiler { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ───────── Invitation ───────── */
.invitation { background: var(--ivoire); }
.signature { font: italic 400 34px/1 var(--titres); color: var(--terre); margin-top: 34px; }

/* ───────── Étapes ───────── */
.etapes { background: var(--creme); }
.etapes__liste { list-style: none; padding: 0; margin: 56px 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.etapes__liste li { background: var(--ivoire); border: 1px solid rgba(176, 138, 79, .28); border-radius: var(--rayon); padding: 40px 30px 30px; text-align: center; position: relative; }
.etapes__num { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font: 500 28px/1 var(--titres); color: var(--or-texte); border: 1px solid var(--or); }
.etapes__liste h3 { font-size: 26px; margin-bottom: 10px; }
.etapes__liste p { margin: 0; font-size: 16px; color: var(--cacao-doux); }
@media (max-width: 820px) { .etapes__liste { grid-template-columns: 1fr; } }

/* ───────── Cadres photo ───────── */
.cadre { margin: 0; overflow: hidden; background: var(--sable); box-shadow: var(--ombre); }
.cadre img { width: 100%; height: 100%; object-fit: cover; }
.cadre--arche { border-radius: 999px 999px var(--rayon) var(--rayon); aspect-ratio: 3 / 4.2; }
.cadre--petit { aspect-ratio: 1; border-radius: var(--rayon); border: 8px solid var(--ivoire); }
.cadre--large { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--rayon) var(--rayon); }

/* ───────── Histoire ───────── */
.histoire { background: var(--ivoire); }
/* Page d'accueil : fond sombre derrière les sections (chaque section a sa propre couleur). Sur iPhone, la zone
   de l'heure prend ainsi la couleur de l'accueil tant que la barre du haut est transparente. */
body.accueil { background: var(--cacao); }
.histoire__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.histoire__photos { position: relative; padding: 0 12% 12% 0; }
.histoire__photos .cadre--petit { position: absolute; right: 0; bottom: 0; width: 46%; }
.jalons { list-style: none; margin: 34px 0 0; padding: 0; border-left: 1px solid var(--sable); }
.jalons li { position: relative; padding: 0 0 22px 28px; }
.jalons li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--or); transform: rotate(45deg); }
.jalons span { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte); font-weight: 500; }
.jalons p { margin: 2px 0 0; font: 400 22px/1.3 var(--titres); color: var(--cacao); }
@media (max-width: 860px) { .histoire__grille { grid-template-columns: 1fr; } .histoire__photos { max-width: 440px; margin-inline: auto; width: 100%; } }

/* ───────── Citation ───────── */
.citation { position: relative; overflow: hidden; padding: clamp(110px, 17vw, 220px) 0; background: var(--cacao); color: var(--ivoire); }
.citation__fond { position: absolute; inset: -22% 0; will-change: transform; }
.citation__fond img { width: 100%; height: 100%; object-fit: cover; }
.citation__voile { position: absolute; inset: 0; background: rgba(43, 29, 21, .62); }
.citation blockquote { position: relative; margin-block: 0; }
.citation p { font: italic 400 clamp(28px, 4.6vw, 52px)/1.22 var(--titres); margin-bottom: 22px; }
.citation cite { font-style: normal; font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--or-clair); }

/* ───────── Programme ───────── */
.programme { background: var(--ivoire); }
.programme__liste { list-style: none; padding: 0; margin: 50px auto 0; max-width: 820px; }
.programme__liste li { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--sable); align-items: baseline; }
.programme__liste li:last-child { border-bottom: 1px solid var(--sable); }
.programme__liste time { font: 500 clamp(28px, 3.6vw, 38px)/1 var(--titres); color: var(--or-texte); --chiffres: lining-nums tabular-nums; }
.programme__liste h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 6px; }
.programme__liste p { margin: 0; color: var(--cacao-doux); }
@media (max-width: 600px) { .programme__liste li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; } }

/* ───────── Lieu ───────── */
.lieu { background: var(--cacao); color: var(--ivoire); }
.lieu__grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.lieu__adresse { font: 400 clamp(22px, 2.6vw, 28px)/1.35 var(--titres); font-style: normal; color: var(--or-clair); margin-bottom: 22px; }
.lieu__points { list-style: none; padding: 0; margin: 26px 0 36px; }
.lieu__points li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(248, 243, 234, .14); color: rgba(248, 243, 234, .82); font-size: 16px; }
.lieu__points li:last-child { border-bottom: 1px solid rgba(248, 243, 234, .14); }
.lieu__points strong { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); }
@media (max-width: 860px) { .lieu__grille { grid-template-columns: 1fr; } .lieu .cadre { max-width: 420px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) { .lieu__points li { grid-template-columns: 1fr; } }

/* ───────── Repas ───────── */
.repas { background: var(--ivoire); }
.repas__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.menu { margin: 30px 0 22px; border-top: 1px solid var(--sable); }
.menu div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--sable); align-items: baseline; }
.menu dt { font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte); }
.menu dd { margin: 0; font: 400 21px/1.35 var(--titres); color: var(--cacao); }
.texte--petit { font-size: 15.5px; }
@media (max-width: 860px) { .repas__grille { grid-template-columns: 1fr; } .repas .cadre { max-width: 420px; margin-inline: auto; width: 100%; } }
@media (max-width: 480px) { .menu div { grid-template-columns: 1fr; gap: 2px; } }

/* ───────── Infos ───────── */
.infos { background: var(--creme); }
.infos__grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.carte { background: var(--ivoire); border-radius: var(--rayon); padding: 34px 28px; border-top: 2px solid var(--or); }
.carte h3 { font-size: 28px; margin-bottom: 12px; }
.carte p { margin: 0; font-size: 16px; color: var(--cacao-doux); }
@media (max-width: 1000px) { .infos__grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .infos__grille { grid-template-columns: 1fr; } }

/* ───────── Réservation ───────── */
.reservation { background: var(--ivoire); }
.reservation__grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 50px; }
@media (max-width: 920px) { .reservation__grille { grid-template-columns: 1fr; } }

.formulaire { background: #fffdf9; border: 1px solid rgba(176, 138, 79, .3); border-radius: 8px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--ombre); }
fieldset { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
legend { font: 500 27px/1.2 var(--titres); color: var(--cacao); padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
legend span { width: 32px; height: 32px; border-radius: 50%; background: var(--cacao); color: var(--ivoire); display: inline-grid; place-items: center; font: 500 14px/1 var(--corps); flex: none; }
legend em { font: 300 15px var(--corps); color: var(--gris); }
.aide { font-size: 15.5px; color: var(--cacao-doux); margin-bottom: 16px; }
.aide--tarifs { background: var(--creme); border-radius: var(--rayon); padding: 10px 14px; font-weight: 400; }
.champs { display: grid; gap: 16px; }
.champs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.champs--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 190px; }
@media (max-width: 560px) { .champs--2 { grid-template-columns: 1fr; } .champs--3 { grid-template-columns: 1fr 1fr; } .champ--age { grid-column: 1 / -1; } }
.champ { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cacao-doux); }
.champ input, .champ textarea, .champ select {
  display: block; width: 100%; margin-top: 7px; padding: 13px 14px;
  font: 400 17px/1.3 var(--corps); letter-spacing: 0; text-transform: none; color: var(--cacao);
  background: var(--ivoire); border: 1px solid var(--sable); border-radius: var(--rayon);
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input::placeholder, .champ textarea::placeholder { color: #b3a392; font-weight: 300; }
.champ select {
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237d5e2b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--or); background: #fff; box-shadow: 0 0 0 3px rgba(176, 138, 79, .2); }
.champ--invalide input, .champ--invalide select { border-color: var(--rouge); background-color: #fdf5f2; }
.champ__erreur { display: block; min-height: 0; margin-top: 5px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--rouge); }
.champ__erreur:empty { display: none; }

/* Choix du cadeau : de vrais boutons radio, habillés en pastilles */
.choix { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.choix__option { position: relative; cursor: pointer; }
.choix__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix__option span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
  border: 1px solid var(--sable); border-radius: 999px; background: var(--ivoire);
  font-size: 16px; font-weight: 400; color: var(--cacao); transition: background .2s, border-color .2s, color .2s;
}
.choix__option:hover span { border-color: var(--or); }
.choix__option input:checked + span { background: var(--cacao); border-color: var(--cacao); color: var(--ivoire); }
.choix__option input:focus-visible + span { outline: 2px solid var(--anneau); outline-offset: 3px; }
.champ--cadeau { max-width: 340px; margin-bottom: 6px; }
.liste-cadeaux { margin: 14px 0 0; font-size: 15.5px; color: var(--cacao-doux); }
.liste-cadeaux a { font-weight: 500; color: var(--or-texte); white-space: nowrap; }
.liste-cadeaux a::after { content: " →"; }
.liste-cadeaux[data-liste="non"], .appel-cadeaux[data-liste="non"] { display: none !important; }
.appel-cadeaux { background: linear-gradient(180deg, #fffdf9, #f7efe2); border-color: rgba(176, 138, 79, .45); }
.appel-cadeaux h2 { font-size: clamp(28px, 4vw, 36px); }
@media (max-width: 560px) {
  /* téléphone : « pas de cadeau » et « autre montant » sur toute la largeur, les montants côte à côte */
  .choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .choix__option:first-child, .choix__option:last-child { grid-column: 1 / -1; }
  .choix__option span { display: flex; justify-content: center; }
  .champ--cadeau { max-width: none; }
}

.personne { border: 1px solid var(--sable); border-radius: 6px; padding: 18px 18px 20px; margin-bottom: 14px; background: #fff; }
.personne__tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.personne__titre { font: 500 21px/1 var(--titres); color: var(--cacao); }
.personne input, .personne select { min-width: 0; }
.personne__tarif { font-size: 13.5px; color: var(--or-texte); font-weight: 500; }
.personne__retirer { margin-left: auto; background: none; border: 0; padding: 8px 4px; font: 400 14px var(--corps); color: var(--gris); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.personne__retirer:hover { color: var(--rouge); }
.formulaire fieldset:last-of-type { margin-bottom: 0; }

/* Le récapitulatif reste à l'écran pendant qu'on remplit ; s'il est plus haut que l'écran (10 personnes), il défile. */
.recap { position: sticky; top: 92px; max-height: calc(100vh - 112px); max-height: calc(100svh - 112px); display: flex; flex-direction: column; background: var(--cacao); color: var(--ivoire); border-radius: 8px; padding: 28px 28px 26px; }
.recap > * { flex: none; }
/* Grande famille sur petit écran : seule la liste des personnes défile ; le total et le bouton de paiement restent à l'écran. */
.recap > .recap__lignes { flex: 0 1 auto; min-height: 84px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(217, 185, 124, .6) transparent; padding-right: 6px; margin-right: -6px; }
.recap .bouton { margin-top: 2px; padding-inline: 18px; letter-spacing: .1em; font-size: 13.5px; line-height: 1.35; }
.recap .bouton[disabled] { opacity: .75; }
.recap > .recap__cadeau li { border-bottom: 0; border-top: 1px solid rgba(248, 243, 234, .12); }
.recap__suite { margin: 8px 0 0; font-size: 13px; color: var(--or-clair); text-align: center; }
.recap__note { text-align: center; font-size: 13.5px; opacity: .72; margin: 14px 0 0; }
.recap .avis { margin: 0 0 16px; font-size: 15px; }
.recap h3 { color: var(--ivoire); font-size: 26px; margin-bottom: 12px; }
.recap ul { list-style: none; margin: 0; padding: 0; }
.recap li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 15.5px; border-bottom: 1px solid rgba(248, 243, 234, .12); }
.recap li span:first-child { overflow-wrap: anywhere; min-width: 0; }
.recap li span:last-child { white-space: nowrap; --chiffres: lining-nums tabular-nums; }
.recap__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; border-top: 1px solid rgba(217, 185, 124, .35); }
.recap__total span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.recap__total strong { font: 500 40px/1 var(--titres); color: var(--or-clair); --chiffres: lining-nums tabular-nums; }
@media (max-width: 920px) { .recap { position: static; max-height: none; } .recap > .recap__lignes { overflow: visible; min-height: 0; } }
@media (max-height: 620px) and (min-width: 921px) { .recap { top: 74px; max-height: calc(100vh - 84px); padding-block: 18px; } .recap__note { display: none; } .recap__total strong { font-size: 32px; } }

.avis { border-radius: 6px; padding: 16px 20px; margin: 30px auto 0; max-width: 820px; font-size: 16px; border: 1px solid; }
.avis a { margin-left: 6px; font-weight: 500; }
.avis--info { background: #fbf3e2; border-color: #e3cb98; color: #5d4520; }
.avis--succes { background: #edf4ee; border-color: #b9d2bf; color: #264a31; }
.avis--erreur { background: #fbeeea; border-color: #e5b8ae; color: #7a271a; margin: 0 0 20px; }

/* Message affiché seulement si le script du formulaire n'a pas pu démarrer (ou sans JavaScript) */
#sans-script { display: none; }
html:not(.js) #sans-script, html.script-absent #sans-script { display: block; }
/* Sans le script : pas de formulaire inutilisable, et la barre du haut reste sur l'accueil sombre (elle ne suit pas la page). */
html:not(.js) .reservation__grille, html.script-absent .reservation__grille { display: none; }
html:not(.js) .nav, html.script-absent .nav { position: absolute; }
html:not(.js) .flottant, html.script-absent .flottant { display: none; }
/* Réservations closes (date limite passée) */
#reservations-closes { display: none; }
body[data-reservations="closes"] #reservations-closes { display: block; }
/* .si-ouvert : visible tant qu'on peut réserver ; .si-clos : visible une fois la date limite passée */
.si-clos { display: none !important; }
body[data-reservations="closes"] .si-ouvert { display: none !important; }
body[data-reservations="closes"] .si-clos { display: revert !important; }
body[data-reservations="closes"] .reservation__grille, body[data-reservations="closes"] #sans-script { display: none !important; }

/* ───────── FAQ ───────── */
.faq { background: var(--creme); }
.faq__liste { margin-top: 40px; }
details { border-top: 1px solid var(--sable); }
details:last-child { border-bottom: 1px solid var(--sable); }
summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font: 500 clamp(21px, 2.6vw, 25px)/1.25 var(--titres); color: var(--cacao); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 30px/1 var(--corps); color: var(--or-texte); transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 24px; color: var(--cacao-doux); max-width: 62ch; }

/* ───────── Pied ───────── */
.pied { position: relative; background: var(--cacao); color: rgba(248, 243, 234, .78); text-align: center; padding: 96px 24px 110px; font-size: 15.5px; }
.pied p { margin-bottom: 8px; }
.pied a { color: var(--or-clair); }
.pied__noms { font: 400 clamp(40px, 7vw, 68px)/1 var(--titres); color: var(--ivoire); margin-bottom: 16px !important; }
.pied__noms span { font-style: italic; color: var(--or-clair); }
.pied__hashtag { margin-top: 26px; letter-spacing: .2em; font-size: 12.5px; text-transform: uppercase; color: var(--or-clair); }

/* ───────── Bouton flottant (mobile) ───────── */
/* Barre du bas, de la couleur de la barre du haut. Safari (iPhone) prolonge la couleur des éléments fixes
   sous sa propre barre d'outils : une barre ivoire donne un bas d'écran ivoire, un bouton doré seul le teindrait tout en doré. */
.flottant {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 243, 234, .96); box-shadow: 0 -1px 0 rgba(43, 29, 21, .08);
  transform: translateY(110%); visibility: hidden; transition: transform .4s ease, visibility 0s .4s;
}
.flottant .bouton { width: 100%; min-height: 50px; }
.flottant--visible { transform: none; visibility: visible; transition: transform .4s ease, visibility 0s; }
@media (max-width: 900px) { .flottant { display: block; } }

/* ───────── Apparitions (seulement si le script tourne) ───────── */
.js [data-apparait] { opacity: 0; transform: translateY(26px); }
.js .hero__ligne { opacity: 0; }
.js.sans-animation [data-apparait], .js.sans-animation .hero__ligne { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-apparait], .js .hero__ligne { opacity: 1; transform: none; }
  .hero__defiler span { animation: none; }
  html { scroll-behavior: auto !important; }
}

/* ───────── Pages simples : merci, 404 ───────── */
.page-simple { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--ivoire); }
.page-simple__tete { background: var(--cacao); color: var(--ivoire); text-align: center; padding: 56px 24px 72px; position: relative; }
.page-simple__tete .nav__logo { font-size: 30px; }
.page-simple__corps { flex: 1; width: min(760px, 100% - 32px); margin: -44px auto 0; padding-bottom: 80px; position: relative; }
.fiche { background: #fffdf9; border: 1px solid rgba(176, 138, 79, .3); border-radius: 8px; box-shadow: var(--ombre); padding: clamp(26px, 5vw, 52px); }
.fiche + .fiche { margin-top: 20px; }
.fiche h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 14px; }
.fiche h2 { font-size: 28px; margin-bottom: 14px; }
.coche { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--or); display: grid; place-items: center; margin: 0 auto 24px; color: var(--or-texte); }
.coche svg { width: 32px; height: 32px; }
.reference { display: inline-block; margin: 8px 0 4px; padding: 10px 22px; border: 1px dashed var(--or); border-radius: 6px; font: 500 24px/1 var(--corps); letter-spacing: .14em; color: var(--cacao); }
.liste-def { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; }
.liste-def dt, .liste-def dd { padding: 13px 0; margin: 0; border-top: 1px solid var(--creme); }
.liste-def dt { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--or-texte); padding-top: 17px; }
.liste-def dd { color: var(--cacao); min-width: 0; overflow-wrap: anywhere; }
.fiche h1, .fiche p { overflow-wrap: anywhere; }
@media (max-width: 520px) { .liste-def { grid-template-columns: 1fr; } .liste-def dd { border-top: 0; padding-top: 0; } }
.liste-simple { margin: 0; padding-left: 20px; }
.liste-simple li { margin-bottom: 8px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.bandeau-simulation { background: #fbf3e2; color: #5d4520; border-bottom: 1px solid #e3cb98; text-align: center; font-size: 14px; padding: 8px 16px; }
@media print { .actions, .bandeau-simulation, .frise, .sans-impression { display: none !important; } .fiche { break-inside: avoid; } .fiche + .fiche { margin-top: 12px; } body { font-size: 14px; } .page-simple__tete { background: none; color: #000; padding: 20px; } .page-simple__corps { margin-top: 0; } .fiche { box-shadow: none; } }
