/* L'Effet Marion · « Lever de rideau »
   Ivoire des voilages, prune du logo, or des bougies. */

@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-light.woff2") format("woff2"); font-style: normal; font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-italic.woff2") format("woff2"); font-style: italic; font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ivoire: #F7F2EC;
  --papier: #FFFDF9;
  --prune: #5A2D3C;
  --prune-fonce: #3B1A26;
  --prune-clair: #8A5A69;
  --or: #C9984F;
  --encre: #2A1F22;
  --encre-douce: #6A585D;
  --filet: rgba(42, 31, 34, 0.12);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Cabinet Grotesk", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gouttiere: clamp(16px, 5vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.045;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; }
p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--prune); color: var(--ivoire); }
:focus-visible { outline: 1.5px solid var(--prune); outline-offset: 3px; border-radius: 4px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: fixed; left: 16px; top: -60px; z-index: 60; background: var(--prune); color: var(--ivoire); padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.evitement:focus { top: 16px; }

/* ---------- Logo, recomposé en texte comme sur son profil ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; color: var(--prune); }
.logo__effet { font-family: var(--serif); font-weight: 300; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; }
.logo__marion { margin-top: 3px; font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.52em; text-transform: uppercase; padding-left: 0.52em; }

/* ---------- Boutons ---------- */
.bouton {
  --fond: var(--prune); --texte: var(--ivoire);
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 7px 26px;
  border: 0; border-radius: 99px;
  background: var(--fond); color: var(--texte);
  font: 500 15px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 220ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.bouton:has(.bouton__rond) { padding-right: 7px; }
.bouton:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); transition-duration: 120ms; }
.bouton__rond { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(247, 242, 236, 0.14); font-size: 17px; transition: transform 300ms var(--ease-out); }
.bouton--clair { --fond: rgba(255, 253, 249, 0.75); --texte: var(--prune); box-shadow: inset 0 0 0 1px rgba(90, 45, 60, 0.22); }
.bouton--plein { width: 100%; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { --fond: var(--prune-fonce); }
  .bouton--clair:hover { --fond: var(--papier); --texte: var(--prune-fonce); }
  .bouton:hover .bouton__rond { transform: translateX(3px); }
}
.aimant > * { pointer-events: none; }

/* ---------- Navigation : deux îlots flottants ---------- */
.nav {
  position: fixed; z-index: 30; top: 16px; left: var(--gouttiere); right: var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav .logo, .nav__liens {
  background: rgba(255, 253, 249, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(90, 45, 60, 0.1), 0 14px 40px -22px rgba(59, 26, 38, 0.35);
  border-radius: 99px;
}
.nav .logo { padding: 11px 22px 10px; }
.nav__liens { display: flex; align-items: center; gap: 26px; padding: 6px 6px 6px 26px; }
.nav__liens a { font-size: 14.5px; text-decoration: none; color: var(--encre-douce); transition: color 200ms ease; }
.nav__liens .nav__contact { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 99px; background: var(--prune); color: var(--ivoire); transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 220ms var(--ease-out), background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__liens a:hover { color: var(--encre); }
  .nav__liens .nav__contact:hover { background: var(--prune-fonce); color: var(--ivoire); }
}
.nav__menu { display: none; }
.menu { display: none; }

/* ---------- Ouverture : le rideau ---------- */
.ouverture { position: relative; height: 260vh; }
.ouverture__scene { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--prune-fonce); }
.ouverture__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.08); will-change: transform; }
.ouverture__voile { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(30, 14, 20, 0) 40%, rgba(30, 14, 20, 0.55) 100%), linear-gradient(to top, rgba(30, 14, 20, 0.55), rgba(30, 14, 20, 0) 32%); }

