/* ============================================================
   LA LETTRE — papier bordeaux gaufré, couleurs inversées.
   Bordeaux #701E2D (papier) · bordeaux clair #8A3140 (arches)
   Olive #73784B / olive foncé #4A5630 (cartouches, boutons, lignes)
   Crème #E7DDCC (texte)
   ============================================================ */

.letterView,
.env__inside{
  --paper:#701E2D;
  --paper-2:#8A3140;
  --olive:#73784B;
  --olive-dark:#4A5630;
  --olive-light:#B9BE8C;      /* olive éclairci, lisible sur le bordeaux */
  --cream:#E7DDCC;

  --ink-strong:#F3EADB;       /* prénoms, valeurs */
  --accent:#E7DDCC;           /* titres manuscrits */
  --ink:rgba(231,221,204,.9);
  --ink-soft:rgba(231,221,204,.64);
  --label:var(--olive-light);
  --rule:rgba(231,221,204,.42);
  --rule-soft:rgba(231,221,204,.2);
  --arch-r:50% 50% 12px 12px / 110px 110px 12px 12px;   /* courbe douce : le texte reste dedans */
}

.letterView{
  --nav-h:calc(96px + env(safe-area-inset-bottom));
  position:fixed; inset:0;
  z-index:3;                       /* plein écran, au-dessus de l'enveloppe */
  overflow:hidden;
  visibility:hidden;
  pointer-events:none;
}
body.is-reading .letterView{ visibility:visible; pointer-events:auto; }

/* ---------- le papier ---------- */
.letterView__paper{
  position:absolute; inset:0;
  background:#701E2D url("../img/letter-bg-uni.jpg") center center / cover no-repeat;
}
.letterView__paper::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(120% 80% at 50% 45%,transparent 40%,rgba(40,8,16,.38) 100%);
}

.deck{ position:absolute; inset:0; overflow:hidden; }


/* ============================================================
   UNE SECTION = UN ÉCRAN
   ============================================================ */
.sheet{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:flex-start;
  padding:max(80px,calc(env(safe-area-inset-top) + 72px)) clamp(18px,6vw,40px) calc(var(--nav-h, 96px) + 14px);
  color:var(--ink);
  opacity:0;
  transform:translateY(22px);
  pointer-events:none;
  overflow-y:auto; overflow-x:hidden;
  scrollbar-width:none;
  transition:opacity .62s ease, transform .72s cubic-bezier(.2,.8,.25,1);
}
.sheet::-webkit-scrollbar{ display:none; }
.sheet > .arch{ margin:auto 0; flex:none; }
.sheet.is-active{ opacity:1; transform:none; pointer-events:auto; }
.sheet.is-leaving{ opacity:0; transform:translateY(-22px); }

/* ============================================================
   VRAI VERRE DÉPOLI dans la lettre : l'arche floute en direct le papier
   qui est derrière elle, même quand on fait défiler une section.
   (Les sections ne s'estompent plus elles-mêmes — seul leur contenu —
   sinon le navigateur couperait le flou pendant les transitions.)
   L'enveloppe, elle, garde la copie floutée : le passage reste invisible.
   ============================================================ */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #deck .sheet,
  #deck .sheet.is-leaving{ opacity:1; }
  #deck .arch{
    background-color:transparent;
    background-image:linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38));
    background-size:100% 100%;
    background-repeat:no-repeat;
    -webkit-backdrop-filter:blur(var(--blur,3px)) contrast(1.08);
            backdrop-filter:blur(var(--blur,3px)) contrast(1.08);
  }
}
.sheet.is-before{ transform:translateY(-22px); }

/* contenu qui apparaît dans la section active */
.sheet > *{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .75s ease, transform .85s cubic-bezier(.2,.8,.25,1);
}
.sheet.is-active > *{ opacity:1; transform:none; transition-delay:.12s; }

/* ---------- l'arche ---------- */
.arch{
  position:relative;
  width:min(100%,400px);
  min-height:min(62svh,600px);
  display:flex; flex-direction:column; justify-content:center;
  padding:68px clamp(24px,6.5vw,40px) clamp(30px,6vw,44px);   /* le contenu commence sous l'arrondi */
  border:1px solid var(--rule);
  border-radius:var(--arch-r);
  /* voile bordeaux dépoli.
     Le flou est INTÉGRÉ : une copie déjà floutée du papier, placée pile sous
     l'arche (positions calculées par main.js). Contrairement à backdrop-filter,
     il est identique pendant les fondus et dans l'enveloppe : aucun saut. */
  /* La copie floutée est calée une fois pour toutes sur la position de repos
     de l'arche : quand on fait défiler une section, elle défile AVEC l'arche
     (avant, elle était recalée à chaque défilement, toujours avec un temps
     de retard : les fleurs floues semblaient glisser). */
  background-image:
    linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38)),
    url("../img/letter-bg-uni-flou-long.jpg");
  /* l'image floutée est suivie de son reflet, répété vers le bas : même une
     arche bien plus haute que l'écran est couverte jusqu'en bas, sans raccord visible */
  background-size:100% 100%, var(--bw,100vw) calc(var(--bh,100vh) * 2);
  background-position:0 0, var(--bx,0) var(--by,0);
  background-repeat:no-repeat, repeat-y;
  background-origin:border-box;
  background-color:#701E2D;
  box-shadow:inset 0 1px 0 rgba(255,236,226,.1), 0 18px 40px rgba(30,4,10,.28);
  text-align:center;
}
.arch::before{
  content:"";
  position:absolute; inset:6px;
  border:1px solid var(--rule-soft);
  border-radius:var(--arch-r);
  pointer-events:none;
}

/* titre de section : un vrai ruban de satin olive (photo Higgsfield : assets/img/ruban-g/m/d.png),
   bouts entaillés et repliés. Les deux bouts gardent leur forme, seul le milieu
   s'allonge selon la longueur du titre. */
.tag{
  position:absolute; top:0; left:50%;
  transform:translate(-50%,-50%);
  box-sizing:border-box;
  height:32px; min-width:170px;
  display:flex; align-items:center; justify-content:center;
  padding:0 38px 1px calc(38px + .3em);
  /* le milieu du ruban (le satin s'allonge), les deux bouts posés par-dessus
     en le chevauchant : aucun raccord visible */
  background:url("../img/ruban-m.png") 26px 0 / calc(100% - 52px) 100% no-repeat;
  filter:drop-shadow(0 3px 4px rgba(30,4,10,.42));
  font-family:var(--f-display);
  font-size:clamp(9.5px,2.5vw,11px); font-weight:700;
  letter-spacing:.3em; text-transform:uppercase;
  color:#FFF8EA;
  text-shadow:0 1px 1px rgba(14,18,4,.9), 0 0 6px rgba(20,26,6,.65);
  white-space:nowrap;
}
.tag::before,
.tag::after{
  content:"";
  position:absolute; top:0; bottom:0;
  width:28px;
  background:url("../img/ruban-g.png") 0 0 / 100% 100% no-repeat;
  pointer-events:none;
}
.tag::before{ left:0; }
.tag::after{ right:0; background-image:url("../img/ruban-d.png"); }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
.lt-over{
  margin:0 0 clamp(14px,3vw,20px);
  font-family:var(--f-display);
  font-size:clamp(9px,2.3vw,11px);
  letter-spacing:.42em; text-transform:uppercase;
  color:var(--label);
  padding-left:.42em;
}
.lt-names{
  margin:0;
  font-family:var(--f-script);
  font-weight:400;
  font-size:clamp(48px,14vw,76px);
  line-height:1.08;
  color:var(--ink-strong);
  text-shadow:0 2px 14px rgba(30,4,10,.35);
}
.lt-names span{ display:block; }
.lt-names em{
  display:block;
  font-family:var(--f-display);
  font-style:normal;
  font-size:.26em;
  letter-spacing:.2em;
  color:var(--olive-light);
  margin:.18em 0;
}
.lt-div{
  display:flex; align-items:center; justify-content:center; gap:11px;
  margin:clamp(16px,3.4vw,24px) auto;
  width:min(100%,220px);
}
.lt-div i{ flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--rule)); }
.lt-div i:last-child{ background:linear-gradient(270deg,transparent,var(--rule)); }
.lt-div b{
  width:56px; height:auto; flex:none;
  display:block;
  filter:drop-shadow(0 2px 2px rgba(30,6,12,.45));
}
/* alliances en or (photo détourée) */
.lt-div b img{ display:block; width:100%; height:auto; }
.lt-lede{
  margin:0 auto; max-width:34ch;
  font-size:clamp(15.5px,4vw,18px);
  font-style:italic; line-height:1.8;
  color:var(--ink);
}
.lt-h2{
  margin:0 0 clamp(14px,3vw,22px);
  font-family:var(--f-script);
  font-weight:400;
  font-size:clamp(32px,8.5vw,44px);
  line-height:1.1;
  color:var(--accent);
}
.lt-label{
  display:block;
  font-family:var(--f-display);
  font-size:clamp(8.5px,2.2vw,10px);
  letter-spacing:.32em; text-transform:uppercase;
  color:var(--label);
  padding-left:.32em;
  margin-bottom:8px;
}
.lt-value{
  display:block;
  font-family:var(--f-display);
  font-size:clamp(16px,4.4vw,21px);
  font-weight:600; line-height:1.34;
  color:var(--ink-strong);
}
.lt-sub{
  display:block; margin-top:6px;
  font-size:clamp(13.5px,3.4vw,15.5px);
  font-style:italic;
  color:var(--ink-soft);
}
.lt-block + .lt-block{
  margin-top:clamp(12px,2.2vh,26px);
  padding-top:clamp(12px,2.2vh,26px);
  border-top:1px solid var(--rule-soft);
}

/* dessin du lieu : traits crème transparents (pas de mélange → pas de carré blanc) */
.lt-venue{
  display:block;
  width:100%; max-width:300px;
  max-height:13svh; object-fit:contain;
  margin:0 auto clamp(8px,1.6vh,14px);
  opacity:.92;
}

/* ---------- Compte à rebours ---------- */
.lt-count{ display:flex; justify-content:center; gap:clamp(5px,1.8vw,12px); margin-top:clamp(14px,3vw,22px); width:100%; }
.lt-count div{
  flex:1 1 0; min-width:0; max-width:80px;   /* 4 cases égales, jamais plus larges que l'arche */
  padding:10px 4px 9px;
  border:0;
  border-radius:12px;
  background:rgba(74,86,48,.55);
}
.lt-count b{
  display:block;
  font-family:var(--f-display);
  font-size:clamp(22px,6vw,30px); font-weight:600;
  color:var(--ink-strong);
  font-variant-numeric:tabular-nums;
}
.lt-count span{
  display:block; margin-top:4px;
  font-family:var(--f-display);
  font-size:clamp(7px,1.85vw,8.5px);
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--label);
  padding-left:.1em;
  white-space:nowrap;
}
.lt-count__now{ font-family:var(--f-script); font-size:clamp(26px,7vw,36px); color:var(--ink-strong); }

/* ---------- Mot personnel ---------- */
.lt-message{
  margin:0 auto; max-width:34ch;
  font-size:clamp(15.5px,4vw,18px);
  line-height:1.86;
  color:var(--ink);
}
.lt-message p{ margin:0 0 1em; }
.lt-message p:last-child{ margin-bottom:0; }
.lt-sign{
  margin:clamp(22px,4.6vw,32px) 0 0;
  font-family:var(--f-script);
  font-size:clamp(28px,7.4vw,40px);
  line-height:1.3;
  color:var(--ink-strong);
}
.lt-sign small{
  display:block;
  font-family:var(--f-display);
  font-size:clamp(9px,2.3vw,10.5px);
  letter-spacing:.34em; text-transform:uppercase;
  color:var(--label);
  margin-bottom:.7em;
  padding-left:.34em;
}


/* ============================================================
   BOUTONS & FORMULAIRE
   ============================================================ */
.lt-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  margin-top:clamp(14px,3vw,22px);
  padding:12px 28px;
  padding-left:calc(28px + .26em);
  border:0;
  border-radius:999px;
  background:var(--olive-dark);
  color:var(--ink-strong);
  font-family:var(--f-display);
  font-size:clamp(9.5px,2.4vw,11px);
  letter-spacing:.26em; text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  transition:background .3s, border-color .3s, transform .3s;
}
@media (hover:hover) and (pointer:fine){ .lt-btn:hover{ background:var(--olive); transform:translateY(-1px); } }
.lt-btn--solid{
  background:var(--olive);
  color:#F7F0E2;
  box-shadow:0 6px 18px rgba(30,4,10,.3);
}
@media (hover:hover) and (pointer:fine){ .lt-btn--solid:hover{ background:var(--olive-dark); } }
.lt-block .lt-btn{ margin-top:clamp(10px,1.8vh,18px); padding-top:10px; padding-bottom:10px; }

.lt-form{ text-align:left; }
.lt-field{ margin-bottom:clamp(14px,3vw,20px); }
.lt-field > .lt-label{ text-align:center; }
.lt-input{
  width:100%;
  padding:12px 14px;
  border:0; border-bottom:1px solid var(--rule);
  background:transparent;
  font-family:var(--f-body);
  font-size:16px;
  color:var(--ink-strong);
  text-align:center;
  transition:border-color .25s;
}
.lt-input:focus{ outline:none; border-bottom-color:var(--olive-light); }
.lt-input::placeholder{ color:var(--ink-soft); font-style:italic; }

.lt-choice{ display:grid; gap:9px; }
.lt-choice label{
  display:flex; align-items:center; gap:11px;
  padding:12px 16px;
  border:0;
  border-radius:999px;
  background:rgba(74,86,48,.32);
  cursor:pointer;
  font-size:clamp(14px,3.6vw,15.5px);
  color:var(--ink);
  transition:border-color .25s, background .25s;
}
@media (hover:hover) and (pointer:fine){ .lt-choice label:hover{ background:rgba(74,86,48,.5); } }
.lt-choice input{ position:absolute; opacity:0; pointer-events:none; }
.lt-choice i{
  width:13px; height:13px; flex:none;
  border:1px solid var(--rule);
  border-radius:50%;
  position:relative;
}
.lt-choice input:checked + i::after{
  content:""; position:absolute; inset:3px;
  border-radius:50%; background:var(--olive-light);
}
.lt-choice input:checked ~ span{ color:var(--ink-strong); font-weight:600; }
.lt-choice label:has(input:checked){ background:var(--olive); }

.lt-stepper{ display:flex; align-items:center; justify-content:center; gap:18px; }
.lt-stepper button{
  width:36px; height:36px;
  border:0;
  border-radius:50%;
  background:var(--olive-dark);
  color:var(--ink-strong);
  font-size:17px; line-height:1;
  cursor:pointer;
  transition:border-color .25s, background .25s;
}
@media (hover:hover) and (pointer:fine){ .lt-stepper button:hover{ background:var(--olive); } }
.lt-stepper output{
  font-family:var(--f-display);
  font-size:clamp(20px,5vw,24px); font-weight:600;
  color:var(--ink-strong);
  min-width:2ch; text-align:center;
}

.lt-note{
  margin:clamp(12px,2.6vw,18px) 0 0;
  font-family:var(--f-display);
  font-size:clamp(8px,2vw,9.5px);
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--ink-soft);
  padding-left:.24em;
}
.lt-demo{ display:inline-block; padding:5px 13px; border:1px dashed var(--rule-soft); border-radius:999px; }

.arch--rsvp .lt-h2{ font-size:clamp(28px,7.4vw,38px); margin-bottom:6px; }
.arch--rsvp .lt-field{ margin-bottom:clamp(12px,2.4vh,18px); }
.arch--rsvp .lt-choice label{ padding:10px 14px; }
.arch--rsvp .lt-form{ margin-top:clamp(12px,2.6vh,20px); }
.arch--rsvp .lt-btn{ margin-top:clamp(6px,1.6vh,14px); }


