/* Eden & Yohai — invitation de la SOIRÉE : enveloppe d'ouverture + faire-part ivoire et or, un écran à la fois
   (complète site.css ; seulement chargée par index.html) */
.inv-soiree { font-variant-numeric: lining-nums;
  --ivoire: #FBF8F2;
  --ivoire-2: #F3EEE6;
  --papier-env: #F4EFE6;
  --or: #B48F50;
  --or-fonce: #8C6A32;
  --or-clair: #D9BC7E;
  --or-filet: rgba(180, 143, 80, .55);
  --brun: #4A3B2A;
  --brun-doux: #6A5640;
  --script: 'Pinyon Script', 'Great Vibes', cursive;
  --capitales: 'Cormorant Garamond', Georgia, serif;
  color: var(--brun);
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══ Fond fixe : le même papier derrière tous les écrans (rien ne bouge quand on change d'écran) ══ */
html.html-soiree { height: 100%; overflow: hidden; background: #ECE5DA; }
body.inv-soiree {
  height: 100%; overflow: hidden; overscroll-behavior: none;
  background: #ECE5DA;
}
body.inv-soiree::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 252, 245, .95) 0%, rgba(255, 252, 245, 0) 62%),
    radial-gradient(ellipse 140% 100% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(110, 85, 50, .16) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #EEE7DC;
}
.inv-soiree .barre { z-index: 40; }

/* ══ 1. L'enveloppe ═══════════════════════════════════════════ */
html.avec-enveloppe, html.avec-enveloppe body { overflow: hidden; height: 100%; }
.env-ecran {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 18vh 16px 8vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 46%, rgba(255, 251, 243, .95) 0%, rgba(255, 251, 243, 0) 70%),
    radial-gradient(ellipse 130% 100% at 50% 50%, #EFE8DD 0%, #E2D8CA 60%, #CFC2B0 100%);
  transition: opacity .9s ease, visibility 0s .9s;
}
.env-ecran.fini { opacity: 0; visibility: hidden; pointer-events: none; }
.env-ecran.fini .env-scene { transform: scale(1.08); transition: transform .9s ease; }

.env-scene { position: relative; animation: env-entre 1.3s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes env-entre { from { opacity: 0; transform: translateY(34px) rotate(-2.5deg); } }
/* ombre douce posée sous l'enveloppe */
.env-scene::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 34px; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(80, 60, 30, .32), rgba(80, 60, 30, 0) 70%);
  filter: blur(4px);
  transition: opacity .6s;
}
.env-ecran.ouverture .env-scene::after { opacity: .55; }

.env {
  --w: min(92vw, 580px, calc(60svh * 1.5));
  position: relative; display: block;
  width: var(--w); aspect-ratio: 3 / 2;
  padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1800px;
  -webkit-tap-highlight-color: transparent;
  animation: env-flotte 5s ease-in-out 1.3s infinite;
}
.env:focus-visible { outline: 2px solid var(--or); outline-offset: 10px; border-radius: 6px; }
.env.retournee { animation: none; }
@keyframes env-flotte { 50% { transform: translateY(-5px); } }

.env-3d {
  position: absolute; inset: 0; display: block;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.6, .04, .3, 1);
}
.env.retournee .env-3d { transform: rotateY(180deg); }

.env-face {
  position: absolute; inset: 0; display: block;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 4px;
  background-color: var(--papier-env);
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 45%, rgba(120, 95, 60, .06) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .28 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 40px 60px -32px rgba(70, 50, 25, .55), 0 3px 8px rgba(70, 50, 25, .12), inset 0 0 0 1px rgba(255, 255, 255, .5);
}

/* recto : double filet doré, monogramme, nom calligraphié, ville et date */
.env-recto { overflow: hidden; }
.env-filet { position: absolute; inset: 5.5% 4%; display: block; border: 1px solid var(--or-filet); }
.env-filet::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(180, 143, 80, .3); }
/* petits losanges aux quatre coins */
.env-filet i {
  position: absolute; width: 7px; height: 7px; background: var(--or-clair);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 2px var(--papier-env);
}
.env-filet i:nth-child(1) { left: 0; top: 0; }
.env-filet i:nth-child(2) { left: 100%; top: 0; }
.env-filet i:nth-child(3) { left: 0; top: 100%; }
.env-filet i:nth-child(4) { left: 100%; top: 100%; }
.env-blason {
  position: absolute; left: 0; right: 0; top: 14%; display: block; text-align: center;
  font-family: 'Cinzel', var(--capitales); font-weight: 500; font-size: calc(var(--w) * .042);
  letter-spacing: .08em; line-height: 1;
  background: linear-gradient(170deg, #E2C68B 0%, #B48F50 50%, #8C6A32 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.env-blason i { font-family: var(--script); font-style: normal; font-size: 1.15em; margin: 0 .08em; }
.env-nom {
  position: absolute; left: 10%; right: 10%; top: 25%; bottom: 25%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--script); font-weight: 400;
  font-size: calc(var(--w) * .074); line-height: 1.15;
  color: #3F3123; text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity 1s ease .2s, transform 1s ease .2s;
  overflow-wrap: anywhere;
}
.env-ecran.pret .env-nom { opacity: 1; transform: none; }
.env-date {
  position: absolute; left: 0; right: 0; bottom: 14%; display: block; text-align: center;
  font-family: 'Cinzel', var(--capitales); font-weight: 500; font-size: calc(var(--w) * .024);
  letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--or-fonce);
}
.env-date b { color: var(--or-clair); font-weight: 400; }
/* reflet doré qui passe de temps en temps */
.env-reflet {
  position: absolute; inset: -20% -60%; display: block; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 248, 225, .55) 50%, rgba(255, 255, 255, 0) 58%);
  transform: translateX(-60%);
  animation: env-reflet 5.5s ease-in-out 1.6s infinite;
}
@keyframes env-reflet { 0% { transform: translateX(-60%); } 30%, 100% { transform: translateX(60%); } }