.rideau { position: absolute; inset: 0; display: flex; pointer-events: none; }
/* Lumière douce venue d'en haut, sur tout le tissu */
.rideau::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 253, 249, 0.35), rgba(255, 253, 249, 0) 30%, rgba(90, 60, 50, 0) 70%, rgba(90, 60, 50, 0.1)); }
.rideau__pan { position: relative; display: flex; width: calc(50% + 1px); height: 100%; }
.rideau__pan--d { flex-direction: row-reverse; margin-left: -2px; }
/* Un pli : un cylindre de voilage, clair au centre, ombré sur les bords */
.pli {
  flex: 1 1 auto; /* les plis remplissent toute la largeur, sans jour entre eux */
  height: 100%;
  /* --h : où tombe la lumière, --l : largeur du reflet, --o : ombre des bords (variés pli par pli dans main.js) */
  background:
    linear-gradient(90deg, rgba(110, 82, 66, var(--o, 0.12)) 0%, rgba(110, 82, 66, 0) 18%, rgba(110, 82, 66, 0) 80%, rgba(110, 82, 66, calc(var(--o, 0.12) * 1.4)) 100%),
    linear-gradient(90deg, #EDE3D8 0%, #F7F1E9 calc(var(--h, 47%) - var(--l, 26%)), #FFFDF9 var(--h, 47%), #F4ECE2 calc(var(--h, 47%) + var(--l, 26%)), #E7DCCF 100%);
  will-change: transform;
}
.rideau__pan--g .pli { transform-origin: 0 50%; }
.rideau__pan--d .pli { transform-origin: 100% 50%; }
/* Trame fine du tissu et ourlet du bas */
.rideau__pan::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(120, 96, 80, 0.06) 0 1px, transparent 1px 3px);
}

.ouverture__texte {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--gouttiere) 80px;
  text-align: center; color: var(--prune);
  will-change: transform, opacity;
}
.surtitre { font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--prune-clair); }
.ouverture h1 { margin: 26px 0 24px; max-width: 1100px; font-size: clamp(64px, min(13vw, 16vh), 150px); line-height: 0.92; letter-spacing: -0.02em; }
.ouverture h1 em { font-weight: 300; }
.ouverture__chapo { font-size: 18px; line-height: 1.55; color: var(--encre-douce); }
.ouverture__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.ouverture__indice {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--prune-clair);
}
.ouverture__indice svg { animation: indice 2.4s var(--ease-in-out) infinite; }
@keyframes indice { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.ouverture__legende {
  position: absolute; left: 50%; bottom: 30px; z-index: 2; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ivoire); white-space: nowrap;
  opacity: 0;
}

/* ---------- Phrase révélée mot à mot ---------- */
.phrase { padding: clamp(120px, 22vh, 220px) var(--gouttiere); text-align: center; }
.phrase__texte { max-width: 1100px; margin: 0 auto; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 70px); line-height: 1.12; color: var(--prune); }
.phrase__texte .mot { opacity: 0.14; }
.phrase__signature { margin-top: 30px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--encre-douce); }

/* ---------- Les trois actes ---------- */
.actes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; padding: 0 var(--gouttiere); }
.actes__fixe { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.actes__liste { position: relative; list-style: none; margin: 0; padding: 0; min-height: 360px; }
.acte { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.acte.actif { opacity: 1; transform: none; }
.acte__num { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--or); }
.acte h2 { margin: 6px 0 22px; font-size: clamp(64px, 8vw, 128px); line-height: 0.92; color: var(--prune); }
.acte p:last-child { max-width: 26em; font-size: 18px; color: var(--encre-douce); }
.actes__progres { width: 120px; height: 1px; background: var(--filet); margin-top: 24px; }
.actes__progres i { display: block; height: 100%; background: var(--prune); transform-origin: 0 50%; transform: scaleX(0.333); transition: transform 600ms var(--ease-out); }

.actes__photos { padding: 10vh 0; }
.acte-photo { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.acte-photo .cadre { aspect-ratio: 4 / 5; will-change: transform, opacity; }
.acte-mobile { display: none; }
.acte-photo figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--encre-douce); }

/* Cadre photo commun : coins doux, zoom au survol */
.cadre { position: relative; overflow: hidden; border-radius: 6px; background: #E9E0D6; }
.cadre img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cadre:hover img { transform: scale(1.04); } }

/* ---------- Réalisations ---------- */
.realisations { padding: clamp(110px, 18vh, 200px) 0 0; }
.tete { padding: 0 var(--gouttiere); max-width: 1100px; }
.tete h2 { font-size: clamp(48px, 6.4vw, 104px); line-height: 0.95; color: var(--prune); }
.tete p { margin-top: 22px; max-width: 34em; color: var(--encre-douce); }