/* ============================================================
   BARRE DE NAVIGATION (fixe en bas)
   ============================================================ */
.navbar{
  position:absolute; left:0; right:0; bottom:0;
  height:var(--nav-h);
  padding-bottom:env(safe-area-inset-bottom);
  z-index:3;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:14px;
  background:linear-gradient(180deg,rgba(90,22,36,0),rgba(90,22,36,.94) 40%);
  opacity:0;
  transition:opacity .6s ease;
}
body.is-reading .navbar{ opacity:1; transition-delay:.3s; }

.cue{
  display:inline-flex; align-items:center; gap:9px;
  padding:11px 24px;
  padding-left:calc(24px + .26em);
  border:1px solid rgba(231,221,204,.75);   /* seul bouton bordé : on le distingue des titres */
  border-radius:999px;
  background:var(--olive-dark);
  color:var(--cream);
  font-family:var(--f-display);
  font-size:clamp(9px,2.3vw,10.5px);
  letter-spacing:.26em; text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(30,4,10,.3);
  transition:background .3s, border-color .3s;
}
@media (hover:hover) and (pointer:fine){ .cue:hover{ background:var(--olive); border-color:var(--cream); } }
.cue{ line-height:1; }
.cue__arrow{
  width:15px; height:15px; flex:none;
  margin-left:2px;
  fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
  animation:cueBob 2.4s ease-in-out infinite;
}
@keyframes cueBob{ 0%,100%{ transform:translateY(-1px); } 50%{ transform:translateY(2px); } }
.cue.is-top .cue__arrow{ animation-name:cueBobUp; }
@keyframes cueBobUp{ 0%,100%{ transform:rotate(180deg) translateY(-1px); } 50%{ transform:rotate(180deg) translateY(2px); } }

.dots{ display:flex; justify-content:center; gap:9px; }
.dots button{
  width:6px; height:6px; padding:0;
  border:1px solid rgba(231,221,204,.5);
  border-radius:50%;
  background:transparent;
  cursor:pointer;
  transition:background .3s, transform .3s, border-color .3s;
}
.dots button[aria-current="true"]{ background:var(--olive-light); border-color:var(--olive-light); transform:scale(1.35); }


/* ---------- bouton Refermer : icône seule ---------- */
.pill{
  position:absolute;
  top:max(16px,env(safe-area-inset-top)); left:16px;
  z-index:4;
  width:40px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(74,86,48,.88);
  color:var(--cream);
  cursor:pointer;
  opacity:0;
  transition:opacity .6s ease, background .3s;
}
body.is-reading .pill{ opacity:1; transition-delay:.3s; }
@media (hover:hover) and (pointer:fine){ .pill:hover{ background:var(--olive); } }
.pill svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }

/* ============================================================
   LE DÉROULÉ — une rose séchée avance d'étape en étape
   ============================================================ */
.tl{ position:relative; width:100%; text-align:left; --tl-x:86px; }
.tl__track{
  position:absolute;
  left:var(--tl-x); top:14px; bottom:14px;
  width:1px;
  border-left:1px dashed var(--rule-soft);
}
.tl__fill{
  position:absolute; left:-1px; top:0;
  width:2px; height:0;
  background:var(--olive-light);
  transition:height .9s cubic-bezier(.4,0,.2,1);
}
.tl__flower{
  position:absolute;
  left:var(--tl-x); top:0;
  width:42px; height:auto;
  margin:-19px 0 0 -21px;
  filter:drop-shadow(0 3px 6px rgba(30,4,10,.45));
  transition:transform .9s cubic-bezier(.4,0,.2,1);
  pointer-events:none;
  z-index:2;
}
.tl__steps{ list-style:none; margin:0; padding:0; }
.tl__step{
  position:relative;
  padding:0 0 0 calc(var(--tl-x) + 30px);
  min-height:36px;
  margin-bottom:clamp(8px,1.6vh,18px);
  cursor:pointer;
}
.tl__step:last-child{ margin-bottom:0; }
/* seul le texte s'estompe : les points restent toujours pleins */
.tl__time,
.tl__title{ opacity:.45; transition:opacity .6s ease, transform .6s ease; }
.tl__step.is-past .tl__time,
.tl__step.is-past .tl__title{ opacity:.72; }
.tl__step.is-on .tl__time,
.tl__step.is-on .tl__title{ opacity:1; }
.tl__step::after{
  content:"";
  position:absolute; left:calc(var(--tl-x) - 3.5px); top:10.5px;
  width:8px; height:8px; border-radius:50%;
  background:#B9BE8C;
  box-shadow:0 0 0 3px #7a2433;
  z-index:1;
}
.tl__time{
  position:absolute; left:0; top:8px;
  width:calc(var(--tl-x) - 32px);
  text-align:right;
  font-family:var(--f-display);
  font-size:clamp(10px,2.6vw,11.5px);
  letter-spacing:.06em;
  color:var(--label);
  white-space:nowrap;
}
.tl__title{
  display:block; padding-top:5px;
  font-family:var(--f-display);
  font-size:clamp(14px,3.7vw,16.5px); font-weight:600;
  line-height:1.25;
  color:var(--ink-strong);
  transition:transform .6s ease;
  transform-origin:left center;
}
.tl__step.is-on .tl__title{ transform:scale(1.06); }
.tl__caption{
  min-height:1.4em;
  margin:calc(-1 * clamp(4px,1.4vh,12px)) auto clamp(14px,2.6vh,22px);
  max-width:30ch;
  text-align:center;
  font-style:italic;
  font-size:clamp(14px,3.6vw,16px);
  line-height:1.4;
  color:var(--ink);
  opacity:0;
  transform:translateY(4px);
  transition:opacity .4s ease, transform .4s ease;
}
.tl__caption.is-in{ opacity:1; transform:none; }
.tl__hint{
  margin-top:clamp(14px,2.6vh,20px);
  font-family:var(--f-display);
  font-size:clamp(8px,2vw,9.5px);
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--ink-soft);
  text-align:center;
}


/* ============================================================
   NOS PHOTOS — une pile de tirages à faire glisser du doigt
   ============================================================ */
.arch--gal .lt-h2{ margin-bottom:clamp(8px,1.6vh,14px); }

.stack{
  position:relative;
  height:min(42svh,400px);
  aspect-ratio:3/4;
  max-width:88%;
  margin:6px auto 0;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  z-index:0;
  isolation:isolate;          /* les cartes restent dans leur pile */
}
.card{
  position:absolute; inset:0;
  margin:0;
  padding:7px;
  background:#efe6d6;
  border-radius:150px 150px 10px 10px / 128px 128px 10px 10px;
  box-shadow:0 14px 30px rgba(30,4,10,.45), 0 2px 6px rgba(30,4,10,.3);
  transition:transform .55s cubic-bezier(.2,.8,.25,1), opacity .4s ease;
  cursor:grab;
  will-change:transform;
}
.card.is-drag{ transition:none; cursor:grabbing; }
.card img{
  width:100%; height:100%;
  display:block;
  object-fit:cover;
  border-radius:144px 144px 6px 6px / 122px 122px 6px 6px;
  pointer-events:none;
  -webkit-user-drag:none;
}

.gal__bar{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin-top:clamp(16px,3vh,24px);
}
.gal__bar button{
  width:36px; height:36px;
  border:0;
  border-radius:50%;
  background:var(--olive-dark);
  color:var(--cream);
  font-size:16px; line-height:1;
  cursor:pointer;
  transition:background .25s;
}
@media (hover:hover) and (pointer:fine){ .gal__bar button:hover{ background:var(--olive); } }
.gal__count{
  min-width:5ch; text-align:center;
  font-family:var(--f-display);
  font-size:11px; letter-spacing:.2em;
  color:var(--label);
}
.gal__hint{
  margin-top:10px;
  font-family:var(--f-display);
  font-size:clamp(8px,2vw,9px);
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-soft);
}

/* ---------- plein écran ---------- */
.lightbox{
  position:absolute; inset:0;
  z-index:100;
  display:flex; align-items:center; justify-content:center;
  padding:max(60px,env(safe-area-inset-top)) 14px max(70px,env(safe-area-inset-bottom));
  background:rgba(38,8,16,.94);
  opacity:0; visibility:hidden;
  transition:opacity .45s ease, visibility 0s linear .45s;
  touch-action:none;
}
.lightbox.is-open{ opacity:1; visibility:visible; transition-delay:0s; }
.lightbox img{
  max-width:100%; max-height:100%;
  object-fit:contain;
  border-radius:6px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  transform:scale(.94);
  transition:transform .5s cubic-bezier(.2,.8,.25,1), opacity .3s ease;
}
.lightbox.is-open img{ transform:none; }
.lightbox__close,
.lightbox__nav{
  position:absolute;
  border:0;
  border-radius:999px;
  background:var(--olive-dark);
  color:var(--cream);
  cursor:pointer;
}
.lightbox__close{
  top:max(16px,env(safe-area-inset-top)); left:16px;
  padding:9px 16px;
  font-family:var(--f-display);
  font-size:10px; letter-spacing:.22em; text-transform:uppercase;
}
.lightbox__nav{
  bottom:max(18px,env(safe-area-inset-bottom));
  width:44px; height:44px;
  font-size:18px;
}
.lightbox__nav--prev{ left:calc(50% - 64px); }
.lightbox__nav--next{ left:calc(50% + 20px); }

@media (max-height:860px){
  .tl__hint{ display:none; }                       /* le bouton « Étape suivante » suffit */
}
@media (max-height:720px){
  #sheetProgramme .lt-h2{ margin-bottom:10px; }
}


/* ============================================================
   QUESTIONS FRÉQUENTES — accordéon
   ============================================================ */
.arch--faq .lt-h2{ margin-bottom:clamp(8px,1.6vh,14px); }
.faq{ text-align:left; }
.faq__item{ border-bottom:1px solid var(--rule-soft); }
.faq__item:last-child{ border-bottom:0; }
.faq__q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:clamp(10px,1.8vh,14px) 2px;
  border:0; background:none;
  text-align:left;
  font-family:var(--f-display);
  font-size:clamp(12.5px,3.4vw,14.5px);
  font-weight:600;
  letter-spacing:.02em;
  color:var(--ink-strong);
  cursor:pointer;
}
.faq__q i{
  position:relative;
  width:22px; height:22px; flex:none;
  border-radius:50%;
  background:var(--olive-dark);
}
.faq__q i::before,
.faq__q i::after{
  content:"";
  position:absolute; left:50%; top:50%;
  width:9px; height:1.5px;
  margin:-.75px 0 0 -4.5px;
  background:var(--cream);
  transition:transform .35s ease;
}
.faq__q i::after{ transform:rotate(90deg); }
.faq__item.is-open .faq__q i::after{ transform:rotate(0deg); }
.faq__item.is-open .faq__q i{ background:var(--olive); }
.faq__a{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .45s ease;
}
.faq__a > p{
  overflow:hidden;
  margin:0;
  font-style:italic;
  font-size:clamp(14px,3.6vw,15.5px);
  line-height:1.6;
  color:var(--ink);
}
.faq__item.is-open .faq__a{ grid-template-rows:1fr; }
.faq__item.is-open .faq__a > p{ padding-bottom:12px; }


/* ---------- touches finales ---------- */
.lt-guest{
  margin:0 0 clamp(10px,2vh,16px);
  font-family:var(--f-script);
  font-size:clamp(26px,7vw,34px);
  line-height:1.15;
  color:var(--olive-light);
}
.lt-btn--small{
  padding:9px 18px; padding-left:calc(18px + .26em);
  font-size:clamp(8.5px,2.2vw,10px);
}
.lt-btn svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.lt-thanks{ text-align:center; padding:clamp(18px,4vh,30px) 0 0; }
.lt-thanks__big{
  margin:0 0 10px;
  font-family:var(--f-script);
  font-size:clamp(34px,9vw,46px);
  color:var(--ink-strong);
}


/* ============================================================
   L'ENCRE SE POSE, LETTRE APRÈS LETTRE
   Chaque lettre passe du flou au net, comme une encre qui pénètre
   le papier, au rythme d'une main qui écrit. Puis le filet se trace
   depuis le centre et la date se pose.
   ============================================================ */
.lt-names .ch, .lt-over .ch{ font-style:normal; }
.lt-over .w{ white-space:nowrap; }      /* les mots ne se coupent pas */

/* en attente : prénoms, filet et date invisibles, sans animation */
.ink-wait .lt-names .ch,
#envInside .ink-wait .lt-over .ch,
.ink-wait .lt-div,
.ink-wait .lt-names ~ .lt-value{ opacity:0; }

.is-writing .lt-names .ch{
  will-change:opacity, filter;
  animation:inkIn .75s cubic-bezier(.25,.6,.2,1) both;
  animation-delay:var(--d,0ms);
}
/* le titre « Vous êtes cordialement invités… » s'écrit PENDANT l'ouverture,
   dans l'arche de l'enveloppe (fondu simple : le téléphone est occupé par la 3D).
   La lettre prend ensuite le relais avec le titre déjà écrit. */
#envInside .over-writing .lt-over .ch{
  animation:overIn .45s ease both;
  animation-delay:var(--d,0ms);
}
@keyframes overIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes inkIn{
  0%  { opacity:0;   filter:blur(4px); }
  55% { opacity:.9;  filter:blur(.8px); }
  100%{ opacity:1;   filter:none; }
}

/* le filet se trace du centre vers les côtés, les alliances se posent */
.is-writing .lt-div i{
  animation:ruleDraw .6s cubic-bezier(.4,0,.2,1) calc(var(--o,0ms) + 1.9s) both;
}
.is-writing .lt-div i:first-child{ transform-origin:right center; }
.is-writing .lt-div i:last-child{ transform-origin:left center; }
.is-writing .lt-div b{ animation:gemIn .45s ease calc(var(--o,0ms) + 2.25s) both; }
@keyframes ruleDraw{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@keyframes gemIn{
  from{ opacity:0; transform:rotate(-25deg) scale(.3); }
  to  { opacity:1; transform:none; }
}

/* la date se pose en se resserrant légèrement */
.is-writing .lt-names ~ .lt-value{
  animation:dateIn .7s cubic-bezier(.25,.6,.2,1) calc(var(--o,0ms) + 2.05s) both;
}
@keyframes dateIn{
  from{ opacity:0; letter-spacing:.14em; filter:blur(3px); }
  to  { opacity:1; letter-spacing:0;     filter:blur(0); }
}

@media (prefers-reduced-motion:reduce){
  .is-writing .lt-names .ch,
  #envInside .over-writing .lt-over .ch,
  .is-writing .lt-div i,
  .is-writing .lt-div b,
  .is-writing .lt-names ~ .lt-value{ animation:none; }
}


/* ============================================================
   R.S.V.P. — les invités et leur plat
   ============================================================ */
.guests{ display:grid; gap:10px; margin-bottom:clamp(12px,2.4vh,18px); }
.guest{
  padding:10px 12px 12px;
  border-radius:16px;
  background:rgba(74,86,48,.28);
}
.g-num{
  display:block;
  font-family:var(--f-display);
  font-size:9px; letter-spacing:.28em; text-transform:uppercase;
  color:var(--olive-light);
  text-align:center;
}
.guest .g-name{ padding:8px 10px; }
.g-menu{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:10px; }
.chip{ position:relative; cursor:pointer; }
.chip input{ position:absolute; opacity:0; pointer-events:none; }
.chip span{
  display:inline-block;
  padding:7px 13px;
  border-radius:999px;
  background:rgba(231,221,204,.1);
  font-size:14px;
  color:var(--ink);
  transition:background .25s, color .25s;
}
@media (hover:hover) and (pointer:fine){ .chip:hover span{ background:rgba(231,221,204,.18); } }
.chip input:checked + span{ background:var(--olive); color:#F7F0E2; font-weight:600; }
.chip input:focus-visible + span{ outline:2px solid var(--olive-light); outline-offset:2px; }
.lt-area{ text-align:left; resize:vertical; min-height:56px; line-height:1.4; }
.rsvp-err{
  min-height:1.2em;
  margin:0 0 6px;
  text-align:center;
  font-style:italic; font-size:14px;
  color:#f0c7a8;
}

/* retour au toucher (téléphone) : léger enfoncement, rien ne reste « allumé » */
.cue:active,
.lt-btn:active,
.pill:active,
.gal__bar button:active,
.lt-stepper button:active{ transform:scale(.96); }


/* ============================================================
   GALERIE « BIENTÔT DÉVOILÉE »
   ============================================================ */
.stack--veil{ touch-action:auto; cursor:default; }
.stack--veil .card{ cursor:default; }
/* photos déjà floutées (fichiers voile-*.jpg) : aucun flou ni mélange calculé en direct,
   donc rien ne « saute » pendant les fondus */
.stack--veil .card{ overflow:hidden; }
.stack--veil .card::after{
  content:"";
  position:absolute; inset:7px;
  border-radius:144px 144px 6px 6px / 122px 122px 6px 6px;
  background:linear-gradient(170deg,rgba(112,30,45,.5),rgba(74,86,48,.42));
  pointer-events:none;
}
.veil__badge{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  z-index:60;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  pointer-events:none;
}
.veil__badge img{ width:58px; height:auto; filter:drop-shadow(0 4px 10px rgba(30,4,10,.45)); }
.veil__badge span{
  padding:6px 16px;
  border-radius:999px;
  background:rgba(74,86,48,.92);
  font-family:var(--f-display);
  font-size:9.5px; letter-spacing:.3em; text-transform:uppercase;
  color:var(--cream);
  padding-left:calc(16px + .3em);
}
.veil__text{
  margin:clamp(16px,3vh,22px) auto 0;
  max-width:30ch;
  font-style:italic;
  font-size:clamp(14.5px,3.8vw,16.5px);
  line-height:1.55;
  color:var(--ink);
}


/* ============================================================
   ÉCRANS LARGES (ordinateur, tablette à l'horizontale) :
   papier fleuri en version horizontale, fleurs à la bonne taille
   ============================================================ */
@media (min-aspect-ratio: 1/1){
  .letterView__paper,
  .env__inside{ background-image:url("../img/letter-bg-uni-large.jpg"); }
  .arch{
    background-image:
      linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38)),
      url("../img/letter-bg-uni-large-flou-long.jpg");
  }

}