/* verso : doublure dorée, carte, poche, rabat, sceau */
.env-verso { transform: rotateY(180deg); background: none; box-shadow: none; }
.env-fond, .env-poche, .env-rabat, .env-carte { position: absolute; display: block; }
/* doublure : treillis doré (visible quand le rabat est ouvert) */
.env-fond, .env-rabat-dedans {
  background-color: #EFE3CC;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M11 1 L21 11 L11 21 L1 11Z' fill='none' stroke='%23B8914C' stroke-width='.9' stroke-opacity='.75'/%3E%3Ccircle cx='11' cy='11' r='1.3' fill='%23B8914C' fill-opacity='.7'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #F6EBD3 0%, #E6D2AC 100%);
}
.env-fond { inset: 0; border-radius: 4px; z-index: 1; box-shadow: 0 40px 60px -32px rgba(70, 50, 25, .55), inset 0 14px 22px -8px rgba(60, 40, 15, .35); }
.env-carte {
  z-index: 2; left: 6%; right: 6%; top: 6%; bottom: 6%;
  background: var(--ivoire);
  border-radius: 2px;
  padding: 3%;
  box-shadow: 0 -6px 16px rgba(70, 55, 35, .14);
  transition: transform 1.15s cubic-bezier(.3, .1, .2, 1) .8s;
}
.env-carte-cadre {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 100%;
  border: 1px solid var(--or-filet); outline: 1px solid rgba(180, 143, 80, .3); outline-offset: -5px;
  padding-top: 6%;
}
.env-carte-noms { font-family: var(--script); font-size: calc(var(--w) * .085); line-height: 1.2; color: var(--or); }
.env-carte-noms i { font-family: var(--capitales); font-style: normal; font-size: .6em; }
.env-carte-date { font-family: 'Cinzel', var(--capitales); font-size: calc(var(--w) * .022); letter-spacing: .3em; color: var(--or-fonce); margin-top: 2%; }
/* poche : les rabats des côtés et du bas (le haut reste ouvert en V) */
.env-poche {
  inset: 0; z-index: 3; border-radius: 4px;
  -webkit-clip-path: polygon(0 0, 50% 53%, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 0, 50% 53%, 100% 0, 100% 100%, 0 100%);
  background-color: var(--papier-env);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L50 53 L0 100Z' fill='%23705030' fill-opacity='.05'/%3E%3Cpath d='M100 0 L50 53 L100 100Z' fill='%23705030' fill-opacity='.07'/%3E%3Cpath d='M0 100 L50 45 L100 100Z' fill='%23fff' fill-opacity='.4' stroke='%23C9A86A' stroke-width='1' stroke-opacity='.8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .28 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100% 100%, auto;
}
/* rabat : papier dehors, doublure dorée dedans (on change de face à mi-chemin) */
.env-rabat {
  left: 0; right: 0; top: 0; height: 57%;
  z-index: 4;
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.5, 0, .3, 1) .3s, z-index 0s .7s;
  filter: drop-shadow(0 4px 4px rgba(70, 50, 25, .2));
}
.env-rabat-dehors, .env-rabat-dedans {
  position: absolute; inset: 0; display: block;
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env-rabat-dehors {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3ClinearGradient id='o' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23B8914C'/%3E%3Cstop offset='.5' stop-color='%23E6CB8E'/%3E%3Cstop offset='1' stop-color='%23B8914C'/%3E%3C/linearGradient%3E%3ClinearGradient id='p' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F1EBE1'/%3E%3Cstop offset='1' stop-color='%23F7F2EA'/%3E%3C/linearGradient%3E%3Cpath d='M0 0 L50 100 L100 0 Z' fill='url(%23p)' stroke='url(%23o)' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.env-rabat-dedans { opacity: 0; transition: opacity 0s .7s; }

/* sceau de cire en deux moitiés (il se brise à l'ouverture) */
.env-cachet {
  position: absolute; left: 50%; top: 57%; z-index: 6; display: block;
  width: 17%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 5px rgba(80, 55, 20, .4));
}
.cachet-moitie { position: absolute; inset: 0; display: block; transition: transform .7s cubic-bezier(.3, .6, .4, 1), opacity .6s ease .1s; }
.cachet-moitie svg { display: block; width: 100%; height: 100%; }
.cachet-g { -webkit-clip-path: polygon(0 0, 53% 0, 47% 20%, 56% 38%, 46% 58%, 54% 78%, 48% 100%, 0 100%); clip-path: polygon(0 0, 53% 0, 47% 20%, 56% 38%, 46% 58%, 54% 78%, 48% 100%, 0 100%); }
.cachet-d { -webkit-clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 54% 78%, 46% 58%, 56% 38%, 47% 20%); clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 54% 78%, 46% 58%, 56% 38%, 47% 20%); }

/* ouverture : le sceau se brise, le rabat se lève (doublure dorée), la carte sort */
.env.ouverte .cachet-g { transform: translate(-22%, 14%) rotate(-18deg); opacity: 0; }
.env.ouverte .cachet-d { transform: translate(22%, 14%) rotate(18deg); opacity: 0; }
.env.ouverte .env-rabat { transform: perspective(1000px) rotateX(180deg); z-index: 1; }
.env.ouverte .env-rabat-dehors { opacity: 0; transition: opacity 0s .7s; }
.env.ouverte .env-rabat-dedans { opacity: 1; }
.env.ouverte .env-carte { transform: translateY(-60%); }

.env-indice {
  margin: 0;
  font-family: 'Cinzel', var(--capitales); font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase;
  color: #8B7A62; text-align: center;
  animation: indice 2.6s ease-in-out infinite;
  transition: opacity .4s;
}
.env-ecran.ouverture .env-indice { opacity: 0; animation: none; }
@keyframes indice { 50% { opacity: .4; } }

/* ══ 2. Un écran à la fois ════════════════════════════════════ */
.ecran-plein {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 66px) 14px calc(env(safe-area-inset-bottom, 0px) + 22px);
  transition: transform .8s cubic-bezier(.65, 0, .35, 1), opacity .8s ease;
  will-change: transform;
}
.ecran-plein[data-etat="avant"] { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.ecran-plein[data-etat="apres"] { transform: translateY(100%); opacity: 0; pointer-events: none; }
.ecran-plein[data-etat="actif"] { transform: none; opacity: 1; }
body.inv-soiree:not(.pret) .ecran-plein { transition: none; }
/* contenu centré ; il défile si l'écran du téléphone est trop petit */
.ecran-contenu { margin: auto 0; width: 100%; display: flex; flex-direction: column; align-items: center; }

/* points à droite : où l'on est */
.points {
  position: fixed; right: 2px; top: 50%; transform: translateY(-50%); z-index: 35;
  display: flex; flex-direction: column;
}
.points button {
  width: 24px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.points button::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--or); background: rgba(251, 248, 242, .8);
  transition: background-color .3s, transform .3s;
}
.points button[aria-current="true"]::before { background: var(--or); transform: scale(1.25); }
.points button:focus-visible { outline: 1px solid var(--or); border-radius: 4px; }

/* bouton son : rond, en haut à gauche */
.inv-soiree .musique {
  top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; left: 14px; right: auto; inset-inline-end: auto;
  width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; gap: 0;
  border-radius: 50%; border: 1px solid var(--or-filet);
  background: rgba(251, 248, 242, .92); color: var(--or-fonce); z-index: 40;
  box-shadow: 0 6px 16px -10px rgba(90, 65, 30, .7);
}
.inv-soiree .musique[aria-pressed="true"] { background: rgba(251, 248, 242, .92); color: var(--or-fonce); border-color: var(--or); }
.musique-svg { width: 22px; height: 22px; display: block; }
.musique .ondes { display: none; }
.musique[aria-pressed="true"] .ondes { display: inline; animation: ondes 1.6s ease-in-out infinite; }
.musique[aria-pressed="true"] .muet { display: none; }
@keyframes ondes { 50% { opacity: .45; } }

/* ══ 3. Le faire-part ═════════════════════════════════════════ */
.fp-salut { display: none !important; }   /* le nom est déjà sur l'enveloppe */