.mariage { padding: clamp(80px, 12vh, 140px) var(--gouttiere) 0; }
.mariage__haut { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5vw; align-items: center; }
.mariage--inverse .mariage__lever { order: 2; }
.cadre--lever { aspect-ratio: 1; border-radius: 4px; }
.cadre--lever .rideau { z-index: 1; }
.mariage__lieu { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--prune-clair); }
.mariage__texte h3 { margin: 16px 0 20px; font-size: clamp(34px, 3.2vw, 52px); line-height: 1; color: var(--prune); }
.mariage__texte > p:not(.mariage__lieu) { color: var(--encre-douce); max-width: 32em; }
.mariage__mot { margin-top: 28px; padding-left: 20px; border-left: 1px solid var(--or); }
.mariage__mot p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--prune); }
.mariage__mot footer { margin-top: 8px; font-size: 13px; color: var(--encre-douce); }

/* Le générique, comme sous ses photos */
.generique { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; padding-top: 22px; border-top: 1px solid var(--filet); }
.generique dt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--encre-douce); }
.generique dd { margin-top: 2px; font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--encre); }

/* Galerie sans case vide : une grande (2 × 2) et quatre petites, sur 4 colonnes */
.galerie { margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.galerie figure .cadre { height: 100%; }
.galerie figure:not(.galerie__grande) .cadre { aspect-ratio: 1; }
.galerie__grande { grid-column: span 2; grid-row: span 2; }
.mariage--inverse .galerie__grande { grid-column: 3 / span 2; }

/* ---------- Prestations : tranches qui s'ouvrent ---------- */
.prestations { padding: clamp(120px, 20vh, 220px) 0 0; }
.tranches { list-style: none; margin: 56px 0 0; padding: 0 var(--gouttiere); display: flex; gap: 10px; height: min(72vh, 680px); }
.tranche {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 6px; cursor: pointer;
  transition: flex-grow 750ms var(--ease-out);
  background: var(--prune-fonce);
}
.tranche.ouverte { flex-grow: 3.4; }
.tranche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.tranche.ouverte img { opacity: 1; }
.tranche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 14, 20, 0.78), rgba(30, 14, 20, 0.05) 55%); }
.tranche__texte { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; color: var(--ivoire); }
.tranche__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: #E7C58C; }
.tranche h3 { margin-top: 4px; font-size: clamp(26px, 2.6vw, 42px); line-height: 1; white-space: nowrap; }
.tranche p { max-width: 24em; margin-top: 10px; font-size: 15.5px; color: rgba(247, 242, 236, 0.88); opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.tranche.ouverte p { opacity: 1; transform: none; transition-delay: 200ms; }
.prestations__prix { padding: 24px var(--gouttiere) 0; }

/* ---------- Partenaires ---------- */
.partenaires { padding: clamp(120px, 20vh, 220px) 0 0; }
.partenaires__titre { padding: 0 var(--gouttiere); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--encre-douce); }
.defile { margin-top: 28px; overflow: hidden; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile__piste { display: flex; align-items: center; width: max-content; animation: defile 46s linear infinite; }
.defile__piste span { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 52px); color: var(--prune); white-space: nowrap; }
.defile__piste span, .defile__piste i { margin-right: 36px; } /* pas de gap : la boucle tombe juste à -50 % */
.defile__piste i { width: 6px; height: 6px; border-radius: 50%; background: var(--or); flex: none; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .defile:hover .defile__piste { animation-play-state: paused; } }

.salon { margin: clamp(80px, 12vh, 140px) var(--gouttiere) 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5vw; align-items: center; }
.salon__photo { aspect-ratio: 4 / 5; }
.salon__phrase { margin: 18px 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.12; color: var(--prune); }
.salon__texte > p:last-child { color: var(--encre-douce); max-width: 32em; }
.avis { margin: 56px var(--gouttiere) 0; }