/* ============================================================
   R.S.V.P. AVEC LISTE D'INVITÉS
   ============================================================ */
.rsvp{ position:relative; text-align:left; margin-top:clamp(12px,2.4vh,18px); }
.rsvp-wait,
.rsvp-help{
  margin:10px 0 0;
  text-align:center;
  font-style:italic;
  font-size:clamp(14px,3.6vw,15.5px);
  color:var(--ink-soft);
}
.rsvp-results{ display:grid; gap:6px; }
.rsvp-pick{
  width:100%;
  padding:12px 16px;
  border:0; border-radius:14px;
  background:rgba(74,86,48,.38);
  color:var(--ink-strong);
  font-family:var(--f-display);
  font-size:clamp(14px,3.7vw,16px); font-weight:600;
  text-align:left;
  cursor:pointer;
  transition:background .25s;
}
.rsvp-pick::after{ content:"›"; float:right; color:var(--olive-light); }
@media (hover:hover) and (pointer:fine){ .rsvp-pick:hover{ background:var(--olive); } }
.rsvp-pick:active{ background:var(--olive); }

.rsvp-hello{ text-align:center; margin-bottom:clamp(12px,2.4vh,16px); }
.rsvp-hello b{
  display:block;
  font-family:var(--f-script); font-weight:400;
  font-size:clamp(30px,8vw,40px); line-height:1.15;
  color:var(--ink-strong);
}
.rsvp-link{
  margin-top:4px;
  padding:4px 8px;
  border:0; background:none;
  color:var(--olive-light);
  font-family:var(--f-display);
  font-size:9.5px; letter-spacing:.22em; text-transform:uppercase;
  text-decoration:underline; text-underline-offset:3px;
  cursor:pointer;
}
.g-solo{
  text-align:center;
  font-family:var(--f-display); font-weight:600;
  font-size:clamp(14px,3.7vw,16px);
  color:var(--ink-strong);
  padding:4px 0 2px;
}
.rsvp-ok,.rsvp-no,.rsvp-pending{
  margin:10px 0 0;
  text-align:center;
  font-size:14px; line-height:1.45;
  font-style:italic;
}
.rsvp-ok{ color:var(--olive-light); }
.rsvp-no{ color:#f0c7a8; }
.rsvp-pending{ color:#ecd9a8; }

.rsvp-price{
  display:grid; justify-items:center; gap:4px;
  margin:4px 0 clamp(12px,2.4vh,16px);
  padding:14px 16px;
  border-radius:16px;
  background:rgba(74,86,48,.42);
  text-align:center;
}
.rsvp-price b{ font-family:var(--f-display); font-size:clamp(16px,4.3vw,19px); color:var(--ink-strong); }
.rsvp-price span:not(.lt-label){ font-size:15px; color:var(--ink); }
.rsvp-price small{ font-size:13px; font-style:italic; color:var(--ink-soft); line-height:1.4; }
.rsvp-price .lt-btn{ margin:8px 0 2px; }

.lt-input.is-err{ border-bottom-color:#f0c7a8; }
.rsvp-hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

.faq__intro{
  margin:0 auto clamp(12px,2.4vh,18px);
  max-width:34ch;
  font-style:italic;
  font-size:clamp(14.5px,3.8vw,16.5px);
  line-height:1.6;
  color:var(--ink);
  text-align:center;
}


/* ============================================================
   PENDANT L'OUVERTURE : L'ARCHE SEULE, VIDE
   L'arche fait partie du papier (comme un gaufrage) : elle est là dès
   l'ouverture. Son contenu n'apparaît, en fondu, qu'une fois la carte
   posée ; à la fermeture il s'efface avant que l'enveloppe se replie.
   ============================================================ */
#envInside .arch > *{ opacity:0; transition:opacity .45s ease; }
body.is-opening:not(.is-leaving) #envInside .arch > .lt-over{ opacity:1; transition:none; }
body.is-reading #envInside .arch > *{ opacity:1; transition:none; }   /* caché derrière la lettre */
/* fondu par « filter » et non « opacity » : les prénoms et la date gardent
   leurs propres animations d'écriture sans être écrasés */
#deck .arch > *{ transition:filter .8s cubic-bezier(.3,.6,.3,1); }
body:not(.is-reading) #deck .arch > *:not(.lt-over){ filter:opacity(0); }
@media (prefers-reduced-motion: reduce){ #deck .arch > *{ transition-duration:.01s; } }


/* ============================================================
   VERSET
   ============================================================ */
.lt-verse{ margin:0 auto; max-width:30ch; text-align:center; }
.lt-verse p{
  margin:0;
  font-style:italic;
  font-size:clamp(21px,5.6vw,27px);
  line-height:1.5;
  color:var(--ink-strong);
}
.lt-verse footer{
  margin-top:clamp(14px,3vh,20px);
  font-family:var(--f-display);
  font-size:10.5px; letter-spacing:.3em; text-transform:uppercase;
  color:var(--olive-light);
}
.lt-verse footer::before,
.lt-verse footer::after{ content:""; display:inline-block; width:22px; height:1px; margin:0 10px; vertical-align:middle; background:currentColor; opacity:.6; }


/* ============================================================
   CALENDRIER : bouton + lien Google
   ============================================================ */
.lt-cal{ display:flex; flex-direction:column; align-items:center; gap:2px; }


/* ============================================================
   PLATS — une carte par plat, avec son petit dessin
   ============================================================ */
.dishes{ display:grid; gap:7px; margin-top:10px; }
.dish{ position:relative; cursor:pointer; display:block; }
.dish input{ position:absolute; opacity:0; pointer-events:none; }
.dish__card{
  display:flex; align-items:center; gap:12px;
  padding:8px 12px 8px 8px;
  border-radius:14px;
  background:rgba(231,221,204,.08);
  border:1px solid rgba(231,221,204,.12);
  transition:background .25s, border-color .25s;
}
.dish svg{
  flex:none; width:50px; height:50px;
  fill:none; stroke:var(--ink-strong); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
  opacity:.9;
}
.dish svg .herb{ stroke:var(--olive-light); }
.dish svg .tomate{ stroke:#eaa093; }
.dish svg .agrume{ stroke:#ecd48e; }
.dish svg .poivre{ fill:#ec9fb0; stroke:none; }
.dish svg .plein{ fill:var(--ink-strong); stroke:none; }
.dish__txt{ display:grid; gap:2px; text-align:left; }
.dish__txt b{ font-family:var(--f-display); font-weight:600; font-size:clamp(12.5px,3.4vw,14px); letter-spacing:.02em; line-height:1.3; color:var(--ink-strong); }
.dish__txt small{ font-style:italic; font-size:13.5px; line-height:1.35; color:var(--ink-soft); }
@media (hover:hover) and (pointer:fine){ .dish:hover .dish__card{ background:rgba(231,221,204,.14); } }
.dish input:checked + .dish__card{ background:var(--olive); border-color:var(--olive-light); }
.dish input:checked + .dish__card small{ color:rgba(247,240,226,.85); }
.dish input:focus-visible + .dish__card{ outline:2px solid var(--olive-light); outline-offset:2px; }


/* ============================================================
   PAIEMENT — choix, échéancier, Interac
   ============================================================ */
.lt-choice--pay label span{ font-size:15px; }
.lt-choice--pay + .g-menu{ margin-top:10px; }
.pay-plan{
  margin:-4px 0 clamp(14px,3vw,20px);
  padding:12px 14px;
  border-radius:16px;
  background:rgba(42,10,18,.28);
  text-align:center;
}
.pay-plan small{ display:block; margin-top:8px; font-size:13px; font-style:italic; line-height:1.4; color:var(--ink-soft); }
.pay-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.pay-list li{ display:flex; justify-content:space-between; gap:10px; font-size:15px; color:var(--ink); text-align:left; }
.pay-list b{ font-family:var(--f-display); font-size:14px; color:var(--ink-strong); white-space:nowrap; }
.pay-list li.is-paid{ color:var(--olive-light); }
.pay-list li.is-paid b{ color:var(--olive-light); }
.pay-next b{ font-family:var(--f-display); }

.interac{
  margin:0 0 clamp(14px,3vw,20px);
  padding:14px 16px;
  border-radius:16px;
  border:1px dashed rgba(185,190,140,.55);
  text-align:center;
}
.interac p{ margin:8px 0 0; font-size:15px; line-height:1.5; color:var(--ink); }
.interac p b{ font-family:var(--f-display); font-size:13.5px; letter-spacing:.04em; color:var(--ink-strong); }
.interac__mail{
  display:inline-grid; gap:2px;
  margin-top:4px; padding:8px 16px;
  border:0; border-radius:12px;
  background:rgba(231,221,204,.1);
  color:var(--ink-strong);
  font:inherit; font-size:16px; font-weight:600;
  cursor:pointer; word-break:break-all;
}
.interac__mail small{ font-size:11px; font-weight:400; font-style:italic; color:var(--ink-soft); }

.resa-list{ list-style:none; margin:clamp(12px,2.4vh,16px) 0; padding:0; display:grid; gap:6px; }
.resa-list li{ display:grid; gap:1px; padding:8px 12px; border-radius:12px; background:rgba(74,86,48,.3); }
.resa-list b{ font-family:var(--f-display); font-weight:600; font-size:14.5px; color:var(--ink-strong); }
.resa-list small{ font-style:italic; font-size:13.5px; color:var(--ink-soft); }
.resa-list li.is-ref b{ text-decoration:line-through; opacity:.6; }
.lt-thanks .lt-btn{ margin-top:4px; }


/* ============================================================
   PÉTALES À L'OUVERTURE
   ============================================================ */
.petal-burst{
  position:fixed; inset:0;
  width:100%; height:100%;
  z-index:50;
  pointer-events:none;
}
.lt-stepper output{ display:grid; justify-items:center; line-height:1.05; min-width:5ch; }
.lt-stepper output small{ font-family:var(--f-body,inherit); font-size:11px; font-weight:400; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); }
.lt-stepper button:disabled{ opacity:.35; cursor:default; }

/* plusieurs personnes : une vraie respiration entre les cartes */
.rsvp .guest{ margin-bottom:16px; }
.rsvp .guest + .lt-field,
.rsvp .lt-stepper{ margin-bottom:6px; }
.rsvp .dishes{ gap:8px; }

/* « Revenir au début » : un mouvement plus ample vers le bas, on remonte la lettre */
.deck.is-rewind .sheet:not(.is-active):not(.is-before){ transform:translateY(90px); }
.deck.is-rewind .sheet.is-before{ transform:translateY(-90px); }
.deck.is-rewind .sheet{ transition:opacity .7s ease, transform .85s cubic-bezier(.2,.8,.25,1); }

/* tous les boutons : le texte tient sur une seule ligne */
.lt-choice label,
.lt-choice label span,
.chip span,
.lt-btn,
.rsvp-link,
.cue,
.interac__mail{ white-space:nowrap; }
.lt-choice label{ font-size:clamp(13px,3.6vw,15.5px); padding-left:clamp(12px,3.6vw,16px); padding-right:clamp(10px,3vw,16px); }
.lt-choice--pay label span{ font-size:clamp(12.5px,3.5vw,15px); }
.rsvp .lt-btn,
.lt-thanks .lt-btn{ letter-spacing:.18em; padding-left:calc(22px + .18em); padding-right:22px; }
.rsvp-link{ letter-spacing:.16em; }
.rsvp-help{ text-wrap:balance; }

/* ============================================================
   ÉTINCELLES SUR LES PRÉNOMS (vrais éclats de lumière, Higgsfield)
   ============================================================ */
.lt-names{ position:relative; }
.lt-div b{ position:relative; }
.lt-names .spark,
.lt-div .spark{
  position:absolute;
  background:url("../img/etincelles.webp") 0 0 / 300% 300% no-repeat;
  transform:translate(-50%,-50%) scale(0);
  pointer-events:none;
  z-index:2;
  animation:spark 1.25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes spark{
  0%  { opacity:0; transform:translate(-50%,-50%) scale(0) rotate(-30deg); }
  30% { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(0deg); }
  55% { opacity:.9; transform:translate(-50%,-50%) scale(.85) rotate(12deg); }
  100%{ opacity:0; transform:translate(-50%,-50%) scale(.15) rotate(40deg); }
}

/* sur l'or des alliances : la lumière s'ajoute au métal (sinon l'éclat doré s'y perd) */
.lt-div .spark{ mix-blend-mode:screen; mix-blend-mode:plus-lighter; filter:brightness(1.3); }


/* ============================================================
   LECTURE EN DÉFILEMENT CONTINU
   La lettre se lit d'un seul tenant, comme un faire-part qu'on déroule :
   chaque section a son écran et apparaît en douceur en arrivant ;
   le papier fleuri reste en place derrière, l'arche le floute en direct.
   ============================================================ */
.deck{
  overflow-y:auto; overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.deck::-webkit-scrollbar{ display:none; }
#deck .sheet{
  position:relative; inset:auto;
  min-height:100%; height:auto;
  overflow:visible;
  opacity:1; transform:none;
  pointer-events:auto;
  transition:none;
}
/* le contenu d'une section monte un peu en apparaissant */
#deck .sheet > *{ transform:translateY(28px); transition:opacity .9s ease, transform 1s cubic-bezier(.2,.8,.25,1); }
#deck .sheet.is-active > *{ transform:none; transition-delay:.05s; }
/* la première est déjà là (c'est la carte de l'enveloppe) */
#deck .sheet:first-child > *{ transition:none; }

/* ---------- la lettre : des cartes découpées en arche, posées l'une sur l'autre ----------
   Comme dans un faire-part de luxe : chaque partie est une carte dont le haut est
   découpé en arche orientale, bordé d'un double filet doré, un fleuron d'or au sommet.
   La carte suivante vient recouvrir le bas de la précédente : on voit qu'on change de partie. */
.lettre{
  --decoupe:clamp(96px, 28vw, 128px);
  display:flex; flex-direction:column; align-items:center;
  margin-top:clamp(10px,3vh,30px);
  padding:0 clamp(12px,4vw,30px) calc(var(--nav-h, 96px) + 36px);
  color:var(--ink);
  text-align:center;
}
.carte{ position:relative; width:min(100%,430px); }
.carte + .carte{ margin-top:clamp(30px,6vh,56px); }
.carte + .carte--arche{ margin-top:calc(-.42 * var(--decoupe)); }   /* l'arche se pose sur la carte d'avant */
.carte__papier{
  padding:calc(var(--decoupe) + clamp(26px,4vh,40px)) clamp(22px,6vw,38px) clamp(64px,10vh,96px);
  background:linear-gradient(180deg,rgba(132,42,58,.72),rgba(112,30,45,.6));
  -webkit-backdrop-filter:blur(var(--blur,3px)) contrast(1.08);
          backdrop-filter:blur(var(--blur,3px)) contrast(1.08);
  box-shadow:inset 0 -30px 40px -30px rgba(30,4,10,.35);
  -webkit-mask:url("../img/decoupe.svg") top center / 100% var(--decoupe) no-repeat,
               linear-gradient(#000,#000) 0 calc(var(--decoupe) - 1px) / 100% 100% no-repeat;
          mask:url("../img/decoupe.svg") top center / 100% var(--decoupe) no-repeat,
               linear-gradient(#000,#000) 0 calc(var(--decoupe) - 1px) / 100% 100% no-repeat;
}
/* le double filet doré qui suit la découpe, et le fleuron au sommet */
.carte::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height:var(--decoupe);
  background:url("../img/decoupe-or.svg") top center / 100% 100% no-repeat;
  pointer-events:none; z-index:2;
}
.carte::after{
  content:"";
  position:absolute; left:50%; top:calc(var(--decoupe) * .36);
  width:60px; height:44px; margin-left:-30px;
  background:url("../img/fleuron-or.svg") center / contain no-repeat;
  filter:drop-shadow(0 1px 1px rgba(30,4,10,.4));
  pointer-events:none; z-index:2;
}
/* le contenu apparaît en douceur (la carte, elle, est déjà posée) */
.carte__contenu{ opacity:0; transform:translateY(22px); transition:opacity .9s ease, transform 1s cubic-bezier(.2,.8,.25,1); }
.carte.is-active .carte__contenu{ opacity:1; transform:none; }
/* le ruban : titre de la carte, sous le fleuron */
.carte .tag{
  position:relative; top:auto; left:auto;
  transform:none;
  display:inline-flex;
  margin:0 auto clamp(18px,3.2vh,26px);
}
.lettre__fin{
  margin:clamp(36px,6vh,56px) 0 0;
  font-family:var(--f-script);
  font-size:clamp(30px,8vw,40px);
  color:var(--ink-strong);
}
.tl__detail{
  display:block; margin-top:3px;
  font-style:italic; font-size:clamp(13.5px,3.5vw,15px); line-height:1.35;
  color:var(--ink-soft);
}
.tl__step{ margin-bottom:clamp(14px,2.4vh,22px); }

/* en bas : un simple « Faites défiler », puis « Revenir au début » à la fin */
.navbar{ background:none; pointer-events:none; height:auto; bottom:max(18px, env(safe-area-inset-bottom)); padding:0; }
.cue{ pointer-events:auto; transition:opacity .5s ease, transform .5s ease, background .3s, border-color .3s; }
.cue:not(.is-top){
  background:none; border-color:transparent; box-shadow:none;
  color:var(--cream);
  flex-direction:column; gap:6px;
  font-size:9px; letter-spacing:.32em;
  text-shadow:0 1px 6px rgba(30,4,10,.6);
}
.cue:not(.is-top) .cue__arrow{ width:13px; height:22px; margin:0; animation:cueGlisse 2.2s ease-in-out infinite; }
@keyframes cueGlisse{ 0%{ opacity:0; transform:translateY(-6px); } 40%{ opacity:1; } 100%{ opacity:0; transform:translateY(6px); } }
.cue.is-hidden{ opacity:0; transform:translateY(8px); pointer-events:none; }

/* les petits points de repère, à droite, à la verticale */
.dots{
  position:fixed; right:max(8px, env(safe-area-inset-right)); top:50%;
  transform:translateY(-50%);
  flex-direction:column; gap:11px;
  pointer-events:auto;
}
.dots button{ width:5px; height:5px; border-color:rgba(231,221,204,.45); }


/* ============================================================
   UNE MISE EN PAGE PAR PARTIE — comme les pages d'un faire-part :
   on alterne le papier, la forme et le rythme pour ne jamais se répéter.
   ============================================================ */

/* — LIBRE : posé directement sur le papier, sans carte (verset, déroulé, questions) — */
.carte--libre::before{ display:none; }
/* la page ouverte s'annonce par le même fleuron d'or que les cartes */
.carte--libre::after{ top:0; width:120px; height:30px; margin-left:-60px; }
.carte--libre .carte__papier{
  background:none; box-shadow:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  -webkit-mask:none; mask:none;
  padding:clamp(40px,7vh,72px) 6px;
}
/* le verset : grands guillemets dorés, beaucoup d'air */
.carte--libre .lt-verse::before{
  content:"\201C";
  display:block;
  font-family:var(--f-script);
  font-size:96px; line-height:.6;
  color:#d9b56a;
  margin-bottom:10px;
}
.carte--libre .lt-verse p{ font-size:clamp(23px,6.2vw,30px); }

/* — IVOIRE : carte en papier crème découpée en arche, encre bordeaux (l'invitation) — */
.carte--ivoire .carte__papier{
  --ink:#5e1d29; --ink-strong:#4c1420; --ink-soft:rgba(94,29,41,.72);
  --label:#5f6b38; --rule:rgba(94,29,41,.3);
  color:var(--ink);
  background:#f1e7d6 url("../img/paper-cream.jpg") center / cover;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  box-shadow:inset 0 -24px 40px -28px rgba(94,29,41,.25);
}
.carte--ivoire .lt-lede{ color:var(--ink); font-size:clamp(17px,4.6vw,20px); }

/* — CADRE : un cadre doré à double filet, coins ornés (quand & où) — */
.carte--cadre::before{ display:none; }
.carte--cadre .carte__papier{
  -webkit-mask:none; mask:none;
  padding:clamp(54px,8vh,70px) clamp(22px,6vw,36px) clamp(40px,6vh,56px);
  border:1px solid rgba(230,199,132,.75);
  outline:1px solid rgba(230,199,132,.38);
  outline-offset:-9px;
  border-radius:4px;
}
.carte--cadre::after{
  top:-18px; width:74px; height:36px; margin-left:-37px;
  background:#6f1e2c url("../img/fleuron-or.svg") center / 56px auto no-repeat;
  border-radius:20px;
}

/* — BANDE : un bandeau olive pleine largeur (le compte à rebours) — */
.carte--bande{ width:100vw; max-width:none; }
.carte--bande::before,
.carte--bande::after{ display:none; }
.carte--bande .carte__papier{
  -webkit-mask:none; mask:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  background:#4a5630 url("../img/paper-olive.jpg") center / cover;
  border-top:1px solid rgba(230,199,132,.7);
  border-bottom:1px solid rgba(230,199,132,.7);
  box-shadow:inset 0 6px 0 -5px rgba(230,199,132,.45), inset 0 -6px 0 -5px rgba(230,199,132,.45), 0 10px 30px rgba(30,4,10,.35);
  padding:clamp(44px,7vh,64px) clamp(18px,6vw,40px);
}
.carte--bande .lt-count > div{ background:rgba(30,36,14,.35); }

/* — NOTE : un petit mot écrit sur une carte ivoire, posée de biais (un mot) — */
.carte--note{ width:min(92%,380px); transform:rotate(-1.6deg); }
.carte--note::before,
.carte--note::after{ display:none; }
.carte--note .carte__papier{
  --ink:#5e1d29; --ink-strong:#4c1420; --ink-soft:rgba(94,29,41,.72); --label:#5f6b38;
  color:var(--ink);
  -webkit-mask:none; mask:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  background:#f3eadb url("../img/paper-cream.jpg") center / cover;
  padding:clamp(46px,7vh,60px) clamp(24px,7vw,36px) clamp(36px,6vh,48px);
  border-radius:3px;
  box-shadow:0 18px 34px rgba(30,4,10,.45), 0 2px 6px rgba(30,4,10,.3);
}
.carte--note .lt-message p{ color:var(--ink); }
.carte--note .lt-sign{ color:var(--ink-strong); }

/* la carte ivoire : les mêmes textes, à l'encre bordeaux */
.carte--ivoire .carte__papier{ --accent:#7a2433; }
.carte--ivoire .lt-message p,
.carte--ivoire .lt-sub{ color:var(--ink); }
.carte--ivoire .lt-sign{ color:var(--ink-strong); }
.carte--ivoire .lt-count div{ background:rgba(94,29,41,.07); border:1px solid rgba(94,29,41,.16); }
.carte--ivoire .lt-h2{ color:var(--ink-strong); }
.carte--ivoire::before{ filter:brightness(.82) saturate(1.2); }   /* le filet doré reste visible sur l'ivoire */


/* ============================================================
   LA PAGE IVOIRE : toute la lettre après les prénoms, d'un seul tenant
   ============================================================ */
.lettre{ margin-top:calc(-.5 * var(--decoupe)); }
.page{ width:min(100%,460px); }
.page .carte__contenu{ opacity:1; transform:none; }
.page .carte__papier{ padding-bottom:clamp(56px,9vh,84px); }
/* chaque partie apparaît en douceur en arrivant */
.page .bloc{ opacity:0; transform:translateY(22px); transition:opacity .9s ease, transform 1s cubic-bezier(.2,.8,.25,1); }
.page .bloc.is-active{ opacity:1; transform:none; }
/* l'ornement doré entre deux parties */
.separateur{
  height:30px; width:min(80%,240px);
  margin:clamp(44px,7.5vh,68px) auto;
  background:url("../img/separateur-or.svg") center / contain no-repeat;
}
.page .lettre__fin{ color:var(--ink-strong); }

/* l'encre bordeaux sur l'ivoire : on adapte ce qui était clair sur foncé */
.carte--ivoire .carte__papier{
  --rule-soft:rgba(94,29,41,.18);
  --olive-light:#5f6b38;
}
.carte--ivoire .lt-verse p{ color:var(--ink-strong); }
.carte--ivoire .tl__step::after{ box-shadow:0 0 0 3px #efe5d4; background:#9aa06c; }
.carte--ivoire .dish__card{ background:rgba(94,29,41,.04); border-color:rgba(94,29,41,.16); }
@media (hover:hover) and (pointer:fine){ .carte--ivoire .dish:hover .dish__card{ background:rgba(94,29,41,.08); } }
.carte--ivoire .dish input:checked + .dish__card b,
.carte--ivoire .dish input:checked + .dish__card small{ color:#F7F0E2; }
.carte--ivoire .dish input:checked + .dish__card svg{ stroke:#F7F0E2; }
.carte--ivoire .chip span{ background:rgba(94,29,41,.06); }
.carte--ivoire .lt-choice label{ background:rgba(74,86,48,.14); }
.carte--ivoire .lt-choice input:checked ~ span{ color:var(--ink-strong); }
.carte--ivoire .guest{ background:rgba(74,86,48,.1); }
.carte--ivoire .rsvp-price{ background:rgba(74,86,48,.14); }
.carte--ivoire .pay-plan{ background:rgba(94,29,41,.05); }
.carte--ivoire .interac{ border-color:rgba(94,29,41,.3); }
.carte--ivoire .interac__mail{ background:rgba(94,29,41,.06); }
.carte--ivoire .resa-list li{ background:rgba(74,86,48,.12); }
.carte--ivoire .rsvp-ok,
.carte--ivoire .pay-list li.is-paid,
.carte--ivoire .pay-list li.is-paid b{ color:#4f5a2c; }
.carte--ivoire .rsvp-no,
.carte--ivoire .rsvp-err{ color:#a1323f; }
.carte--ivoire .rsvp-pending{ color:#8a6418; }
.carte--ivoire .lt-input.is-err{ border-bottom-color:#a1323f; }
.carte--ivoire .rsvp-link{ color:#5f6b38; }
.carte--ivoire .lt-btn:not(.lt-btn--solid){ color:#F7F0E2; }
/* papier ivoire plus uni : la texture reste, sans marbrures */
.page .carte__papier{
  background:linear-gradient(rgba(243,234,219,.72),rgba(239,229,212,.72)), #efe5d4 url("../img/paper-cream.jpg") center / 900px auto;
}


/* ============================================================
   LES CARTES-CARTOUCHES (comme la vidéo de référence)
   Après les prénoms, chaque partie est une carte posée sur le velours bordeaux,
   coins rentrants, cadre doré à double filet. Ivoire et bordeaux alternent.
   ============================================================ */
.lettre{ margin-top:-4vh; gap:0; }
.carte{ width:min(100%,440px); }
.carte + .carte{ margin-top:clamp(22px,4vh,34px); }
.carte::after{ display:none; }
.carte::before{
  top:9px; left:9px; right:9px; bottom:9px; height:auto;
  background:none;
  border:30px solid transparent;
  border-image:url("../img/cadre-or.svg") 30 stretch;
}
.carte__papier{
  padding:clamp(48px,7vh,66px) clamp(28px,7.5vw,42px) clamp(48px,7vh,64px);
  -webkit-backdrop-filter:none; backdrop-filter:none;
  box-shadow:none;
  --coin:18px;
  -webkit-mask:
    radial-gradient(circle at top left, #0000 var(--coin), #000 calc(var(--coin) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at top right, #0000 var(--coin), #000 calc(var(--coin) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at bottom left, #0000 var(--coin), #000 calc(var(--coin) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at bottom right, #0000 var(--coin), #000 calc(var(--coin) + .5px)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at top left, #0000 var(--coin), #000 calc(var(--coin) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at top right, #0000 var(--coin), #000 calc(var(--coin) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at bottom left, #0000 var(--coin), #000 calc(var(--coin) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at bottom right, #0000 var(--coin), #000 calc(var(--coin) + .5px)) bottom right / 51% 51% no-repeat;
}
.carte--ivoire .carte__papier{
  background:linear-gradient(rgba(246,238,225,.78),rgba(241,231,214,.78)), #efe5d4 url("../img/paper-cream.jpg") center / 900px auto;
}
.carte--bordeaux .carte__papier{
  background:radial-gradient(130% 80% at 50% 0%, #84253a 0%, #651a29 55%, #4c111d 100%);
  box-shadow:inset 0 0 60px rgba(20,2,6,.35);
}
/* l'ombre portée de chaque carte, sous le masque */
.carte{ filter:drop-shadow(0 12px 22px rgba(20,2,6,.45)); }
.carte .carte__contenu{ opacity:0; transform:translateY(18px); transition:opacity .9s ease, transform 1s cubic-bezier(.2,.8,.25,1); }
.carte.is-active .carte__contenu{ opacity:1; transform:none; }
.carte--bordeaux .lt-verse p{ color:var(--ink-strong); }
.lettre__fin{ margin-top:clamp(40px,7vh,60px); }

/* un bouquet de roses posé dans le coin des cartes ivoire (Higgsfield : roses-coin.webp),
   une fois à gauche, une fois à droite */
.carte--ivoire::after{
  display:block;
  content:"";
  position:absolute; left:-16px; top:-18px;
  width:clamp(96px,28vw,124px); height:clamp(96px,28vw,124px); margin:0;
  background:url("../img/roses-coin.webp") top left / contain no-repeat;
  filter:none;
  z-index:3; pointer-events:none;
}
.lettre > .carte--ivoire:nth-child(4n+3)::after{ left:auto; right:-16px; transform:scaleX(-1); }
/* le bouquet reste dans l'écran ; le dessin du lieu passe à l'encre sur l'ivoire */
.carte--ivoire::after{ left:-4px; top:-14px; }
.lettre > .carte--ivoire:nth-child(4n+3)::after{ right:-4px; }
.carte--ivoire .lt-venue{ filter:brightness(.42) sepia(.7) saturate(2.2) hue-rotate(-28deg); opacity:.9; }

/* ============================================================
   CARTOUCHE DORÉ RÉALISTE (Higgsfield : cartouche-or.webp)
   Les volutes restent dans les coins ; seuls les filets droits s'allongent :
   le cadre épouse n'importe quelle hauteur de contenu sans se déformer.
   ============================================================ */
.carte::before{
  top:6px; left:6px; right:6px; bottom:6px;
  border:58px solid transparent;
  border-image:url("../img/cartouche-or.webp") 190 stretch;
}
.carte__papier{
  -webkit-mask:none; mask:none;
  border-radius:3px;
  /* le contenu reste bien à l'intérieur du cadre, loin des volutes */
  padding:clamp(60px,9vh,74px) clamp(28px,8vw,40px) clamp(56px,8.5vh,70px);
}
.carte .tag{ margin-bottom:clamp(20px,3.6vh,28px); }
/* les cases du formulaire ne touchent plus le cadre */
.carte .rsvp,
.carte .faq,
.carte .tl{ max-width:100%; }

/* lisibilité sur l'ivoire */
.carte--ivoire .lt-label,
.carte--ivoire .g-num{ color:#4b5528; font-weight:600; }
.carte--ivoire .lt-stepper button{ color:#F7F0E2; }
.carte--ivoire .lt-stepper button:disabled{ opacity:.45; }
.carte--ivoire .tl__time,
.carte--ivoire .tl__title{ opacity:.7; }
.carte--ivoire .tl__step.is-on .tl__time,
.carte--ivoire .tl__step.is-on .tl__title{ opacity:1; }
.carte--ivoire .lt-input::placeholder{ color:rgba(94,29,41,.62); }

/* « Faites défiler » reste sur la carte des prénoms, la suite commence plus bas */
.lettre{ margin-top:0; }

/* ============================================================
   NAVIGATION COMME LA VIDÉO DE RÉFÉRENCE
   • on fait défiler librement, sans bouton pour refermer (le « retour » du
     téléphone referme toujours la lettre) ;
   • sous les prénoms, un « Faites défiler » manuscrit avec un petit chevron ;
   • la musique : un petit bouton rond, discret, en bas à droite.
   ============================================================ */
/* (le bouton Refermer est de retour : voir « REFERMER LA LETTRE » plus bas) */
.cue:not(.is-top){
  font-family:var(--f-script);
  font-size:clamp(19px,5.4vw,23px);
  letter-spacing:0; text-transform:none;
  gap:0;
  color:#fbf4e6;
  text-shadow:0 1px 8px rgba(30,4,10,.7);
}
.cue:not(.is-top) .cue__arrow{
  width:12px; height:12px; margin-top:2px;
  stroke-width:1.6;
  animation:cueChevron 2s ease-in-out infinite;
}
@keyframes cueChevron{ 0%,100%{ transform:translateY(0); opacity:.85; } 50%{ transform:translateY(4px); opacity:1; } }
.navbar{ bottom:max(26px, calc(env(safe-area-inset-bottom) + 18px)); }

/* plus de « Faites défiler » */
.navbar .cue{ display:none; }
/* la fleur et le fil suivent le doigt sans retard */
.tl__flower{ transition:none; will-change:transform; }
.tl__fill{ transition:none; }
/* la première carte arrive juste sous les prénoms ; les cartes respirent et laissent voir le fond */
.lettre{
  margin-top:calc(-1 * var(--nav-h, 96px) + 6px);
  padding-left:clamp(20px,6vw,36px); padding-right:clamp(20px,6vw,36px);
}
.carte + .carte{ margin-top:clamp(40px,7vh,60px); }
.carte{ width:min(100%,420px); }

/* les cartes prennent toute la largeur et se suivent sans espace ;
   seul un espace sépare la carte des prénoms de la première carte */
.lettre{ padding-left:0; padding-right:0; margin-top:calc(-1 * var(--nav-h, 96px) + 22px); }
.carte{ width:100%; max-width:640px; }
.carte + .carte{ margin-top:0; }
.carte{ filter:none; }
.carte__papier{ border-radius:0; }

/* ============================================================
   COMME LA VIDÉO : le papier tient DANS son cadre
   • ivoire : la feuille s'arrête pile sur le filet doré du cartouche,
     on voit le velours bordeaux tout autour ;
   • rouge : pas de feuille — le velours de la page, et un cadre doré
     différent, fin, aux coins échancrés finis d'une volute (Higgsfield).
   ============================================================ */
.carte--ivoire .carte__papier{ margin:14px 8px; }
.carte--ivoire::before{ top:11px; bottom:11px; left:5px; right:5px; }
.carte--ivoire::after{ top:2px; left:-2px; }
.lettre > .carte--ivoire:nth-child(4n+3)::after{ right:-2px; left:auto; }

.carte--bordeaux .carte__papier{ background:none; box-shadow:none; }
.carte--bordeaux::before{
  top:14px; bottom:14px; left:14px; right:14px;
  border:40px solid transparent;
  border-image:url("../img/cadre-rouge.webp") 90 stretch;
}
.carte--bordeaux .carte__papier{
  padding-left:clamp(34px,9.5vw,48px); padding-right:clamp(34px,9.5vw,48px);
}

/* la feuille ivoire épouse exactement la forme du cartouche :
   elle a la même taille que le cadre et elle est découpée selon son contour
   (aucun coin de papier ne dépasse des volutes dorées) */
.carte--ivoire .carte__papier{
  margin:11px 5px;
  /* les 4 coins découpés selon les volutes ; le reste de la feuille est plein
     (les morceaux se chevauchent d'un pixel : aucun raccord visible) */
  -webkit-mask:url("../img/masque-coin-hg.png") top left / 58px 58px no-repeat,
    url("../img/masque-coin-hd.png") top right / 58px 58px no-repeat,
    url("../img/masque-coin-bg.png") bottom left / 58px 58px no-repeat,
    url("../img/masque-coin-bd.png") bottom right / 58px 58px no-repeat,
    linear-gradient(#000,#000) center / calc(100% - 114px) 100% no-repeat,
    linear-gradient(#000,#000) center / 100% calc(100% - 114px) no-repeat;
          mask:url("../img/masque-coin-hg.png") top left / 58px 58px no-repeat,
    url("../img/masque-coin-hd.png") top right / 58px 58px no-repeat,
    url("../img/masque-coin-bg.png") bottom left / 58px 58px no-repeat,
    url("../img/masque-coin-bd.png") bottom right / 58px 58px no-repeat,
    linear-gradient(#000,#000) center / calc(100% - 114px) 100% no-repeat,
    linear-gradient(#000,#000) center / 100% calc(100% - 114px) no-repeat;
}

/* ============================================================
   CADRES DE MIROIR (Higgsfield : miroir-or.webp)
   Une moulure d'or massive à plusieurs profils et rang de perles,
   comme un miroir d'hôtel particulier — aucune volute.
   Chaque section a sa feuille, posée DANS le cadre :
   ivoire, puis velours bordeaux, en alternance.
   ============================================================ */
.carte--ivoire .carte__papier,
.carte--bordeaux .carte__papier{
  margin:12px 6px;
  -webkit-mask:none; mask:none;
  border-radius:0;
}
.carte--bordeaux .carte__papier{
  background:radial-gradient(120% 70% at 50% 0%, rgba(160,52,72,.55), transparent 60%),
             #6a1a2a url("../img/paper-burgundy.jpg") center / 700px auto;
  box-shadow:inset 0 0 50px rgba(20,2,6,.45);
}
.carte--ivoire::before,
.carte--bordeaux::before{
  top:12px; bottom:12px; left:6px; right:6px;
  border:30px solid transparent;
  border-image:url("../img/miroir-or.webp") 140 stretch;
  outline:0;
  filter:drop-shadow(0 4px 8px rgba(20,2,6,.45));
}
/* sur le rouge, la même moulure un peu plus fine */
.carte--bordeaux::before{ border-width:24px; }
.carte--ivoire .carte__papier,
.carte--bordeaux .carte__papier{
  padding:clamp(66px,9.5vh,78px) clamp(42px,11vw,54px) clamp(60px,9vh,72px);
}
.carte--ivoire::after{ top:0; left:-6px; }
.lettre > .carte--ivoire:nth-child(4n+3)::after{ right:-6px; left:auto; }

/* ============================================================
   CADRE « JONC D'OR » (Higgsfield, d'après votre modèle)
   Un fin jonc d'or poli, coins échancrés, et une olive dorée
   au milieu du haut et du bas. La feuille épouse les coins.
   ============================================================ */
.carte--ivoire::before,
.carte--bordeaux::before{
  top:12px; bottom:12px; left:6px; right:6px;
  border:26px solid transparent;
  border-image:url("../img/cadre-jonc.webp") 100 stretch;
  outline:0;
  filter:drop-shadow(0 2px 3px rgba(20,2,6,.45));
}
.carte--ivoire .carte__papier,
.carte--bordeaux .carte__papier{
  margin:12px 6px;
  -webkit-mask:
    url("../img/jonc-coin-hg.png") top left / 26px 26px no-repeat,
    url("../img/jonc-coin-hd.png") top right / 26px 26px no-repeat,
    url("../img/jonc-coin-bg.png") bottom left / 26px 26px no-repeat,
    url("../img/jonc-coin-bd.png") bottom right / 26px 26px no-repeat,
    linear-gradient(#000,#000) center / calc(100% - 50px) calc(100% - 6px) no-repeat,
    linear-gradient(#000,#000) center / calc(100% - 6px) calc(100% - 50px) no-repeat;
          mask:
    url("../img/jonc-coin-hg.png") top left / 26px 26px no-repeat,
    url("../img/jonc-coin-hd.png") top right / 26px 26px no-repeat,
    url("../img/jonc-coin-bg.png") bottom left / 26px 26px no-repeat,
    url("../img/jonc-coin-bd.png") bottom right / 26px 26px no-repeat,
    linear-gradient(#000,#000) center / calc(100% - 50px) calc(100% - 6px) no-repeat,
    linear-gradient(#000,#000) center / calc(100% - 6px) calc(100% - 50px) no-repeat;
  padding:clamp(56px,8.5vh,68px) clamp(32px,9vw,44px) clamp(52px,8vh,64px);
}
/* l'olive dorée, posée sur le jonc au milieu du haut et du bas */
.carte__orn{
  position:absolute; left:50%;
  width:96px; height:26px; margin-left:-48px;
  background:url("../img/jonc-ornement.webp") center / contain no-repeat;
  filter:drop-shadow(0 2px 2px rgba(20,2,6,.45));
  z-index:3; pointer-events:none;
}
.carte__orn--h{ top:4px; }
.carte__orn--b{ bottom:4px; }
/* l'olive dorée seule (sa tige, c'est le jonc du cadre) */
.carte__orn{ width:34px; margin-left:-17px; filter:none; }

/* ---------- décors : roses et bougies, section par section ---------- */
.carte--ivoire::after,
.carte--bordeaux::after{ display:none; }
.carte[class*="deco--"]::after{
  display:block; content:"";
  position:absolute; top:auto; bottom:auto; left:auto; right:auto; margin:0;
  z-index:3; pointer-events:none; filter:none; animation:none; transform:none;
}
.carte[class*="deco--roses"]::after{
  width:clamp(96px,28vw,124px); height:clamp(96px,28vw,124px);
  background:url("../img/roses-coin.webp") top left / contain no-repeat;
}
.carte.deco--roses-hg::after{ top:0; left:-6px; }
.carte.deco--roses-hd::after{ top:0; right:-6px; transform:scaleX(-1); }
.carte.deco--roses-bd::after{ bottom:0; right:-6px; transform:scale(-1,-1); }
.carte.deco--roses-bg::after{ bottom:0; left:-6px; transform:scaleY(-1); }
.carte[class*="deco--bougies"]::after{
  width:clamp(64px,18vw,84px); height:clamp(98px,28vw,128px);
  bottom:calc(12px + 8px);
  background:url("../img/bougies.webp") bottom center / contain no-repeat;
  filter:drop-shadow(0 6px 10px rgba(20,2,6,.5));
  animation:flammes 3.6s ease-in-out infinite;
}
.carte.deco--bougies-bg::after{ left:14px; }
.carte.deco--bougies-bd::after{ right:14px; }
.carte[class*="deco--bougies"] .carte__papier{ padding-bottom:clamp(120px,19vh,146px); }
/* la lueur des bougies vacille doucement */
@keyframes flammes{
  0%,100%{ filter:drop-shadow(0 6px 10px rgba(20,2,6,.5)) drop-shadow(0 -6px 14px rgba(255,190,90,.18)) brightness(1); }
  45%    { filter:drop-shadow(0 6px 10px rgba(20,2,6,.5)) drop-shadow(0 -6px 18px rgba(255,190,90,.3)) brightness(1.06); }
  70%    { filter:drop-shadow(0 6px 10px rgba(20,2,6,.5)) drop-shadow(0 -6px 12px rgba(255,190,90,.14)) brightness(.97); }
}
@media (prefers-reduced-motion:reduce){ .carte[class*="deco--bougies"]::after{ animation:none; } }
/* l'invitation : un petit groupe de chandeliers, un grand et un plus petit devant */
.carte.deco--bougies-groupe::after{
  right:12px; left:auto;
  width:clamp(104px,30vw,132px); height:clamp(112px,32vw,140px);
  background:
    url("../img/bougies.webp") left bottom / auto 72% no-repeat,
    url("../img/bougies.webp") right bottom / auto 100% no-repeat;
}

/* découpe de la feuille écrite propriété par propriété :
   Safari (iPhone) ignore la forme abrégée « image position / taille »,
   et la feuille débordait alors du jonc */
.carte--ivoire .carte__papier,
.carte--bordeaux .carte__papier{
  -webkit-mask:none; mask:none;
  -webkit-mask-image:url("../img/jonc-coin-hg.png"), url("../img/jonc-coin-hd.png"), url("../img/jonc-coin-bg.png"), url("../img/jonc-coin-bd.png"),
                     linear-gradient(#000,#000), linear-gradient(#000,#000);
          mask-image:url("../img/jonc-coin-hg.png"), url("../img/jonc-coin-hd.png"), url("../img/jonc-coin-bg.png"), url("../img/jonc-coin-bd.png"),
                     linear-gradient(#000,#000), linear-gradient(#000,#000);
  -webkit-mask-position:left top, right top, left bottom, right bottom, center center, center center;
          mask-position:left top, right top, left bottom, right bottom, center center, center center;
  -webkit-mask-size:26px 26px, 26px 26px, 26px 26px, 26px 26px, calc(100% - 50px) calc(100% - 6px), calc(100% - 6px) calc(100% - 50px);
          mask-size:26px 26px, 26px 26px, 26px 26px, 26px 26px, calc(100% - 50px) calc(100% - 6px), calc(100% - 6px) calc(100% - 50px);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}
/* la feuille reste bien sous le jonc, en haut ET en bas (le jonc du bas est un peu plus haut) */
.carte--ivoire .carte__papier,
.carte--bordeaux .carte__papier{
  -webkit-mask-size:26px 26px, 26px 26px, 26px 26px, 26px 26px, calc(100% - 50px) calc(100% - 12px), calc(100% - 8px) calc(100% - 50px);
          mask-size:26px 26px, 26px 26px, 26px 26px, 26px 26px, calc(100% - 50px) calc(100% - 12px), calc(100% - 8px) calc(100% - 50px);
}
/* le Château Royal dessiné à l'encre bordeaux : net sur l'ivoire */
.carte--ivoire .lt-venue{ filter:none; opacity:1; }
/* l'invitation : un vrai bouquet de bougies (Higgsfield), dans le coin bas droit */
.carte.deco--bougies-groupe::after{
  right:10px; left:auto; bottom:calc(12px + 10px);
  width:clamp(122px,36vw,156px); height:clamp(138px,41vw,178px);
  background:url("../img/bougies-bouquet.webp") right bottom / contain no-repeat;
}
.carte.deco--bougies-groupe .carte__papier{ padding-bottom:clamp(150px,24vh,186px); }

/* ============================================================
   DÉCOR CHIC SUR CHAQUE CARTE (images Higgsfield)
   En haut : guirlande de roses posée sur le jonc, ou bouquet dans un coin.
   En bas : bouquet de bougies ou chandelier, du côté opposé à la carte précédente.
   ============================================================ */
.carte::after,
.carte[class*="deco--"]::after{ display:none !important; }
.deco{ position:absolute; z-index:4; pointer-events:none; background-repeat:no-repeat; }
/* la guirlande, posée sur le haut du cadre (elle cache l'olive du haut) */
.deco-guirlande-h{
  top:-6px; left:50%; transform:translateX(-50%);
  width:min(82%,340px); height:clamp(64px,19vw,86px);
  background:url("../img/guirlande.webp") center top / contain;
}
.carte--decoree:has(.deco-guirlande-h) .carte__orn--h{ display:none; }
/* le bouquet de roses d'angle */
.deco-roses-hg{
  top:0; left:-6px;
  width:clamp(104px,30vw,132px); height:clamp(104px,30vw,132px);
  background:url("../img/roses-coin.webp") top left / contain;
}
/* le bouquet de bougies, en bas à droite, posé sur le jonc */
.deco-bouquet-bd{
  right:6px; bottom:4px;
  width:clamp(118px,34vw,150px); height:clamp(134px,39vw,170px);
  background:url("../img/bougies-bouquet.webp") right bottom / contain;
  filter:drop-shadow(0 6px 10px rgba(20,2,6,.45));
  animation:flammes 3.6s ease-in-out infinite;
}
/* le chandelier, en bas à gauche */
.deco-chandelier-bg{
  left:12px; bottom:14px;
  width:clamp(66px,19vw,86px); height:clamp(104px,30vw,134px);
  background:url("../img/bougies.webp") center bottom / contain;
  filter:drop-shadow(0 6px 10px rgba(20,2,6,.5));
  animation:flammes 4.2s ease-in-out infinite;
}
/* le texte garde sa place entre les décors */
.carte--decoree .carte__papier{
  padding-top:clamp(84px,12vh,100px);
  padding-bottom:clamp(128px,20vh,160px);
}
@media (prefers-reduced-motion:reduce){ .deco{ animation:none !important; } }
/* l'écho dans les coins opposés des cartes rouges : plus petit, pour garder une hiérarchie */
.deco-roses-hd-petit{
  top:4px; right:-4px;
  width:clamp(72px,21vw,92px); height:clamp(72px,21vw,92px);
  background:url("../img/roses-coin.webp") top left / contain;
  transform:scaleX(-1);
}
.deco-bouquet-bd-petit{
  right:8px; bottom:6px;
  width:clamp(92px,26vw,116px); height:clamp(104px,30vw,132px);
  background:url("../img/bougies-bouquet.webp") right bottom / contain;
  filter:drop-shadow(0 6px 10px rgba(20,2,6,.45));
  animation:flammes 3.9s ease-in-out infinite;
}

/* la feuille des sections rouges : une soie bordeaux (Higgsfield) au reflet satiné,
   plus lumineuse en haut, qui se distingue du papier de la page */
.carte--bordeaux .carte__papier{
  background:
    radial-gradient(110% 60% at 50% 0%, rgba(255,214,200,.16), transparent 62%),
    radial-gradient(140% 90% at 50% 100%, rgba(20,2,6,.35), transparent 60%),
    #5e0f1c url("../img/soie-bordeaux.jpg") center / cover;
  box-shadow:inset 0 0 0 1px rgba(255,220,160,.06), inset 0 0 40px rgba(20,2,6,.35);
}

/* ============================================================
   RETOUCHES : cadre doré plus fin, toutes les feuilles en soie
   ============================================================ */
.carte--ivoire::before,
.carte--bordeaux::before{ border-width:18px; }
.carte--ivoire .carte__papier,
.carte--bordeaux .carte__papier{
  -webkit-mask-size:18px 18px, 18px 18px, 18px 18px, 18px 18px, calc(100% - 34px) calc(100% - 9px), calc(100% - 6px) calc(100% - 34px);
          mask-size:18px 18px, 18px 18px, 18px 18px, 18px 18px, calc(100% - 34px) calc(100% - 9px), calc(100% - 6px) calc(100% - 34px);
}
.carte__orn{ width:24px; height:18px; margin-left:-12px; }
.carte__orn--h{ top:7px; }
.carte__orn--b{ bottom:8px; }
/* les décors ne se répètent jamais (la forme abrégée « background » remettait la répétition) */
.deco{ background-repeat:no-repeat !important; }
/* le Château Royal : plus grand et en traits plus épais */
.carte .lt-venue{ width:min(92%,330px); max-width:none; height:auto; opacity:1; filter:drop-shadow(0 1px 2px rgba(20,2,6,.4)); }
.carte .lt-venue{ max-height:none; width:min(88%,320px); margin-bottom:clamp(12px,2.4vh,20px); }

/* l'intérieur des cadres : un bordeaux profond et uni, ton sur ton,
   éclairé doucement au centre comme à la lueur des bougies — plus de tissu */
.carte--bordeaux .carte__papier,
.carte--ivoire .carte__papier{
  background:
    radial-gradient(85% 55% at 50% 38%, rgba(176,62,82,.38), transparent 70%),
    radial-gradient(120% 80% at 50% 100%, rgba(30,3,9,.45), transparent 65%),
    linear-gradient(180deg, #741c2d 0%, #64162 6 60%, #561321 100%);
  background:
    radial-gradient(85% 55% at 50% 38%, rgba(176,62,82,.38), transparent 70%),
    radial-gradient(120% 80% at 50% 100%, rgba(30,3,9,.45), transparent 65%),
    linear-gradient(180deg, #741c2d 0%, #641626 60%, #561321 100%);
  box-shadow:inset 0 0 0 1px rgba(255,220,160,.05), inset 0 0 36px rgba(20,2,6,.4);
}

/* ============================================================
   TEXTES PLUS GRANDS DANS LA LETTRE (modèle : la carte du verset)
   Seulement les cartes — la carte des prénoms ne change pas.
   ============================================================ */
.lettre .lt-lede,
.lettre .lt-message,
.lettre .lt-message p,
.lettre .faq__intro{ font-size:clamp(19px,5.1vw,23px); line-height:1.62; max-width:30ch; }
.lettre .lt-verse p{ font-size:clamp(23px,6.2vw,29px); }
.lettre .lt-h2{ font-size:clamp(40px,10.6vw,52px); margin-bottom:clamp(10px,2vh,16px); }
.lettre .arch--rsvp .lt-h2{ font-size:clamp(36px,9.6vw,46px); }
.lettre .lt-label{ font-size:clamp(10.5px,2.8vw,12.5px); letter-spacing:.24em; }
.lettre .lt-value{ font-size:clamp(21px,5.8vw,27px); }
.lettre .lt-sub{ font-size:clamp(16.5px,4.4vw,19.5px); line-height:1.5; }
.lettre .tag{ font-size:clamp(10.5px,2.8vw,12px); height:36px; }
.lettre .lt-btn{ font-size:clamp(11px,2.9vw,12.5px); padding-top:14px; padding-bottom:14px; }
.lettre .rsvp-link{ font-size:clamp(10.5px,2.8vw,12px); }
/* compte à rebours */
.lettre .lt-count b{ font-size:clamp(28px,7.6vw,36px); }
.lettre .lt-count span{ font-size:clamp(8.5px,2.3vw,10px); }
/* déroulé */
.lettre .tl__time{ font-size:clamp(12px,3.2vw,14px); }
.lettre .tl__title{ font-size:clamp(16.5px,4.5vw,19.5px); }
.lettre .tl__detail{ font-size:clamp(15.5px,4.1vw,17.5px); }
/* questions */
.lettre .faq__q span{ font-size:clamp(14.5px,3.9vw,16.5px); line-height:1.35; }
.lettre .faq__a p{ font-size:clamp(16.5px,4.4vw,18.5px); line-height:1.6; }
/* réservation */
.lettre .rsvp-help,
.lettre .rsvp-wait{ font-size:clamp(15.5px,4.1vw,17px); }
.lettre .lt-input{ font-size:18px; }
.lettre .g-num{ font-size:10.5px; }
.lettre .dish__txt b{ font-size:clamp(13.5px,3.6vw,15px); }
.lettre .dish__txt small{ font-size:clamp(14.5px,3.8vw,16px); }
.lettre .chip span{ font-size:16px; }
.lettre .lt-choice label{ font-size:clamp(14.5px,3.9vw,16.5px); }
.lettre .pay-list li{ font-size:clamp(15.5px,4.1vw,17px); }
.lettre .pay-list b{ font-size:clamp(14.5px,3.9vw,16px); }
.lettre .pay-plan small,
.lettre .rsvp-price small{ font-size:clamp(14px,3.7vw,15.5px); }
.lettre .rsvp-price b{ font-size:clamp(18px,4.8vw,21px); }
.lettre .rsvp-price span:not(.lt-label){ font-size:clamp(15.5px,4.1vw,17px); }
.lettre .lt-sign{ font-size:clamp(36px,9.4vw,46px); }
.lettre .lt-sign small{ font-size:clamp(10.5px,2.8vw,12px); }
.lettre .lettre__fin{ font-size:clamp(36px,9.4vw,46px); }

/* ============================================================
   TOUCHES DE CHIC, SANS EN FAIRE TROP
   • les titres manuscrits en dorure (comme un marquage à chaud) ;
   • un fin ornement doré sous chaque titre.
   ============================================================ */
@supports (-webkit-background-clip:text) or (background-clip:text){
  .lettre .lt-h2,
  .lettre .lt-sign,
  .lettre .lettre__fin{
    background:linear-gradient(175deg, #fbe7b2 0%, #e3b866 38%, #c8923b 62%, #f3d58f 100%);
    -webkit-background-clip:text; background-clip:text;
    color:transparent;
    text-shadow:none;
    filter:drop-shadow(0 1px 1px rgba(20,2,6,.45));
  }
  .lettre .lt-sign small{ -webkit-text-fill-color:var(--label); color:var(--label); background:none; }
}
.lettre .lt-h2::after{
  content:"";
  display:block;
  width:min(62%,180px); height:22px;
  margin:6px auto 0;
  background:url("../img/separateur-or.svg") center / contain no-repeat;
  -webkit-text-fill-color:initial;
}

/* plus de fleurs en haut des cadres : seul le décor du bas reste */
.deco-guirlande-h,
.deco-roses-hg,
.deco-roses-hd-petit{ display:none !important; }
.carte--decoree:has(.deco-guirlande-h) .carte__orn--h{ display:block; }
.carte--decoree .carte__papier{ padding-top:clamp(62px,9vh,76px); }

/* ============================================================
   TITRES : une seule dorure uniforme (plus de dégradé d'une lettre à l'autre),
   nouvel ornement ciselé (Higgsfield), roses vertes en relief dans les coins
   ============================================================ */
.lettre .lt-h2,
.lettre .lt-sign,
.lettre .lettre__fin{
  background:none !important;
  -webkit-background-clip:border-box !important; background-clip:border-box !important;
  -webkit-text-fill-color:#e2b866 !important;
  color:#e2b866 !important;
  filter:none !important;
  text-shadow:0 1px 0 rgba(255,236,190,.18), 0 1px 2px rgba(20,2,6,.55);
  text-align:center;
  padding-inline:.12em;          /* les jambages de l'écriture manuscrite ne débordent plus d'un côté */
}
.lettre .lt-h2::after{
  width:min(70%,220px); height:30px;
  margin:4px auto 0;
  background:url("../img/ornement-titre.webp") center / contain no-repeat;
}
.lettre .tag{ white-space:nowrap; max-width:calc(100% - 8px); box-sizing:border-box; }
.lettre .tag{ padding-left:calc(38px + .3em); padding-right:38px; }

.carte--decoree .carte__papier{ position:relative; }
.carte--decoree .carte__papier::before,
.carte--decoree .carte__papier::after{
  content:""; position:absolute; top:0; z-index:0; pointer-events:none;
  width:clamp(120px,36vw,170px); aspect-ratio:536/632;
  background:url("../img/roses-relief-olive.webp") left top / contain no-repeat;
  opacity:.9;
}
.carte--decoree .carte__papier::before{ left:0; }
.carte--decoree .carte__papier::after{ right:0; transform:scaleX(-1); }
.carte--decoree .carte__contenu{ position:relative; z-index:1; }
.carte--decoree .carte__papier::before,
.carte--decoree .carte__papier::after{ width:clamp(108px,31vw,150px); opacity:1; }

/* ============================================================
   VERSION B (?version=b) : le papier aux grandes roses vertes en relief,
   comme l'ancienne version — coin en haut à gauche, coin en bas à droite
   ============================================================ */
html.version-b .letterView__paper,
html.version-b .env__inside{ background-image:url("../img/letter-bg-olive.jpg"); }
html.version-b .arch{
  background-image:
    linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38)),
    url("../img/letter-bg-olive-flou-long.jpg");
}
@media (min-aspect-ratio: 1/1){
  html.version-b .letterView__paper,
  html.version-b .env__inside{ background-image:url("../img/letter-bg-olive-large.jpg"); }
  html.version-b .arch{
    background-image:
      linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38)),
      url("../img/letter-bg-olive-large-flou-long.jpg");
  }
}
/* sur les cartes : pas de roses en relief dans les coins des cadres (seul le papier du fond en a) */
html.version-b .carte--decoree .carte__papier::before,
html.version-b .carte--decoree .carte__papier::after{ display:none; }

/* « Le jour » et « Le lieu » : même écriture que les titres (« Plus que… ») */
.lettre .lt-label--titre{
  font-family:var(--f-script);
  font-weight:400;
  font-size:clamp(40px,10.6vw,52px);
  line-height:1.1;
  letter-spacing:normal; text-transform:none;
  padding-left:0; padding-inline:.12em;
  margin-bottom:clamp(6px,1.4vh,12px);
  color:#e2b866; -webkit-text-fill-color:#e2b866;
  text-shadow:0 1px 0 rgba(255,236,190,.18), 0 1px 2px rgba(20,2,6,.55);
}

/* ornement sous les titres : un peu plus discret */
.lettre .lt-h2::after{ width:min(56%,176px); height:24px; margin-top:2px; }

/* déroulé : la fleur glisse d'une étape à l'autre (plus de suivi image par image) */
.tl__flower{ transition:transform .7s cubic-bezier(.33,.9,.3,1) !important; will-change:transform; }
.tl__fill{ transition:height .7s cubic-bezier(.33,.9,.3,1) !important; }
@media (prefers-reduced-motion:reduce){ .tl__flower,.tl__fill{ transition:none !important; } }

/* ============================================================
   REFERMER LA LETTRE : petit bouton rond doré en haut à gauche,
   assorti au bouton de la musique (en bas à droite)
   ============================================================ */
.closeBtn{
  top:max(14px, calc(env(safe-area-inset-top) + 8px)); left:14px;
  z-index:30;
  width:40px; height:40px;
  border:1px solid rgba(223,183,95,.7);
  background:rgba(60,14,24,.55);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  color:#f3d894;
  box-shadow:0 4px 12px rgba(20,2,6,.35);
}
@media (hover:hover) and (pointer:fine){ .closeBtn:hover{ background:rgba(90,22,36,.75); } }
.closeBtn svg{ width:15px; height:15px; stroke-width:1.7; }

/* ============================================================
   VERSION C (?version=c) : la version B, mais l'intérieur des cadres est un
   VRAI VERRE DÉPOLI, comme le 16 novembre (20 h 45) : le papier aux roses vertes
   reste en place derrière et le cadre le floute en direct, teinté bordeaux.
   ============================================================ */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html.version-c .carte--bordeaux .carte__papier,
  html.version-c .carte--ivoire .carte__papier{
    background:linear-gradient(180deg, rgba(128,40,56,.5), rgba(112,30,45,.38));
    -webkit-backdrop-filter:blur(3.6px) contrast(1.08);
            backdrop-filter:blur(3.6px) contrast(1.08);
    box-shadow:inset 0 1px 0 rgba(255,236,226,.1);
  }
}

/* déroulé : trait, remplissage, points et fleur centrés exactement sur le même axe */
.tl__track{
  left:var(--tl-x); width:0; margin-left:0;
  border-left:0;
  transform:none;
}
.tl__track::before{                    /* le trait en pointillé, 1 px, centré sur l'axe */
  content:""; position:absolute; top:0; bottom:0; left:-.5px; width:1px;
  background:repeating-linear-gradient(180deg, var(--rule-soft) 0 3px, transparent 3px 6px);
}
.tl__fill{ left:-1px; width:2px; border-radius:1px; }
.tl__step::after{
  left:var(--tl-x); width:8px; height:8px;
  margin-left:-4px;
  top:10.5px;
}
.tl__flower{ left:var(--tl-x); margin-left:-21px; }

/* boutons : s'enfoncent légèrement sous le doigt (les autres animations d'arrivée ont été retirées) */
.lettre button,
.lettre .lt-btn,
.lettre a[class*="btn"]{ transition:transform .15s ease, filter .2s ease, background .3s, border-color .3s, color .3s; }
.lettre button:active,
.lettre .lt-btn:active,
.lettre a[class*="btn"]:active{ transform:scale(.97); filter:brightness(1.08); }
.closeBtn:active,.soundBtn:active{ transform:scale(.92); }

/* ============================================================
   COMPTE À REBOURS À ROULEAUX : chaque chiffre qui change glisse vers le haut,
   le suivant monte d'en dessous, avec un léger fondu sur les bords
   ============================================================ */
.lt-count b{ line-height:1.2; }
.cd-s{
  display:inline-block; position:relative; vertical-align:top;
  height:1.2em; overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 24%,#000 76%,transparent 100%);
          mask-image:linear-gradient(180deg,transparent 0,#000 24%,#000 76%,transparent 100%);
}
.cd-c{ display:block; height:1.2em; }
.cd-c.cd-out{ position:absolute; left:0; top:0; width:100%; animation:cdSort .8s cubic-bezier(.65,0,.35,1) forwards; }
.cd-c.cd-in { animation:cdEntre .8s cubic-bezier(.65,0,.35,1) both; }
@keyframes cdSort { from{ transform:translateY(0);     opacity:1; } to{ transform:translateY(-100%); opacity:.2; } }
@keyframes cdEntre{ from{ transform:translateY(100%);  opacity:.2; } to{ transform:translateY(0);     opacity:1; } }

/* ============================================================
   LA SIGNATURE FINALE dans un médaillon doré : ovale à double filet d'or,
   couronné et souligné de l'ornement à la rose
   ============================================================ */
.lettre .lettre__fin{
  position:relative;
  box-sizing:border-box;
  width:min(82%,330px);
  margin:clamp(64px,10vh,90px) auto clamp(56px,9vh,80px);
  padding:clamp(40px,6vh,54px) 18px clamp(42px,6.4vh,56px);
  border-radius:50%;
  background:radial-gradient(80% 70% at 50% 40%, rgba(160,52,72,.55), rgba(84,16,30,.85) 70%), #5e1424;
  box-shadow:
    inset 0 0 0 1px rgba(242,212,150,.55),
    inset 0 0 26px rgba(20,2,6,.45),
    0 0 0 2px #c99a4c,
    0 0 0 6px #5a1322,
    0 0 0 7.5px #e2bd72,
    0 14px 30px rgba(20,2,6,.5);
  line-height:1.15;
  clip-path:none;
}
.lettre .lettre__fin::before,
.lettre .lettre__fin::after{
  content:""; position:absolute; left:50%;
  width:min(74%,230px); height:30px;
  transform:translateX(-50%);
  background:url("../img/ornement-titre.webp") center / contain no-repeat;
  filter:drop-shadow(0 2px 3px rgba(20,2,6,.5));
  margin:0;
}
.lettre .lettre__fin::before{ top:-17px; }
.lettre .lettre__fin::after { bottom:-17px; transform:translateX(-50%) scaleY(-1); }

@media (prefers-reduced-motion:reduce){
  .lettre .carte .tag{ background-size:calc(100% - 52px) 100% !important; transition:none !important; }
  .lettre .carte .tag::before,.lettre .carte .tag::after,.tag__txt{ opacity:1 !important; transform:none !important; transition:none !important; }
  .cd-c.cd-out{ display:none; } .cd-c.cd-in{ animation:none; }
}
/* les cases du compteur sont des <span> : on annule le style des légendes « jours, heures… » */
.lettre .lt-count b .cd-s,
.lettre .lt-count b .cd-c{
  margin:0; padding:0;
  font:inherit; color:inherit; letter-spacing:0; text-transform:none; white-space:nowrap;
}
.lettre .lt-count b .cd-s{ display:inline-block; }
.lettre .lt-count b .cd-c{ display:block; }

/* médaillon des prénoms : une rose d'or posée sur le filet en haut (cimier),
   le petit fleuron olive des cadres en bas — plus de grande frise qui coupe l'ovale */
.lettre .lettre__fin{ white-space:nowrap; font-size:clamp(30px,8.6vw,40px); padding-inline:14px; }
.lettre .lettre__fin::before{
  top:-38px; width:78px; height:57px;
  background:url("../img/ornement-rose.webp") center bottom / contain no-repeat;
  filter:drop-shadow(0 3px 4px rgba(20,2,6,.55));
}
.lettre .lettre__fin::after{
  bottom:-13px; width:30px; height:22px;
  transform:translateX(-50%);
  background:url("../img/jonc-ornement.webp") center / contain no-repeat;
}

/* médaillon : un seul large filet d'or plein (plus de rouge entre deux filets)
   et un vrai bouquet de roses blanches posé en haut, à la place de la rose dorée */
.lettre .lettre__fin{
  box-shadow:
    inset 0 0 0 1px rgba(242,212,150,.45),
    inset 0 0 26px rgba(20,2,6,.45),
    0 0 0 1px #7a561d,
    0 0 0 2.5px #f3d993,
    0 0 0 5.5px #c9973f,
    0 0 0 7px #e8c46f,
    0 0 0 8px #7a561d,
    0 14px 30px rgba(20,2,6,.5);
}
.lettre .lettre__fin::before{
  top:-46px; width:min(80%,250px); height:auto; aspect-ratio:900/260;
  background:url("../img/guirlande.webp") center / contain no-repeat;
  filter:drop-shadow(0 4px 6px rgba(20,2,6,.5));
}

/* ============================================================
   RUBAN DES CARTES : un parchemin de satin qui se déroule
   • deux rouleaux partent du centre et filent vers les bouts en dévoilant le satin ;
   • ils RESTENT roulés aux deux bouts (pas de bouts repliés qui reviennent) ;
   • le texte se pose ensuite ;
   • ça ne démarre que lorsque le ruban est vraiment à l'écran (classe .is-deroule,
     posée par main.js quand le ruban dépasse le premier tiers bas de l'écran).
   ============================================================ */
.lettre .carte .tag{ background:none !important; transition:none !important; }
.lettre .carte .tag::before,
.lettre .carte .tag::after{ display:none !important; }
.tag__bande{
  position:absolute; top:0; bottom:0; left:22px; right:22px;
  background:url("../img/ruban-m.png") 0 0 / 100% 100% no-repeat;
  z-index:0; pointer-events:none;
  -webkit-clip-path:inset(0 50% 0 50%); clip-path:inset(0 50% 0 50%);
  transition:-webkit-clip-path 1.2s cubic-bezier(.55,.06,.25,1) .1s, clip-path 1.2s cubic-bezier(.55,.06,.25,1) .1s;
}
.tag.is-deroule .tag__bande{ -webkit-clip-path:inset(0 0 0 0); clip-path:inset(0 0 0 0); }
.tag__txt{
  position:relative; z-index:2;
  opacity:0; transform:scale(.94);
  transition:opacity .6s ease 1.15s, transform .9s cubic-bezier(.2,.8,.25,1) 1.1s;
}
.tag.is-deroule .tag__txt{ opacity:1; transform:none; }
.tag__roll{
  position:absolute; top:-3px; bottom:-3px; left:50%;
  width:14px; margin-left:-7px;
  border-radius:7px / 5px;
  background:linear-gradient(90deg,#17220a 0%,#3e5520 18%,#86a24c 42%,#e6f1c2 51%,#7a9443 60%,#33491a 84%,#141e08 100%);
  box-shadow:0 2px 5px rgba(20,4,8,.45), inset 0 1px 0 rgba(255,255,255,.25);
  opacity:0; pointer-events:none; z-index:3;
}
.tag.is-deroule .tag__roll--g{ animation:rouleauG 1.2s cubic-bezier(.55,.06,.25,1) .1s both; }
.tag.is-deroule .tag__roll--d{ animation:rouleauD 1.2s cubic-bezier(.55,.06,.25,1) .1s both; }
@keyframes rouleauG{
  0%  { opacity:1; transform:translateX(0) scaleX(1.4); }
  100%{ opacity:1; transform:translateX(calc(var(--demi,80px) * -1 + 22px)) scaleX(1); }
}
@keyframes rouleauD{
  0%  { opacity:1; transform:translateX(0) scaleX(1.4); }
  100%{ opacity:1; transform:translateX(calc(var(--demi,80px) - 22px)) scaleX(1); }
}
@media (prefers-reduced-motion:reduce){
  .tag__bande{ clip-path:none !important; -webkit-clip-path:none !important; transition:none !important; }
  .tag__txt{ opacity:1 !important; transform:none !important; transition:none !important; }
  .tag__roll{ opacity:1; animation:none !important; }
  .tag__roll--g{ transform:translateX(calc(var(--demi,80px) * -1 + 22px)); }
  .tag__roll--d{ transform:translateX(calc(var(--demi,80px) - 22px)); }
}

/* le ruban se déroule plus loin : le texte respire entre les deux rouleaux */
.lettre .carte .tag{ padding-left:calc(60px + .3em) !important; padding-right:60px !important; min-width:210px; }

/* ruban : marges et espacement ajustables (main.js les réduit si le texte ne tient pas) */
.lettre .carte .tag{
  padding-left:calc(var(--marge,60px) + var(--espace,.3em)) !important;
  padding-right:var(--marge,60px) !important;
  letter-spacing:var(--espace,.3em);
  max-width:calc(100% - 8px);
}
.lettre .carte .tag .tag__txt{ letter-spacing:var(--espace,.3em) !important; }

/* le médaillon des prénoms : même fond que l'intérieur des cartes */
.lettre .lettre__fin{
  background:
    radial-gradient(85% 55% at 50% 38%, rgba(176,62,82,.38), transparent 70%),
    radial-gradient(120% 80% at 50% 100%, rgba(30,3,9,.45), transparent 65%),
    linear-gradient(180deg,#741c2d 0%,#641626 60%,#561321 100%) !important;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){

}

/* compte à rebours : les chiffres restent toujours sur une seule ligne (228 se cassait sur iPhone) */
.lettre .lt-count b{ display:flex; justify-content:center; white-space:nowrap; }
.lettre .lt-count b .cd-s{ flex:0 0 auto; }

/* pas d'ornement sous « Plus que… », « Serez-vous des nôtres ? » et « Vos questions » */
.lettre .carte:has(#countdown) .lt-h2::after,
.lettre #sheetRsvp .lt-h2::after,
.lettre #sheetFaq .lt-h2::after{ display:none; }

/* médaillon : bouquet plus petit, posé SUR le filet d'or quelle que soit la largeur de l'écran */
.lettre .lettre__fin::before{
  top:auto; bottom:calc(100% - 14px);
  width:min(58%,190px);
}

/* le plan Google Maps intégré, encadré d'un fin filet d'or */
.lt-carte{
  position:relative;
  width:100%; max-width:340px;
  margin:clamp(14px,2.4vh,20px) auto 0;
  aspect-ratio:4 / 3;
  border-radius:14px; overflow:hidden;
  box-shadow:0 0 0 1px #7a561d, 0 0 0 2.5px #e2bd72, 0 0 0 3.5px #7a561d, 0 10px 22px rgba(20,2,6,.45);
  background:#3a0d16;
}
.lt-carte iframe{ display:block; width:100%; height:100%; border:0; }

/* plus d'ornement sous « Le déroulé » non plus */
.lettre #sheetProgramme .lt-h2::after{ display:none; }

/* ============================================================
   TEXTES DORÉS EN VRAI RELIEF (dorure à chaud) — version définitive
   • une seule dorure pour tous les titres manuscrits, « Le jour », « Le lieu »,
     la signature et les prénoms du médaillon ;
   • la dorure est une tuile de la hauteur EXACTE d'une ligne (1,2 em), répétée,
     dont le haut et le bas ont la même teinte : chaque ligne, chaque titre,
     quelle que soit sa taille, a exactement le même reflet, sans raccord ;
   • de la place tout autour (padding compensé par des marges négatives) pour
     les boucles et jambages de l'écriture : plus aucune lettre coupée ;
   • le relief : fin reflet clair au-dessus, filet brun en dessous, ombre douce.
   ============================================================ */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .lettre .lt-h2,
  .lettre .lt-sign,
  .lettre .fin__noms,
  .lettre .lt-label--titre{
    --or:linear-gradient(#ddb56a, #ddb56a);           /* or uni */
    background-image:var(--or) !important;
    background-size:100% 1.2em !important;
    background-repeat:repeat !important;
    background-origin:content-box !important;
    background-position:0 0 !important;
    -webkit-background-clip:text !important; background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
    color:transparent !important;
    text-shadow:none !important;
    line-height:1.2 !important;
    padding:.22em .35em .34em !important;
    margin-left:-.35em !important; margin-right:-.35em !important;
    filter:drop-shadow(0 1px .5px rgba(40,6,12,.55)) !important;
  }
  .lettre .lt-h2,
  .lettre .lt-label--titre{ margin-top:-.22em !important; margin-bottom:calc(clamp(10px,2vh,16px) - .34em) !important; }
  .lettre .lt-sign{ margin-top:clamp(10px,2vh,16px) !important; }
  .lettre .fin__noms{ display:inline-block; margin:-.22em -.35em -.34em !important; }
  .lettre .lt-sign small{ -webkit-text-fill-color:var(--label) !important; color:var(--label) !important; background:none !important; filter:none !important; }
}
/* tous les titres manuscrits à la même taille (le R.S.V.P. était plus petit) */
.lettre .lt-h2,
.lettre .arch--rsvp .lt-h2,
.lettre #sheetRsvp .lt-h2,
.lettre .lt-label--titre{ font-size:clamp(38px,10.2vw,48px) !important; }


/* version C : le verre dépoli des cadres plus opaque (voile bordeaux plus dense, flou plus fort) */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html.version-c .carte--bordeaux .carte__papier,
  html.version-c .carte--ivoire .carte__papier{
    background:linear-gradient(180deg, rgba(120,32,48,.64), rgba(104,24,40,.55)) !important;
    -webkit-backdrop-filter:blur(5px) contrast(1.06);
            backdrop-filter:blur(5px) contrast(1.06);
  }
}

/* ============================================================
   « UN MOT » : une vraie hiérarchie, de l'air, rien de plus
   • la première phrase en accroche (italique, plus grande) ;
   • un filet d'or très court pour respirer ;
   • le reste plus léger, en colonne étroite ;
   • la signature : « Avec tout notre amour, » en italique discret, puis les prénoms.
   ============================================================ */
.lettre .lt-message{ max-width:27ch; }
.lettre .lt-message p:first-child{
  font-style:italic;
  font-size:clamp(22px,6vw,27px);
  line-height:1.45;
  color:var(--ink-strong);
  margin:0;
}
.lettre .lt-message p:first-child::after{
  content:""; display:block;
  width:44px; height:1px; margin:clamp(18px,3vh,24px) auto;
  background:linear-gradient(90deg, transparent, #ddb56a, transparent);
}
.lettre .lt-message p:not(:first-child){
  font-size:clamp(18px,4.8vw,20.5px);
  line-height:1.7;
  color:var(--ink);
  opacity:.92;
}
.lettre .lt-sign{ margin-top:clamp(26px,4.6vh,38px) !important; font-size:clamp(32px,8.6vw,40px) !important; }
.lettre .lt-sign small{
  font-family:var(--f-body, "Cormorant Garamond", serif) !important;
  font-style:italic;
  font-size:clamp(15px,4vw,17px) !important;
  letter-spacing:.02em !important; text-transform:none !important;
  opacity:.85;
  margin-bottom:.1em !important;
}

/* plan : un fond bordeaux élégant et une mention discrète pendant le chargement,
   puis le plan apparaît en fondu */
.lt-carte{ background:radial-gradient(80% 70% at 50% 40%, #6e1a2b, #4a0f1c); }
.lt-carte__attente{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--f-body); font-style:italic; font-size:16px; color:rgba(240,220,190,.7);
}
.lt-carte iframe{ position:relative; z-index:1; opacity:0; transition:opacity .8s ease; }
.lt-carte iframe.is-pret{ opacity:1; }

/* ============================================================
   R.S.V.P. ÉPURÉ : trois étapes numérotées, moins de boîtes, plus d'air
   ============================================================ */
.rsvp-etape{
  display:flex; align-items:center; gap:12px;
  margin:clamp(30px,5vh,40px) 0 clamp(14px,2.4vh,18px);
}
.rsvp-etape::before,.rsvp-etape::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, rgba(221,181,106,.55)); }
.rsvp-etape::after{ background:linear-gradient(90deg, rgba(221,181,106,.55), transparent); }
.rsvp-etape__n{
  order:-1; display:none;
}
.rsvp-etape__t{
  font-family:var(--f-display); font-size:clamp(11px,2.9vw,12.5px);
  letter-spacing:.26em; text-transform:uppercase; color:#ddb56a; white-space:nowrap;
}
.rsvp-etape__t::before{ content:attr(data-n); }

/* les invités : plus de pavé vert, un simple filet entre chaque personne */
.lettre .guest{
  background:none; border-radius:0; padding:0 0 clamp(16px,2.6vh,20px);
  margin-bottom:clamp(16px,2.6vh,20px);
  border-bottom:1px solid rgba(231,221,204,.12);
}
.lettre .guest:last-of-type{ border-bottom:0; }
.lettre .g-num{ font-size:10px; letter-spacing:.3em; margin-bottom:6px; color:rgba(231,221,204,.7); }
.lettre .guest .g-name{ text-align:center; }

/* les plats : deux pastilles compactes côte à côte */
.lettre .dishes{ grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.lettre .dish__card{
  flex-direction:column; justify-content:flex-start; text-align:center; gap:4px;
  padding:10px 8px 11px; border-radius:14px; height:100%; box-sizing:border-box;
  background:rgba(231,221,204,.05);
}
.lettre .dish svg{ width:38px; height:38px; }
.lettre .dish__txt{ text-align:center; }
.lettre .dish__txt b{ font-size:clamp(11px,2.9vw,12.5px); line-height:1.25; }
.lettre .dish__txt small{ font-size:12.5px; line-height:1.3; }

.lettre .lt-field--nb{ margin-bottom:clamp(18px,3vh,24px); }
.lettre .lt-label em{ font-style:italic; text-transform:none; letter-spacing:.02em; opacity:.75; }
.lettre .lt-area{ min-height:0; }

/* la participation : un chiffre clair, sans encadré */
.lettre .rsvp-price{
  background:none; padding:0; gap:2px; margin:0 0 clamp(16px,2.6vh,20px);
}
.rsvp-price__u{ font-size:15px; font-style:italic; color:var(--ink-soft); }
.rsvp-price__t{ font-family:var(--f-display); font-size:clamp(26px,7vw,32px); color:var(--ink-strong); letter-spacing:.04em; line-height:1.1; }
.rsvp-price__s{ font-size:14px; color:var(--ink-soft); }
.lettre .pay-plan{ background:none; padding:4px 0 0; border-top:1px solid rgba(231,221,204,.12); border-radius:0; margin-top:4px; }
.lettre .pay-plan small{ font-size:13.5px; }

/* FAQ : l'introduction en une seule ligne discrète, en italique */
.lettre .faq__intro{
  font-style:italic; font-size:clamp(17px,4.6vw,19px) !important; line-height:1.5 !important;
  color:var(--ink-soft); max-width:26ch !important; margin:0 auto clamp(20px,3.4vh,28px) !important;
}

/* ============================================================
   R.S.V.P. — version calme pour téléphone
   Les grandes capitales très espacées prenaient deux lignes et serraient tout :
   libellés en italique (lisibles, sur une ligne), étapes courtes, plats et
   paiement compacts, chiffres alignés.
   ============================================================ */
#sheetRsvp .rsvp-etape{ gap:10px; margin:clamp(34px,5.4vh,44px) 0 clamp(16px,2.6vh,20px); }
#sheetRsvp .rsvp-etape::before,#sheetRsvp .rsvp-etape::after{ min-width:22px; }
#sheetRsvp .rsvp-etape__t{ font-size:11px; letter-spacing:.18em; }

#sheetRsvp .lt-label{
  font-family:var(--f-body); font-style:italic; font-weight:400;
  font-size:clamp(16px,4.3vw,18px); letter-spacing:.01em; text-transform:none;
  color:var(--ink-soft); padding-left:0; margin-bottom:6px;
}
#sheetRsvp .lt-label em{ font-size:.85em; opacity:.7; letter-spacing:0; }
#sheetRsvp .g-num{
  font-family:var(--f-body); font-style:italic; text-transform:none; letter-spacing:.01em;
  font-size:clamp(15px,4vw,17px); color:var(--ink-soft); margin-bottom:2px;
}
#sheetRsvp .lt-input{ font-size:clamp(18px,4.8vw,20px); }

/* présence et paiement : pastilles plus fines */
#sheetRsvp .lt-choice{ gap:8px; }
#sheetRsvp .lt-choice label{ padding:9px 16px; font-size:clamp(15.5px,4.1vw,17px); }

/* nombre de personnes : compteur plus compact */
#sheetRsvp .lt-stepper{ gap:22px; }
#sheetRsvp .lt-stepper button{ width:40px; height:40px; }

/* plats : nom en petites capitales discrètes, sur deux lignes maximum */
#sheetRsvp .dish__card{ padding:10px 8px; gap:3px; }
#sheetRsvp .dish svg{ width:34px; height:34px; }
#sheetRsvp .dish__txt b{
  font-family:var(--f-body); font-weight:600; text-transform:none; letter-spacing:0;
  font-size:clamp(15px,4vw,16.5px); line-height:1.2;
}
#sheetRsvp .dish__txt small{ font-size:clamp(13px,3.5vw,14px); line-height:1.25; }

/* le total : un seul chiffre, la précision en dessous */
#sheetRsvp .rsvp-price{ margin-bottom:clamp(18px,3vh,24px); }
#sheetRsvp .rsvp-price__t{ font-size:clamp(28px,7.4vw,34px); }
#sheetRsvp .rsvp-price__s{ font-style:italic; font-size:clamp(14.5px,3.9vw,16px); color:var(--ink-soft); }

/* échéancier : lignes nettes, montants alignés à droite */
#sheetRsvp .pay-list li{ font-size:clamp(14.5px,3.9vw,16px); align-items:baseline; }
#sheetRsvp .pay-list b{ font-size:clamp(13.5px,3.6vw,15px); }
#sheetRsvp .pay-plan small{ font-size:clamp(13px,3.5vw,14px); }

/* ============================================================
   R.S.V.P. PAS À PAS
   ============================================================ */
.rsvp-pas{ display:flex; justify-content:center; gap:10px; margin:4px 0 clamp(18px,3vh,24px); }
.rsvp-pas i{ width:7px; height:7px; border-radius:50%; border:1px solid rgba(221,181,106,.7); transition:background .3s, transform .3s; }
.rsvp-pas i.is-fait{ background:rgba(221,181,106,.55); }
.rsvp-pas i.is-ici{ background:#ddb56a; transform:scale(1.25); }
.rsvp-q{
  margin:0 0 clamp(16px,2.8vh,22px);
  font-family:var(--f-body); font-style:italic;
  font-size:clamp(22px,6vw,27px); line-height:1.3;
  color:var(--ink-strong); text-align:center;
}
.rsvp-nav{ display:grid; justify-items:center; gap:12px; margin-top:clamp(18px,3vh,26px); }
.rsvp-nav .lt-btn{ min-width:200px; }
.rsvp-retour{ font-size:15px; opacity:.8; }
#sheetRsvp .rsvp-form .lt-choice{ margin-bottom:0; }
#sheetRsvp .rsvp-form .guest:last-of-type{ margin-bottom:0; padding-bottom:0; }

/* la lettre du verset reste en minuscule : « Matthieu 19.6 (a) » */
.lt-verse footer .min{ text-transform:none; letter-spacing:.04em; }
/* la police des références (Cinzel) n'a que des capitales : le « a » passe en Cormorant */
.lt-verse footer .min{ font-family:var(--f-body); font-size:1.15em; letter-spacing:0; font-variant:normal; }
/* référence du verset écrite telle quelle : « (Mat 19.6a) » (police avec de vraies minuscules) */
.lettre .lt-verse footer{
  font-family:var(--f-body) !important; font-style:italic;
  text-transform:none !important; letter-spacing:.04em !important;
  font-size:clamp(16px,4.3vw,18px) !important;
}
/* les mois n'apparaissent que si « plusieurs mois » est coché */
.g-menu--mois{ display:none; }
.lt-field:has(input[name=paie][value=m]:checked) .g-menu--mois{ display:flex; }

/* iPhone (Safari) : chaque lettre des prénoms est animée à part (effet d'encre) et Safari
   coupait ce qui dépasse de sa boîte (haut des « l », boucle des « A »). On agrandit la boîte
   de chaque lettre sans changer la mise en page (marge négative de même valeur). */
/* (les lettres restent en ligne pour garder les liaisons de l'écriture) */
.is-ecrit .lt-names .ch{ animation:none !important; opacity:1 !important; filter:none !important; will-change:auto !important; }
/* pendant l'écriture : un simple fondu, sans flou (le flou faisait découper les lettres par Safari) */
@keyframes inkIn{ 0%{ opacity:0; } 100%{ opacity:1; } }
.is-writing .lt-names .ch{ will-change:opacity; }

/* médaillon de la fin : même fond plein dans les trois versions
   (Safari dessinait l'or en rectangle quand le médaillon était en verre dépoli) */
.lettre .lettre__fin{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }

/* appareils modestes (classe .leger posée par version.js) : pas de flou calculé en direct */
html.leger .carte--bordeaux .carte__papier,
html.leger .carte--ivoire .carte__papier{
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
}
html.leger.version-c .carte--bordeaux .carte__papier,
html.leger.version-c .carte--ivoire .carte__papier{
  background:linear-gradient(180deg, rgba(116,30,46,.9), rgba(98,22,38,.86)) !important;
}
/* l'arche des prénoms : sur ces appareils, la copie déjà floutée du papier remplace le flou en direct */
html.leger #deck .arch{
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  background-image:linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38)), url("../img/letter-bg-uni-flou-long.jpg") !important;
  background-size:100% 100%, var(--bw,100vw) calc(var(--bh,100vh) * 2) !important;
  background-position:0 0, var(--bx,0) var(--by,0) !important;
  background-repeat:no-repeat, repeat-y !important;
}
html.leger.version-b #deck .arch{
  background-image:linear-gradient(180deg,rgba(128,40,56,.5),rgba(112,30,45,.38)), url("../img/letter-bg-olive-flou-long.jpg") !important;
}

/* prénoms : la police a des liaisons/crénages automatiques (le « A » s'étire vers le « r »)
   qui n'existent pas pendant l'écriture lettre par lettre. On les coupe partout :
   le dessin est identique pendant et après l'écriture, plus aucun saut. */
.lt-names, .lt-names *{
  font-kerning:none;
  font-variant-ligatures:none;
  font-feature-settings:"kern" 0, "liga" 0, "clig" 0, "calt" 0, "dlig" 0, "swsh" 0;
}

/* ============================================================
   PRÉNOMS : écriture d'un trait, de gauche à droite
   Chaque prénom a une grande marge invisible (compensée) : le masque qui le
   dévoile est plus grand que toutes ses boucles, rien n'est jamais coupé.
   Le bord du masque est adouci, comme une encre qui avance.
   ============================================================ */
.lt-names .nom{
  display:table;                       /* aussi large que le prénom (le masque balaie le prénom, pas le vide) */
  padding:.38em .45em .42em;
  margin:-.38em auto -.42em;
}
.ink-wait .lt-names .nom{ opacity:0; }
.is-writing .lt-names .nom{
  -webkit-mask-image:linear-gradient(90deg, #000 0 42%, transparent 58% 100%);
          mask-image:linear-gradient(90deg, #000 0 42%, transparent 58% 100%);
  -webkit-mask-size:260% 100%; mask-size:260% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  animation:ecrireNom var(--dur,900ms) cubic-bezier(.42,.08,.4,1) var(--d,0ms) both;
}
@keyframes ecrireNom{
  from{ -webkit-mask-position:100% 0; mask-position:100% 0; }
  to  { -webkit-mask-position:0 0;    mask-position:0 0; }
}
.is-ecrit .lt-names .nom{ animation:none !important; -webkit-mask-image:none !important; mask-image:none !important; opacity:1 !important; }
@media (prefers-reduced-motion:reduce){ .is-writing .lt-names .nom{ animation:none; -webkit-mask-image:none; mask-image:none; } }

/* R.S.V.P. — statut de la réservation, toujours en tête de la confirmation */
.resa-statut{
  display:grid; justify-items:center; gap:4px;
  margin:6px auto clamp(16px,2.8vh,22px); padding:14px 16px 15px;
  max-width:320px;
  border:1px solid rgba(221,181,106,.55); border-radius:14px;
  background:rgba(221,181,106,.08);
}
.resa-statut__ok{ font-family:var(--f-display); font-size:clamp(14px,3.8vw,16px); letter-spacing:.06em; color:#ddb56a; }
.resa-statut__quand{ font-style:italic; font-size:clamp(15px,4vw,17px); color:var(--ink); }
.resa-statut__paie{ margin-top:4px; font-size:clamp(14.5px,3.9vw,16px); color:var(--ink-soft); }
.resa-statut__paie.is-ok{ color:var(--olive-light); }