.fp-carte, .fp-bloc {
  position: relative;
  width: min(100%, 560px);
  background-color: var(--ivoire);
  background-image: radial-gradient(ellipse at 50% 38%, #FFFEFA 0%, rgba(255, 254, 250, 0) 70%);
  border: 1px solid var(--or-filet);
  box-shadow: 0 34px 60px -36px rgba(90, 65, 30, .55);
  text-align: center;
}
.fp-carte::before, .fp-bloc::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--or-filet);
  pointer-events: none; z-index: 2;
}
.fp-carte { padding: 30px 22px 0; overflow: hidden; }
html.vers-fp .fp-carte { animation: fp-arrive 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fp-arrive { from { opacity: 0; transform: translateY(40px) scale(.97); } }

.fp-verset { font-family: var(--hebreu); font-size: clamp(16px, 4.6vw, 20px); color: var(--brun); margin: 0 0 14px; }
.fp-parents {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  font-family: var(--capitales); font-weight: 600;
  font-size: clamp(10.5px, 2.9vw, 13.5px); letter-spacing: .14em; text-transform: uppercase; line-height: 1.35;
  color: #5A4A36;
}
.fp-parents i { width: 1px; height: 28px; background: var(--or-filet); }
.fp-annonce {
  font-family: var(--capitales); font-weight: 600;
  font-size: clamp(10.5px, 2.85vw, 13px); letter-spacing: .15em; text-transform: uppercase; line-height: 1.5;
  color: var(--brun-doux);
  max-width: 27em; margin: 16px auto 6px;
}
.fp-noms { display: flex; justify-content: center; align-items: flex-start; gap: .12em; margin: 0; font-weight: 400; }
.fp-nom { display: flex; flex-direction: column; align-items: center; }
.fp-script {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(56px, 17vw, 88px); line-height: 1.15;
  padding: 0 .12em;
  background: linear-gradient(175deg, #DDBF80 0%, #B08A47 45%, #8E6B33 68%, #C3A060 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fp-et { font-family: var(--capitales); font-size: clamp(30px, 8.5vw, 46px); color: var(--or); line-height: 1; margin-top: .55em; }
.fp-heb { font-family: var(--hebreu); font-weight: 500; font-size: clamp(18px, 5.2vw, 25px); color: var(--brun); line-height: 1; margin-top: -.1em; }
.fp-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; color: var(--or); font-size: 9px; }
.fp-orn::before, .fp-orn::after { content: ""; width: 64px; height: 1px; background: var(--or-filet); }
.fp-date {
  font-family: var(--capitales); font-weight: 600;
  font-size: clamp(17px, 4.9vw, 23px); letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  color: #3F3122; margin: 0 0 4px;
}
.fp-heb-date { font-family: var(--hebreu); font-weight: 500; font-size: clamp(16px, 4.6vw, 20px); margin: 0; color: var(--brun); }
.fp-lieu {
  font-family: var(--capitales); font-weight: 600;
  font-size: clamp(13px, 3.7vw, 16.5px); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 8px; color: #4A3B2A;
}
.fp-point { color: var(--or); }
.fp-memoire { font-family: var(--serif); font-style: italic; font-size: clamp(13.5px, 3.7vw, 16px); color: var(--brun-doux); margin: 0 0 4px; }
.fp-tenue {
  font-family: var(--capitales); font-weight: 600;
  font-size: clamp(10px, 2.7vw, 12px); letter-spacing: .15em; text-transform: uppercase; color: var(--brun-doux); margin: 0;
}
.fp-salle { position: relative; margin: 16px -22px 0; }
.fp-salle img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
}

.fp-suite { display: block; margin: 14px auto 0; padding: 10px 14px; background: none; border: 0; cursor: pointer; }
.fp-suite span {
  display: block; width: 14px; height: 14px;
  border-right: 1.5px solid var(--or); border-bottom: 1.5px solid var(--or);
  transform: rotate(45deg); animation: suite 2s ease-in-out infinite;
}
@keyframes suite { 50% { transform: translateY(6px) rotate(45deg); } }

/* ══ 4. Infos, Henné, RSVP ════════════════════════════════════ */
.fp-section .reveal:not(.fp-bloc) { width: min(100%, 560px); display: flex; justify-content: center; }
.fp-bloc { padding: 30px 22px 28px; }
.fp-surtitre { font-family: 'Cinzel', var(--capitales); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--or-fonce); margin: 0 0 16px; padding-inline-start: .32em; }
.fp-petit { font-family: var(--capitales); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brun-doux); }

.compte--or { margin: 0 0 18px; }
.compte--or div { border-color: var(--or-filet); }
.compte--or b { color: var(--or-fonce); font-family: var(--capitales); }
.compte--or span { color: var(--brun-doux); }
.programme--or { margin: 0 0 14px; }
.programme--or li + li::before { border-color: var(--or-filet); }
.programme--or .prog-heure { color: var(--or-fonce); }
.fp-bloc .fp-lieu { margin-top: 4px; }
.fp-lieu-adresse { margin: 0; color: var(--brun-doux); }

