/* =====================================================================
   Feuille de style du site de mariage
   Mise en page : un faire-part en papier. Écran « enveloppe », puis un
   collage de cartes qui mène aux pages Détails, (Histoire) et RSVP.
   Mobile d'abord ; tablette à partir de 600px, ordinateur à partir de 960px.
   ===================================================================== */

/* ---------- 1. Réglages ---------- */
:root {
  color-scheme: light;
  /* Palette de la cliente (12 oct.) : chaleureuse et luxueuse */
  --creme: #f9f6f0;      /* fond ivoire doux (pages intérieures ; l'accueil a son fond en lin brodé) */
  --ivoire: #fbf9f5;     /* cartes, formulaires */
  --choco: #4a3525;      /* moka foncé : titres, barre de navigation */
  --moka: #5c4033;       /* moka : détails, sous-titres, petites capitales */
  --encre: #3d2b26;      /* texte courant : brun très foncé, jamais de noir pur (V3) */
  --champagne: #d4c5b9;  /* boutons */
  --taupe: #c8b5a6;      /* lignes, filets, contours */
  --trait: #e2d8ce;      /* séparateurs très fins (listes) */
  --laiton: #b49a6a;     /* or du cachet de cire : uniquement les logos C&T dorés */
  --clair: #f6f1e3;      /* texte clair sur fond foncé : blanc cassé crème (V3) */
  --sable: #d9c9ae;      /* petites capitales sur fond moka */

  /* Polices (V3, 1er nov.) : titres en Bellefair ; sous-titres, dates et texte en Montserrat.
     Bellefair n'a ni gras ni italique : les titres restent en 400 et droits. */
  --display: "Bellefair", Georgia, "Times New Roman", serif;
  --texte: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --capitales: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --espace-caps: .2em;   /* espacement des capitales (sous-titres, dates, boutons) */

  --gouttiere: 16px;
  --large: 1100px;       /* largeur maximale des pages */
}
@media (min-width: 600px) { :root { --gouttiere: 32px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 18px;       /* V3 : paragraphes en grande taille (18 à 20 px sur mobile), interligne aéré */
  line-height: 1.5;
}
@media (min-width: 960px) { body { font-size: 19px; } }
/* Fond en lin brodé de fleurs (retour V2 du 12 oct.) : écran de l'enveloppe, « Qui êtes-vous ? » et faire-part.
   Un calque fixe derrière la page : l'image ne défile pas, donc aucun raccord sur une page longue.
   fond-lin.jpg = format téléphone ; fond-lin-large.jpg = même lin, élargi pour les écrans plus larges que hauts. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #e5ddd1 url("../img/fond-lin.jpg") center / cover no-repeat;
  opacity: 0; transition: opacity .5s ease;
}
@media (min-aspect-ratio: 4/5) { body::before { background-image: url("../img/fond-lin-large.jpg"); } }
body[data-vue="enveloppe"]::before, body[data-vue="bienvenue"]::before, body[data-vue="accueil"]::before { opacity: 1; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Logo C&T (symbole SVG défini dans index.html) : prend la couleur du texte */
.logo { display: block; width: 60px; height: auto; aspect-ratio: 785 / 595; fill: currentColor; overflow: visible; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--moka); outline-offset: 3px; }

.vue { display: none; min-height: 100vh; }
.vue.active { display: block; animation: apparition .6s ease both; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 3. Typographie ---------- */
.cap {
  font-family: var(--capitales); text-transform: uppercase;
  letter-spacing: var(--espace-caps); font-size: .7rem; font-weight: 600; color: var(--moka);
}
@media (min-width: 960px) { .cap { font-size: .74rem; } }
.display {
  font-family: var(--display); font-weight: 400; line-height: 1.05;
  text-wrap: balance; color: var(--choco); margin: 0;
}
.display em { font-style: normal; }
.lien-souligne {
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps);
  font-size: .68rem; text-decoration: none; border-bottom: 1px solid var(--taupe); padding-bottom: 2px;
}
.note { font-style: italic; font-size: .85em; line-height: 1.6; color: var(--moka); margin-top: 1.4rem; }
.retour {
  display: inline-block; padding: .6rem 0; font-family: var(--capitales); text-transform: uppercase;
  letter-spacing: var(--espace-caps); font-size: .68rem; text-decoration: none; opacity: .85;
}
.retour:hover, .retour:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 4. Barre de navigation (pages intérieures) ---------- */
.barre {
  position: sticky; top: 0; z-index: 20;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem var(--gouttiere);
  background: #2b1f19; color: var(--clair);   /* le marron du déroulé */
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.barre { display: none; }
body[data-vue="details"] .barre, body[data-vue="rsvp"] .barre, body[data-vue="histoire"] .barre { display: flex; }
.barre-mono {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps); font-size: .66rem;
}
.barre-mono span {
  width: 36px; height: 36px; border: 1px solid var(--taupe); border-radius: 50%;
  display: grid; place-items: center; color: var(--sable);
}
.barre-mono .logo { width: 22px; }
.barre-liens { display: flex; gap: 1.2rem; }
.barre-liens a {
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps); font-size: .66rem;
  text-decoration: none; padding: .5rem 0; border-bottom: 1px solid transparent;
}
.barre-liens a[aria-current="page"] { border-bottom-color: var(--taupe); color: var(--ivoire); }
@media (max-width: 380px) { .barre-mono b { display: none; } }