/* ---------- Contact : la scène prune ---------- */
.contact {
  margin-top: clamp(120px, 20vh, 220px);
  padding: clamp(100px, 16vh, 180px) var(--gouttiere);
  background: var(--prune); color: var(--ivoire);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 6vw; align-items: start;
}
.contact h2 { font-size: clamp(36px, 3.8vw, 62px); line-height: 1.02; }
.contact h2 em { color: #E7C58C; }
.contact__texte > p { margin-top: 26px; max-width: 30em; color: rgba(247, 242, 236, 0.82); }
.contact__autres { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.contact__autres a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; font-size: 17px; }
.contact__autres svg { font-size: 20px; color: #E7C58C; }
@media (hover: hover) and (pointer: fine) { .contact__autres a:hover { color: #E7C58C; } }

.formulaire { display: grid; gap: 18px; padding: 32px; border-radius: 10px; background: rgba(255, 253, 249, 0.06); box-shadow: inset 0 0 0 1px rgba(247, 242, 236, 0.16); }
.champ { display: grid; gap: 7px; min-width: 0; }
.champs-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.champ label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 236, 0.75); }
.champ input, .champ textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 13px 15px;
  border: 0; border-radius: 8px;
  background: rgba(255, 253, 249, 0.96); color: var(--encre);
  font: 400 16px/1.4 var(--sans);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 200ms ease;
}
.champ textarea { resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #9B8B8F; }
.champ input:focus, .champ textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--or); }
.formulaire .bouton--plein { --fond: var(--ivoire); --texte: var(--prune); }
.formulaire .bouton__rond { background: rgba(90, 45, 60, 0.1); }
@media (hover: hover) and (pointer: fine) { .formulaire .bouton--plein:hover { --fond: #FFFFFF; } }
.formulaire__erreur { color: #F2C7A0; font-size: 14px; }
.formulaire__note { font-size: 13px; text-align: center; color: rgba(247, 242, 236, 0.7); }

/* ---------- Pied ---------- */
.pied { padding: 64px var(--gouttiere) 48px; background: var(--prune-fonce); color: rgba(247, 242, 236, 0.75); text-align: center; display: grid; justify-items: center; gap: 8px; font-size: 14px; }
.logo--pied { color: var(--ivoire); margin-bottom: 10px; }
.logo--pied .logo__effet { font-size: 30px; }
.pied__credits { font-size: 12.5px; max-width: 48em; }

/* Apparitions au défilement */
.revele { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); }
.revele.vu { opacity: 1; transform: none; }

/* ---------- Repères de maquette (à retirer à la livraison) ---------- */
.maquette .trou { display: inline-block; padding: 1px 10px; border-radius: 99px; border: 1px dashed currentColor; color: var(--prune); font: 500 12px/1.6 var(--sans); font-style: normal; letter-spacing: 0; text-transform: none; }
.contact .trou, .pied .trou { color: #F2C7A0; }
body:not(.maquette) .trou { display: none; }
.compteur-trous { position: fixed; right: 16px; top: 84px; z-index: 30; padding: 8px 14px; border-radius: 99px; background: var(--encre); color: var(--ivoire); font-size: 12px; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .nav { left: 16px; right: 16px; top: 12px; }
  .nav__liens { display: none; }
  .nav__menu {
    display: grid; place-items: center; position: relative;
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--prune); cursor: pointer;
    box-shadow: 0 14px 40px -22px rgba(59, 26, 38, 0.5);
  }
  .nav__menu i { position: absolute; left: 15px; right: 15px; height: 1.3px; background: var(--ivoire); transition: transform 250ms var(--ease-out); }
  .nav__menu i:first-of-type { transform: translateY(-3.5px); }
  .nav__menu i:last-of-type { transform: translateY(3.5px); }
  .nav__menu[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
  .nav__menu[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }
  .menu { display: flex; flex-direction: column; justify-content: center; position: fixed; inset: 0; z-index: 25; padding: 100px 28px 40px; background: rgba(247, 242, 236, 0.9); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); opacity: 0; transition: opacity 300ms var(--ease-out); }
  .menu[hidden] { display: none; }
  .menu.ouvert { opacity: 1; }
  .menu nav { display: grid; gap: 4px; }
  .menu nav a { font-family: var(--serif); font-weight: 300; font-size: 50px; line-height: 1.15; color: var(--prune); text-decoration: none; opacity: 0; transform: translateY(26px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .menu.ouvert nav a { opacity: 1; transform: none; }
  .menu.ouvert nav a:nth-child(2) { transition-delay: 50ms; }
  .menu.ouvert nav a:nth-child(3) { transition-delay: 100ms; }
  .menu.ouvert nav a:nth-child(4) { transition-delay: 150ms; }
  .menu__pied { margin-top: 40px; font-size: 14px; color: var(--encre-douce); }

  .actes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .actes__texte { display: none; }
  .acte-photo { min-height: 0; padding: 0 0 64px; }
  .acte-mobile { display: block; margin-bottom: 22px; }
  .acte-mobile h2 { margin: 4px 0 12px; font-size: clamp(52px, 14vw, 80px); line-height: 0.95; color: var(--prune); }
  .acte-mobile p:last-child { color: var(--encre-douce); }

  .mariage__haut, .salon, .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mariage--inverse .mariage__lever { order: 0; }
  .salon__photo { max-width: 360px; }

  .tranches { flex-direction: column; height: auto; }
  .tranche, .tranche.ouverte { flex: none; height: 64vw; max-height: 420px; }
  .tranche img { opacity: 1; }
  .tranche p { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .ouverture h1 { font-size: clamp(52px, 15vw, 76px); }
  .ouverture__chapo { font-size: 16px; }
  .ouverture__chapo br { display: none; }
  .ouverture__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .ouverture__actions .bouton { justify-content: center; }
  .ouverture__actions .bouton:has(.bouton__rond) { justify-content: space-between; padding-left: 26px; }
  .ouverture__legende { font-size: 16px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mariage--inverse .galerie__grande { grid-column: span 2; }
  .generique { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; }
  .generique dd { font-size: 18px; }
  .champs-duo { grid-template-columns: minmax(0, 1fr); }
  .formulaire { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .defile__piste { animation: none; }
  .ouverture__indice svg { animation: none; }
  .revele, .acte, .menu nav a { transform: none !important; }
  .cadre img, .tranche img { transition: none; }
  .tranche { transition-duration: 0ms; }
}

/* Tranche fermée : le titre se lit à la verticale ; il laisse la place au titre couché quand elle s'ouvre */
.tranche__vertical {
  position: absolute; left: 22px; bottom: 26px; z-index: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1; color: var(--ivoire); white-space: nowrap;
  transition: opacity 300ms ease;
}
.tranche.ouverte .tranche__vertical { opacity: 0; transition-delay: 0ms; }
.tranche:not(.ouverte) .tranche__texte { opacity: 0; }
.tranche__texte { transition: opacity 300ms ease 250ms; }
.tranche:not(.ouverte) .tranche__texte { transition-delay: 0ms; }
@media (max-width: 900px) {
  .tranche__vertical { display: none; }
  .tranche:not(.ouverte) .tranche__texte { opacity: 1; }
}

/* Les plis se chevauchent d'un pixel : aucun jour entre eux, même avec des positions à virgule */
.rideau__pan--g .pli { margin-right: -1.5px; }
.rideau__pan--d .pli { margin-left: -1.5px; }

@media (max-width: 600px) {
  .surtitre { font-size: 10px; letter-spacing: 0.16em; }
  .ouverture__indice { font-size: 10.5px; letter-spacing: 0.14em; white-space: nowrap; bottom: 22px; }
}
@media (max-width: 900px) { .tranche::after { background: linear-gradient(to top, rgba(30, 14, 20, 0.86), rgba(30, 14, 20, 0.1) 70%); } }

/* Les ancres ne passent pas sous la navigation */
[id] { scroll-margin-top: 96px; }

.formulaire__suite { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid rgba(247, 242, 236, 0.16); }
.formulaire__suite[hidden] { display: none; }
.formulaire__suite label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 236, 0.75); }
.formulaire__suite textarea { width: 100%; padding: 13px 15px; border: 0; border-radius: 8px; background: rgba(255, 253, 249, 0.12); color: var(--ivoire); font: 400 15px/1.5 var(--sans); resize: none; }
.formulaire__suite .bouton--plein { --fond: #E7C58C; --texte: var(--prune-fonce); }
@media (max-width: 600px) { .tete h2 { font-size: 10.4vw; } }
