/* Moteur et boîte à outils « pitch » pour les plaquettes mariage (v5).
   Repris du gabarit PitchLayout du site (rail, scroll-snap, boutons, impression),
   avec des mises en page centrées sur la photo. Une planche = .slide > .board (16:9). */
@font-face { font-family: "Orpheus Pro"; src: url("fonts/Orpheus-Pro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --vert: #498968; --vert-fonce: #2f5a43; --jaune: #fcf292; --jaune-fonce: #f2d24e;
  --creme: #f8f6f1; --texte: #22382c; --bord: #ece9e4; --blanc: #ffffff; --nuit: #1e3a2c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: var(--creme); }
body { font-family: "Poppins", sans-serif; color: var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* ---------- Interface (masquée à l'impression) ---------- */
.plaq { position: fixed; inset: 0; }
.actions { position: fixed; top: 9px; right: 18px; z-index: 30; display: flex; gap: 6px; }
.act { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  border: 1px solid var(--bord); border-radius: 100px; padding: 6px; font: 500 13px "Poppins", sans-serif;
  color: var(--texte); cursor: pointer; transition: background .15s, transform .15s; }
.act span { display: none; }
.act:hover { background: #fff; transform: translateY(-1px); }
.act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 30; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.82); backdrop-filter: blur(6px); border: 1px solid var(--bord); cursor: pointer; display: grid; place-items: center; }
.nav:hover { background: #fff; }
.nav.prev { left: 18px; } .nav.next { right: 18px; } .nav[hidden] { display: none; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: var(--vert-fonce); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.count { display: none; font: 500 12px "Poppins"; letter-spacing: 2px; color: var(--vert-fonce); background: rgba(255,255,255,.7); padding: 3px 11px; border-radius: 100px; }
.dots { display: flex; gap: 7px; pointer-events: auto; }
.dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: rgba(47,90,67,.3); cursor: pointer; }
.dots button.on { background: var(--vert-fonce); transform: scale(1.35); }
.toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 40; background: var(--vert-fonce); color: #fff;
  font: 500 13px "Poppins"; padding: 10px 18px; border-radius: 100px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.show { opacity: 1; }

/* Barre de progression en haut de l'écran (reprise de la variante traiteur) */
.topbar { position: fixed; left: 0; top: 0; width: 100%; height: 5px; z-index: 31; pointer-events: none; }
.topbar i { display: block; height: 100%; width: 0; background: var(--jaune-fonce); transition: width .4s; }

/* Suivi des sections au-dessus de la présentation (repris de la variante traiteur) */
.sections { position: fixed; top: 7px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 6px; max-width: calc(100vw - 180px); }
.sections button { all: unset; box-sizing: border-box; cursor: pointer; white-space: nowrap; font: 500 11px "Poppins", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--texte); background: rgba(255,255,255,.7); border: 1px solid var(--bord); border-radius: 100px; padding: 6px 16px; transition: background .2s, color .2s; }
.sections button:hover { background: #fff; }
.sections button.on { background: var(--vert); border-color: var(--vert); color: #fff; box-shadow: 0 2px 0 #e65d50; }
.sections button:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 2px; }

/* ---------- Rail ---------- */
.rail { height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.rail::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; width: 100vw; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; background: var(--creme); padding: 44px 34px 40px; }
.board { position: relative; width: min(100%, calc((100vh - 92px) * 16 / 9)); aspect-ratio: 16 / 9; background: var(--blanc);
  container-type: inline-size; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 70px rgba(34,56,44,.08); }

/* ---------- Typographie (échelle en cqw : 1920 px de large = 100cqw) ---------- */
.lbl { font-weight: 500; font-size: .85cqw; letter-spacing: .22cqw; text-transform: uppercase; color: var(--vert); }
.tt { font-family: "Orpheus Pro", serif; font-weight: 400; font-size: 3.4cqw; line-height: 1.1; color: var(--vert-fonce); -webkit-text-stroke: .3px currentColor; }
.tt.it { font-style: italic; }
.tt.xl { font-size: 5.2cqw; line-height: 1.04; }
.tt.l { font-size: 4.2cqw; }
.tt.s { font-size: 2.4cqw; }
.tx { font-weight: 300; font-size: 1.05cqw; line-height: 1.75; color: var(--texte); }
.tx.l { font-size: 1.25cqw; }
.tx p + p { margin-top: .9cqw; }
.leg { font-weight: 300; font-size: .72cqw; letter-spacing: .06cqw; opacity: .8; }
.clair, .clair .tt, .clair .tx, .clair .lbl, .clair .leg { color: #fff; }
.clair .lbl { opacity: .9; }

/* ---------- Photos ---------- */
.ph { width: 100%; height: 100%; object-fit: cover; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,58,44,.5), rgba(30,58,44,.18) 45%, rgba(30,58,44,.62)); }
.veil.fort { background: rgba(30,58,44,.52); }
.veil.bas { background: linear-gradient(180deg, rgba(30,58,44,0) 35%, rgba(30,58,44,.78)); }
.veil.gauche { background: linear-gradient(90deg, rgba(30,58,44,.78), rgba(30,58,44,0) 62%); }
.credit { position: absolute; right: 1.2cqw; bottom: .9cqw; z-index: 3; font-weight: 300; font-size: .6cqw; color: #fff; opacity: .7; }

/* ---------- Planches plein cadre : la photo occupe tout, le texte se pose dessus ---------- */
.full .in { position: absolute; z-index: 2; color: #fff; }
.in.centre { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12cqw; gap: 1.2cqw; }
.in.bas-g { left: 6cqw; bottom: 5.5cqw; max-width: 42cqw; }
.in.haut-g { left: 6cqw; top: 5.5cqw; max-width: 42cqw; }
.in.bas-d { right: 6cqw; bottom: 5.5cqw; max-width: 38cqw; text-align: right; }
.in.milieu-g { left: 6cqw; top: 50%; transform: translateY(-50%); max-width: 40cqw; }
.in .tt { color: #fff; }
.in .tx, .in .lbl { color: #fff; }

/* ---------- Planches partagées ---------- */
.moitie { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.moitie.large { grid-template-columns: 1.4fr 1fr; }
.moitie.etroit { grid-template-columns: 1fr 1.4fr; }
.moitie.inv > .ph-col { order: 2; }
.ph-col { position: relative; overflow: hidden; }
.papier { background: var(--creme); }
.texte-col { display: flex; flex-direction: column; justify-content: center; padding: 5cqw 5.5cqw; gap: 1.3cqw; }
.texte-col .tt { margin-bottom: .4cqw; }

/* Bande de 2 à 4 photos côte à côte, légende dessous ou dessus */
.bande { display: grid; height: 100%; gap: .5cqw; padding: .5cqw; background: var(--creme); }
.bande.n2 { grid-template-columns: 1fr 1fr; } .bande.n3 { grid-template-columns: 1fr 1fr 1fr; } .bande.n4 { grid-template-columns: repeat(4, 1fr); }
.bande figure { position: relative; overflow: hidden; border-radius: .6cqw; }
.bande figcaption { position: absolute; left: 1.4cqw; bottom: 1.2cqw; right: 1.4cqw; color: #fff; z-index: 2; font-family: "Orpheus Pro", serif; font-style: italic; font-size: 1.5cqw; line-height: 1.2; }
.bande figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,58,44,0) 55%, rgba(30,58,44,.7)); }

/* Page de texte aérée, sans photo ou avec une vignette */
.aere { padding: 7cqw 9cqw; display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 1.4cqw; background: var(--creme); }
.aere .col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; }
.vignette { position: absolute; right: 6cqw; top: 6cqw; width: 22cqw; height: 28cqw; border-radius: .8cqw; overflow: hidden; }

/* Fil des étapes, lignes fines */
.fil { list-style: none; display: grid; gap: 0; }
.fil li { display: grid; grid-template-columns: 4cqw 1fr; align-items: baseline; padding: 1.05cqw 0; border-top: 1px solid rgba(34,56,44,.18); }
.fil li:last-child { border-bottom: 1px solid rgba(34,56,44,.18); }
.fil .n { font-family: "Orpheus Pro", serif; font-size: 1.7cqw; color: var(--vert); }
.fil .t { font-family: "Orpheus Pro", serif; font-size: 1.5cqw; color: var(--vert-fonce); }
.fil .d { font-weight: 300; font-size: .95cqw; line-height: 1.6; margin-top: .25cqw; }
.clair .fil li { border-color: rgba(255,255,255,.35); } .clair .fil .n, .clair .fil .t, .clair .fil .d { color: #fff; }

/* Lignes de détail sobres (pas de cartes, pas de pastilles-icônes) */
.lignes { list-style: none; display: grid; gap: .7cqw; }
.lignes li { font-weight: 300; font-size: 1.05cqw; line-height: 1.6; padding-left: 1.3cqw; position: relative; }
.lignes li::before { content: ""; position: absolute; left: 0; top: .75cqw; width: .45cqw; height: 1px; background: var(--vert); }
.clair .lignes li::before { background: #fff; }

/* Bouton d'appel (contact) */
.cta { display: inline-block; background: var(--jaune); color: var(--vert-fonce); font-weight: 600; font-size: 1cqw; letter-spacing: .05cqw;
  text-decoration: none; padding: 1cqw 2.4cqw; border-radius: 100px; }
.mail { color: #fff; font-size: 1cqw; text-decoration: underline; text-underline-offset: .3cqw; }

/* Pastille à confirmer (valeurs en attente de Pauline) */
.a-confirmer { background: #fcf292; color: #2a2420; border-radius: .3cqw; padding: .05cqw .45cqw; font-weight: 500; font-size: .9em; white-space: nowrap; }

/* ---------- Impression : une planche par page 1920 x 1080 ---------- */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { height: auto; overflow: visible; background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .actions, .nav, .progress, .toast, .topbar, .sections { display: none !important; }
  .plaq { position: static; }
  .rail { display: block; height: auto; overflow: visible; scroll-snap-type: none; }
  .slide { width: 1920px; height: 1080px; padding: 0; display: block; break-after: page; page-break-after: always; break-inside: avoid; background: #fff; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .board { width: 1920px; height: 1080px; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .rail { scroll-behavior: auto; } }
