@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/polices/barlow-condensed-600.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/polices/barlow-condensed-700.ttf") format("truetype"); }

:root {
  --fond: #F4F1EA; --feuille: #FBF9F5; --enfonce: #E9E4DA; --trait: #D6D0C4;
  --encre: #16140F; --encre2: #5E5950; --encre3: #736C60;
  /* L'orange de l'app marque ce qui a bougé ; sa version texte reste lisible sur le papier. */
  --signal: #FF4A1C; --signal-texte: #E8450F; --signal-fond: #FFE4DA;
  --soleil: #8A5700; --alerte: #C81E1E;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0A0A0B; --feuille: #141416; --enfonce: #1E1E21; --trait: #2C2C30;
    --encre: #F1EDE4; --encre2: #A39D92; --encre3: #8A8478;
    --signal: #FF6A3D; --signal-texte: #FF8C42; --signal-fond: #3A1A0F;
    --soleil: #E9A63C; --alerte: #FF5C5C;
  }
  .marque img { filter: invert(1); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
img, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--signal-fond); color: var(--encre); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

.tete, main, .pied { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.tete { display: flex; justify-content: space-between; align-items: center; padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 20px; }
.tete nav a { font-weight: 600; text-decoration: none; }
.tete nav a:hover { text-decoration: underline; }

h1, h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 36px); margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 6px; }
.chapo { font-size: 20px; color: var(--encre2); max-width: 34em; }

/* ───────── Accueil : le jour J, en grand ─────────
   Une idée par écran : un titre court, une phrase, un téléphone où l'app vit. */

.pictos { position: absolute; width: 0; height: 0; overflow: hidden; }
.bientot { margin: 0; font-weight: 600; }
.bientot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--signal); vertical-align: 2px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton { display: inline-flex; flex-direction: column; padding: 12px 20px; border-radius: 12px; background: var(--encre); color: var(--fond); text-decoration: none; font-weight: 700; line-height: 1.2; }
.bouton small { font-weight: 500; font-size: 12px; opacity: 0.75; }
.note { font-size: 14px; color: var(--encre3); }

/* 1. L'ouverture */
.une { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 48px; padding: 24px 0 72px; }
.une-texte { justify-self: stretch; }
.une h1 { font-size: clamp(54px, 15vw, 116px); line-height: 0.9; letter-spacing: -0.025em; margin: 0 0 22px; }
.une .chapo { margin: 0 0 28px; max-width: 24em; }
@media (min-width: 880px) {
  .une { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; min-height: calc(100svh - 76px); padding: 8px 0 56px; }
  .une h1 { font-size: clamp(64px, 8.6vw, 116px); }
  .une .chapo { font-size: 21px; }
}