.inv-soiree .btn-or, .inv-soiree .btn-plein {
  background: linear-gradient(180deg, #C9A660 0%, #A88343 100%); color: #FFFDF8; border: 0;
  box-shadow: 0 8px 18px -10px rgba(140, 106, 50, .8);
}
.inv-soiree .btn-or:hover, .inv-soiree .btn-plein:hover { background: linear-gradient(180deg, #BE9A53 0%, #967436 100%); }
.inv-soiree .btn-or-contour, .inv-soiree .btn-contour { border: 1px solid var(--or); color: var(--or-fonce); background: transparent; }
.inv-soiree .btn-or-contour:hover, .inv-soiree .btn-contour:hover { background: rgba(180, 143, 80, .08); }
.inv-soiree .btn-lien { color: var(--or-fonce); }
.inv-soiree .btn:focus-visible, .inv-soiree .choix button:focus-visible, .inv-soiree .pas button:focus-visible { outline-color: var(--or); }
.fp-bloc .boutons .btn { padding: 12px 16px; white-space: nowrap; }

.fp-henne { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.fp-henne .logo-henne { width: 48px; margin-bottom: 2px; }
.fp-henne-nom { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: #A81626; }
.fp-henne-date { font-size: 15px; letter-spacing: .06em; color: var(--brun-doux); }
.fp-henne .btn { margin-top: 10px; }

.fp-rsvp-titre {
  font-family: 'Cinzel', var(--capitales); font-weight: 500;
  font-size: 30px; letter-spacing: .38em; margin: 0 0 6px; padding-inline-start: .38em;
  background: linear-gradient(175deg, #D2B474, #9C7838 60%, #BE9A58);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fp-rsvp-texte { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 4.8vw, 20px); line-height: 1.35; margin: 0 0 22px; color: var(--brun); }
.inv-soiree .rsvp-info { color: var(--brun-doux); }
.inv-soiree .choix button { background: #FFFDF9; border-color: var(--or-filet); color: var(--brun); }
.inv-soiree .choix button[aria-pressed="true"] { background: linear-gradient(180deg, #C9A660, #A88343); border-color: #A88343; color: #FFFDF8; }
.inv-soiree .choix button.non[aria-pressed="true"] { background: #7D6F5F; border-color: #7D6F5F; }
.inv-soiree .compteur, .inv-soiree .rsvp textarea, .inv-soiree .noms-ouvert input { background: #FFFDF9; border-color: var(--or-filet); }
.inv-soiree .pas button { border-color: var(--or); color: var(--or-fonce); }
.inv-soiree .rsvp textarea:focus, .inv-soiree .noms-ouvert input:focus, .inv-soiree .prenoms input:focus { outline-color: var(--or-clair); }
/* prénoms des invités : pastilles dorées (pointillés tant que la case est vide) */
.inv-soiree .prenoms-titre { color: var(--brun-doux); font-family: var(--serif); font-style: italic; font-size: 16px; }
.inv-soiree .prenoms input { background: rgba(217, 188, 126, .18); border-color: var(--or-filet); color: var(--brun); }
.inv-soiree .prenoms input:placeholder-shown { background: transparent; border-color: rgba(180, 143, 80, .5); }
.inv-soiree .prenoms input::placeholder { color: #A8916E; }
.inv-soiree .merci-prenoms { color: var(--or-fonce); }

.fp-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--or-filet);
}
.fp-contact a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 17px; color: var(--brun); text-decoration: none;
}
.fp-contact a:hover { color: var(--or-fonce); }
.fp-contact svg { width: 19px; height: 19px; color: var(--or-fonce); flex: none; }

.pied--or { border: 0; color: var(--brun-doux); margin-top: 12px; padding: 0; background: none; }
.fp-script--petit { font-size: 40px; line-height: 1.2; display: inline-block; }

/* lien invalide */
.fp-carte--petite { width: min(100%, 380px); padding: 34px 24px 28px; }
.env-mono--petit {
  font-family: var(--capitales); font-weight: 500; font-size: 52px; line-height: 1; margin: 0 0 8px;
  background: linear-gradient(170deg, #E6CC94 0%, #B48F50 45%, #8C6A32 70%, #C9A86A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.env-mono--petit span { font-family: var(--script); font-weight: 400; font-size: .95em; }

@media (prefers-reduced-motion: reduce) {
  .env, .env-scene, .env-indice, .env-reflet, .fp-suite span, .musique .ondes { animation: none !important; }
  .env-3d, .env-rabat, .env-carte, .cachet-moitie, .env-ecran, .ecran-plein { transition-duration: .01s !important; transition-delay: 0s !important; }
  html.vers-fp .fp-carte { animation: none; }
}
@media (min-width: 720px) {
  .fp-carte { padding: 40px 34px 0; }
  .fp-salle { margin-left: -34px; margin-right: -34px; }
}

/* ══ 5. Le fond du faire-part sur tout l'écran ═════════════════
   Le papier ivoire et son double cadre doré restent fixes ; chaque section s'affiche à l'intérieur du cadre.
   Les points (à droite) et le bouton son (en haut à gauche) sont dans le cadre. */
body.inv-soiree::before {
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, #FFFEFA 0%, rgba(255, 254, 250, 0) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #FBF8F2 0%, #F6F1E8 100%);
}
html.html-soiree, body.inv-soiree { background: #F8F4EC; }
body.inv-soiree::after {
  content: ""; position: fixed; z-index: 30; pointer-events: none;
  top: calc(env(safe-area-inset-top, 0px) + 9px); bottom: calc(env(safe-area-inset-bottom, 0px) + 9px); left: 9px; right: 9px;
  border: 1px solid var(--or-filet);
  outline: 1px solid rgba(180, 143, 80, .38); outline-offset: -7px;
}
/* la zone des sections : juste à l'intérieur du cadre (rien ne dépasse quand on change d'écran) */
.inv-soiree #site {
  position: fixed; overflow: hidden;
  top: calc(env(safe-area-inset-top, 0px) + 17px); bottom: calc(env(safe-area-inset-bottom, 0px) + 17px); left: 17px; right: 17px;
}
.inv-soiree .ecran-plein { position: absolute; inset: 0; padding: 50px 26px 12px; }
/* plus de carte : le contenu est posé directement sur le papier */
.inv-soiree .fp-carte, .inv-soiree .fp-bloc { background: none; border: 0; box-shadow: none; width: min(100%, 540px); }
.inv-soiree .fp-carte::before, .inv-soiree .fp-bloc::before { content: none; }
.inv-soiree .fp-carte { padding: 0; overflow: visible; }
.inv-soiree .fp-bloc { padding: 0; }
.inv-soiree .fp-salle { margin: 14px -26px 0; }
.inv-soiree .fp-salle img { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 80%, transparent 100%); }
.inv-soiree .fp-suite { margin-top: 6px; }
/* bouton son et points : dans le cadre */
.inv-soiree .musique { top: calc(env(safe-area-inset-top, 0px) + 23px); left: 23px; width: 38px; height: 38px; box-shadow: none; }
.inv-soiree .musique-svg { width: 20px; height: 20px; }
.points { right: 21px; }
.points button { width: 16px; }
.points button::before { width: 8px; height: 8px; }

/* ══ 6. Contacts WhatsApp (dernier écran) ══ */
.fp-contacts {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--or-filet);
}
.ct-groupe { width: 100%; }
.ct-groupe + .ct-groupe:not(.ct-groupe--maries) { margin-top: -2px; }
.ct-titre {
  font-family: 'Cinzel', var(--capitales); font-weight: 500; font-size: 11.5px; letter-spacing: .3em; padding-inline-start: .3em;
  text-transform: uppercase; color: var(--or-fonce); margin: 0 0 8px;
}
/* les mariés : à l'honneur */
.ct-groupe--maries { padding-bottom: 18px; border-bottom: 1px solid rgba(180, 143, 80, .3); }
.ct-groupe--maries .ct-titre {
  font-family: var(--script); font-weight: 400; font-size: 32px; letter-spacing: 0; padding: 0; text-transform: none; line-height: 1.1;
  background: linear-gradient(175deg, #DDBF80 0%, #B08A47 45%, #8E6B33 68%, #C3A060 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ct-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-ligne > .ct-btn:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
.ct-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 6px 8px; border: 1px solid var(--or-filet); border-radius: 14px;
  background: rgba(255, 253, 249, .75); color: var(--brun); text-decoration: none;
  transition: background-color .2s;
}
.ct-btn:hover { background: rgba(217, 188, 126, .14); }
.ct-btn svg { width: 19px; height: 19px; color: #2A9D58; margin-bottom: 2px; }
.ct-nom { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.15; }
.ct-num { font-size: 12.5px; color: var(--brun-doux); letter-spacing: .02em; white-space: nowrap; }
.ct-btn--maries { background: linear-gradient(180deg, #C9A660 0%, #A88343 100%); border: 0; color: #FFFDF8; box-shadow: 0 8px 18px -10px rgba(140, 106, 50, .8); padding: 11px 6px 10px; }
.ct-btn--maries:hover { background: linear-gradient(180deg, #BE9A53 0%, #967436 100%); }
.ct-btn--maries svg { color: #FFFDF8; }
.ct-btn--maries .ct-nom { font-size: 21px; }
.ct-btn--maries .ct-num { color: rgba(255, 253, 248, .88); }
.ct-email { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 16.5px; color: var(--brun); text-decoration: none; }
.ct-email svg { width: 18px; height: 18px; color: var(--or-fonce); flex: none; }

/* Chargement : avec un lien personnel, seule l'enveloppe est visible (rien d'autre ne s'affiche avant elle) */
html.avant-env body > :not(#enveloppe) { visibility: hidden !important; }
html.avant-env body::after { display: none; }
html.avant-env #enveloppe[hidden] { display: flex !important; }
.env-date { opacity: 0; transition: opacity 1s ease .3s; }
.env-ecran.pret .env-date { opacity: 1; }

/* Contacts : un écran à part */
#contact .fp-contacts { margin-top: 0; padding-top: 0; border-top: 0; gap: 22px; }
#contact .ct-groupe--maries { padding-bottom: 22px; }
#contact .pied--or { margin-top: 26px; }

/* ══ 7. Effet du fond (même fond fixe pour toutes les sections) ══
   lueurs dorées qui respirent lentement + poussière d'or qui monte */
.inv-soiree #site { z-index: 1; }
.fond-effet { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fond-effet .lueur { position: absolute; display: block; border-radius: 50%; filter: blur(10px); }
.lueur-1 { width: 85vmax; height: 85vmax; left: -35vmax; top: -30vmax; background: radial-gradient(circle, rgba(226, 196, 135, .30) 0%, rgba(226, 196, 135, 0) 65%); animation: lueur 18s ease-in-out infinite alternate; }
.lueur-2 { width: 75vmax; height: 75vmax; right: -32vmax; bottom: -28vmax; background: radial-gradient(circle, rgba(214, 178, 110, .28) 0%, rgba(214, 178, 110, 0) 65%); animation: lueur 22s ease-in-out -7s infinite alternate-reverse; }
.lueur-3 { width: 60vmax; height: 60vmax; left: 50%; top: 45%; margin: -30vmax 0 0 -30vmax; background: radial-gradient(circle, rgba(255, 246, 222, .55) 0%, rgba(255, 246, 222, 0) 60%); animation: lueur-centre 14s ease-in-out infinite alternate; }
@keyframes lueur { from { transform: translate(0, 0) scale(1); opacity: .7; } to { transform: translate(6vmax, 5vmax) scale(1.12); opacity: 1; } }
@keyframes lueur-centre { from { opacity: .5; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
.fond-effet span {
  position: absolute; bottom: -12px; display: block; border-radius: 50%;
  background: radial-gradient(circle, #F6E3B0 0%, #D9B66E 45%, rgba(201, 166, 96, 0) 72%);
  animation-name: poussiere; animation-timing-function: linear; animation-iteration-count: infinite;
  opacity: 0;
}
@keyframes poussiere {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .85; }
  50% { transform: translate(14px, -52vh); }
  85% { opacity: .6; }
  100% { transform: translate(-10px, -108vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fond-effet .lueur { animation: none; } }

/* ══ 8. « Le grand jour » : la salle (logo + adresse) et les boutons Waze / Google Maps / Agenda ══ */
.salle { display: flex; flex-direction: column; align-items: center; margin: 22px 0 20px; }
.salle-logo { display: block; width: 150px; height: auto; margin: 0 auto 10px; }
.salle .fp-lieu { margin: 0 0 4px; }
.salle-adresse { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--brun-doux); }
.lieu-boutons { display: flex; justify-content: center; gap: 10px; }
.lieu-btn {
  flex: 1 1 0; max-width: 150px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 4px 12px; border: 1px solid var(--or-filet); border-radius: 16px;
  background: rgba(255, 253, 249, .8); color: var(--brun); text-decoration: none; cursor: pointer;
  font-family: 'Cinzel', var(--capitales); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; text-align: center;
  box-shadow: 0 8px 18px -14px rgba(90, 65, 30, .7);
  transition: background-color .2s, transform .2s;
}
.lieu-btn:hover { background: rgba(217, 188, 126, .14); }
.lieu-btn:active { transform: scale(.97); }
.lieu-btn svg { width: 34px; height: 34px; display: block; }
.lieu-btn:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
#infos .btn-lien { margin-top: 12px; }
#infos .compte--or { margin-bottom: 10px; }

/* ══ 9. La salle en bas du fond, sur toutes les pages ══
   Le contenu de chaque page s'arrête au-dessus de la photo (il défile si l'écran est trop petit). */
.inv-soiree { --salle-l: min(calc(100vw - 34px), 680px); --salle-h: calc(var(--salle-l) * .2917); }
.fond-salle {
  position: fixed; z-index: 0; pointer-events: none;
  left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 17px);
  width: var(--salle-l); transform: translateX(-50%);
}
.fond-salle img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%), linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0%, #000 42%), linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-composite: intersect;
}
html.vers-fp .fond-salle { animation: salle-arrive 1.4s ease .2s both; }
@keyframes salle-arrive { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }
.inv-soiree .ecran-plein { padding-bottom: calc(var(--salle-h) * .78); }
@media (prefers-reduced-motion: reduce) { html.vers-fp .fond-salle { animation: none; } }

/* ══ 10. Le contenu s'arrête au-dessus de la salle ; « Faites défiler » quand il y a une suite ══ */
.inv-soiree #site {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 17px + var(--salle-h) * .72);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent 100%);
}
.inv-soiree .ecran-plein { padding-bottom: 34px; }
.defiler {
  position: fixed; z-index: 36; left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 17px + var(--salle-h) * .72 - 4px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 18px; border-radius: 999px;
  border: 1px solid var(--or); background: rgba(251, 248, 242, .96); color: var(--or-fonce);
  font-family: 'Cinzel', var(--capitales); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(90, 65, 30, .55);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .35s ease, transform .35s ease;
}
.defiler.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); animation: defiler 2s ease-in-out .4s infinite; }
.defiler i { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
@keyframes defiler { 50% { transform: translate(-50%, 4px); } }
@media (prefers-reduced-motion: reduce) { .defiler.visible { animation: none; } }

/* ══ 11. Réglages : « Faites défiler » plus bas, faire-part sur un écran, réponses plus fines ══ */
.defiler { bottom: calc(env(safe-area-inset-bottom, 0px) + 17px + var(--salle-h) * .16); }
#accueil.ecran-plein { padding-top: 46px; }
#accueil .fp-carte { flex: none; }
.inv-soiree .choix button {
  font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: .02em; line-height: 1.25;
  min-height: 50px; padding: 11px 16px;
}
.inv-soiree .prenoms-grille input { font-style: italic; font-size: 18px; }
.ct-groupe--maries .ct-email { margin-top: 12px; }

/* ══ 12. Le logo de la Soirée ══ */
.env-blason {
  top: 8%; left: 50%; right: auto; height: 20%; width: auto;
  transform: translateX(-50%);
  background: none; color: inherit;
  filter: drop-shadow(0 1px 1px rgba(90, 65, 30, .18));
}
.env-carte-logo { height: 30%; width: auto; margin-bottom: 2%; }
.env-carte-cadre { padding-top: 5%; }
.env-carte-noms { font-size: calc(var(--w) * .07); }
.fp-logo { display: block; height: clamp(62px, 9vh, 84px); width: auto; margin: 0 auto 10px; filter: drop-shadow(0 2px 3px rgba(90, 65, 30, .15)); }
.logo-soiree--invalide { display: block; height: 96px; width: auto; margin: 0 auto 14px; }

/* ══ 13. Plus fin : traits fins, aucun aplat doré, icônes sans couleur ══ */
.env-blason, .fp-logo { filter: none; }
/* boutons Waze / Maps / Agenda */
.lieu-boutons { gap: 8px; }
.lieu-btn {
  padding: 11px 4px 10px; gap: 6px; border-radius: 12px;
  border-color: rgba(180, 143, 80, .45); background: rgba(255, 253, 249, .55); box-shadow: none;
  color: var(--or-fonce); font-weight: 400; font-size: 10px; letter-spacing: .18em;
}
.lieu-btn svg { width: 26px; height: 26px; }
/* contacts */
.ct-btn { border-color: rgba(180, 143, 80, .45); background: rgba(255, 253, 249, .55); }
.ct-btn svg { width: 17px; height: 17px; color: var(--or-fonce); }
.ct-nom { font-weight: 400; }
.ct-btn--maries { background: rgba(255, 253, 249, .55); border: 1px solid var(--or); color: var(--brun); box-shadow: none; }
.ct-btn--maries:hover { background: rgba(217, 188, 126, .14); }
.ct-btn--maries svg { color: var(--or-fonce); }
.ct-btn--maries .ct-num { color: var(--brun-doux); }
.ct-email svg { width: 17px; height: 17px; }
/* boutons principaux : contour doré fin au lieu de l'aplat */
.inv-soiree .btn-or, .inv-soiree .btn-plein {
  background: rgba(255, 253, 249, .6); color: var(--or-fonce); border: 1px solid var(--or); box-shadow: none;
  font-family: 'Cinzel', var(--capitales); font-weight: 400; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
}
.inv-soiree .btn-or:hover, .inv-soiree .btn-plein:hover { background: rgba(217, 188, 126, .14); }
/* réponse : le choix est marqué par un contour, pas par un aplat */
.inv-soiree .choix button { border-color: rgba(180, 143, 80, .4); background: rgba(255, 253, 249, .6); }
.inv-soiree .choix button[aria-pressed="true"] { background: rgba(217, 188, 126, .16); border-color: var(--or); color: var(--or-fonce); box-shadow: inset 0 0 0 1px rgba(180, 143, 80, .35); }
.inv-soiree .choix button.non[aria-pressed="true"] { background: rgba(125, 111, 95, .08); border-color: #8C7F70; color: #5E5246; box-shadow: inset 0 0 0 1px rgba(125, 111, 95, .25); }
.inv-soiree .compteur, .inv-soiree .rsvp textarea, .inv-soiree .noms-ouvert input { background: rgba(255, 253, 249, .6); border-color: rgba(180, 143, 80, .35); }
.inv-soiree .compteur-nom { font-weight: 300; }
.inv-soiree .pas button { width: 38px; height: 38px; border-color: rgba(180, 143, 80, .6); font-size: 19px; font-weight: 300; }
.inv-soiree .pas output { font-size: 23px; font-weight: 400; }
.inv-soiree .prenoms-grille input { border-color: rgba(180, 143, 80, .4); }
/* pas de barre de défilement visible */
.inv-soiree .ecran-plein { scrollbar-width: none; }
.inv-soiree .ecran-plein::-webkit-scrollbar { display: none; }

/* ══ 14. Après la 1re page : fond uni avec un léger relief (sans la salle ni l'effet) ══ */
.fond-uni {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='.7' result='l'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .37 0 0 0 0 .25 -.2 -.2 -.2 0 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E"),
    #F8F4EC;
  box-shadow: inset 0 0 80px rgba(150, 118, 60, .07);
  opacity: 0; transition: opacity .7s ease;
}
.fond-salle, .fond-effet { transition: opacity .7s ease; }
html.page-suite .fond-uni { opacity: 1; }
html.page-suite .fond-salle, html.page-suite .fond-effet { opacity: 0; }
/* sans la photo, le contenu descend jusqu'au cadre */
html.page-suite .inv-soiree #site { bottom: calc(env(safe-area-inset-bottom, 0px) + 17px); }
html.page-suite .defiler { bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); }

/* ══ 15. L'enveloppe vue de près : grand rabat en papier texturé, logo en creux ══ */
.env-ecran--rabat { padding: 0; gap: 0; display: block; overflow: hidden; background: #EFE9DF; }
.env-ecran--rabat.fini { transform: scale(1.04); transition: opacity .9s ease, transform .9s ease, visibility 0s .9s; }
.rb {
  --pointe: 79%;
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
  perspective: 1500px; -webkit-tap-highlight-color: transparent;
  animation: rb-entre 1.1s ease both;
}
@keyframes rb-entre { from { opacity: 0; } }
.rb:focus-visible { outline: none; }
.rb:focus-visible .rb-logo { outline: 1px dashed var(--or); outline-offset: 8px; }
.rb > span { position: absolute; display: block; }
/* l'intérieur : la doublure dorée */
.rb-doublure {
  left: 0; right: 0; top: 0; height: 75%; z-index: 1;
  background-color: #EFE3CC;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M13 1 L25 13 L13 25 L1 13Z' fill='none' stroke='%23B8914C' stroke-width='.9' stroke-opacity='.7'/%3E%3Ccircle cx='13' cy='13' r='1.4' fill='%23B8914C' fill-opacity='.65'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #E4D0A8 0%, #F3E7CF 100%);
  box-shadow: inset 0 30px 40px -20px rgba(60, 40, 15, .35);
}
/* la carte, rangée dans l'enveloppe */
.rb-carte {
  z-index: 2; left: 10%; right: 10%; top: 24%; height: 50%;
  background: #FCFAF5; padding: 10px;
  box-shadow: 0 -4px 18px rgba(70, 50, 25, .18);
  transition: transform 1.3s cubic-bezier(.3, .1, .2, 1) .95s;
}
.rb-carte-cadre {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 100%;
  border: 1px solid var(--or-filet); outline: 1px solid rgba(180, 143, 80, .3); outline-offset: -6px; padding-top: 9%;
}
.rb-carte-logo { height: 34%; width: auto; }
.rb-carte-noms { font-family: var(--script); font-size: clamp(30px, 9vw, 46px); line-height: 1.25; color: var(--or); margin-top: 4%; }
.rb-carte-noms i { font-family: var(--capitales); font-style: normal; font-size: .6em; }
.rb-carte-date { font-family: 'Cinzel', var(--capitales); font-size: 12px; letter-spacing: .3em; color: var(--or-fonce); }
/* la poche (les rabats du bas et des côtés, ouverte en V) */
.rb-poche { inset: 0; z-index: 3; filter: drop-shadow(0 -3px 6px rgba(70, 50, 25, .22)); }
.rb-poche > span {
  position: absolute; inset: 0;
  -webkit-clip-path: polygon(0 34%, 50% 61%, 100% 34%, 100% 100%, 0 100%);
          clip-path: polygon(0 34%, 50% 61%, 100% 34%, 100% 100%, 0 100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='0.8'%3E%3CfeDistantLight azimuth='235' elevation='62'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .21 -0.14 -0.14 -0.14 0 0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .02' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='3'%3E%3CfeDistantLight azimuth='235' elevation='62'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .21 -0.27 -0.27 -0.27 0 0.81'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"), linear-gradient(180deg, #F1ECE3 0%, #E9E2D6 100%);
}
/* le grand rabat, en pointe arrondie */
.rb-rabat {
  inset: 0; z-index: 4;
  transform-origin: 50% 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform 1.25s cubic-bezier(.55, .05, .35, 1), opacity .35s linear .85s;
}
.rb-forme {
  position: absolute; left: 50%; top: var(--pointe); width: 0; height: 0;
  transform: scaleY(.74);
  filter: drop-shadow(0 10px 12px rgba(60, 42, 20, .26)) drop-shadow(0 2px 2px rgba(60, 42, 20, .2));
}
.rb-forme > span {
  position: absolute; left: -200vmax; top: -200vmax; width: 200vmax; height: 200vmax;
  transform-origin: 100% 100%; transform: rotate(45deg);
  border-bottom-right-radius: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='0.8'%3E%3CfeDistantLight azimuth='235' elevation='62'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .21 -0.14 -0.14 -0.14 0 0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .02' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='3'%3E%3CfeDistantLight azimuth='235' elevation='62'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .21 -0.27 -0.27 -0.27 0 0.81'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"), linear-gradient(135deg, #F6F2EA 0%, #EFE9DE 100%);
  box-shadow: inset -1.5px -1.5px 0 rgba(255, 255, 255, .75), inset -3px -3px 3px rgba(120, 95, 60, .08);
}
/* le logo imprimé en creux, le nom, la date */
.rb-contenu {
  position: absolute; left: 0; right: 0; top: 11%; bottom: calc(100% - var(--pointe) + 9%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2vh;
  padding: 0 14%; text-align: center; pointer-events: none;
}
.rb-logo {
  height: min(32vh, 300px); width: auto; max-width: 60%; object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9)) drop-shadow(0 -1px .6px rgba(95, 68, 30, .38)) drop-shadow(0 2px 3px rgba(95, 68, 30, .12));
}
.rb-nom {
  font-family: var(--script); font-size: clamp(28px, 8.4vw, 42px); line-height: 1.2; color: #9C7838;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(95, 68, 30, .25);
  opacity: 0; transform: translateY(6px); transition: opacity 1s ease .4s, transform 1s ease .4s;
}
.rb-date {
  font-family: 'Cinzel', var(--capitales); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--or-fonce);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  opacity: 0; transition: opacity 1s ease .8s;
}
.rb-date b { font-weight: 400; color: var(--or); }
.env-ecran.pret .rb-nom { opacity: 1; transform: none; }
.env-ecran.pret .rb-date { opacity: 1; }
.rb-indice { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 5vh); z-index: 5; pointer-events: none; }
/* ouverture : le rabat se soulève vers nous et disparaît en haut, la carte sort de la poche */
.rb.ouverte .rb-rabat { transform: rotateX(178deg); opacity: 0; }
.rb.ouverte .rb-carte { transform: translateY(-17%); }
@media (prefers-reduced-motion: reduce) {
  .rb, .rb-rabat, .rb-carte { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ══ 16. Fond uni partout (sans photo ni effet), faire-part sur un écran, boutons du lieu sobres ══ */
.fond-uni { opacity: 1 !important; }
.fond-salle, .fond-effet { display: none !important; }
.inv-soiree #site, html.page-suite .inv-soiree #site { bottom: calc(env(safe-area-inset-bottom, 0px) + 17px); }
.defiler, html.page-suite .defiler { bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); }
.inv-soiree .ecran-plein { padding-bottom: 64px; }
#accueil.ecran-plein { padding-bottom: 70px; }
.fp-logo { margin-bottom: 8px; }
/* Waze / Google Maps / Agenda : une simple ligne, sans cadres */
.lieu-boutons { gap: 0; align-items: center; margin-top: 4px; }
.lieu-btn {
  flex: 0 1 auto; max-width: none; flex-direction: row; gap: 6px;
  padding: 6px 14px; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 10.5px; letter-spacing: .16em; color: var(--or-fonce);
}
.lieu-btn + .lieu-btn { border-left: 1px solid rgba(180, 143, 80, .45); }
.lieu-btn:hover { background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lieu-btn svg { width: 17px; height: 17px; }

/* ══ 17. Plus fin et plus clair : écriture plus légère, couleurs adoucies, contours fins et pâles ══ */
.inv-soiree {
  --brun: #74624C;
  --brun-doux: #937F67;
  --or: #BE9C5E;
  --or-fonce: #A48443;
  --or-filet: rgba(190, 156, 94, .38);
  font-weight: 300;
}
/* textes du faire-part et des pages */
.fp-parents, .fp-annonce, .fp-tenue, .fp-petit { font-weight: 500; }
.fp-date, .fp-lieu { font-weight: 400; }
.fp-verset, .fp-heb, .fp-heb-date { font-weight: 300; }
.fp-surtitre, .fp-rsvp-titre, .lieu-btn, .defiler, .rb-date, .rb-carte-date { font-weight: 400; }
.fp-rsvp-titre { background: linear-gradient(175deg, #DCC28A, #B39150 60%, #CDAE72); -webkit-background-clip: text; background-clip: text; }
.compte--or b { font-weight: 400; color: var(--or-fonce); }
.compte--or span, .compteur-nom, .rsvp label, .prenoms-titre { font-weight: 300; }
.ct-nom, .inv-soiree .choix button, .salle-adresse { font-weight: 300; }
.inv-soiree .pas output { font-weight: 300; }
.salle-logo { opacity: .85; }
/* contours : 1 px, plus pâles */
body.inv-soiree::after { border-color: rgba(190, 156, 94, .4); outline-color: rgba(190, 156, 94, .22); }
.inv-soiree .musique { border-color: rgba(190, 156, 94, .45); }
.defiler { border-color: rgba(190, 156, 94, .55); box-shadow: 0 6px 16px -12px rgba(90, 65, 30, .45); color: var(--or-fonce); }
.inv-soiree .btn-or, .inv-soiree .btn-plein { border-color: rgba(190, 156, 94, .7); }
.inv-soiree .choix button { border-color: rgba(190, 156, 94, .32); }
.inv-soiree .choix button[aria-pressed="true"] { border-color: rgba(190, 156, 94, .75); box-shadow: none; }
.inv-soiree .compteur, .inv-soiree .rsvp textarea, .inv-soiree .noms-ouvert input, .inv-soiree .prenoms-grille input { border-color: rgba(190, 156, 94, .3); }
.inv-soiree .pas button { border-color: rgba(190, 156, 94, .5); }
.ct-btn { border-color: rgba(190, 156, 94, .35); }
.ct-btn--maries { border-color: rgba(190, 156, 94, .65); }
.compte--or div, .ct-groupe--maries, .fp-parents i { border-color: rgba(190, 156, 94, .3); }
.points button { border-color: rgba(190, 156, 94, .6); }
.inv-soiree .fp-date, .inv-soiree .fp-lieu, .inv-soiree .compteur-nom, .inv-soiree .rsvp label, .inv-soiree .pas output, .inv-soiree .salle .fp-lieu { color: var(--brun); }
.inv-soiree .fp-date { font-weight: 300; letter-spacing: .1em; }
.inv-soiree .fp-heb-date { font-weight: 300; }

/* ══ 18. Le cadre doré en arche (dessiné par site.js) ══ */
body.inv-soiree::after { display: none; }
.cadre-arche { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
.cadre-arche .cadre-ext { stroke-width: 1.6; }
.cadre-arche .cadre-int { stroke-width: .7; opacity: .75; }
html.avant-env .cadre-arche { visibility: hidden; }
/* l'arche prend le haut : on laisse un peu plus d'air au-dessus du contenu */
.inv-soiree .ecran-plein { padding-top: 64px; }
#accueil.ecran-plein { padding-top: 60px; }
/* le contenu des pages commence sous les épaulements de l arche (le faire-part, centré, tient dans l ogive) */
.inv-soiree .ecran-plein:not(#accueil) { padding-top: max(64px, calc(var(--arche, 120px) - 6px)); }
/* le bouton son : blotti dans le coin, hors de l arche */
.inv-soiree .musique { top: calc(env(safe-area-inset-top, 0px) + 11px); left: 11px; width: 32px; height: 32px; }
.inv-soiree .musique svg { width: 15px; height: 15px; }
/* le logo, plus grand, logé dans la pointe de l arche */
.fp-logo { height: 96px; max-width: none; margin-bottom: 10px; }
#accueil.ecran-plein { padding-top: 34px; }
.fp-logo { height: 96px; max-width: none !important; }
#accueil.ecran-plein { padding-top: 16px; }
/* faire-part : espaces resserrés pour laisser la place au logo */
#accueil.ecran-plein { padding-bottom: 54px; }
#accueil .fp-logo { margin-bottom: 6px; }
#accueil .fp-verset { margin-bottom: 8px; }
#accueil .fp-annonce { margin-top: 10px; margin-bottom: 4px; }
#accueil .fp-orn { margin-top: 8px; margin-bottom: 8px; }
#accueil .fp-lieu { margin-bottom: 5px; }

/* ══ 19. Le faire-part sur une seule page (comme le modèle) : cadre rectangulaire fin, ivoire rosé, doré ══ */
.fond-uni { background-color: #FBF5EF; }
body.inv-soiree::after { display: block; border: 1px solid rgba(184, 148, 88, .55); outline: 1px solid rgba(184, 148, 88, .35); outline-offset: -7px; }
.cadre-arche { display: none; }
.inv-soiree #site { clip-path: none !important; -webkit-clip-path: none !important; }
.inv-soiree .ecran-plein:not(#accueil) { padding-top: 64px; }
.inv-soiree .musique { top: calc(env(safe-area-inset-top, 0px) + 23px); left: 23px; }
#accueil.ecran-plein { padding-top: 26px; padding-bottom: 54px; }
/* couleurs du modèle */
#accueil .fp-annonce, #accueil .fp-tenue { color: #7E6440; letter-spacing: .3em; font-weight: 400; }
#accueil .fp-date { color: #5E4A33; letter-spacing: .26em; font-weight: 400; }
#accueil .fp-lieu { color: #5E4A33; letter-spacing: .28em; font-weight: 400; }
#accueil .fp-memoire { color: #6E5840; letter-spacing: .04em; }
#accueil .fp-verset, #accueil .fp-heb { color: #6E5840; }
#accueil .fp-heb { font-weight: 400; }
#accueil .fp-orn { margin: 6px auto; }
/* les familles, en deux colonnes séparées d'un filet */
.fp-familles { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 12px; margin: 4px 0 0; }
.fp-familles ul { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: clamp(13.5px, 3.7vw, 17px); line-height: 1.55; color: #5E4A33; font-weight: 400; }
.fp-familles i { align-self: stretch; width: 1px; background: rgba(184, 148, 88, .5); margin: 4px 0; }
.fp-filet { width: 56%; height: 1px; margin: 12px auto 4px; background: rgba(184, 148, 88, .5); }
/* Waze | Agenda en bas du faire-part */
#accueil .lieu-boutons { margin-top: 10px; }
#accueil .lieu-btn { font-size: 11px; letter-spacing: .24em; padding: 4px 22px; }
#accueil .lieu-btn svg { width: 22px; height: 22px; }
/* noms longs sur téléphone : chaque nom reste un bloc lisible, même sur deux lignes */
.fp-familles ul { line-height: 1.28; }
.fp-familles li + li { margin-top: 7px; }
#accueil.ecran-plein { padding-left: 18px; padding-right: 18px; }

/* familles : un nom par ligne ; à gauche alignés à gauche, à droite alignés à droite */
.fp-familles { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 10px; }
.fp-familles ul { min-width: 0; overflow: hidden; line-height: 1.6; }
.fp-familles li { white-space: nowrap; }
.fp-familles li + li { margin-top: 0; }
.fp-familles ul:first-child { text-align: left; }
.fp-familles ul:last-child { text-align: right; }
#accueil.ecran-plein { padding-left: 12px; padding-right: 12px; }
/* chaque colonne prend la largeur de ses noms (la plus longue ligne décide de la taille) */
.fp-familles { grid-template-columns: auto auto auto; justify-content: space-between; gap: 0 12px; width: 100%; }
.fp-familles ul { overflow: visible; }
/* la barre entre les familles : pile au centre de la page, sous le losange (deux colonnes de même largeur) */
.fp-familles { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-content: stretch; gap: 0 9px; }
.fp-familles ul { overflow: hidden; }
/* la date du faire-part, plus petite */
#accueil .fp-date { font-size: clamp(13.5px, 3.8vw, 17px); }

/* ══ 20. La 1re page après l'enveloppe : le dessin de la houppa, fondu dans le papier ══ */
#dessin.ecran-plein { padding: 34px 18px 64px; }
#dessin .ecran-contenu { gap: 0; }
.dessin-img {
  display: block; width: 100%; max-width: 560px; height: auto; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); object-fit: contain;
  mix-blend-mode: multiply;   /* le blanc du papier du dessin se fond dans le fond ivoire */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 62%, transparent 100%);
  opacity: 0; transform: scale(1.03); transition: opacity 1.6s ease .2s, transform 2.4s ease .2s;
}
.dessin-noms {
  font-family: var(--script); font-size: clamp(34px, 10vw, 50px); line-height: 1.15; color: #A88748; margin: 2px 0 0; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity 1.2s ease 1s, transform 1.2s ease 1s;
}
.dessin-noms i { font-family: var(--capitales); font-style: normal; font-size: .55em; color: #BE9C5E; }
.dessin-date {
  font-family: var(--capitales); font-size: 11.5px; letter-spacing: .42em; color: #7E6440; margin: 6px 0 0; padding-left: .42em;
  opacity: 0; transition: opacity 1.2s ease 1.5s;
}
#dessin[data-etat="actif"] .dessin-img { opacity: .94; transform: none; }
#dessin[data-etat="actif"] .dessin-noms { opacity: 1; transform: none; }
#dessin[data-etat="actif"] .dessin-date { opacity: 1; }
html.avec-enveloppe #dessin .dessin-img, html.avec-enveloppe #dessin .dessin-noms, html.avec-enveloppe #dessin .dessin-date { opacity: 0; }

/* ══ 21. Le dessin sort de l'enveloppe ══ */
.rb-carte { padding: 7px; background: #FBF7F0; overflow: hidden; }
.rb-carte-dessin { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rb.sortie .rb-carte {
  transform: translateY(-9%) scale(1.14);
  box-shadow: 0 24px 50px -18px rgba(70, 50, 25, .45);
  transition: transform 1.1s cubic-bezier(.4, 0, .2, 1), box-shadow 1.1s ease;
}
.rb-poche, .rb-doublure { transition: opacity .9s ease; }
.rb.sortie .rb-poche, .rb.sortie .rb-doublure { opacity: 0; }
.rb.sortie { animation: none; }
.env-ecran--rabat.ouverture { background-color: #FBF5EF; transition: background-color 1s ease 2.3s; }

/* ══ 22. Sans scintillement : le dessin se pose pile sur celui de la page, qui est déjà là dessous ══ */
.rb.sortie .rb-carte {
  padding: 0; transform: none; box-shadow: none; background: transparent;
  transition: left 1.1s cubic-bezier(.4, 0, .2, 1), top 1.1s cubic-bezier(.4, 0, .2, 1), width 1.1s cubic-bezier(.4, 0, .2, 1), height 1.1s cubic-bezier(.4, 0, .2, 1), transform 1.1s cubic-bezier(.4, 0, .2, 1), padding 1.1s ease, box-shadow 1.1s ease;
}
.rb.sortie .rb-carte-dessin { object-fit: contain; }
/* l'enveloppe s'efface sur place (sans zoom), et le dessin de la page est déjà affiché, sans animation */
.env-ecran--rabat.fini { transform: none; }
html.vers-fp #dessin .dessin-img { transition: none; opacity: .94; transform: none; }
html.vers-fp #dessin .dessin-noms { transition-delay: .3s; }
html.vers-fp #dessin .dessin-date { transition-delay: .7s; }

/* ══ 23. La photo de l'allée (en couleur) : posée comme un tirage, sans fondu dans le papier ══ */
.dessin-img {
  mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
  border-radius: 3px; box-shadow: 0 22px 44px -24px rgba(70, 50, 25, .55), 0 2px 6px rgba(70, 50, 25, .12);
  max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px);
}
#dessin[data-etat="actif"] .dessin-img, html.vers-fp #dessin .dessin-img { opacity: 1; }
.rb-carte { border-radius: 3px; }
.rb.sortie .rb-carte { box-shadow: 0 22px 44px -24px rgba(70, 50, 25, .55), 0 2px 6px rgba(70, 50, 25, .12); }
.rb-carte-dessin { object-position: 50% 40%; }
.rb.sortie .rb-carte-dessin { border-radius: 3px; }

/* ══ 24. La photo se fond dans le fond, en dégradé sur les 4 côtés ; plus de nom dessous, juste la date ══ */
.dessin-img {
  border-radius: 0; box-shadow: none;
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
#dessin .dessin-date { margin-top: 4px; transition-delay: .6s; }
html.vers-fp #dessin .dessin-date { transition-delay: .5s; }
/* la photo qui sort de l'enveloppe : sans ombre en se posant ; ses bords s'adoucissent pendant le fondu */
.rb.sortie .rb-carte { box-shadow: none; border-radius: 0; }
.rb.sortie .rb-carte-dessin { border-radius: 0; }

/* ══ 25. La photo sort de l'enveloppe déjà fondue (mêmes bords en dégradé que sur la page),
          aux mêmes proportions : en se posant, elle ne change plus d'aspect → aucun saut ══ */
.rb-carte {
  padding: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible;
  left: 10%; right: auto; width: 80%; height: auto; aspect-ratio: 1024 / 1536;
}
.rb-carte-dessin, .rb.sortie .rb-carte-dessin {
  object-fit: contain; border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.rb.sortie .rb-carte { box-shadow: none; }

/* ══ 26. Le nom de l'invité sur l'enveloppe : en Great Vibes (comme les titres du site de la bar-mitsva) ══ */
.rb-nom { font-family: 'Great Vibes', var(--script); font-size: clamp(30px, 9vw, 44px); line-height: 1.25; letter-spacing: 0; word-spacing: .14em; }

/* ══ 27. Le tréma de « Yohaï » : le dégradé doré est peint dans la boîte du texte ; on l'agrandit (en haut et à droite)
          sans rien déplacer, pour que les deux points au-dessus du i ne soient plus coupés ══ */
.fp-script { padding: .22em .4em .06em; margin: -.22em -.28em -.06em; }
.fp-noms .fp-nom:first-child .fp-script { margin-right: -.28em; }

/* בס״ד : dans le cadre, à la hauteur du bouton du son */
.inv-soiree .bsd { top: calc(env(safe-area-inset-top, 0px) + 33px); right: 28px; color: #9A8058; }
