  :root {
    --olive-deep: #3d4f2e;
    --olive: #5a6e3f;
    --olive-light: #8ba56a;
    --olive-pale: #c5d3a8;
    --olive-mist: #e8efd9;
    --sage: #87A085;
    --sage-deep: #6B8569;
    /* Marron taïga (plus clair et doux) */
    --taiga: #5a4030;
    --taiga-deep: #3e2c20;
    --taiga-light: #7a5a48;
    /* Anciennes refs chocolat -> redirigées vers taïga */
    --chocolate: #5a4030;
    --chocolate-deep: #3e2c20;
    --chocolate-light: #7a5a48;
    /* Ivoire (nouvelle teinte dominante) */
    --ivory: #F5EFE0;
    --ivory-warm: #EBE2CD;
    --ivory-deep: #DDD0B5;
    --cream: #F8F4ED;
    --cream-warm: #F1E8DA;
    --gold: #C9A96A;
    --gold-deep: #9a7e4a;
    --ink: #2a1f15;

    /* ============================================================
       SYSTÈME TYPOGRAPHIQUE — échelle unique appliquée à tout le site
       ============================================================ */
    /* Familles (rôles) */
    --font-script: 'Italianno', cursive;      /* titres décoratifs / noms */
    --font-serif:  'Cormorant Garamond', serif; /* corps de texte, dates */
    --font-sans:   'Tenor Sans', sans-serif;   /* eyebrows, libellés, captions */

    /* Échelle fluide (mobile → desktop) */
    --fs-display: clamp(4rem, 14vw, 9rem);     /* Hero — noms des mariés */
    --fs-h1:      clamp(3rem, 6.5vw, 4.75rem); /* Grand script (Save the Date) */
    --fs-h2:      clamp(2.2rem, 4.5vw, 3.2rem);/* Sous-titres (script) */
    --fs-h3:      clamp(1.5rem, 2.6vw, 2rem);  /* Titres serif */
    --fs-body-lg: clamp(1.1rem, 1.6vw, 1.3rem);/* Corps mis en avant */
    --fs-body:    clamp(1rem, 1.35vw, 1.15rem);/* Corps courant */
    --fs-caption: clamp(0.9rem, 1.25vw, 1rem); /* Légendes serif */
    --fs-eyebrow: 0.74rem;                      /* Libellés capitales */
    --fs-micro:   0.66rem;                      /* Mentions les plus fines */

    /* Rôles "papeterie de luxe" */
    --fs-title-caps:    clamp(1.45rem, 3vw, 2.15rem); /* Titres de section — capitales serif espacées */
    --fs-script-accent: clamp(1.9rem, 3.4vw, 2.7rem); /* Accent script au-dessus des titres */

    /* Interlettrage des capitales */
    --track-eyebrow: 0.4em;
    --track-label:   0.28em;
    --track-title:   0.24em;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  /* clip (et non hidden) : coupe le débordement horizontal sans transformer
     html/body en conteneurs de scroll — évite la double barre verticale */
  html, body { overflow-x: clip; }

  body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    cursor: none;
  }

  a, button, input, select, textarea, label { cursor: none; }

  /* ============ CURSEUR COLOMBE + FEUILLES ============ */
  .cursor-dove {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
    will-change: transform;
  }

  .cursor-dove svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    animation: doveFly 1.2s ease-in-out infinite;
  }

  @keyframes doveFly {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
  }

  .leaf-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
  }

  /* ============ ENVELOPPE D'INTRO ============ */
  .envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: 
      radial-gradient(ellipse at center, var(--ivory) 0%, var(--ivory-warm) 60%, var(--ivory-deep) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease, visibility 1.5s ease, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  /* L'instruction s'efface dès le début de l'ouverture (!important pour battre
     le remplissage de l'animation fadeUp) */
  .envelope-screen.active .envelope-instruction {
    opacity: 0 !important;
    transition: opacity 0.6s ease;
  }

  /* Révélation finale : zoom à fond accéléré dans la carte (origine sur la carte),
     accompagné du halo ivoire qui enveloppe l'écran */
  .envelope-screen.revealing {
    transform-origin: 50% 44%;
    animation: screenReveal 1.3s cubic-bezier(0.55, 0, 0.85, 0.36) forwards;
  }

  @keyframes screenReveal {
    0%   { transform: scale(1); opacity: 1; }
    55%  { opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
  }

  /* Halo lumineux qui éclôt depuis la lettre au moment de la révélation */
  .envelope-bloom {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: scale(0.2);
    transform-origin: 50% 42%;
    background: radial-gradient(circle at 50% 42%,
      rgba(255, 251, 240, 0.98) 0%,
      rgba(245, 239, 224, 0.9) 25%,
      rgba(245, 239, 224, 0) 62%);
  }

  .envelope-screen.revealing .envelope-bloom {
    animation: bloomIn 1.4s ease forwards;
  }

  @keyframes bloomIn {
    0%   { opacity: 0; transform: scale(0.2); }
    40%  { opacity: 1; }
    100% { opacity: 1; transform: scale(3); }
  }

  .envelope-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Ornements dorés sur l'écran enveloppe (au lieu des branches) */
  .env-ornament {
    position: absolute;
    width: 140px;
    height: 140px;
    color: var(--gold-deep);
    pointer-events: none;
    opacity: 0;
    animation: ornamentAppear 1.8s ease 0.6s forwards;
  }

  .env-ornament.top-left { top: 30px; left: 30px; }
  .env-ornament.top-right { top: 30px; right: 30px; }
  .env-ornament.bottom-left { bottom: 30px; left: 30px; }
  .env-ornament.bottom-right { bottom: 30px; right: 30px; }

  @keyframes ornamentAppear {
    to { opacity: 0.85; }
  }

  /* ============ ÉCRAN CODE D'ACCÈS ============ */
  .access-screen {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: 
      radial-gradient(ellipse at center, var(--ivory) 0%, var(--ivory-warm) 60%, var(--ivory-deep) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 1.5s ease, visibility 1.5s ease, transform 1.5s ease;
  }

  .access-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
  }

  .access-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    color: var(--gold-deep);
    pointer-events: none;
    opacity: 0;
    animation: ornamentAppear 1.5s ease 0.4s forwards;
  }

  .access-corner.top-left { top: 40px; left: 40px; }
  .access-corner.top-right { top: 40px; right: 40px; }
  .access-corner.bottom-left { bottom: 40px; left: 40px; }
  .access-corner.bottom-right { bottom: 40px; right: 40px; }

  .access-content {
    text-align: center;
    /* width 100% : sans elle, le flex parent (align-items center) réduit la
       largeur au contenu le plus large → champ trop étroit sur mobile */
    width: 100%;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 1.4s ease 0.7s forwards;
  }

  .access-monogram {
    font-family: 'Italianno', cursive;
    font-size: clamp(4rem, 9vw, 6rem);
    color: var(--taiga-deep);
    line-height: 1.2;
    margin-bottom: 1rem;
    padding: 0.1em 0.3em;
    display: inline-block;
    background: linear-gradient(180deg, var(--taiga-deep) 0%, var(--taiga) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .access-eyebrow {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--olive-deep);
    margin-bottom: 1rem;
  }

  .access-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--taiga);
    margin-bottom: 2.5rem;
  }

  .access-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .access-input {
    padding: 1rem 1.25rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--gold);
    color: var(--taiga-deep);
    transition: all 0.3s ease;
    cursor: text;
  }

  .access-input:focus {
    outline: none;
    border-color: var(--olive-deep);
    background: var(--ivory);
    box-shadow: 0 0 0 3px rgba(90, 110, 63, 0.15);
  }

  .access-input.error {
    border-color: #c44a4a;
    animation: shake 0.4s ease;
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
  }

  .access-btn {
    padding: 1rem 2rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    background: var(--olive-deep);
    color: var(--ivory);
    border: none;
    transition: all 0.3s ease;
  }

  .access-btn:hover {
    background: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(60, 80, 50, 0.25);
  }

  .access-error {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #c44a4a;
    font-size: 0.95rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .access-error.visible { opacity: 1; }

  .access-help {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--taiga-light);
    margin-top: 2.5rem;
    opacity: 0.75;
  }

  .envelope-instruction {
    color: var(--taiga-deep);
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeUp 1.5s ease 1.2s forwards;
    z-index: 2;
    position: relative;
  }

  .envelope-wrap {
    perspective: 2000px;
    z-index: 2;
    position: relative;
    /* Flottement subtil au repos (démarre après l'apparition) */
    animation: envFloat 6s ease-in-out 2.4s infinite;
  }

  @keyframes envFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .envelope {
    position: relative;
    width: min(88vw, 520px);
    height: min(58vw, 340px);
    cursor: none;
    transform: scale(0.9) translateY(28px);
    opacity: 0;
    animation: envelopeAppear 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
    transform-style: preserve-3d;
  }

  @keyframes envelopeAppear {
    to { transform: scale(1) translateY(0); opacity: 1; }
  }

  .envelope:hover {
    transform: scale(1.02) translateY(-4px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Ouverture au clavier : anneau doré visible au focus */
  .envelope:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 10px;
  }

  /* Corps de l'enveloppe en vert sauge */
  .envelope-body {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at 30% 20%, rgba(200, 220, 195, 0.4) 0%, transparent 50%),
      linear-gradient(135deg, #a8b88a 0%, #87a085 50%, #6b8569 100%);
    box-shadow: 
      0 40px 80px rgba(60, 70, 50, 0.45),
      0 0 0 1px rgba(184, 153, 104, 0.4),
      inset 0 0 80px rgba(60, 80, 50, 0.15),
      inset 0 0 0 1px rgba(255,255,255,0.15);
  }

  /* Texture papier subtile */
  .envelope-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
      repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(60, 80, 50, 0.04) 2px, rgba(60, 80, 50, 0.04) 4px),
      repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    mix-blend-mode: multiply;
  }

  /* Bordure intérieure dorée */
  .envelope-body::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 169, 106, 0.55);
  }

  /* Face avant (poche) : couvre tout sauf le triangle du rabat,
     la carte est donc invisible tant que l'enveloppe est fermée */
  .envelope-pocket {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: polygon(0 0, 50% 65%, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #93a883 0%, #87a085 55%, #6b8569 100%);
    box-shadow: inset 0 6px 18px rgba(60, 80, 50, 0.18);
  }

  /* Plis latéraux : jeu d'ombre et de lumière pour marquer les rabats repliés */
  .envelope-pocket::before,
  .envelope-pocket::after {
    content: '';
    position: absolute;
    inset: 0;
  }

  .envelope-pocket::before {
    clip-path: polygon(0 0, 50% 65%, 0 100%);
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(60, 80, 50, 0.10) 100%);
  }

  .envelope-pocket::after {
    clip-path: polygon(100% 0, 50% 65%, 100% 100%);
    background: linear-gradient(-115deg, rgba(60, 80, 50, 0.16) 0%, rgba(60, 80, 50, 0.05) 45%, rgba(255, 255, 255, 0.07) 100%);
  }

  /* Rabat avec ombre interne */
  .envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: 
      linear-gradient(180deg, #b5c499 0%, #97a986 50%, #7d917a 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 3;
    box-shadow: inset 0 -20px 40px rgba(60, 80, 50, 0.2);
  }

  .envelope-flap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(60, 80, 50, 0.12) 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  /* Décoration dorée sur le rabat */
  .envelope-flap-deco {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-deep);
    opacity: 0.5;
    z-index: 4;
    pointer-events: none;
  }

  /* Sceau de cire DORÉ avec alliances — posé sur la pointe du rabat fermé */
  .wax-seal {
    position: absolute;
    top: 63%;
    left: 50%;
    width: 95px;
    height: 95px;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: all 0.8s cubic-bezier(0.5, 0, 0.5, 1);
  }

  .wax-seal-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
      radial-gradient(circle at 30% 25%, rgba(255,235,180,0.6) 0%, transparent 35%),
      radial-gradient(circle at 70% 70%, rgba(80,55,15,0.4) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, #d4a850 0%, #b8893a 50%, #8a6428 100%);
    position: relative;
    box-shadow: 
      0 8px 20px rgba(0,0,0,0.5),
      inset -5px -5px 14px rgba(80,55,15,0.5),
      inset 4px 4px 10px rgba(255,235,180,0.25),
      0 0 0 1px rgba(80,55,15,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wax-seal-disc::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: 
      radial-gradient(circle at 20% 30%, #c9a060 0%, transparent 30%),
      radial-gradient(circle at 80% 20%, #b8893a 0%, transparent 25%),
      radial-gradient(circle at 70% 80%, #8a6428 0%, transparent 30%),
      radial-gradient(circle at 30% 80%, #c9a060 0%, transparent 25%);
    z-index: -1;
    filter: blur(2.5px);
    opacity: 0.65;
  }

  .wax-seal-content {
    width: 78%;
    height: 78%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff5d6;
  }

  .wax-seal-content svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1.5px 1.5px rgba(80,55,15,0.4));
  }

  /* Reflet doré balayant le sceau (effet "objet précieux") */
  .wax-seal-gleam {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
  }

  .wax-seal-gleam::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 0;
    width: 45%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 245, 214, 0.75), transparent);
    transform: rotate(22deg) translateX(-260%);
    animation: sealGleam 5s ease-in-out 2.6s infinite;
  }

  @keyframes sealGleam {
    0%   { transform: rotate(22deg) translateX(-260%); opacity: 0; }
    12%  { opacity: 1; }
    30%  { transform: rotate(22deg) translateX(320%); opacity: 0; }
    100% { transform: rotate(22deg) translateX(320%); opacity: 0; }
  }

  /* La lettre intérieure - ivoire */
  .envelope-letter {
    position: absolute;
    top: 6%;
    left: 4%;
    width: 92%;
    height: 88%;
    background:
      radial-gradient(ellipse at top, var(--ivory) 0%, var(--ivory-warm) 100%);
    z-index: 1;
    transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s, box-shadow 1.6s ease 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(60, 70, 50, 0.1);
    /* verrou : le contenu ne peut jamais flotter hors de la carte */
    overflow: hidden;
  }

  .envelope-letter::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(184, 153, 104, 0.4);
  }

  .envelope-letter::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(184, 153, 104, 0.2);
  }

  .letter-eyebrow {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 0.5rem;
    white-space: nowrap;
  }

  .letter-monogram {
    font-family: 'Italianno', cursive;
    /* calibré pour tenir sur UNE ligne dans la carte (431px utiles au max) */
    font-size: clamp(2.1rem, 6.5vw, 3.4rem);
    color: var(--chocolate-deep);
    line-height: 1.15;
    margin: 0.2rem 0;
    padding: 0.05em 0.3em;
    display: inline-block;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--chocolate-deep) 0%, var(--chocolate) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .letter-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.45rem 0;
  }

  .letter-divider .l {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  }

  .letter-divider svg { color: var(--olive); }

  .letter-date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    color: var(--taiga-deep);
    letter-spacing: 0.03em;
    font-weight: 500;
    padding: 0 0.5rem;
    line-height: 1.4;
  }

  /* Carte compacte sur mobile : la boîte ne fait que ~190px de haut */
  @media (max-width: 640px) {
    .envelope-letter { padding: 0.7rem 1rem; }
    .envelope-letter::before { inset: 8px; }
    .envelope-letter::after { inset: 11px; }
    .letter-eyebrow { font-size: 0.52rem; letter-spacing: 0.2em; margin-bottom: 0.35rem; }
    .letter-monogram { font-size: clamp(1.6rem, 8vw, 2.1rem); }
    .letter-divider { margin: 0.25rem 0; }
    .letter-divider .l { width: 28px; }
    .letter-date { font-size: 0.8rem; }
  }

  /* ---- État ouvert : chorégraphie en trois temps ---- */

  /* 1. Le sceau se comprime (snap), se soulève, puis chute et se dissout */
  .envelope.opening .wax-seal {
    animation: sealBreak 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes sealBreak {
    0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    18%  { transform: translate(-50%, -50%) scale(1.12) rotate(-4deg); opacity: 1; }
    40%  { transform: translate(-50%, -60%) scale(1.05) rotate(3deg); opacity: 1; }
    100% { transform: translate(-50%, 45%) scale(0.68) rotate(24deg); opacity: 0; }
  }

  /* 2. Le rabat s'ouvre après la rupture, avec inertie "papier lourd" et ombre.
     Il reste AU-DESSUS pendant toute sa rotation (z-index 3), puis passe
     DERRIÈRE (z-index 0) seulement une fois complètement ouvert (~1,75s),
     juste avant que la carte ne sorte */
  .envelope.opening .envelope-flap {
    transform: rotateX(178deg);
    z-index: 0;
    transition: transform 1.15s cubic-bezier(0.7, 0, 0.3, 1) 0.55s,
                box-shadow 0.6s ease 0.55s,
                z-index 0s linear 1.75s;
    box-shadow: inset 0 20px 44px rgba(60, 80, 50, 0.28),
                0 -6px 20px rgba(0, 0, 0, 0.16);
  }

  /* 3. La carte sort LÉGÈREMENT de la poche (mi-hauteur), toujours derrière
     la face avant : elle émerge par le bord supérieur. Elle ne part qu'à
     1,85s — après que le rabat ouvert est passé derrière elle */
  .envelope.opening .envelope-letter {
    transform: translateY(-58%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 1.85s,
                box-shadow 1s ease 1.85s;
  }

  /* 4. L'enveloppe s'efface, la carte se place au centre de l'écran et grossit
     pour la lecture (déclenché par le JS à ~2,3s via .card-focus) */
  .envelope-screen.card-focus .envelope-body,
  .envelope-screen.card-focus .envelope-pocket,
  .envelope-screen.card-focus .envelope-flap,
  .envelope-screen.card-focus .wax-seal {
    opacity: 0;
    transition: opacity 0.9s ease;
  }

  .envelope-screen.card-focus .envelope-letter {
    z-index: 6;
    transform: translateY(-12%) scale(1.55);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.35);
    transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1),
                box-shadow 1.1s ease;
  }

  @media (max-width: 640px) {
    /* sur mobile la carte occupe déjà presque tout l'écran : zoom plus doux */
    .envelope-screen.card-focus .envelope-letter {
      transform: translateY(-12%) scale(1.2);
    }
  }

  /* ============ SITE PRINCIPAL ============ */
  .site {
    opacity: 0;
    transition: opacity 2s ease 1s;
  }

  .site.revealed {
    opacity: 1;
  }

  /* ============ HERO - L'ENTRÉE DE LA FORÊT ============ */
  .hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    background: #6b8550;
  }

  /* Image de fond d'oliveraie réaliste */
  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform: scale(1.06);
    /* Filtre subtil pour harmoniser avec la palette ivoire/taïga */
    filter: saturate(0.92) brightness(1.02);
  }

  /* Voile ivoire chaud par-dessus pour intégrer harmonieusement */
  .hero-veil {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at center, rgba(245, 239, 224, 0.0) 0%, rgba(245, 239, 224, 0.15) 50%, rgba(245, 239, 224, 0.35) 100%),
      linear-gradient(180deg, rgba(245, 239, 224, 0.1) 0%, transparent 30%, transparent 70%, rgba(245, 239, 224, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
  }

  /* Couches de lumière (rayons) */
  .light-rays {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .light-ray {
    position: absolute;
    top: -10%;
    width: 200px;
    height: 130%;
    background: linear-gradient(180deg, 
      rgba(255, 248, 220, 0.4) 0%, 
      rgba(255, 248, 220, 0.1) 50%, 
      transparent 100%);
    transform-origin: top center;
    filter: blur(20px);
    animation: rayShift 8s ease-in-out infinite;
  }

  .light-ray:nth-child(1) { left: 15%; transform: rotate(-15deg); animation-delay: 0s; }
  .light-ray:nth-child(2) { left: 40%; transform: rotate(-5deg); animation-delay: 2s; }
  .light-ray:nth-child(3) { left: 65%; transform: rotate(8deg); animation-delay: 4s; }
  .light-ray:nth-child(4) { left: 85%; transform: rotate(20deg); animation-delay: 6s; }

  @keyframes rayShift {
    0%, 100% { opacity: 0.6; transform: translateX(0) rotate(var(--r, 0deg)); }
    50% { opacity: 0.9; transform: translateX(20px) rotate(var(--r, 0deg)); }
  }

  /* Feuilles d'olivier flottantes (réalistes, par-dessus l'image) */
  .floating-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
  }

  .floating-leaf {
    position: absolute;
    will-change: transform;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(30, 40, 20, 0.25));
  }

  .floating-leaf svg {
    display: block;
    width: 100%;
    height: 100%;
  }


  /* Particules (pollen / spores lumineuses) */
  .particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
  }

  .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 250, 220, 0.9) 0%, rgba(255, 250, 220, 0) 70%);
    animation: float linear infinite;
  }

  @keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
  }

  /* Contenu hero - ultra épuré, juste invitation + noms */
  .hero-content {
    text-align: center;
    max-width: 700px;
    position: relative;
    z-index: 5;
    padding: 4rem 3rem;
  }

  .hero-content::before {
    content: '';
    position: absolute;
    inset: -3rem -2rem;
    background: 
      radial-gradient(ellipse at center, 
        rgba(245, 239, 224, 0.92) 0%, 
        rgba(245, 239, 224, 0.7) 45%, 
        rgba(245, 239, 224, 0.3) 75%, 
        transparent 100%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(30px);
  }

  /* Chaque ligne du hero apparaît au scroll, une par une */
  .hero-line {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  .hero-line.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-eyebrow {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(0.72rem, 1.35vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    /* jamais de retour à la ligne : un "DE" orphelin ruine la ligne */
    white-space: nowrap;
    color: var(--taiga-deep);
    margin-bottom: 1.4rem;
    /* Filets dorés de part et d'autre pour asseoir la ligne avec noblesse */
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: '';
    flex-shrink: 0;
    width: clamp(24px, 5vw, 46px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  }

  /* Mobile : la ligne complète prime sur les filets */
  @media (max-width: 640px) {
    .hero-eyebrow { letter-spacing: 0.22em; }
    .hero-eyebrow::before,
    .hero-eyebrow::after { display: none; }
  }

  .names {
    font-family: 'Italianno', cursive;
    font-size: clamp(4rem, 14vw, 9rem);
    color: var(--taiga-deep);
    line-height: 0.95;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 12px rgba(245, 239, 224, 0.7);
  }

  .ampersand {
    color: var(--olive-deep);
    font-size: 1.05em;
    display: inline-block;
    transform: translateY(0.05em);
  }


  /* Flèche découvrir - bien centrée */
  .scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ivory);
    z-index: 10;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    animation: scrollBounce 2.5s ease-in-out infinite;
    text-align: center;
  }

  .scroll-cue-arrow {
    font-size: 1.2rem;
    line-height: 1;
  }

  @keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
  }

  /* Anneau doré tournant en arrière-plan du hero */
  .hero-ring-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    z-index: 2;
    opacity: 0.18;
    pointer-events: none;
    animation: ringRotate 60s linear infinite;
  }

  .hero-ring-deco svg {
    width: 100%;
    height: 100%;
  }

  @keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }

  /* ============ SAVE THE DATE SECTION ============ */
  .save-the-date-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    overflow: hidden;
    background: var(--ivory);
  }

  /* Image oliveraie en fond plus floue/sombre pour cette section */
  .std-bg {
    position: absolute;
    inset: 0;
    background-image: inherit; /* Sera défini en JS pour partager avec hero-bg */
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: blur(8px) brightness(0.85) saturate(0.7);
    transform: scale(1.15);
    opacity: 0.25;
  }

  .std-veil {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at center, rgba(245, 239, 224, 0.85) 0%, var(--ivory) 70%);
    z-index: 1;
  }

  .std-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
  }

  .std-eyebrow {
    font-family: var(--font-script);
    font-size: var(--fs-h1);
    color: var(--olive-deep);
    line-height: 1;
    margin-bottom: 1rem;
  }

  .std-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto 2rem;
  }

  .std-divider .line {
    width: 60px;
    height: 1px;
    background: var(--gold);
  }

  .std-divider svg { color: var(--olive); }

  .std-date {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    text-transform: capitalize;
    letter-spacing: 0.12em;
    padding-left: 0.12em;
    color: var(--taiga-deep);
    margin-bottom: 1rem;
  }

  .std-location {
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--gold-deep);
  }

  /* ============ COMPTE À REBOURS ============ */
  .countdown-section {
    padding: 7rem 2rem;
    background: 
      linear-gradient(180deg, var(--taiga) 0%, var(--taiga-deep) 100%);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
  }

  .countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(201, 169, 106, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(139, 165, 106, 0.1) 0%, transparent 50%);
  }

  /* Carton de papeterie : double filet doré encadrant le décompte */
  .countdown-container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    border: 1px solid rgba(201, 169, 106, 0.45);
  }

  .countdown-container::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 169, 106, 0.2);
    pointer-events: none;
  }

  /* Phrase compte à rebours en une ligne */
  .countdown-line {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
  }

  .countdown-prefix,
  .countdown-suffix {
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--ivory-deep);
    font-weight: 300;
  }

  .countdown-numbers {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
  }

  .countdown-number {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 11vw, 7.5rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }

  .countdown-unit {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--fs-h3);
    color: var(--ivory);
    letter-spacing: 0.05em;
  }

  .countdown-divider {
    margin: 2rem auto 1.5rem;
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
  }

  /* Compteurs heures/min/sec — colonnes de largeur ÉGALE pour un alignement parfait,
     séparées par des filets verticaux dorés */
  .countdown-sub {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .countdown-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    /* largeur fixe identique : les chiffres restent alignés quel que soit le libellé */
    min-width: clamp(4.5rem, 12vw, 6.5rem);
    padding: 0.35rem clamp(1rem, 3vw, 2rem);
  }

  .countdown-sub-item + .countdown-sub-item {
    border-left: 1px solid rgba(201, 169, 106, 0.3);
  }

  .countdown-sub-num {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    color: var(--ivory);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }

  /* Libellés heures / minutes / secondes — lisibles, non atténués */
  .countdown-sub-item span:last-child {
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--ivory-deep);
  }

  /* Mobile : colonnes en flex égal → alignement garanti malgré « secondes » */
  @media (max-width: 640px) {
    .countdown-sub { width: 100%; }
    .countdown-sub-item { min-width: 0; flex: 1 1 0; padding: 0.3rem 0.3rem; }
    .countdown-sub-item span:last-child { font-size: 0.62rem; letter-spacing: 0.1em; }
  }

  /* ============ NOTRE HISTOIRE ============ */
  /* ============ NOTRE HISTOIRE - ANIMÉE ============ */
  .story-section {
    padding: 10rem 2rem;
    background: 
      radial-gradient(ellipse at top, var(--olive-mist) 0%, var(--ivory) 60%);
    position: relative;
    overflow: hidden;
  }

  .story-corner {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease 0.5s;
  }

  .story-section.visible .story-corner { opacity: 0.45; }

  .story-corner.tl { top: 0; left: 0; transform: rotate(0deg); }
  .story-corner.br { bottom: 0; right: 0; transform: rotate(180deg); }

  /* Conteneur pour feuilles tombantes dans la section */
  .story-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
  }

  .story-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  /* Langage papeterie : accent script délicat au-dessus,
     titre en capitales serif largement espacées en dessous */
  .section-eyebrow {
    font-family: var(--font-script);
    font-size: var(--fs-script-accent);
    color: var(--gold-deep);
    line-height: 1;
    margin-bottom: 0.6rem;
  }

  .section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--fs-title-caps);
    text-transform: uppercase;
    letter-spacing: var(--track-title);
    /* compense l'interlettrage du dernier caractère pour un centrage optique parfait */
    padding-left: var(--track-title);
    color: var(--taiga-deep);
    line-height: 1.3;
    margin-bottom: 1.25rem;
  }

  .section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 1.6rem auto 3rem;
  }

  .section-divider .line {
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .section-divider svg {
    color: var(--olive);
    width: 16px;
    height: 16px;
  }

  .story-text {
    font-family: var(--font-serif);
    font-size: var(--fs-body-lg);
    line-height: 1.85;
    color: var(--taiga-deep);
    font-weight: 400;
  }

  /* Chaque paragraphe apparaît séparément au scroll */
  .story-text p {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    text-align: justify;
    text-align-last: center;
  }

  .story-text p.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .story-text p:first-of-type::first-letter {
    font-family: 'Italianno', cursive;
    font-size: 3.5em;
    float: left;
    line-height: 0.85;
    margin-right: 0.15em;
    margin-top: 0.1em;
    color: var(--olive-deep);
  }

  /* Séparateur botanique sobre entre les paragraphes (remplace les médaillons) */
  .story-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin: 2.75rem auto;
    color: var(--olive);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1.2s ease, transform 1.2s ease;
  }

  .story-sep.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .story-sep .l {
    width: clamp(48px, 12vw, 90px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .story-sep svg {
    width: 15px;
    height: 15px;
    color: var(--olive);
    flex-shrink: 0;
  }

  /* Verset final — mise en valeur épurée : filets courts, italique serif noble */
  .story-verse {
    margin-top: 4.5rem;
    padding-top: 2.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    color: var(--olive-deep);
    line-height: 1.55;
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
  }

  .story-verse.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Filet court doré + feuille au-dessus du verset */
  .story-verse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .story-verse::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg);
    width: 7px;
    height: 15px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.85;
  }

  .story-verse small {
    display: block;
    margin-top: 1.4rem;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: var(--fs-micro);
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--gold-deep);
  }

  /* ============ PROGRAMME (FRISE CHRONOLOGIQUE) ============ */
  .programme-section {
    padding: 8rem 2rem;
    background:
      linear-gradient(180deg, var(--ivory) 0%, var(--olive-mist) 100%);
    position: relative;
    overflow: hidden;
  }

  .programme-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
  }

  .programme-header {
    text-align: center;
    margin-bottom: 5rem;
  }

  /* Frise horizontale : 3 jalons reliés par un filet doré continu */
  .programme-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .tl-item {
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: center;
    row-gap: 1.4rem;
    position: relative;
    padding: 0 0.5rem;
    /* Reveal au scroll, en cascade */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  .tl-item:nth-child(2) { transition-delay: 0.18s; }
  .tl-item:nth-child(3) { transition-delay: 0.36s; }

  .tl-item.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Le filet reliant les jalons : posé sur la rangée du marqueur, pleine largeur.
     grid-column 1 explicite : sans elle, filet et losange se partagent la rangée
     et la grille crée une colonne implicite qui éjecte le losange à droite */
  .tl-item::before {
    content: '';
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    justify-self: stretch;
    height: 1px;
    background: var(--gold);
    opacity: 0.55;
    z-index: 0;
  }

  /* Extrémités du filet estompées (pas de traits qui pendent) */
  .tl-item:first-child::before {
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%);
  }
  .tl-item:last-child::before {
    background: linear-gradient(90deg, var(--gold) 50%, transparent 100%);
  }

  .tl-time {
    grid-row: 1;
    grid-column: 1;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    color: var(--taiga-deep);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  /* Jalon : fin losange d'or posé sur le filet (sobriété de papeterie) */
  .tl-marker {
    grid-row: 2;
    grid-column: 1;
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    background: var(--ivory);
    border: 1px solid var(--gold-deep);
    transform: rotate(45deg);
  }

  .tl-body { grid-row: 3; grid-column: 1; text-align: center; }

  /* Illustration sobre : icône fine, libre, dorée — sans cercle */
  .tl-icon {
    display: block;
    width: 27px;
    height: 27px;
    color: var(--gold-deep);
    margin: 0 auto 0.8rem;
  }

  .tl-body h3 {
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--taiga);
    margin-bottom: 0.5rem;
  }

  .tl-body p {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--taiga-light);
    font-size: var(--fs-caption);
    line-height: 1.5;
  }

  /* Mobile / tablette : la frise bascule à la verticale, filet à gauche */
  @media (max-width: 720px) {
    .programme-timeline {
      grid-template-columns: 1fr;
      max-width: 380px;
      margin: 0 auto;
      row-gap: 3rem;
    }

    .tl-item {
      grid-template-columns: 36px 1fr;
      grid-template-rows: auto auto;
      justify-items: start;
      align-items: center;
      column-gap: 1.2rem;
      row-gap: 0.3rem;
      padding: 0;
    }

    /* filet vertical reliant les jalons empilés */
    .tl-item::before {
      grid-row: 1 / -1;
      grid-column: 1;
      justify-self: center;
      align-self: stretch;
      width: 1px;
      height: auto;
      background: var(--gold);
      opacity: 0.5;
    }
    .tl-item:first-child::before { background: linear-gradient(180deg, transparent 0%, var(--gold) 45%); }
    .tl-item:last-child::before  { background: linear-gradient(180deg, var(--gold) 55%, transparent 100%); }

    .tl-time  { grid-column: 2; grid-row: 1; }
    .tl-marker { grid-column: 1; grid-row: 1 / -1; justify-self: center; }
    .tl-body  { grid-column: 2; grid-row: 2; text-align: left; }
    .tl-icon  { margin: 0 0 0.55rem; }
  }

  /* ============ LIEU + CARTE ============ */
  .venue-section {
    padding: 8rem 2rem;
    background: 
      linear-gradient(180deg, #6b8569 0%, #5a6e3f 50%, #3d4f2e 100%);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
  }

  .venue-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at 20% 20%, rgba(245, 239, 224, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at center, rgba(201, 169, 106, 0.1) 0%, transparent 70%);
  }

  .venue-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .venue-header { text-align: center; margin-bottom: 4rem; }
  .venue-section .section-eyebrow { color: var(--gold); }
  .venue-section .section-title { color: var(--cream); }
  .venue-section .section-divider .line { background: var(--gold); }
  .venue-section .section-divider svg { color: var(--gold); }

  .venue-card {
    background: rgba(248, 244, 237, 0.04);
    border: 1px solid rgba(184, 153, 104, 0.3);
    backdrop-filter: blur(10px);
    padding: 3rem;
    text-align: center;
    position: relative;
  }

  .venue-card::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid rgba(184, 153, 104, 0.15);
    pointer-events: none;
  }

  .venue-name {
    font-family: 'Italianno', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--olive-pale);
    margin-bottom: 1rem;
    line-height: 1;
  }

  .venue-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--cream);
    margin-bottom: 2rem;
  }

  .venue-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--cream);
    text-decoration: none;
    transition: all 0.4s ease;
  }

  .btn:hover {
    background: var(--gold);
    color: var(--chocolate-deep);
    transform: translateY(-2px);
  }

  .btn-primary {
    background: var(--olive);
    border-color: var(--olive);
    color: var(--cream);
  }

  .btn-primary:hover {
    background: var(--olive-light);
    border-color: var(--olive-light);
    color: var(--chocolate-deep);
  }

  .map-frame {
    margin-top: 2.5rem;
    border: 2px solid rgba(201, 169, 106, 0.5);
    overflow: hidden;
    height: 420px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }

  .map-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201, 169, 106, 0.25);
    pointer-events: none;
    z-index: 2;
  }

  .map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: sepia(0.1) saturate(0.95);
  }

  /* ============ CODE VESTIMENTAIRE ============ */
  .dresscode-section {
    padding: 8rem 2rem;
    background: 
      radial-gradient(ellipse at top, var(--olive-mist) 0%, var(--cream-warm) 80%);
    position: relative;
    overflow: hidden;
  }

  .dresscode-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
  }

  /* Scène 3D — costume & robe aux couleurs du mariage */
  .dresscode-stage {
    position: relative;
    height: clamp(340px, 52vw, 500px);
    margin: 1rem auto 0.5rem;
    cursor: grab;
    /* pan-y : le doigt peut faire défiler la page verticalement,
       le glissement horizontal fait tourner la scène */
    touch-action: pan-y;
  }

  .dresscode-stage.dragging { cursor: grabbing; }

  /* WebGL indisponible : la scène s'efface, les pastilles restent */
  .dresscode-stage.unavailable { display: none; }

  .dresscode-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
  }

  .dresscode-stage-hint {
    font-family: var(--font-sans);
    font-size: var(--fs-micro);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--taiga-light);
    opacity: 0.7;
    margin-top: 0.4rem;
  }

  .colors-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
  }

  .color-swatch {
    text-align: center;
    position: relative;
  }

  .color-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 
      0 15px 35px rgba(0,0,0,0.25),
      inset 0 0 30px rgba(255,255,255,0.1);
    position: relative;
    /* Effet "peinture qui se remplit" */
    background-size: 300% 300%;
    background-position: 50% 100%;
    transition: 
      transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
      background-position 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .color-swatch.visible .color-circle {
    background-position: 50% 50%;
    animation: colorPulse 4s ease-in-out infinite 1.8s;
  }

  @keyframes colorPulse {
    0%, 100% { box-shadow: 0 15px 35px rgba(0,0,0,0.25), inset 0 0 30px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 20px 45px rgba(0,0,0,0.3), inset 0 0 40px rgba(255,255,255,0.15); }
  }

  .color-swatch {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  .color-swatch:nth-child(1) { transition-delay: 0.1s; }
  .color-swatch:nth-child(2) { transition-delay: 0.4s; }

  .color-swatch.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .color-swatch:hover .color-circle {
    transform: scale(1.05) rotate(5deg);
  }

  .color-circle::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1.2s ease 1s;
  }

  .color-swatch.visible .color-circle::after {
    opacity: 0.5;
  }

  .color-circle::before {
    content: '';
    position: absolute;
    inset: -18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1.2s ease 1.3s;
  }

  .color-swatch.visible .color-circle::before {
    opacity: 0.2;
  }

  .color-sage { background: linear-gradient(135deg, var(--sage) 0%, var(--olive) 70%, var(--olive-deep) 100%); }
  .color-chocolate { background: linear-gradient(135deg, var(--chocolate-light) 0%, var(--chocolate) 50%, var(--chocolate-deep) 100%); }

  .color-name {
    font-family: 'Italianno', cursive;
    font-size: 1.8rem;
    color: var(--chocolate-deep);
    line-height: 1;
  }

  .color-hex {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--olive-deep);
    margin-top: 0.3rem;
  }

  .dresscode-note {
    font-style: italic;
    color: var(--chocolate-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
  }

  /* ============ RSVP ============ */
  .rsvp-section {
    padding: 8rem 2rem;
    background: 
      radial-gradient(ellipse at top, rgba(138, 165, 106, 0.25) 0%, transparent 60%),
      var(--cream);
    position: relative;
    overflow: hidden;
  }

  .rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
  }

  .rsvp-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .rsvp-form {
    background: var(--cream-warm);
    border: 1px solid var(--gold);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(74, 51, 40, 0.12);
    position: relative;
  }

  .rsvp-form::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid rgba(184, 153, 104, 0.3);
    pointer-events: none;
  }

  .form-group {
    margin-bottom: 1.75rem;
    position: relative;
  }

  .form-label {
    display: block;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--chocolate);
    margin-bottom: 0.6rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    background: var(--cream);
    border: 1px solid rgba(74, 51, 40, 0.2);
    color: var(--ink);
    transition: border-color 0.3s ease;
  }

  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--olive-deep);
  }

  .form-textarea {
    resize: vertical;
    min-height: 90px;
  }

  .radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .radio-option { position: relative; }

  .radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .radio-option label {
    display: block;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(74, 51, 40, 0.2);
    background: var(--cream);
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--chocolate-light);
  }

  .radio-option input:checked + label {
    background: var(--olive-deep);
    border-color: var(--olive-deep);
    color: var(--cream);
  }

  .submit-btn {
    width: 100%;
    padding: 1.1rem;
    margin-top: 1rem;
    background: var(--chocolate-deep);
    color: var(--cream);
    border: none;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    transition: all 0.4s ease;
  }

  .submit-btn:hover {
    background: var(--olive-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 51, 40, 0.2);
  }

  .submit-btn:disabled {
    opacity: 0.6;
  }

  .form-success {
    display: none;
    text-align: center;
    padding: 2rem;
  }

  .form-success.active { display: block; }

  .success-monogram {
    font-family: 'Italianno', cursive;
    font-size: 4rem;
    color: var(--olive-deep);
    line-height: 1;
    margin-bottom: 1rem;
  }

  .success-title {
    font-family: 'Italianno', cursive;
    font-size: 2.5rem;
    color: var(--chocolate-deep);
    margin-bottom: 1rem;
  }

  .success-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--chocolate-light);
    font-style: italic;
    line-height: 1.7;
  }

  .calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .calendar-btn {
    padding: 0.8rem 1.5rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--olive-deep);
    color: var(--olive-deep);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }

  .calendar-btn:hover {
    background: var(--olive-deep);
    color: var(--cream);
  }

  /* ============ FOOTER SIGNATURE ============ */
  .footer {
    padding: 8rem 2rem 4rem;
    background: var(--ivory);
    color: var(--taiga-deep);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .footer-branch-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease;
  }

  .footer.visible .footer-branch-deco { opacity: 0.4; }

  .footer-branch-deco.left { 
    top: 50%; 
    left: 4%; 
    transform: translateY(-50%) rotate(-15deg) scaleX(0); 
    transform-origin: left center;
    width: 200px; 
  }
  .footer.visible .footer-branch-deco.left { 
    transform: translateY(-50%) rotate(-15deg) scaleX(1); 
  }
  
  .footer-branch-deco.right { 
    top: 50%; 
    right: 4%; 
    transform: translateY(-50%) rotate(15deg) scaleX(0); 
    transform-origin: right center;
    width: 200px; 
  }
  .footer.visible .footer-branch-deco.right { 
    transform: translateY(-50%) rotate(15deg) scaleX(-1); 
  }

  .footer-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-quote {
    font-family: 'Italianno', cursive;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    color: var(--olive-deep);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease 0.3s, transform 1.5s ease 0.3s;
  }

  .footer.visible .footer-quote { opacity: 1; transform: translateY(0); }

  .footer-quote-source {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--taiga-light);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 1.5s ease 0.8s;
  }

  .footer.visible .footer-quote-source { opacity: 1; }

  .footer-divider {
    margin: 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 300px;
    opacity: 0;
    transition: opacity 1.5s ease 1.2s;
  }

  .footer.visible .footer-divider { opacity: 1; }

  .footer-divider .line {
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
  }

  .footer-divider svg {
    color: var(--olive);
    opacity: 0.6;
  }

  .footer-monogram {
    font-family: 'Italianno', cursive;
    font-size: clamp(3.5rem, 6vw, 5rem);
    color: var(--taiga);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.5s ease 1.5s, transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s;
  }

  .footer.visible .footer-monogram { opacity: 1; transform: scale(1); }

  .footer-meta {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--taiga-light);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 1.5s ease 2s;
  }

  .footer.visible .footer-meta { opacity: 1; }

  /* ============ ANIMATIONS ============ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Transition douce : chaque section principale a un dégradé en haut qui fond avec la précédente */
  section.story-section,
  section.programme-section,
  section.dresscode-section,
  section.rsvp-section,
  section.save-the-date-section {
    position: relative;
  }

  section.story-section::before,
  section.dresscode-section::before,
  section.save-the-date-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(245, 239, 224, 0) 0%, rgba(245, 239, 224, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
  }

  section.programme-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--ivory) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
  }

  /* ============ RESPONSIVE ============ */

  /* Appareils tactiles (téléphones ET tablettes, toutes tailles) :
     curseur natif restauré, colombe et traîne de feuilles masquées */
  @media (hover: none), (pointer: coarse) {
    body { cursor: auto; }
    a, button, input, select, textarea, label { cursor: auto; }
    .cursor-dove, .leaf-trail { display: none; }
  }

  @media (max-width: 640px) {
    .venue-card { padding: 2rem 1.5rem; }
    .rsvp-form { padding: 2rem 1.5rem; }
    .colors-display { gap: 2rem; }
    .color-circle { width: 110px; height: 110px; }
  }

  /* ============ RÉDUCTION DES ANIMATIONS (accessibilité) ============ */
  /* L'utilisateur a demandé moins d'animations : on retire le décor animé
     (colombe, feuilles, particules, rayons, rotations) en gardant tout le contenu */
  @media (prefers-reduced-motion: reduce) {
    body, a, button, input, select, textarea, label { cursor: auto; }
    .cursor-dove, .leaf-trail, .floating-leaf, .particle, .light-ray { display: none !important; }
    .hero-ring-deco svg, .scroll-cue-arrow, .color-circle { animation: none !important; }
    .hero-bg { transform: none !important; }
    /* Enveloppe : pas de flottement ni de reflet ; ouverture gérée en fondu par le JS */
    .envelope-wrap, .wax-seal-gleam::before { animation: none !important; }
  }