/* Les heures de la journée défilent en grand derrière le téléphone, comme dans le film « L'heure juste ». */
.filigrane { position: absolute; z-index: -1; top: 0; bottom: 0; right: -20px; width: min(100% + 40px, 720px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.defile { display: flex; flex-direction: column; align-items: flex-end; padding-right: 4px; }
.defile span { font: 700 clamp(120px, 34vw, 230px)/0.96 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--encre); opacity: 0.05; }
@media (max-width: 879px) { .filigrane { top: auto; height: 78%; } .defile { align-items: center; } }
@media (prefers-reduced-motion: no-preference) {
  .defile { animation: defiler 90s linear infinite; }
  .une-texte > * { animation: monte 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .une-texte > :nth-child(2) { animation-delay: 0.08s; }
  .une-texte > :nth-child(3) { animation-delay: 0.16s; }
  .une .iphone { animation: monte 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards; }
}
@keyframes defiler { to { transform: translateY(-50%); } }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }

/* L'iPhone, dessiné ici : un cadre, une vitre, l'île. L'écran est l'app recréée avec ses propres couleurs. */
.iphone { --l: min(300px, 74vw); position: relative; margin: 0; flex: none; width: var(--l); padding: calc(var(--l) * 0.034); border-radius: calc(var(--l) * 0.165); background: #1C1B18;
  box-shadow: inset 0 0 0 1.5px #3E3C36, 0 1px 0 1px rgb(22 20 15 / 0.06), 0 50px 90px -40px rgb(22 20 15 / 0.55), 0 20px 40px -24px rgb(22 20 15 / 0.35); }
.iphone::before { content: ""; position: absolute; z-index: 2; top: calc(var(--l) * 0.058); left: 50%; width: calc(var(--l) * 0.29); height: calc(var(--l) * 0.085); border-radius: 99px; background: #000; transform: translateX(-50%); }
.vitre { container-type: inline-size; aspect-ratio: 393 / 852; border-radius: calc(var(--l) * 0.132); overflow: hidden; }
@media (min-width: 880px) { .une .iphone { --l: min(330px, calc((100svh - 150px) * 0.47)); } }
@media (prefers-color-scheme: dark) {
  .iphone { background: #24231F; box-shadow: inset 0 0 0 1.5px #4D4A43, 0 0 0 1px rgb(255 255 255 / 0.07), 0 50px 90px -40px rgb(0 0 0 / 0.9); }
}

/* L'écran de l'app : tailles de src/ui/tokens.ts, sur un écran de 393 points. */
.ecran {
  --u: calc(100cqw / 393);
  --a-fond: #F4F1EA; --a-feuille: #FBF9F5; --a-enfonce: #E9E4DA; --a-trait: #D6D0C4; --a-trait-fort: #B9B2A4;
  --a-encre: #16140F; --a-encre2: #5E5950; --a-encre3: #948D80;
  --a-signal: #FF4A1C; --a-signal-fond: #FFE4DA; --a-soleil: #C9820A; --a-alerte: #C81E1E;
  position: relative; height: 100%; overflow: hidden; background: var(--a-fond); color: var(--a-encre);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: calc(15 * var(--u)); line-height: 1.3;
  -webkit-user-select: none; user-select: none;
}
@media (prefers-color-scheme: dark) {
  .ecran {
    --a-fond: #0A0A0B; --a-feuille: #141416; --a-enfonce: #1E1E21; --a-trait: #2C2C30; --a-trait-fort: #46464C;
    --a-encre: #F1EDE4; --a-encre2: #A39D92; --a-encre3: #6B665C;
    --a-signal: #FF6A3D; --a-signal-fond: #3A1A0F; --a-soleil: #E9A63C; --a-alerte: #FF5C5C;
  }
}
.ecran svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ecran ol { list-style: none; margin: 0; padding: 0; }
.ecran b { font-weight: inherit; }
.statut { height: calc(54 * var(--u)); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 calc(30 * var(--u)) calc(12 * var(--u)) calc(38 * var(--u)); }
.statut > b { font-size: calc(16 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.statut-i { display: flex; align-items: center; gap: calc(5 * var(--u)); }
.barres { display: flex; align-items: flex-end; gap: calc(1.5 * var(--u)); height: calc(11 * var(--u)); }
.barres i { width: calc(3 * var(--u)); border-radius: calc(1 * var(--u)); background: var(--a-encre); }
.barres i:nth-child(1) { height: 36%; } .barres i:nth-child(2) { height: 55%; } .barres i:nth-child(3) { height: 73%; } .barres i:nth-child(4) { height: 100%; }
.batterie { display: block; width: calc(24 * var(--u)); height: calc(11 * var(--u)); padding: calc(1 * var(--u)); border: calc(1 * var(--u)) solid var(--a-encre3); border-radius: calc(3.5 * var(--u)); }
.batterie i { display: block; height: 100%; border-radius: calc(2 * var(--u)); background: var(--a-encre); }
.nav { height: calc(44 * var(--u)); display: flex; align-items: center; padding: 0 calc(20 * var(--u)); gap: calc(20 * var(--u)); }
.nav b { flex: 1; text-align: center; font: 600 calc(22 * var(--u)) / 1.18 "Barlow Condensed", sans-serif; }
.cap { font-size: calc(11 * var(--u)); line-height: calc(14 * var(--u)); font-weight: 600; letter-spacing: calc(0.9 * var(--u)); text-transform: uppercase; color: var(--a-encre3); }
.t13 { font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); }
.doux { color: var(--a-encre2); }
.vif { color: var(--a-signal); font-weight: 600; }
.t17 { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(22 * var(--u)); font-weight: 600; }
.t17 svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke: var(--a-soleil); stroke-width: 2.2; }
.t22 { font: 600 calc(22 * var(--u)) / calc(26 * var(--u)) "Barlow Condensed", sans-serif; }
.h28, .h40, .h72 { font-family: "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.h28 { font-size: calc(28 * var(--u)); line-height: calc(32 * var(--u)); font-weight: 600; }
.h40 { font-size: calc(40 * var(--u)); line-height: calc(44 * var(--u)); font-weight: 700; }
.h72 { font-size: calc(72 * var(--u)); line-height: calc(72 * var(--u)); font-weight: 700; color: var(--a-signal); }

.bandeau { position: relative; height: calc(32 * var(--u)); display: flex; align-items: center; padding: 0 calc(20 * var(--u)); background: var(--a-signal-fond); transition: background-color 0.5s; }
.bandeau > span { position: absolute; font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: calc(0.9 * var(--u)); text-transform: uppercase; transition: opacity 0.4s; }
.bandeau .a-l-heure { color: var(--a-encre3); opacity: 0; }
.bandeau .en-retard { color: var(--a-signal); }
[data-retard="0"] .bandeau { background-color: transparent; }
[data-retard="0"] .bandeau .a-l-heure { opacity: 1; }
[data-retard="0"] .bandeau .en-retard { opacity: 0; }

.ancre { padding: calc(12 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u)); border-bottom: calc(2 * var(--u)) solid var(--a-trait-fort); }
.rang { display: flex; justify-content: space-between; align-items: flex-end; }
.rang .t13 { color: var(--a-encre2); }
.ensuite { margin-top: calc(16 * var(--u)); }
.ensuite-ligne { display: flex; gap: calc(12 * var(--u)); align-items: flex-start; margin-top: calc(4 * var(--u)); }
.ensuite-ligne > div { padding-top: calc(6 * var(--u)); }
.prevue { font-size: calc(13 * var(--u)); font-weight: 400; color: var(--a-encre3); font-variant-numeric: tabular-nums; transition: opacity 0.4s; }
.ensuite-ligne .prevue { margin-right: calc(8 * var(--u)); }
.t17 .prevue { margin-left: auto; }
[data-retard="0"] .prevue { opacity: 0; }

.liste li { position: relative; min-height: calc(72 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(20 * var(--u)); border-top: calc(1 * var(--u)) solid var(--a-trait); }
.liste .h28 { width: calc(64 * var(--u)); flex: none; text-align: right; transition: color 0.4s; }
.liste [data-h] { color: var(--a-signal); }
[data-retard="0"] .liste [data-h] { color: inherit; }
.rail { width: calc(2 * var(--u)); align-self: stretch; flex: none; background: var(--a-trait-fort); }
.liste li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(2 * var(--u)); padding-left: calc(4 * var(--u)); }
.liste [data-dans] { color: var(--a-encre2); font-weight: 600; }
.liste .maintenant { border-top: calc(2 * var(--u)) solid var(--a-signal); background: var(--a-feuille); }
.liste .maintenant .h28 { color: var(--a-signal); }
/* Un moment passé s'efface, comme dans l'app (src/ui/LigneFeuille.tsx). */
.liste .passe .h28, .liste .passe .t17, .liste .passe .t13 { color: var(--a-encre3); }
.passe .rail { background: var(--a-trait); }
.passe.fixe .rail::after { background: var(--a-encre3); }
/* Un carré plein sur le trait marque un point fixe, comme dans l'app (src/ui/Rail.tsx). */
.rail { position: relative; }
.fixe .rail::after { content: ""; position: absolute; top: calc(14 * var(--u)); left: 50%; width: calc(10 * var(--u)); height: calc(10 * var(--u)); margin-left: calc(-5 * var(--u)); background: var(--a-encre); }
.marge { font-weight: 600; }
.marge[data-niveau="ok"] { color: var(--a-encre2); }
.marge[data-niveau="attention"] { color: var(--a-soleil); }
.marge[data-niveau="alerte"] { color: var(--a-alerte); }
.liste .coucher { border-top: calc(1 * var(--u)) dashed var(--a-trait-fort); }
.coucher .h28, .coucher .t17 { color: var(--a-soleil); }
.coucher .t17 svg { stroke: currentColor; }
.entete { display: grid; gap: calc(2 * var(--u)); padding: calc(2 * var(--u)) calc(20 * var(--u)) calc(14 * var(--u)); }
.entete b { font: 700 calc(34 * var(--u)) / calc(36 * var(--u)) "Barlow Condensed", sans-serif; letter-spacing: -0.01em; }

.toast { position: absolute; left: calc(20 * var(--u)); right: calc(20 * var(--u)); bottom: calc(110 * var(--u)); height: calc(48 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--a-encre); color: var(--a-fond); opacity: 0; transform: translateY(calc(14 * var(--u))); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.toast span { flex: 1; }
.toast b { font-weight: 600; }
.toast-on .toast { opacity: 1; transform: none; }

.barre { position: absolute; left: 0; right: 0; bottom: 0; height: calc(98 * var(--u)); display: flex; align-items: flex-start; background: var(--a-feuille); border-top: calc(2 * var(--u)) solid var(--a-trait-fort); }
.barre > span { height: calc(64 * var(--u)); display: flex; align-items: center; justify-content: center; }
.barre-tel { width: calc(56 * var(--u)); }
.barre-retard { position: relative; flex: 1; gap: calc(6 * var(--u)); border-left: calc(1 * var(--u)) solid var(--a-trait); font: 600 calc(22 * var(--u)) / calc(26 * var(--u)) "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.barre-retard .a-l-heure { display: none; color: var(--a-encre2); }
.barre-retard .en-retard { color: var(--a-signal); }
[data-retard="0"] .barre-retard .a-l-heure { display: inline; }
[data-retard="0"] .barre-retard .en-retard { display: none; }
.barre-retard svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--a-encre2); }
.onde { position: absolute; left: 50%; top: 50%; width: calc(84 * var(--u)); height: calc(84 * var(--u)); margin: calc(-42 * var(--u)) 0 0 calc(-42 * var(--u)); border-radius: 50%; background: var(--a-encre); opacity: 0; pointer-events: none; }
.onde.tape { animation: onde 0.65s ease-out; }
@keyframes onde { from { opacity: 0.16; transform: scale(0.35); } to { opacity: 0; transform: scale(1.35); } }
.barre-suivant { width: calc(140 * var(--u)); gap: calc(2 * var(--u)); background: var(--a-signal); color: #16140F; font: 700 calc(22 * var(--u)) / calc(26 * var(--u)) "Barlow Condensed", sans-serif; }
.barre-suivant svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); stroke-width: 2.6; }
.accueil-ios { position: absolute; left: 50%; bottom: calc(8 * var(--u)); width: calc(134 * var(--u)); height: calc(5 * var(--u)); margin-left: calc(-67 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--a-encre); }

/* Les chiffres qui roulent (posés par accueil.js). */
.roule { position: relative; display: inline-block; white-space: pre; }
.roule > span:first-child { display: inline-block; animation: entre 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 60ms) backwards; }
.roule > .sort { position: absolute; left: 0; top: 0; animation: sort 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 60ms) forwards; }
@keyframes entre { from { opacity: 0; transform: translateY(0.5em); } }
@keyframes sort { to { opacity: 0; transform: translateY(-0.5em); } }

/* 2. « Un retard ? Tout se recale. » Le défilement pose le retard dans le téléphone. */
.recale { border-top: 2px solid var(--encre); }
.recale-scene { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "texte texte" "compteur iphone"; align-items: end; gap: 28px 12px; padding: 40px 0 56px; }
.recale-texte { grid-area: texte; }
.recale .iphone { grid-area: iphone; --l: min(58vw, 300px); }
.recale h2 { margin: 0 0 14px; font-size: clamp(40px, 11vw, 92px); line-height: 0.92; letter-spacing: -0.02em; }
.recale-texte p { margin: 0; max-width: 24em; color: var(--encre2); font-size: 17px; }
.compteur { grid-area: compteur; align-self: center; margin: 0; display: flex; flex-direction: column; color: var(--signal-texte); transition: color 0.5s; }
.compteur-n { font: 700 clamp(48px, 16vw, 220px)/0.82 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; }
.compteur-u { font: 700 clamp(22px, 5vw, 48px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15em; }
.compteur.zero { color: var(--trait); }
@media (prefers-reduced-motion: no-preference) {
  .compteur.plein .compteur-n { animation: bombe 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
}
@keyframes bombe { 40% { transform: scale(1.06); } }
@media (min-width: 880px) {
  .recale-scene { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "texte iphone" "compteur iphone"; align-items: center; gap: 0 64px; padding: 72px 0; }
  .recale-texte { align-self: end; }
  .recale-texte p { font-size: 20px; }
  .compteur { align-self: start; margin-top: 32px; flex-direction: row; align-items: baseline; gap: 0.3em; }
  .recale .iphone { --l: min(330px, calc((100svh - 100px) * 0.47)); }
}
/* Quand l'animation est permise, la section devient une course : le téléphone reste à l'écran pendant qu'on défile. */
.recale.anime { height: 300svh; }
.recale.anime .recale-scene { position: sticky; top: 0; min-height: 100svh; align-content: center; padding: 20px 0; }
@media (max-width: 879px) { .recale.anime .iphone { --l: min(58vw, 300px, calc((100svh - 250px) * 0.47)); } }

/* 3. « Tout ce qu’on vous envoie. Une seule feuille. » Les heures filent des documents vers l’app. */
.propre, .verrou, .equipe, .lumiere-site { border-top: 2px solid var(--encre); padding: 64px 0 72px; }
.propre h2, .verrou h2, .equipe h2, .lumiere-site h2 { margin: 0 0 14px; font-size: clamp(40px, 11vw, 92px); line-height: 0.92; letter-spacing: -0.02em; }
.propre-texte p, .verrou-texte p, .equipe-texte p:last-child, .lumiere-texte p { margin: 0; max-width: 26em; color: var(--encre2); font-size: 17px; }
.propre { display: grid; gap: 40px; }
.propre-texte { max-width: 40em; }

/* La scène : trois documents tels qu'ils arrivent, et l'écran « moments trouvés » de l'app (app/feuille/verification.tsx).
   Tout se place en largeur de scène (cqw), et chaque document met son texte à sa propre échelle. */
.depot { position: relative; margin: 0; container-type: inline-size; aspect-ratio: 100 / 220; }
.depot > * { position: absolute; }
.doc { container-type: inline-size; transform: rotate(var(--r, 0deg)); }
.pdf { left: 0; top: 2cqw; width: 62cqw; --r: -3deg; z-index: 1; }
.carnet { left: 50cqw; top: 9cqw; width: 48cqw; --r: 5deg; z-index: 2; }
.message { left: 30cqw; top: 66cqw; width: 68cqw; --r: -1.5deg; z-index: 3; }
.depot .iphone { left: 23cqw; top: 105cqw; --l: 54cqw; }

.depot mark { color: inherit; font-weight: 700; border-radius: 0.15em; padding: 0 0.12em; margin: 0 -0.12em;
  background: linear-gradient(rgb(255 106 61 / 0.38), rgb(255 106 61 / 0.38)) 0 50% / 100% 100% no-repeat; transition: background-size 0.35s ease-out; }
.depot.pret mark:not(.lu) { background-size: 0% 100%; }

/* Le PDF du wedding planner. */
.pdf-nom { display: flex; align-items: center; gap: 0.6em; margin: 0 0 2.4cqw; font-size: max(10px, 3.6cqw); font-weight: 600; color: var(--encre2); }
.pdf-badge { padding: 0.15em 0.45em; border-radius: 0.3em; background: #D93A2B; color: #fff; font-size: 0.8em; letter-spacing: 0.05em; }
.pdf-page { padding: 7cqw 7cqw 8cqw; background: #FFFEFC; color: #26231D; box-shadow: 0 1px 0 rgb(22 20 15 / 0.06), 0 24px 44px -26px rgb(22 20 15 / 0.5); }
.pdf-titre { margin: 0; font: italic 400 7.4cqw/1.1 Georgia, "Times New Roman", serif; }
.pdf-sous { margin: 1.4cqw 0 5cqw; padding-bottom: 4cqw; border-bottom: 0.4cqw solid #C9B99A; font-size: 3.8cqw; color: #6E675C; letter-spacing: 0.02em; }
.pdf dl { display: grid; grid-template-columns: auto 1fr; gap: 4cqw 5cqw; margin: 0 0 6cqw; font-size: 4.6cqw; line-height: 1.25; }
.pdf dt { font: 700 4.8cqw/1.25 Georgia, serif; font-variant-numeric: tabular-nums; }
.pdf dd { margin: 0; display: grid; }
.pdf dd small { font-size: 3.6cqw; color: #6E675C; }
.pdf-ligne { display: block; height: 1.8cqw; margin-top: 2.6cqw; border-radius: 1cqw; background: #ECE7DE; }
.pdf-ligne.courte { width: 62%; }

/* La photo d'une page de carnet, scotchée. */
.carnet-page { padding: 7cqw 6cqw 12cqw 16cqw; border: 3.5cqw solid #FFFEFB; border-bottom-width: 12cqw; color: #22408C;
  background: linear-gradient(90deg, transparent 11cqw, rgb(214 72 72 / 0.55) 11cqw 11.5cqw, transparent 11.5cqw),
    repeating-linear-gradient(transparent 0 calc(11cqw - 1px), rgb(70 110 190 / 0.3) calc(11cqw - 1px) 11cqw), #F7F2E6;
  background-position: 0 0, 0 1.5cqw, 0 0;
  box-shadow: 0 1px 0 rgb(22 20 15 / 0.08), 0 24px 40px -24px rgb(22 20 15 / 0.55); }
.carnet-page p { margin: 0 0 4.4cqw; font: 600 8.6cqw/11cqw "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; transform: rotate(-1.5deg); }
.carnet-page p + p { margin-left: 7cqw; transform: rotate(-3deg); }
.scotch { position: absolute; z-index: 1; top: -3.5cqw; left: 32%; width: 34%; height: 9cqw; background: rgb(240 226 180 / 0.75); transform: rotate(-4deg); box-shadow: 0 1px 2px rgb(22 20 15 / 0.12); }

/* Le message de la mariée. */
.msg { padding: 4.4cqw 4.4cqw 5cqw; border-radius: 5cqw; background: #FFFFFF; color: #111; box-shadow: 0 1px 0 rgb(22 20 15 / 0.06), 0 24px 44px -26px rgb(22 20 15 / 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.msg-de { display: flex; align-items: center; gap: 2.4cqw; margin: 0 0 3cqw; font-size: 4cqw; font-weight: 600; color: #6B6B70; }
.msg-de i { display: grid; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; background: #B7A58B; color: #fff; font-style: normal; font-size: 3.8cqw; }
.bulle { width: fit-content; max-width: 88%; margin: 0 0 1.4cqw; padding: 2.4cqw 4cqw; border-radius: 4.6cqw; background: #E9E9EB; font-size: 4.8cqw; line-height: 1.3; }
.bulle:last-child { margin: 0; border-bottom-left-radius: 1.2cqw; }

@media (prefers-color-scheme: dark) {
  .pdf-page, .carnet-page { filter: brightness(0.9); }
  .msg { background: #1C1C1E; color: #F2F2F2; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 44px -26px rgb(0 0 0 / 0.9); }
  .bulle { background: #2C2C2E; }
  .msg-de { color: #9A9AA0; }
}

/* L'écran « moments trouvés ». */
.d-tete { display: flex; align-items: center; justify-content: space-between; height: calc(44 * var(--u)); padding: 0 calc(20 * var(--u)); }
.d-tete span { font-size: calc(15 * var(--u)); font-weight: 600; color: var(--a-encre2); }
.d-aide { margin: calc(4 * var(--u)) calc(20 * var(--u)) calc(14 * var(--u)); }
.d-liste li { min-height: calc(62 * var(--u)); transition: opacity 0.35s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.d-ajout { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(28 * var(--u)); display: grid; place-items: center; height: calc(52 * var(--u)); margin: 0;
  border-radius: calc(6 * var(--u)); background: var(--a-signal); color: #fff; font-size: calc(17 * var(--u)); font-weight: 600; transition: opacity 0.4s; }
.depot.pret .d-liste li:not(.arrive) { opacity: 0; transform: translateY(calc(10 * var(--u))); }
.depot .arrive .h28 { animation: arrive 1s ease-out; }
@keyframes arrive { from { color: var(--a-signal); } }
.depot.pret:not(.fini) .d-ajout { opacity: 0.35; }
.depot.fini .d-ajout { animation: bombe 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* L'heure qui file du document vers l'app, et se met au format en route. */
.vol { z-index: 10; pointer-events: none; padding: 0.1em 0.4em; border-radius: 0.3em; background: var(--signal); color: #fff;
  font: 700 clamp(15px, 1.8vw, 20px)/1.1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgb(255 74 28 / 0.6); }

@media (min-width: 880px) {
  .depot { aspect-ratio: 100 / 59.5; }
  .pdf { left: 0; top: 3cqw; width: 31cqw; --r: -4deg; }
  .carnet { left: 34cqw; top: 5cqw; width: 23cqw; --r: 6deg; }
  .message { left: 9cqw; top: 36cqw; width: 33cqw; --r: -1.5deg; }
  .depot .iphone { left: auto; right: 1cqw; top: 0; --l: 27.5cqw; }
}
@media (min-width: 880px) {
  .propre { gap: 56px; padding: 96px 0; }
  .propre-texte p, .verrou-texte p, .equipe-texte p:last-child, .lumiere-texte p { font-size: 20px; }
}

/* 4. « Sans déverrouiller. » L'encart de PLEIA sur l'écran verrouillé (widgets/EncartTerrain.ios.tsx). */
.verrou { display: grid; gap: 40px; justify-items: center; }
.verrou-texte { justify-self: stretch; }
.verrou .iphone { --l: min(300px, 74vw); }
.verrouille { --u: calc(100cqw / 393); position: relative; height: 100%; overflow: hidden; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(120% 70% at 50% 108%, #F28A3B 0%, #C2522E 28%, #5B2A3E 58%, #1E1A33 100%); }
.verrouille svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-haut { display: flex; justify-content: center; padding-top: calc(62 * var(--u)); opacity: 0.9; }
.v-haut svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.v-date { margin: calc(6 * var(--u)) 0 0; text-align: center; font-size: calc(20 * var(--u)); font-weight: 600; opacity: 0.85; }
.v-heure { margin: calc(-6 * var(--u)) 0 0; text-align: center; font-size: calc(104 * var(--u)); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.92); }
.encart { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(118 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(24 * var(--u)); background: rgb(20 18 20 / 0.62); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); display: grid; gap: calc(6 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.25; transition: opacity 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.encart p { margin: 0; }
.e-ligne { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.e-ligne > b { font-weight: 600; }
.e-ligne > b:first-child { flex: 1; }
.e-retard { font-weight: 700; color: #FF5C5C; font-variant-numeric: tabular-nums; }
.e-gris { color: rgb(235 235 245 / 0.6); }
.e-maint { font-size: calc(12 * var(--u)); }
.e-ensuite { display: flex; gap: calc(10 * var(--u)); align-items: flex-end; }
.e-ensuite p { display: grid; }
.e-cap { font-size: calc(11 * var(--u)); font-weight: 600; text-transform: uppercase; color: rgb(235 235 245 / 0.6); }
.e-ensuite p:first-child b { font-size: calc(26 * var(--u)); line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.e-ensuite p:last-child b { font-size: calc(17 * var(--u)); font-weight: 600; }
.e-signal { font-weight: 700; color: #FF6A3D; }
.e-petit { font-size: calc(13 * var(--u)); }
.e-petit .e-gris { width: calc(40 * var(--u)); font-variant-numeric: tabular-nums; }
.e-petit svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); margin-left: auto; stroke: #E9A63C; }
.e-maj { font-size: calc(11 * var(--u)); color: rgb(235 235 245 / 0.3); }
.v-bas { position: absolute; left: calc(46 * var(--u)); right: calc(46 * var(--u)); bottom: calc(46 * var(--u)); display: flex; justify-content: space-between; }
.v-bas span { display: grid; place-items: center; width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%; background: rgb(255 255 255 / 0.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v-bas svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.verrouille .accueil-ios { background: #fff; }
.pret .encart { opacity: 0; transform: translateY(calc(40 * var(--u))) scale(0.96); }
.pret.vu .encart { opacity: 1; transform: none; }
@media (min-width: 880px) {
  .verrou { grid-template-columns: auto minmax(0, 1fr); gap: 80px; align-items: center; padding: 96px 0; }
  .verrou .iphone { --l: min(330px, calc((100svh - 100px) * 0.47)); }
}

/* 5. « Votre équipe suit, en direct. » La page du lien partagé (web/partage), chez le DJ et chez l'assistant. */
.equipe { display: grid; gap: 40px; }
.direct { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--encre2); }
.direct i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.direct i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal); }
@media (prefers-reduced-motion: no-preference) { .direct i::after { animation: pulse 1.8s ease-out infinite; } }
@keyframes pulse { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(3); } }
.equipe-tels { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.equipe-tels figure { margin: 0; display: grid; justify-items: center; align-content: start; gap: 14px; }
.equipe-tels figure:last-child { margin-top: 56px; }
.equipe-tels figcaption { font: 700 20px/1 "Barlow Condensed", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre2); }
.equipe .iphone { --l: min(44vw, 290px); }
.web .w-page { padding: calc(8 * var(--u)) calc(16 * var(--u)) 0; }
.w-page p { margin: 0; }
.w-titre { margin: calc(4 * var(--u)) 0 calc(2 * var(--u)) !important; font: 700 calc(40 * var(--u)) / 1.05 "Barlow Condensed", sans-serif; letter-spacing: -0.01em; }
.w-bande { position: relative; height: calc(38 * var(--u)); margin: calc(14 * var(--u)) calc(-16 * var(--u)) 0 !important; background: var(--a-signal-fond); transition: background-color 0.5s; }
.w-bande > span { position: absolute; left: calc(16 * var(--u)); top: 50%; transform: translateY(-50%); font-size: calc(13 * var(--u)); font-weight: 700; letter-spacing: calc(0.9 * var(--u)); text-transform: uppercase; transition: opacity 0.4s; }
.w-bande .a-l-heure { color: var(--a-encre2); opacity: 0; }
.w-bande .en-retard { color: var(--a-signal); }
[data-retard="0"] .w-bande { background: var(--a-enfonce); }
[data-retard="0"] .w-bande .a-l-heure { opacity: 1; }
[data-retard="0"] .w-bande .en-retard { opacity: 0; }
.w-bloc { padding: calc(14 * var(--u)) 0; border-bottom: calc(2 * var(--u)) solid var(--a-encre); }
.w-t { font-size: calc(20 * var(--u)); font-weight: 700; margin-top: calc(4 * var(--u)) !important; }
.w-ens { margin-top: calc(14 * var(--u)) !important; }
.w-bloc .h40 { margin-top: calc(2 * var(--u)) !important; }
.web .liste li { margin: 0 calc(-20 * var(--u)) 0 calc(-28 * var(--u)); }
.w-maj { margin-top: calc(14 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--a-encre3); transition: color 0.4s; }
.w-maj.frais { color: var(--a-signal); }
.w-onglets { display: flex; gap: calc(8 * var(--u)); margin: calc(14 * var(--u)) 0 calc(4 * var(--u)) !important; }
.w-onglets span { flex: 1; padding: calc(10 * var(--u)); border: calc(1 * var(--u)) solid var(--a-trait); border-radius: calc(8 * var(--u)); text-align: center; font-size: calc(15 * var(--u)); font-weight: 600; color: var(--a-encre2); }
.w-onglets .choisi { background: var(--a-encre); border-color: var(--a-encre); color: var(--a-fond); }
.w-compte { margin: calc(12 * var(--u)) 0 calc(4 * var(--u)) !important; font: 700 calc(28 * var(--u)) / 1.1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.w-photos { list-style: none; margin: 0; padding: 0; }
.w-photos li { display: flex; gap: calc(14 * var(--u)); align-items: flex-start; padding: calc(12 * var(--u)) 0; border-top: calc(1 * var(--u)) solid var(--a-trait); }
.w-photos i { position: relative; width: calc(30 * var(--u)); height: calc(30 * var(--u)); flex: none; border: calc(2 * var(--u)) solid var(--a-trait-fort); border-radius: calc(6 * var(--u)); transition: background-color 0.25s, border-color 0.25s; }
.w-photos i::after { content: ""; position: absolute; left: 32%; top: 14%; width: 26%; height: 50%; border: solid var(--a-fond); border-width: 0 calc(3 * var(--u)) calc(3 * var(--u)) 0; transform: rotate(45deg) scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.w-photos span { display: grid; gap: calc(2 * var(--u)); }
.w-photos b { font-size: calc(17 * var(--u)); font-weight: 700; transition: color 0.3s; }
.w-photos small { font-size: calc(14 * var(--u)); color: var(--a-encre2); }
.w-photos .fait i { background: var(--a-encre); border-color: var(--a-encre); }
.w-photos .fait i::after { transform: rotate(45deg) scale(1); }
.w-photos .fait b { text-decoration: line-through; color: var(--a-encre3); }
.safari { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(26 * var(--u)); height: calc(48 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); border-radius: calc(24 * var(--u)); background: var(--a-feuille); box-shadow: 0 0 0 calc(1 * var(--u)) var(--a-trait), 0 calc(8 * var(--u)) calc(24 * var(--u)) rgb(0 0 0 / 0.12); font-size: calc(16 * var(--u)); }
.safari svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
@media (min-width: 880px) {
  .equipe { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; padding: 96px 0; }
  .equipe-tels { gap: 28px; }
  .equipe .iphone { --l: min(270px, calc((100svh - 160px) * 0.47)); }
}

/* 6. « La lumière, à la minute. » Le soleil descend sur la ligne des heures. --t va de 0 (18:00) à 1 (21:00). */
.lumiere-site { display: grid; gap: 36px; }
.ciel { margin: 0; }
.ciel-fond { position: relative; height: clamp(180px, 30vw, 300px); overflow: hidden; border-bottom: 2px solid var(--encre);
  background: linear-gradient(to right, transparent 56.7%, color-mix(in srgb, var(--soleil) 7%, transparent) 56.7% 78.3%, transparent 78.3%); }
.ciel-fond::before, .ciel-fond::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--soleil); opacity: 0.6; }
.ciel-fond::before { left: 56.7%; }
.ciel-fond::after { left: 78.3%; }
.doree { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, #F28A3B 38%, transparent), transparent 75%); opacity: calc((var(--t) - 0.5) * 3); }
.astre { position: absolute; left: calc(var(--t) * 100%); top: calc(var(--t) / 0.783 * 100%); }
.astre i { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #F2A33B; box-shadow: 0 0 0 10px color-mix(in srgb, #F2A33B 22%, transparent), 0 0 60px 20px color-mix(in srgb, #F28A3B 45%, transparent); }
.astre b { position: absolute; left: 40px; top: -40px; font: 700 28px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; color: var(--soleil); white-space: nowrap; }
.heures { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font: 600 15px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; color: var(--encre3); }
.heures li { padding-top: 10px; width: 0; display: flex; justify-content: center; }
.reperes { position: relative; height: 64px; margin: 14px 0 0; }
.reperes span { position: absolute; top: 0; display: grid; transform: translateX(-50%); color: var(--soleil); font-weight: 600; font-size: 14px; text-align: center; white-space: nowrap; }
.reperes b { font: 700 30px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.r-doree { left: 56.7%; }
.r-coucher { left: 78.3%; }
@media (max-width: 879px) { .heures li:nth-child(even) { visibility: hidden; } .reperes { height: 112px; } .reperes span { font-size: 13px; } .reperes b { font-size: 24px; } .r-doree { top: 52px !important; } .verrou-texte { order: -1; } }
@media (min-width: 880px) { .lumiere-site { padding: 96px 0; } .lumiere-texte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; } }

/* 7. Le reste, en quatre tuiles. */
.aussi ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.aussi li { display: grid; align-content: start; gap: 6px; padding: 24px 16px 28px 0; border-bottom: 1px solid var(--trait); }
.aussi li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--trait); }
.aussi svg { width: 26px; height: 26px; margin-bottom: 8px; fill: none; stroke: var(--encre); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aussi b { font: 700 24px/1.05 "Barlow Condensed", sans-serif; }
.aussi span { font-size: 15px; color: var(--encre2); }
@media (min-width: 880px) {
  .aussi ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aussi li, .aussi li:nth-child(even) { padding: 32px 24px 36px; border-left: 1px solid var(--trait); border-bottom: 0; }
  .aussi li:first-child { padding-left: 0; border-left: 0; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* La clôture */
.offre { padding: 112px 0 64px; border-top: 2px solid var(--encre); text-align: center; }
.offre h2 { margin: 0 auto 20px; max-width: 11em; font-size: clamp(44px, 9vw, 96px); line-height: 0.92; letter-spacing: -0.02em; }
.offre .tarif { margin: 0; color: var(--encre2); font-size: 18px; }
.offre .prix { font: 700 30px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; color: var(--encre); white-space: nowrap; }

/* Pages de texte */
.texte { max-width: 720px; padding-bottom: 32px; }
.texte h1 { font-size: clamp(36px, 6vw, 52px); }
.texte .maj { color: var(--encre3); font-size: 15px; }
.texte table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.texte th, .texte td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--trait); }
.texte th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--encre3); }
.texte li { margin: 4px 0; }
.texte details { border-bottom: 1px solid var(--trait); padding: 14px 0; }
.texte summary { font-weight: 700; cursor: pointer; }
.texte details p { color: var(--encre2); margin: 8px 0 0; }
.encadre { padding: 16px 0; border-top: 2px solid var(--encre); border-bottom: 1px solid var(--trait); margin: 24px 0; }

.pied { background: linear-gradient(var(--trait), var(--trait)) 20px 0 / calc(100% - 40px) 1px no-repeat; margin-top: 48px; padding-top: 24px; padding-bottom: max(32px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--encre2); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied p { color: var(--encre3); }