/* ---------- 5. Écran 1 : l'enveloppe ---------- */
/* Matières : lin et papier générés pour le site (assets/img/textures) ; gravure = dessin de la fontaine fourni par la cliente */
:root {
  --lin: url("../img/textures/lin-chocolat.jpg");
  --lin-clair: url("../img/textures/lin-chocolat-clair.jpg");
  --papier: url("../img/textures/papier-ivoire.jpg");
  --gravure: url("../img/gravure.jpg");
}
#vue-enveloppe { padding-inline: var(--gouttiere); overflow: hidden; }
/* Quand l'accueil fait sa propre entrée (après l'enveloppe), pas de fondu général */
.sans-fondu .vue.active { animation: none; }
.env-ecran {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem; padding-block: 3rem; text-align: center;
}
/* « Charlotte & Thomas » sur une seule ligne (V3), en Bellefair, dans un brun plus clair que les titres */
.env-ecran > div .display { font-size: clamp(2.1rem, 10.6vw, 4.8rem); white-space: nowrap; color: var(--moka); }
.env-ecran > div .display em { font-size: .8em; margin: 0 .1em; color: #8a6f5e; }
.env-zone {
  position: relative; width: min(440px, 86vw); aspect-ratio: 1.45; cursor: pointer;
  border: 0; padding: 0; background: none; perspective: 1400px; -webkit-tap-highlight-color: transparent;
  container-type: inline-size;
}
.env-zone:focus-visible { outline-offset: 10px; }
/* La scène : tout ce qui bouge avec l'enveloppe (flottement, inclinaison au survol) */
.env-scene { position: absolute; inset: 0; perspective: 900px; will-change: transform; }
.env-dos, .env-dos-int, .env-carte, .env-poches, .env-rabat { position: absolute; display: block; }
.env-dos {
  inset: 0; z-index: 1; border-radius: 2px;
  background: #2f221b var(--lin); background-size: 260px;
  /* Ombre en trois couches : contact net, ombre portée vers le bas, halo diffus (plus de relief, retour V2) */
  box-shadow: 0 1px 1px rgba(20,12,8,.35), 0 8px 12px -6px rgba(20,12,8,.45),
              6px 30px 46px -18px rgba(43,32,27,.62), 14px 60px 90px -40px rgba(43,32,27,.45);
}
.env-dos-int { inset: 0; width: 100%; height: 100%; z-index: 2; }
.env-carte {
  left: 6%; right: 6%; top: 6%; height: 86%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.2cqw; padding-top: 7%;
  background: var(--ivoire) var(--papier); background-size: 300px; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 24px -14px rgba(43,32,27,.5);
  will-change: transform;
}
/* Tailles en « cqw » : proportionnelles à la largeur de l'enveloppe, pour que la carte soit identique dans l'animation et sur l'accueil */
.env-carte .display { font-size: 9cqw; line-height: 1; }
.env-carte .display em { font-style: normal; }
.env-carte .cap { font-size: 2.5cqw; letter-spacing: var(--espace-caps); }
.env-carte .date { color: var(--choco); letter-spacing: var(--espace-caps); margin-top: .6cqw; }
.env-carte .logo { width: 9cqw; color: var(--laiton); margin-top: 1cqw; }
.env-poches { inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; pointer-events: none; }
.env-rabat {
  left: 0; right: 0; top: 0; height: 60%; z-index: 5;
  transform-origin: 50% 0; transform-style: preserve-3d; will-change: transform;
}
.env-rabat .face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-rabat .face-int { transform: rotateX(180deg); }
/* Cachet de cire : il se soulève puis s'envole quand on ouvre l'enveloppe */
.cachet {
  position: absolute; left: 50%; top: 58%; z-index: 6;
  width: clamp(80px, 23vw, 108px); aspect-ratio: 1; transform: translate(-50%, -50%);
}
.cachet img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.cachet-entier { position: absolute; inset: 0; display: block; }
.cachet-entier { transition: transform .25s ease; }
.env-zone:hover .cachet-entier { transform: translateY(-2px) rotate(-4deg); }
/* Relief : la tranche du papier accroche la lumière le long des bords libres, le pli du rabat aussi */
.tranche { fill: none; stroke: #f3dfc6; stroke-opacity: .3; stroke-width: .5; stroke-linejoin: round; }
.tranche-bas { stroke-opacity: .38; }
.pli { fill: none; stroke: #f3dfc6; stroke-opacity: .22; stroke-width: .7; }
.arete-claire, .arete-sombre { fill: none; stroke-width: .6; }
.arete-claire { stroke: #f3dfc6; stroke-opacity: .16; }
.arete-sombre { stroke: #0d0805; stroke-opacity: .35; }
.env-rabat .face-int { filter: drop-shadow(0 2px 3px rgba(20,12,8,.28)); }
/* Compositions florales (photos détourées) : mêmes positions, en % de l'enveloppe, sur l'écran de l'enveloppe
   et sur l'accueil, pour qu'elles suivent l'enveloppe sans saut quand elle glisse vers le faire-part */
.fleurs { position: absolute; pointer-events: none; z-index: 7; max-width: none; height: auto; filter: drop-shadow(0 8px 10px rgba(43,32,27,.3)); }
.fleurs-g { left: -15%; bottom: -21%; width: 54%; transform: rotate(-6deg); }
.fleurs-d { right: -9%; top: 18%; width: 22%; transform: rotate(-10deg); }
@media (min-width: 600px) { .fleurs-g { left: -20%; bottom: -25%; width: 62%; } .fleurs-d { right: -13%; top: 14%; width: 24%; } }
.indice { animation: souffle 2.4s ease-in-out infinite; }
/* Laisse la place au bouquet qui déborde sous l'enveloppe */
.env-ecran .indice { margin-top: .8rem; }
@media (min-width: 600px) { .env-ecran .indice { margin-top: 2.8rem; } }
@keyframes souffle { 50% { opacity: .45; } }

/* ---------- 5 bis. Écran « Qui êtes-vous ? » ---------- */
/* Carte centrée exactement au milieu de l'écran : c'est là que la carte sortie de l'enveloppe termine sa course */
.bienvenue { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 2.5rem var(--gouttiere); }
.vue.active .identite { animation: deplier .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes deplier { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
.identite { position: relative; width: min(480px, 100%); text-align: left; padding-top: 3.4rem !important; box-shadow: 0 18px 34px -20px rgba(43,32,27,.5); }
.identite-cachet { position: absolute; left: 50%; top: 0; width: 82px; transform: translate(-50%, -50%) rotate(-6deg); }
.identite-cachet img { width: 100%; height: auto; filter: drop-shadow(0 4px 5px rgba(0,0,0,.4)); }
.identite-titre { font-size: clamp(1.6rem, 6vw, 2.1rem); text-align: center; margin-bottom: .4rem; }
.identite-titre em { display: block; }
.identite .envoyer { justify-self: stretch; }

/* ---------- 6. Écran 2 : le faire-part (collage de papeterie) ---------- */
.page { max-width: var(--large); margin: 0 auto; padding-inline: var(--gouttiere); padding-block: 1.4rem 4rem; }
.page-collage { max-width: 640px; display: grid; gap: clamp(22px, 5vw, 36px); }
@media (min-width: 960px) { .page-collage { max-width: 740px; } }
.page-collage > .retour { justify-self: start; }
a.carte, .hero-env, .carte-details { text-decoration: none; color: inherit; }
.carte { position: relative; transition: transform .35s ease; }
a.carte:hover, a.carte:focus-visible, .carte-details:hover, .carte-details:focus-visible { transform: translateY(-4px) rotate(0deg) !important; }

/* Mention « Pour … » : l'invité nommé sur le faire-part */
.pour { margin: 0; text-align: center; font-family: var(--display); font-size: clamp(1.5rem, 5.4vw, 1.9rem); color: var(--moka); }

/* 6.1 L'enveloppe ouverte : la même qu'à l'ouverture, rabat levé, carte à moitié sortie */
.hero-env { position: relative; display: block; pointer-events: none; width: min(100%, 520px, calc((100svh - 170px) / 1.1)); margin: .6rem auto 0; aspect-ratio: 1 / 1.1; }
#vue-accueil { overflow-x: clip; }
/* Bouton « Confirmer ma venue » (sous la section Notre histoire ; celui du haut est posé sur l'enveloppe) */
.sous-env { margin: 1.2rem 0 0; text-align: center; }
.bouton-rsvp {
  display: inline-block; min-width: 12rem; padding: .95rem 2.2rem; text-decoration: none;
  background: var(--champagne); color: var(--encre); border: 1px solid var(--taupe);
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps); font-size: .76rem; font-weight: 500;
  box-shadow: 0 6px 16px -8px rgba(43,32,27,.55); transition: background .2s, transform .2s;
}
.bouton-rsvp:hover, .bouton-rsvp:focus-visible { background: var(--taupe); transform: translateY(-2px); }
.env-boite { position: absolute; left: 0; right: 0; bottom: 2%; aspect-ratio: 1.45; perspective: 900px; container-type: inline-size; }
.env-ouverte .env-rabat { transform: rotateX(180deg); z-index: 2; }

/* Le calendrier glissé dans l'enveloppe, à la place du carton (retour V2) : plus petit que l'enveloppe,
   il ne dépasse que de peu pour laisser voir la fontaine. Tailles en cqw (= % de la largeur de l'enveloppe). */
.env-ticket {
  position: absolute; z-index: 3; left: 20cqw; width: 60cqw; top: -4.5cqw; height: 46cqw;
  display: flex; flex-direction: column; align-items: center; gap: 1.3cqw; padding: 3.4cqw 3.4cqw 0; text-align: center;
  background: var(--ivoire) var(--papier); background-size: 300px;
  box-shadow: 0 1px 2px rgba(0,0,0,.22), 0 10px 18px -12px rgba(20,12,8,.6);
  transform: rotate(-1.2deg);
}
.env-ticket .cal-cadre { inset: 1.5cqw; width: calc(100% - 3cqw); height: calc(100% - 3cqw); }
.env-ticket .cal-mois { font-size: 5.6cqw; }
.env-ticket .cal-semaine li { gap: .2cqw; }
.env-ticket .cal-semaine i { font-size: 2.35cqw; }
.env-ticket .cal-semaine b { width: 2.05em; height: 2em; font-size: 3.6cqw; }
.env-ticket > .cap { margin-top: .6cqw; font-size: 1.8cqw; letter-spacing: var(--espace-caps); }

/* Bouton posé en bas de l'enveloppe : champagne, avec un filet intérieur, pour ressortir sur le lin chocolat.
   Le span .env-bouton le centre (translate) ; le lien lui-même reste libre pour l'animation GSAP. Tailles en cqw : il suit la taille de l'enveloppe. */
.env-bouton { position: absolute; z-index: 9; left: 50%; top: 66%; translate: -50% -50%; pointer-events: auto; }
.bouton-env {
  display: block; min-width: 0; white-space: nowrap;
  padding: clamp(.75rem, 2.8cqw, .95rem) clamp(1rem, 5cqw, 1.8rem); font-size: clamp(.64rem, 2.6cqw, .76rem);
  background: var(--champagne); color: var(--encre); border-color: #e6dbd1;
  outline: 1px solid rgba(74,53,37,.28); outline-offset: -5px;
  box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 12px 22px -10px rgba(10,6,4,.75);
}
.bouton-env:hover, .bouton-env:focus-visible { background: #e2d6cb; transform: translateY(-2px); }

/* 6.2 Calendrier (dans l'enveloppe) : la semaine du jour J dans un cadre fin aux coins arrondis vers l'intérieur */
.cal-cadre { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); fill: none; stroke: var(--choco); stroke-width: 1; overflow: visible; }
.cal-cadre path { vector-effect: non-scaling-stroke; }
.cal-mois { display: block; margin: 0; font-family: var(--display); line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--choco); }
.cal-semaine { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-semaine li { display: grid; justify-items: center; gap: .35rem; }
.cal-semaine i { font-family: var(--display); font-style: normal; color: var(--moka); }
.cal-semaine b { position: relative; display: grid; place-items: center; width: 2.4em; height: 2.2em; font-family: var(--display); font-weight: 400; color: var(--choco); }
.cal-semaine b svg { position: absolute; inset: -.1em -.2em; width: calc(100% + .4em); height: calc(100% + .2em); color: var(--choco); overflow: visible; }

/* 6.3 Le faire-part (V3, d'après la démo) : deux cartes glissées sous le bas de l'enveloppe (l'enveloppe passe devant).
   À gauche la carte « Détails » (cartouche marron), à droite et un peu plus bas la carte chocolat
   (texte du groupe de l'invité, sinon la date du jour J). Tailles en cqw (= % de la largeur de chaque carte). */
.hero-env { z-index: 3; }
.duo {
  position: relative; z-index: 1; display: grid; grid-template-columns: 50fr 50fr; align-items: start; column-gap: 1%;
  margin-top: calc(-1 * clamp(22px, 5vw, 36px) - 9%);
}
.duo .carte-details { width: 100%; justify-self: stretch; transform: rotate(-1.5deg); }

/* Carte de droite (en attendant les groupes) : la dentelle fournie par Maxime, détourée (assets/img/dentelle.webp).
   Elle est posée en « border-image » : le bord en dentelle garde son épaisseur et le papier du milieu s'allonge
   si le texte d'un groupe est long. Les épaisseurs sont en cqw du .duo ; le contenu, en cqw du papier. */
.duo { container-type: inline-size; }
.carte-dentelle {
  position: relative; z-index: 2; margin: 14% 0 0; aspect-ratio: 601 / 838; container-type: inline-size; color: var(--choco);
  border-style: solid; border-color: transparent; border-width: 11.5cqw 10.9cqw 9.9cqw 11.5cqw;
  border-image: url("../img/dentelle.webp") 140 133 120 140 fill / 1 / 0 stretch;
  filter: drop-shadow(0 10px 12px rgba(43,32,27,.24)) drop-shadow(0 1px 1px rgba(43,32,27,.15));
}
.carte-dentelle.avec-texte { aspect-ratio: auto; }
/* Face « date » : 11 / Septembre / 2027, une étoile, l'heure et le lieu */
.face-date { height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; }
.date-jour, .date-mois { margin: 0; font-family: var(--display); line-height: .9; color: var(--choco); }
.date-jour { font-size: 48cqw; }
.date-mois { font-size: 21cqw; margin-top: 2cqw; }
.date-annee { margin: 6cqw 0 0; padding-left: .3em; font-size: max(.5rem, 9cqw); letter-spacing: .3em; color: var(--moka); }
.date-filet { display: flex; align-items: center; gap: 4cqw; width: 70%; margin: 7cqw 0; color: var(--taupe); }
.date-filet::before, .date-filet::after { content: ""; flex: 1; height: 1px; background: var(--taupe); }
.date-filet svg { width: 8px; height: 8px; }
.date-lieu { margin: 0; font-family: var(--display); font-size: 13cqw; line-height: 1.25; color: var(--moka); }
/* Face « groupe » : icône, étiquette, titre, texte, date et note */
.face-groupe { display: grid; justify-items: center; gap: 3.2cqw; padding: 4cqw 0 5cqw; text-align: center; }
.groupe-icone { width: 22cqw; height: 22cqw; color: var(--moka); }
.face-groupe .cap { margin: 0; color: var(--moka); font-size: clamp(.55rem, 5.4cqw, .72rem); line-height: 1.5; }
.groupe-titre { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 12cqw, 2rem); line-height: 1.08; color: var(--choco); text-wrap: balance; }
.groupe-filet { display: flex; align-items: center; gap: 3cqw; width: 56%; color: var(--taupe); }
.groupe-filet::before, .groupe-filet::after { content: ""; flex: 1; height: 1px; background: var(--taupe); }
.groupe-filet svg { width: 8px; height: 8px; }
.groupe-texte { margin: 0; font-size: clamp(.8rem, 6.6cqw, .95rem); line-height: 1.55; color: var(--encre); }
.groupe-date { margin-top: 1cqw !important; }
.groupe-note { margin: 0; font-style: italic; font-size: clamp(.78rem, 6.2cqw, .9rem); line-height: 1.5; color: var(--moka); }
.groupe-lien { margin-top: 1.5cqw; }
/* Avec le texte du groupe, la carte est plus longue : sur téléphone, les deux cartes se chevauchent en escalier */
@media (max-width: 599px) {
  .duo--texte { grid-template-columns: 1fr; }
  .duo--texte .carte-details { width: 60%; justify-self: start; }
  .duo--texte .carte-dentelle { width: 84%; justify-self: end; margin: -6% 0 0; border-width: 19.6cqw 18.6cqw 16.8cqw 19.6cqw; }
}


/* 6.4 Le manoir : dessin au trait marron sur fond blanc, adresse et itinéraire */
.lieu-sejour {
  display: grid; justify-items: center; gap: .6rem; padding: 2rem 1.2rem 2.2rem; text-align: center;
  background: #fff; box-shadow: 0 14px 26px -18px rgba(43,32,27,.4);
}
.lieu-sejour picture { width: 100%; }
.manoir-dessin { width: 100%; height: auto; margin-bottom: .8rem; }
.lieu-sejour .cap, .lieu-sejour p { margin: 0; }
.lieu-nom { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; color: var(--choco); }
.lieu-adresse { margin-bottom: .6rem !important; font-size: 1.05rem; line-height: 1.45; }

/* 6.5 Carte « Détails » (V3) : le cartouche marron d'origine, avec la libellule, « Détails / Cliquez ici »
   et la ficelle nouée, scellée du cachet doré. Tailles en cqw (= % de la largeur de la carte). */
.carte-details {
  position: relative; display: block; justify-self: center; width: min(64%, 300px); aspect-ratio: 200 / 320; z-index: 1;
  container-type: inline-size; color: var(--clair);
  filter: drop-shadow(0 14px 16px rgba(43,32,27,.35)); transform: rotate(-1.5deg); transition: transform .35s ease;
}
.carte-details .cartouche-fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.details-libellule { position: absolute; left: 50%; top: 19%; width: 34cqw; height: auto; translate: -50% 0; rotate: -10deg; color: #e7dccb; }
.details-texte { position: absolute; left: 8%; right: 8%; top: 41%; display: grid; justify-items: center; gap: 3cqw; text-align: center; }
.details-texte .display { color: var(--clair); font-size: 27cqw; line-height: 1; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.details-texte .cap { color: var(--sable); font-size: 6cqw; letter-spacing: .26em; padding-left: .26em; }
/* La ficelle nouée et le cachet doré, en travers de la carte */
.ficelle { position: absolute; left: 0; right: 0; top: 60%; height: 22cqw; translate: 0 -50%; }
.ficelle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ficelle path { fill: none; stroke: #d6c3a1; stroke-width: 1.7; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.ficelle picture { position: absolute; left: 50%; top: 50%; width: 30cqw; translate: -50% -50%; rotate: -6deg; }
.ficelle img { width: 100%; height: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.carte-details .ficelle { top: 74%; height: 16cqw; left: 4.6%; right: 4.6%; }
/* La ficelle s'arrête aux bords du cartouche marron */
.carte-details .ficelle svg { overflow: hidden; }
.carte-details .ficelle picture { width: 30cqw; }

/* 6.7 Le déroulé sur l'accueil : sur toute la largeur de l'écran, fond marron ; la libellule, puis 2 colonnes
   (l'icône à gauche, l'heure et le moment à droite) */
.programme-accueil {
  display: grid; justify-items: center; gap: 1.2rem; padding: 3rem var(--gouttiere) 3.2rem;
  margin-inline: calc(50% - 50vw); text-align: center;
  background: #2b1f19; box-shadow: inset 0 0 90px rgba(0,0,0,.35); color: var(--clair);
}
.programme-accueil h2 { margin: 0; font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 400; color: var(--clair); }
.frise { position: relative; width: 100%; max-width: 520px; display: grid; justify-items: stretch; }
.frise::before {
  content: ""; position: absolute; left: 50%; top: 80px; bottom: 10px; width: 0;
  border-left: 1.5px dotted rgba(217,201,174,.55); transform: translateX(-.75px);
}
.frise-libellule { position: relative; justify-self: center; width: 92px; height: auto; color: #e7dccb; margin-bottom: .2rem; }
.frise-jour { position: relative; margin: .9rem 0 .7rem; text-align: center; }
.frise-jour span {
  display: inline-block; padding: .25rem .9rem; background: #2b1f19;
  font-family: var(--display); font-size: clamp(1.1rem, 4.6vw, 1.35rem); color: var(--sable);
}
.frise-moment { position: relative; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; column-gap: .5rem; padding: .7rem 0; }
.frise-noeud { grid-column: 2; grid-row: 1; justify-self: center; width: 14px; height: 14px; color: var(--sable); filter: drop-shadow(0 0 4px #2a1e18); }
.frise-icone { grid-row: 1; display: grid; }
.frise-icone svg { width: clamp(48px, 15vw, 66px); height: auto; aspect-ratio: 1; color: #e7dccb; }
.frise-texte { grid-row: 1; display: grid; gap: .15rem; }
.frise-texte .cap { color: var(--sable); font-size: .66rem; letter-spacing: var(--espace-caps); }
.frise-titre { font-family: var(--display); font-size: clamp(1.1rem, 4.6vw, 1.45rem); line-height: 1.15; color: var(--clair); }
.frise-texte small { font-style: italic; font-size: .8rem; line-height: 1.4; color: #cbbba5; }
.frise-moment .frise-icone { grid-column: 1; justify-items: end; }
.frise-moment .frise-texte { grid-column: 3; text-align: left; justify-items: start; }
.frise-fin { position: relative; justify-self: center; width: 18px; height: 18px; margin-top: .4rem; color: var(--sable); }

/* 6.8 Bouton RSVP puis « Notre histoire » : deux photos superposées */
.histoire-accueil { display: grid; gap: 2rem; }
.histoire-accueil .sous-env { margin: 0; }
.photos-histoire { position: relative; display: block; justify-self: center; width: min(100%, 520px); aspect-ratio: 1 / .7; container-type: inline-size; text-decoration: none; color: var(--choco); }
/* Décor : brin d'eucalyptus devant le premier tirage, bouquet qui dépasse derrière le second (comme la démo) */
.photos-histoire .deco { position: absolute; pointer-events: none; }
.photos-histoire .deco img { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(43,32,27,.25)); }
.deco-eucalyptus { z-index: 2; left: -5%; top: 46%; width: 14%; rotate: -24deg; }
.deco-bouquet { z-index: 0; right: -15%; top: 40%; width: 30%; rotate: -12deg; }
.photo.avec-photo { background: none; }
.photos-histoire > span {
  position: absolute; display: grid; gap: .6rem; justify-items: center; padding: 4.5% 4.5% 3%;
  background: #f8f5ef var(--papier); background-size: 300px;
  box-shadow: 0 16px 26px -14px rgba(43,32,27,.55), 0 1px 2px rgba(43,32,27,.15); transition: transform .35s ease;
}
.tirage-a { left: 0; top: 4%; width: 48%; transform: rotate(-3deg); }
.tirage-b { right: 0; top: 13%; width: 54%; transform: rotate(2deg); z-index: 1; }
.photos-histoire .photo { aspect-ratio: 1 / .9; }
.tirage-a .cap { font-size: 2.2cqw; letter-spacing: var(--espace-caps); margin: .2rem 0 .3rem; white-space: nowrap; }
.tirage-b .display { font-size: 7cqw; line-height: 1; margin-bottom: .2rem; white-space: nowrap; }
.photos-histoire[href]:hover .tirage-a, .photos-histoire:focus-visible .tirage-a { transform: rotate(-4deg) translate(-6px, -4px); }
.photos-histoire[href]:hover .tirage-b, .photos-histoire:focus-visible .tirage-b { transform: rotate(1deg) translate(6px, -6px); }
.photo {
  aspect-ratio: 1; width: 100%; max-width: 100%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #8e7666, #4b382e 70%);
  color: rgba(246,242,236,.7); font-family: var(--capitales); font-size: .62rem; letter-spacing: var(--espace-caps); text-transform: uppercase;
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(.9); }

/* 6.8 bis Compte à rebours et agenda, juste après le déroulé, sur le lin fleuri */
.compte-agenda { display: grid; justify-items: center; text-align: center; padding: .6rem 0 .4rem; }
.compte-agenda .compte { margin-top: 0; }

/* 6.9 Final : tour de coupes, signature */
.final { display: grid; justify-items: center; text-align: center; gap: .4rem; padding-top: 0; }
/* Tour de coupes rapprochée des tirages photo (retour du 1er nov.) */
.histoire-accueil + .final { margin-top: calc(-1 * clamp(22px, 5vw, 36px)); }
.coupes { display: block; width: clamp(160px, 48vw, 240px); margin-bottom: 1rem; }
.coupes img { width: 100%; height: auto; }
.final .display { font-size: clamp(2.4rem, 10vw, 3.6rem); }
/* Même fin de page sur le RSVP, avec le retour à l'enveloppe */
.final-rsvp { padding: 3.6rem var(--gouttiere) 3rem; }
.final-rsvp .retour { margin-top: 1.2rem; }
.final-histoire .display, .final-histoire .retour { color: var(--clair); }
.compte { text-align: center; margin-top: 1.4rem; display: grid; gap: .3rem; }
.compte .nb { font-family: var(--display); font-size: clamp(3rem, 13vw, 4.2rem); color: var(--choco); font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.changer { margin: 1.2rem 0 0; text-align: center; font-style: italic; font-size: .85rem; color: var(--moka); }
.changer button {
  font: inherit; font-style: normal; color: var(--choco); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 3px;
}

/* Boutons « Ajouter à mon agenda » */
.agenda { display: grid; justify-items: center; gap: .7rem; margin-top: 1.6rem; }
.agenda .boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bouton-agenda {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem;
  border: 1px solid var(--taupe); background: var(--champagne); color: var(--encre); text-decoration: none;
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps); font-size: .68rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.bouton-agenda svg { width: 16px; height: 16px; flex: none; }
.bouton-agenda:hover, .bouton-agenda:focus-visible { background: var(--taupe); }
.retour-form .agenda { margin-top: 1.2rem; }

/* ---------- 7. Pages intérieures ---------- */
.bandeau {
  position: relative; text-align: center; padding: 2.6rem var(--gouttiere) 3.2rem;
  background-color: var(--choco); color: var(--clair);
  background-image: linear-gradient(rgba(40,28,22,.55), rgba(40,28,22,.72)), var(--gravure), var(--lin);
  background-size: auto, cover, 260px; background-position: center, center 40%, 0 0;
}
.bandeau .display { color: var(--clair); font-size: clamp(3rem, 12vw, 6rem); }
@media (min-width: 960px) { .bandeau { padding-block: 4rem 4.6rem; } }
.bandeau-rsvp .display { font-size: clamp(2.5rem, 10.5vw, 5.2rem); line-height: 1.05; text-wrap: balance; }
/* Bandeau « Confirmer ma venue » : le marron uni du déroulé, sans la gravure */
.bandeau-rsvp { background: #2b1f19; box-shadow: none; }
/* Bandeau de la page Détails (V3) : gravure deux fois plus haute, sans filtre marron, pour voir la fontaine.
   Seule une ombre douce sous le titre garde « Les détails » lisible. */
.bandeau-fontaine {
  display: grid; place-items: center; min-height: clamp(340px, 74vw, 620px); padding-block: 3rem;
  background-color: #d9d3c9; background-image: var(--gravure); background-size: cover; background-position: center 42%;
}
.bandeau-fontaine .display {
  font-size: clamp(3.6rem, 17vw, 8.4rem); line-height: 1;
  text-shadow: 0 2px 3px rgba(20,14,10,.55), 0 0 22px rgba(20,14,10,.55), 0 0 60px rgba(20,14,10,.35);
}

.section { max-width: var(--large); margin: 0 auto; padding: 3.2rem var(--gouttiere) 0; text-align: center; }
.section h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 9vw, 3.8rem); line-height: 1.08;
  margin: 0 0 1.4rem; color: var(--choco); text-wrap: balance;
}
.section h2 em { font-style: normal; }
.section > p { max-width: 34em; margin-inline: auto; }
.filet { width: 60px; height: 1px; margin: 3.2rem auto 0; border: 0; background: var(--taupe); }
@media (min-width: 960px) { .section { padding-top: 4.4rem; } .filet { margin-top: 4.4rem; } }

/* La page Détails est posée sur le lin brodé de fleurs, comme l'accueil */
body[data-vue="details"]::before { opacity: 1; }

/* Compte à rebours en tête de page */
.section-compte .compte { margin-top: 0; }
.section-compte .agenda { margin-top: 1.4rem; }

/* Date & lieux : la date, puis trois cartes en relief (sur une ligne à partir de la tablette) */
.date-jj { margin: -.4rem 0 2rem !important; font-family: var(--display); font-size: clamp(1.5rem, 6vw, 2rem); color: var(--moka); }
.lieux { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .lieux { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.bloc {
  display: grid; gap: .35rem; align-content: start; justify-items: center; padding: 1.7rem 1.2rem 1.6rem;
  background: var(--ivoire) var(--papier); background-size: 300px; border-top: 2px solid var(--taupe);
  box-shadow: 0 1px 2px rgba(43,32,27,.14), 0 18px 28px -16px rgba(43,32,27,.5);
}
.bloc .cap { font-size: .66rem; }
.bloc .valeur { font-family: var(--display); font-size: 1.6rem; color: var(--choco); line-height: 1.2; }
.bloc p { margin: 0; font-size: 1rem; line-height: 1.45; }
.bloc .lien-souligne { margin-top: .7rem; }

/* Venir jusqu'à nous : chaque icône suivie de son texte, sans encadré */
.acces { display: grid; max-width: 620px; margin: 0 auto; text-align: left; }
.acces-item { display: grid; grid-template-columns: 58px 1fr; gap: 1.1rem; align-items: start; padding: 1.2rem 0; border-bottom: 1px solid rgba(200,181,166,.6); }
.acces-item:last-child { border-bottom: 0; }
.acces-icone { width: 58px; height: 58px; color: var(--moka); }
.acces-item h3 { margin: .35rem 0 .25rem; }
.acces-item p { margin: 0; }
.libellule-transition { display: block; width: 92px; height: auto; margin: 2.6rem auto 0; color: var(--moka); }

/* Où dormir : fond marron uni sur toute la largeur */
.section-dormir {
  max-width: none; margin-top: 3.4rem; padding-bottom: 3.6rem;
  padding-inline: max(var(--gouttiere), calc((100% - var(--large)) / 2 + var(--gouttiere)));
  background: #2c221e; color: var(--clair);
}
.section-dormir h2 { color: var(--clair); }
.section-dormir .cap { color: var(--sable); }
.dormir-manoir { display: grid; justify-items: center; gap: .3rem; max-width: 34em; margin: 0 auto; }
.dormir-manoir .display { margin: .2rem 0 .4rem; font-size: clamp(1.8rem, 7vw, 2.4rem); color: var(--clair); }
.dormir-manoir p { margin: 0 0 .6rem; }
.dormir-manoir .lien-souligne, .section-dormir .lien-souligne { color: var(--sable); border-bottom-color: rgba(217,201,174,.55); }
.dormir-adresses { max-width: 900px; margin: 0 auto; }
.heb-intro { max-width: 36em; margin: 0 auto; }
.section-dormir .note { color: var(--sable); }
.sous-titre {
  display: flex; align-items: center; gap: 1rem; margin: 2.2rem 0 1rem;
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps); font-size: .72rem; font-weight: 600; color: var(--sable);
}
.sous-titre::before, .sous-titre::after { content: ""; flex: 1; height: 1px; background: rgba(217,201,174,.4); }
.liste-heb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 28px; text-align: left; }
.liste-heb li { padding: .85rem 0; border-bottom: 1px solid rgba(217,201,174,.22); min-width: 0; }
.liste-heb .nom { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--clair); line-height: 1.25; }
.liste-heb .meta { display: block; font-size: .95rem; color: #dccdb6; }
.liste-heb .prix { margin-left: .5rem; font-family: var(--capitales); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sable); }

/* Autres détails : fond taupe uni #C8B5A6 ; dress code (pastilles de tissu), cadeaux, enfants */
.section-autres {
  max-width: none; padding-bottom: 3.6rem;
  padding-inline: max(var(--gouttiere), calc((100% - var(--large)) / 2 + var(--gouttiere)));
  background: var(--taupe); color: var(--encre);
}
.autres { display: grid; justify-items: center; gap: 2rem; max-width: 40em; margin: 0 auto; }
.autre { display: grid; justify-items: center; gap: .7rem; }
.autre h3 { margin: 0; color: var(--choco); font-size: .74rem; }
.autre p { margin: 0; }
.autre-sep { width: 64px; height: 1px; background: var(--choco); opacity: .35; }
.tissus {
  list-style: none; margin: 1rem 0 0; padding: 0; width: min(100vw - 2 * var(--gouttiere), 980px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 1.1rem .4rem;
}
.tissus li { display: grid; justify-items: center; gap: .15rem; }
.tissu {
  width: 64px; aspect-ratio: 1; border-radius: 50%; margin-bottom: .45rem;
  background: url("../img/palette-tissus.webp") 0 0 / 1100% 100% no-repeat;
  box-shadow: 0 6px 10px -5px rgba(43,32,27,.6);
}
.tissus b { font-family: var(--capitales); font-weight: 600; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--choco); }
.tissus i { font-family: var(--display); font-style: normal; font-size: 1rem; color: var(--moka); }
@media (min-width: 960px) { .tissus { grid-template-columns: repeat(11, 1fr); } .tissu { width: 72px; } }

/* Notre histoire (V3) : fond marron #2C221E, écriture ivoire */
#vue-histoire { background: #2c221e; color: var(--clair); }
#vue-histoire .section h2 { color: var(--clair); }
#vue-histoire .signature .display, #vue-histoire .signature .cap, #vue-histoire .retour { color: var(--clair); }
#vue-histoire .signature .logo { color: var(--clair); }
/* Message d'attente, tant que le texte n'est pas prêt */
.histoire-attente { display: grid; justify-items: center; gap: 1.4rem; max-width: 30em; margin: 0 auto; padding: 1rem 0 1.5rem; text-align: center; }
.libellule-attente { width: 110px; height: auto; color: var(--clair); opacity: .9; }
.histoire-attente .display { color: var(--clair); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.25; }
.prose { text-align: left; max-width: 34em; margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child::first-letter { float: left; font-family: var(--display); font-size: 3.6em; line-height: .85; padding: .06em .1em 0 0; color: var(--sable); }
.album { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 auto 2.4rem; max-width: 720px; }
.album .tirage { background: var(--ivoire); padding: 9px 9px 26px; width: min(200px, 44%); box-shadow: 0 12px 22px -14px rgba(0,0,0,.6); }

/* ---------- 8. RSVP : le questionnaire (V3, d'après la démo) ---------- */
.rsvp { display: grid; gap: 2rem; max-width: 640px; margin: 0 auto; }
.rsvp-intro h2 { margin-bottom: .8rem; font-size: clamp(2rem, 8vw, 3rem); }
.rsvp-intro .cap { margin: 0 0 1.2rem; }
.rsvp-limite { margin: 0 0 .7rem; font-weight: 500; }
.rsvp-contacts { margin: 1.8rem auto 0; max-width: 30em; text-align: center; font-size: .95rem; line-height: 1.6; color: var(--moka); }
.rsvp-contacts a { color: var(--choco); text-decoration-color: var(--taupe); text-underline-offset: 3px; font-variant-numeric: lining-nums tabular-nums; }
form { display: grid; gap: 1.6rem; text-align: left; }
.questionnaire {
  padding: 1.7rem 1.25rem 1.9rem; border: 2px solid var(--choco); border-radius: 22px;
  background: var(--ivoire) var(--papier); background-size: 300px;
  box-shadow: 0 20px 34px -24px rgba(43,32,27,.55);
}
@media (min-width: 600px) { .questionnaire { padding: 2.4rem 2.3rem 2.5rem; } }
label, .legende { display: block; margin-bottom: .55rem; font-family: var(--texte); font-weight: 500; font-size: 1rem; line-height: 1.4; color: var(--encre); }
.requis { margin-left: .15em; color: var(--moka); }
.facultatif { font-weight: 400; font-size: .88em; color: var(--moka); }
.aide { margin: -.3rem 0 .7rem; font-size: .85rem; line-height: 1.5; font-style: italic; color: var(--moka); }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: .75rem .9rem; border: 1px solid #b9aa9b; border-radius: 10px;
  background: #fffdf9; color: var(--encre); font: inherit; font-size: 1rem; line-height: 1.4;
}
textarea { resize: vertical; min-height: 6.5rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--choco); box-shadow: 0 0 0 3px rgba(92,64,51,.16); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem; text-overflow: ellipsis;
  background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a5f50' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .9rem center / 12px 8px;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Réponses en pastilles, l'une sous l'autre ; une case ronde (un seul choix) ou carrée (plusieurs) */
.choix { display: grid; gap: 10px; }
.choix label { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 10px;
  background: #e8e0d6; color: var(--encre); font-size: 1rem; line-height: 1.35; transition: background .15s, color .15s;
}
.choix span::before {
  content: ""; flex: none; width: 1.05rem; height: 1.05rem; border: 1.5px solid #8a7464; border-radius: 4px; background: #fffdf9 no-repeat center / 76%;
}
.choix input[type=radio] + span::before { border-radius: 50%; }
.choix label:hover span { background: #ded4c9; }
.choix input:checked + span { background: var(--choco); color: var(--clair); }
.choix input:checked + span::before {
  border-color: var(--clair); background-color: var(--clair);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2l3.4 3.3L11 1.5' fill='none' stroke='%234a3525' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choix input:focus-visible + span { outline: 2px solid var(--moka); outline-offset: 2px; }
.precision { margin-top: .9rem; }
.choix[data-regimes] { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1.4rem; }
.erreur { margin: 0; padding: .8rem 1rem; border-radius: 10px; background: #f3e3dc; color: #7a2e1b; font-size: .95rem; }
button.envoyer {
  justify-self: stretch; padding: 1.05rem 1.8rem; border: 1px solid var(--taupe); border-radius: 12px; cursor: pointer;
  background: var(--champagne); color: var(--encre);
  font-family: var(--capitales); text-transform: uppercase; letter-spacing: var(--espace-caps); font-size: .8rem; font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(43,32,27,.6); transition: background .2s;
}
button.envoyer:hover, button.envoyer:focus-visible { background: var(--taupe); }
button.envoyer:disabled { opacity: .6; cursor: wait; }
.retour-form { padding: 2rem 1.4rem; border: 2px solid var(--choco); border-radius: 22px; background: var(--ivoire) var(--papier); background-size: 300px; text-align: center; }
.retour-form .display { font-size: 2.2rem; margin-bottom: .5rem; }

/* ---------- 9. Signature ---------- */
.signature { display: grid; gap: .5rem; justify-items: center; text-align: center; padding: 4rem var(--gouttiere) 3rem; }
.signature .display { font-size: 2.4rem; }
.signature .logo { width: 58px; color: var(--laiton); margin-bottom: .6rem; }
.section-autres + .signature-details { padding-top: 3.4rem; }

/* ---------- 10. Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


