/* ==========================================================================
   RÉVÉLATION CINÉMATOGRAPHIQUE ULTRA-FLUIDE (GPU 60/120 FPS) — ZAKI & CHAIMAE
   Fichier : assets/css/reveal.css
   Zéro filter:blur, zéro box-shadow animé, zéro recalcul layout :
   exclusivement transform, opacity, clip-path et stroke-dashoffset.
   ========================================================================== */

:root {
    --rev-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --rev-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --rev-ease-bloom: cubic-bezier(0.22, 1.24, 0.36, 1);

    /* Durées vives et fluides (synchronisées avec REVEAL_CONFIG dans assets/js/reveal.js) */
    --rev-glow-duration: 0.75s;
    --rev-env-dissolve-duration: 0.52s;
    --rev-bg-fade-duration: 0.68s;
    --rev-ink-bloom-duration: 1.35s;
    --rev-camera-duration: 2.6s;
    --rev-stem-duration: 0.55s;
    --rev-leaf-duration: 0.45s;
    --rev-petal-duration: 0.58s;
    --rev-bismillah-duration: 0.55s;
    --rev-name-write-duration: 0.54s;
    --rev-stagger-duration: 0.52s;
}

/* Optimisation peinture des sections sous la ligne de flottaison */
#galerie,
#rsvp {
    content-visibility: auto;
    contain-intrinsic-size: auto 560px;
}

/* ==========================================================================
   1. CALQUES ÉPHÉMÈRES DE SCÈNE (LÉGERS, PURGÉS EN FIN DE SÉQUENCE)
   ========================================================================== */
.cinematic-fx-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.reveal-golden-glow {
    position: fixed;
    left: 50%;
    top: 42%;
    width: min(88vw, 620px);
    height: min(88vw, 620px);
    transform: translate3d(-50%, -50%, 0) scale(0.7);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(238, 200, 134, 0.48) 0%,
        rgba(214, 173, 107, 0.22) 38%,
        rgba(251, 247, 240, 0) 72%
    );
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition:
        opacity var(--rev-glow-duration) var(--rev-ease-expo),
        transform 1.2s var(--rev-ease-expo);
}

.lux-envelope::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 32%;
    width: 124%;
    height: 145%;
    transform: translate3d(-50%, -50%, 0) scale(0.65);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(244, 210, 146, 0.62) 0%,
        rgba(216, 174, 106, 0.26) 40%,
        rgba(251, 247, 240, 0) 72%
    );
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition:
        opacity 0.55s var(--rev-ease-expo),
        transform 0.9s var(--rev-ease-expo);
}

body.reveal-t0-glow .lux-envelope::before,
body.reveal-t0-glow .reveal-golden-glow {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.04);
}

body.reveal-complete .reveal-golden-glow {
    display: none;
}

.reveal-gold-dust-layer {
    position: fixed;
    inset: 0;
    z-index: 964;
    pointer-events: none;
    overflow: hidden;
}

.gold-dust-mote {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFDF8 0%, #ECD098 55%, rgba(184, 146, 90, 0) 100%);
    opacity: 0;
    pointer-events: none;
}

.reveal-petal-wave-layer {
    position: fixed;
    inset: 0;
    z-index: 950;
    pointer-events: none;
    overflow: hidden;
}

.wave-petal-item {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
}

.wave-petal-item svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   2. DÉZOOM CAMÉRA (1.04 -> 1) & TACHES AQUARELLE SANS FILTER:BLUR
   ========================================================================== */
body.reveal-staging .ambient-backdrop,
body.is-cinematic-reveal .ambient-backdrop {
    transform: scale(1.045);
    transform-origin: 50% 42%;
    transition: transform var(--rev-camera-duration) var(--rev-ease-expo);
}

body.reveal-t08-dissolve .ambient-backdrop,
body.reveal-complete .ambient-backdrop {
    transform: none;
}

.ink-bloom-stage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ink-bloom-wash {
    position: absolute;
    left: 50%;
    top: 44%;
    border-radius: 50%;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.2);
    pointer-events: none;
}

.ink-wash-peach {
    width: min(105vw, 720px);
    height: min(95vw, 660px);
    background: radial-gradient(
        ellipse at 42% 44%,
        rgba(240, 189, 168, 0.36) 0%,
        rgba(244, 212, 196, 0.16) 46%,
        rgba(251, 247, 240, 0) 72%
    );
}

.ink-wash-mauve {
    width: min(100vw, 680px);
    height: min(92vw, 620px);
    background: radial-gradient(
        ellipse at 62% 38%,
        rgba(178, 148, 190, 0.3) 0%,
        rgba(205, 184, 216, 0.14) 46%,
        rgba(251, 247, 240, 0) 74%
    );
}

.ink-wash-sage {
    width: min(108vw, 740px);
    height: min(88vw, 600px);
    background: radial-gradient(
        ellipse at 50% 66%,
        rgba(148, 174, 142, 0.26) 0%,
        rgba(218, 200, 168, 0.14) 48%,
        rgba(251, 247, 240, 0) 74%
    );
}

body.reveal-staging .watercolor-wash {
    opacity: 0;
}

body.reveal-t08-dissolve .ink-wash-peach {
    opacity: 0.88;
    transform: translate3d(-60%, -54%, 0) scale(1.04);
    transition:
        transform var(--rev-ink-bloom-duration) var(--rev-ease-expo),
        opacity 0.8s var(--rev-ease-soft);
}

body.reveal-t08-dissolve .ink-wash-mauve {
    opacity: 0.84;
    transform: translate3d(-38%, -50%, 0) scale(1.06);
    transition:
        transform var(--rev-ink-bloom-duration) var(--rev-ease-expo) 0.08s,
        opacity 0.85s var(--rev-ease-soft) 0.08s;
}

body.reveal-t08-dissolve .ink-wash-sage {
    opacity: 0.82;
    transform: translate3d(-50%, -36%, 0) scale(1.05);
    transition:
        transform var(--rev-ink-bloom-duration) var(--rev-ease-expo) 0.14s,
        opacity 0.9s var(--rev-ease-soft) 0.14s;
}

body.reveal-t08-dissolve .watercolor-wash,
body.reveal-complete .watercolor-wash {
    opacity: 0.55;
    transition: opacity 0.95s var(--rev-ease-soft);
}

body.reveal-complete .ink-bloom-wash {
    opacity: 0.4;
    transform: translate3d(-50%, -50%, 0) scale(1);
}

/* ==========================================================================
   3. DISSOLUTION FLUIDE DE L'ENVELOPPE (SANS FILTER:BLUR COÛTEUX)
   ========================================================================== */
.envelope-overlay {
    background: transparent !important;
}

.envelope-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 14% 16%, rgba(168, 139, 176, 0.22) 0%, transparent 44%),
        radial-gradient(circle at 86% 18%, rgba(233, 217, 184, 0.65) 0%, transparent 48%),
        radial-gradient(circle at 18% 86%, rgba(143, 166, 138, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 84% 84%, rgba(168, 139, 176, 0.18) 0%, transparent 46%),
        linear-gradient(165deg, #FBF7F0 0%, #F4E9D4 52%, #EFE0C6 100%);
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--rev-bg-fade-duration) var(--rev-ease-soft);
}

.envelope-overlay .env-inner-card {
    border-radius: 90px 90px 12px 12px;
    background-color: var(--color-ivory);
    justify-content: center;
}

.envelope-overlay .env-inner-card::before {
    border-radius: 86px 86px 9px 9px;
}

.envelope-overlay .env-inner-card::after {
    content: '❖';
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(184, 146, 90, 0.36);
    font-size: 1rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.envelope-overlay .env-inner-card > * {
    opacity: 0 !important;
}

body.reveal-t08-dissolve .envelope-overlay {
    pointer-events: none;
}

body.reveal-t08-dissolve .envelope-overlay::before,
body.reveal-t08-dissolve .envelope-overlay .env-inner-card::after {
    opacity: 0;
}

body.reveal-t08-dissolve .envelope-overlay .env-ambient-corner {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.reveal-t08-dissolve .envelope-overlay .env-layer-back,
body.reveal-t08-dissolve .envelope-overlay .env-layer-liner,
body.reveal-t08-dissolve .envelope-overlay .env-layer-front {
    transform: translate3d(0, 76px, 0) scale(0.96);
    opacity: 0;
    transition:
        transform var(--rev-env-dissolve-duration) var(--rev-ease-expo),
        opacity 0.34s ease;
}

body.reveal-t08-dissolve .envelope-overlay .env-flap-3d {
    transform: translate3d(0, 76px, 0) rotateX(180deg) scale(0.96);
    opacity: 0;
    transition:
        transform var(--rev-env-dissolve-duration) var(--rev-ease-expo),
        opacity 0.34s ease;
}

/* ==========================================================================
   4. MORPHING FLIP 100 % GPU (TRANSFORM UNIQUEMENT)
   ========================================================================== */
body.reveal-staging .hero-arch,
body.is-cinematic-reveal:not(.reveal-t14-morph) .hero-arch {
    opacity: 0;
}

body.is-cinematic-reveal .hero-arch {
    transform-origin: 50% 0%;
}

body.reveal-staging .public-lang-bar,
body.is-cinematic-reveal:not(.reveal-t14-morph) .public-lang-bar {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
}

body.reveal-t14-morph .public-lang-bar {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.5s var(--rev-ease-soft) 0.25s, transform 0.5s var(--rev-ease-expo) 0.25s;
}

body.reveal-staging .hero-arch .card-star,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .card-star {
    opacity: 0;
    animation: none;
}

/* ==========================================================================
   5. POUSSE BOTANIQUE DES FLEURS (RAPIDE & LÉGÈRE SUR GPU)
   ========================================================================== */
.hero-arch .floral-top-left {
    top: clamp(4px, 1.8%, 16px);
    left: clamp(0px, 1.8%, 14px);
    width: clamp(124px, 34%, 244px);
    height: clamp(124px, 34%, 244px);
}

.hero-arch .floral-top-right {
    top: clamp(4px, 1.8%, 16px);
    right: clamp(0px, 1.8%, 14px);
    width: clamp(124px, 34%, 244px);
    height: clamp(124px, 34%, 244px);
}

@media (max-width: 639px) {
    .arch-card.hero-arch {
        border-radius: 250px 250px 28px 28px;
        padding-top: 136px;
    }
    .arch-card.hero-arch .bismillah-line {
        max-width: 205px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 460px) and (max-width: 639px) {
    .arch-card.hero-arch {
        border-radius: 225px 225px 28px 28px;
    }
    .arch-card.hero-arch .arch-gold-border {
        border-radius: 215px 215px 20px 20px;
    }
    .arch-card.hero-arch .arch-gold-border-inner {
        border-radius: 210px 210px 16px 16px;
    }
    .arch-card.hero-arch .bismillah-line {
        max-width: 320px;
    }
}

.hero-arch .svg-leaf {
    transform-box: fill-box;
    transform-origin: 50% 96%;
}

.hero-arch .svg-flower-core,
.hero-arch .floral-wash-bg {
    transform-box: fill-box;
    transform-origin: 50% 50%;
}

body.reveal-staging .hero-arch .floral-bottom,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .floral-bottom {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
}

body.reveal-staging .hero-arch .floral-top-left,
body.reveal-staging .hero-arch .floral-top-right,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .floral-top-left,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .floral-top-right {
    opacity: 0;
    transform: scale(0.88);
}

body.reveal-staging .hero-arch .svg-stem,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .svg-stem {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0;
}

body.reveal-staging .hero-arch .svg-leaf,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .svg-leaf {
    opacity: 0;
    transform: scale(0.12) rotate(-18deg);
}

body.reveal-staging .hero-arch .svg-petal,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .svg-petal {
    opacity: 0;
    transform: scale(0.22) rotate(-12deg);
}

body.reveal-staging .hero-arch .svg-flower-core,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .svg-flower-core,
body.reveal-staging .hero-arch .floral-wash-bg,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .floral-wash-bg {
    opacity: 0;
}

body.reveal-t20-flowers .hero-arch .floral-bottom {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 0.72s var(--rev-ease-expo), opacity 0.4s ease;
}

body.reveal-t20-flowers .hero-arch .floral-top-left,
body.reveal-t20-flowers .hero-arch .floral-top-right {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.68s var(--rev-ease-expo) 0.08s, opacity 0.4s ease 0.08s;
}

body.reveal-t20-flowers .hero-arch .floral-wash-bg {
    opacity: 1;
    transition: opacity 0.6s ease 0.08s;
}

body.reveal-t20-flowers .hero-arch .svg-stem {
    stroke-dasharray: 1;
    animation: revStemDraw var(--rev-stem-duration) var(--rev-ease-expo) both;
}

body.reveal-t20-flowers .hero-arch .svg-leaf {
    animation: revLeafUnfold var(--rev-leaf-duration) var(--rev-ease-bloom) both;
    animation-delay: calc(0.12s + var(--leaf-idx, 0) * 0.04s);
}

body.reveal-t20-flowers .hero-arch .svg-petal {
    animation: revPetalBloom var(--rev-petal-duration) var(--rev-ease-bloom) both;
    animation-delay: calc(0.24s + var(--petal-delay, 0s) * 0.65);
}

body.reveal-t20-flowers .hero-arch .svg-flower-core {
    animation: revCoreBud 0.45s var(--rev-ease-bloom) both;
    animation-delay: calc(0.24s + var(--core-delay, 0.18s) * 0.65);
}

body.reveal-staging .hero-arch .floral-img,
body.is-cinematic-reveal:not(.reveal-t20-flowers) .hero-arch .floral-img {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.94);
}

body.reveal-t20-flowers .hero-arch .floral-img {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.7s var(--rev-ease-expo), opacity 0.5s ease;
}

@keyframes revStemDraw {
    0% { stroke-dashoffset: 1; opacity: 0.25; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes revLeafUnfold {
    0% { opacity: 0; transform: scale(0.12) rotate(-18deg); }
    72% { opacity: 1; transform: scale(1.05) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes revPetalBloom {
    0% { opacity: 0; transform: scale(0.22) rotate(-12deg); }
    72% { opacity: 1; transform: scale(1.05) rotate(1.5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes revCoreBud {
    0% { opacity: 0; transform: scale(0.25); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   6. BISMILLAH & CALLIGRAPHIE MANUSCRITE "ZAKI & CHAIMAE"
   ========================================================================== */
body.reveal-staging .bismillah-line,
body.reveal-staging .cover-arch-medallion,
body.is-cinematic-reveal:not(.reveal-t32-bismillah) .bismillah-line,
body.is-cinematic-reveal:not(.reveal-t32-bismillah) .cover-arch-medallion {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
}

body.reveal-t32-bismillah .bismillah-line {
    animation: revGentleSlideUp var(--rev-bismillah-duration) var(--rev-ease-expo) both;
}

body.reveal-t32-bismillah .cover-arch-medallion {
    animation: revGentleSlideUp var(--rev-bismillah-duration) var(--rev-ease-expo) 0.08s both;
}

body.reveal-staging .handwriting-name,
body.is-cinematic-reveal:not(.reveal-t36-names) .handwriting-name {
    clip-path: inset(-28% 100% -30% -10%);
    opacity: 0;
}

html[dir="rtl"] body.reveal-staging .handwriting-name,
html[dir="rtl"] body.is-cinematic-reveal:not(.reveal-t36-names) .handwriting-name {
    clip-path: inset(-28% -10% -30% 100%);
    opacity: 0;
}

body.reveal-staging .spouse-fullname,
body.is-cinematic-reveal:not(.reveal-t36-names) .spouse-fullname {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
}

body.reveal-staging .couple-ampersand,
body.is-cinematic-reveal:not(.reveal-t36-names) .couple-ampersand {
    opacity: 0;
    transform: scale(0.6);
}

body.reveal-t36-names .spouse-block:first-child .handwriting-name {
    animation: revCalligraphyLtr var(--rev-name-write-duration) cubic-bezier(0.32, 0, 0.2, 1) 0s both;
}

html[dir="rtl"] body.reveal-t36-names .spouse-block:first-child .handwriting-name {
    animation-name: revCalligraphyRtl;
}

body.reveal-t36-names .spouse-block:first-child .spouse-fullname {
    animation: revGentleSlideUp 0.45s var(--rev-ease-expo) 0.36s both;
}

body.reveal-t36-names .handwriting-name::before {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 10%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(214, 178, 118, 0.85), #FFF7E0, transparent);
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    pointer-events: none;
}

html[dir="rtl"] body.reveal-t36-names .handwriting-name::before {
    transform-origin: right center;
}

body.reveal-t36-names .spouse-block:first-child .handwriting-name::before {
    animation: revGoldInkStroke var(--rev-name-write-duration) var(--rev-ease-soft) 0s both;
}

body.reveal-t36-names .spouse-block:last-child .handwriting-name::before {
    animation: revGoldInkStroke var(--rev-name-write-duration) var(--rev-ease-soft) 0.56s both;
}

.couple-ampersand {
    position: relative;
}

body.reveal-t36-names .couple-ampersand {
    animation: revAmpLightBurst 0.5s var(--rev-ease-bloom) 0.4s both;
}

body.reveal-t36-names .spouse-block:last-child .handwriting-name {
    animation: revCalligraphyLtr var(--rev-name-write-duration) cubic-bezier(0.32, 0, 0.2, 1) 0.56s both;
}

html[dir="rtl"] body.reveal-t36-names .spouse-block:last-child .handwriting-name {
    animation-name: revCalligraphyRtl;
}

body.reveal-t36-names .spouse-block:last-child .spouse-fullname {
    animation: revGentleSlideUp 0.45s var(--rev-ease-expo) 0.92s both;
}

@keyframes revCalligraphyLtr {
    0% { clip-path: inset(-28% 100% -30% -10%); opacity: 0.3; }
    15% { opacity: 1; }
    100% { clip-path: inset(-28% -12% -30% -10%); opacity: 1; }
}

@keyframes revCalligraphyRtl {
    0% { clip-path: inset(-28% -10% -30% 100%); opacity: 0.3; }
    15% { opacity: 1; }
    100% { clip-path: inset(-28% -10% -30% -12%); opacity: 1; }
}

@keyframes revGoldInkStroke {
    0% { transform: scaleX(0); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: scaleX(1); opacity: 0; }
}

@keyframes revAmpLightBurst {
    0% { opacity: 0; transform: scale(0.55); }
    60% { opacity: 1; transform: scale(1.18); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   7. PÉTALES EN FOND & PAPILLONS (REPOS APAISÉ APRÈS L'ENTRÉE COURBE)
   ========================================================================== */
body.reveal-staging #petalsLayer,
body.is-cinematic-reveal:not(.reveal-t48-nature) #petalsLayer {
    opacity: 0;
}

body.reveal-t48-nature #petalsLayer {
    opacity: 1;
    transition: opacity 0.9s var(--rev-ease-soft) 0.3s;
}

body.reveal-staging .butterflies-stage .butterfly-actor,
body.is-cinematic-reveal:not(.reveal-t48-nature) .butterflies-stage .butterfly-actor {
    opacity: 0;
    animation: none !important;
}

body.is-cinematic-reveal.reveal-t48-nature .butterflies-stage .butterfly-actor,
body.reveal-complete .butterflies-stage .butterfly-actor {
    animation: none;
}

/* Une fois posés en fin de séquence, arrêter le battement rapide continu des ailes pour économiser 100 % du GPU */
body.reveal-complete .bfly-wing-left,
body.reveal-complete .bfly-wing-right {
    animation: none;
}

body.is-low-tier .butterflies-stage .butterfly-flight-2 {
    display: none !important;
}

/* ==========================================================================
   8. CASCADE INVITATION, DATE, TRAITS DORÉS & ICÔNES
   ========================================================================== */
body.reveal-staging .script-Accent-subtitle,
body.reveal-staging .intro-text,
body.reveal-staging .hero-arch .gold-divider,
body.reveal-staging .editorial-date-block,
body.reveal-staging .dual-info-grid,
body.reveal-staging .reception-script,
body.is-cinematic-reveal:not(.reveal-t54-details) .script-Accent-subtitle,
body.is-cinematic-reveal:not(.reveal-t54-details) .intro-text,
body.is-cinematic-reveal:not(.reveal-t54-details) .hero-arch .gold-divider,
body.is-cinematic-reveal:not(.reveal-t54-details) .editorial-date-block,
body.is-cinematic-reveal:not(.reveal-t54-details) .dual-info-grid,
body.is-cinematic-reveal:not(.reveal-t54-details) .reception-script {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

body.reveal-t54-details .script-Accent-subtitle {
    animation: revGentleSlideUp var(--rev-stagger-duration) var(--rev-ease-expo) 0s both;
}

body.reveal-t54-details .intro-text {
    animation: revGentleSlideUp var(--rev-stagger-duration) var(--rev-ease-expo) 0.08s both;
}

body.reveal-t54-details .hero-arch .gold-divider {
    animation: revGentleSlideUp var(--rev-stagger-duration) var(--rev-ease-expo) 0.14s both;
}

body.reveal-t54-details .hero-arch .gold-divider .divider-line {
    transform-origin: center;
    animation: revLineScaleX 0.55s var(--rev-ease-expo) 0.16s both;
}

body.reveal-t54-details .editorial-date-block {
    animation: revGentleSlideUp var(--rev-stagger-duration) var(--rev-ease-expo) 0.22s both;
}

body.is-cinematic-reveal .date-wing {
    border-top-color: transparent;
    border-bottom-color: transparent;
}

body.is-cinematic-reveal .date-wing::before,
body.is-cinematic-reveal .date-wing::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(184, 146, 90, 0.52);
    transform: scaleX(0);
    transform-origin: center;
}

body.is-cinematic-reveal .date-wing::before { top: 0; }
body.is-cinematic-reveal .date-wing::after { bottom: 0; }

body.reveal-t54-details .date-wing::before,
body.reveal-t54-details .date-wing::after {
    animation: revLineScaleX 0.52s var(--rev-ease-expo) 0.26s both;
}

body.reveal-staging .date-vline,
body.is-cinematic-reveal:not(.reveal-t54-details) .date-vline {
    transform: scaleY(0);
}

body.reveal-t54-details .date-vline {
    transform-origin: center;
    animation: revLineScaleY 0.5s var(--rev-ease-expo) 0.26s both;
}

body.reveal-t54-details .dual-info-grid {
    animation: revGentleSlideUp var(--rev-stagger-duration) var(--rev-ease-expo) 0.34s both;
}

body.reveal-t54-details .dual-info-divider {
    transform-origin: center;
    animation: revLineScaleY 0.5s var(--rev-ease-expo) 0.38s both;
}

body.reveal-t54-details .gold-icon-wrap {
    animation: revIconIlluminate 0.58s var(--rev-ease-bloom) 0.36s both;
}

body.reveal-t54-details .reception-script {
    animation: revGentleSlideUp var(--rev-stagger-duration) var(--rev-ease-expo) 0.44s both;
}

@keyframes revLineScaleX {
    from { transform: scaleX(0); opacity: 0.25; }
    to { transform: scaleX(1); opacity: 1; }
}

@keyframes revLineScaleY {
    from { transform: scaleY(0); opacity: 0.25; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes revIconIlluminate {
    0% { opacity: 0; transform: scale(0.72); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes revGentleSlideUp {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ==========================================================================
   9. COMPTE À REBOURS & BOUTON RSVP + INDICATEUR DE SCROLL
   ========================================================================== */
body.reveal-t64-countdown #countdownSection {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    transition: opacity 0.55s var(--rev-ease-expo), transform 0.55s var(--rev-ease-expo);
}

body.reveal-staging .hero-cta-wrap,
body.is-cinematic-reveal:not(.reveal-t70-finale) .hero-cta-wrap {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
}

body.reveal-t70-finale .hero-cta-wrap {
    animation: revGentleSlideUp 0.52s var(--rev-ease-expo) both;
}

/* ==========================================================================
   10. ÉTAT FINAL 100 % STATIQUE & LÉGER (ZÉRO REPAINT AU REPOS / SCROLL)
   ========================================================================== */
body.reveal-complete .hero-arch,
body.reveal-complete .public-lang-bar,
body.reveal-complete .bismillah-line,
body.reveal-complete .cover-arch-medallion,
body.reveal-complete .script-Accent-subtitle,
body.reveal-complete .intro-text,
body.reveal-complete .spouse-fullname,
body.reveal-complete .couple-ampersand,
body.reveal-complete .hero-arch .gold-divider,
body.reveal-complete .editorial-date-block,
body.reveal-complete .dual-info-grid,
body.reveal-complete .reception-script,
body.reveal-complete .hero-cta-wrap {
    opacity: 1;
    transform: none;
}

body.reveal-complete .handwriting-name {
    clip-path: none;
    opacity: 1;
}

body.reveal-complete .handwriting-name::before,
body.reveal-complete .handwriting-name::after {
    display: none;
}

body.reveal-complete .hero-arch .svg-stem {
    stroke-dashoffset: 0;
    opacity: 1;
}

body.reveal-complete .hero-arch .svg-leaf,
body.reveal-complete .hero-arch .svg-petal,
body.reveal-complete .hero-arch .svg-flower-core,
body.reveal-complete .hero-arch .floral-wash-bg {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   11. CONTRÔLES FLOTTANTS SANS BACKDROP-FILTER COÛTEUX
   ========================================================================== */
.public-lang-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(251, 247, 240, 0.96);
}

.music-toggle {
    top: max(14px, env(safe-area-inset-top, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    bottom: auto;
    z-index: 980;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(184, 146, 90, 0.58);
    background: rgba(251, 247, 240, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--color-gold-dark);
    box-shadow: 0 4px 14px rgba(122, 92, 48, 0.12);
    transition: transform 0.2s ease, opacity 0.3s ease;
}

body.envelope-locked:not(.is-cinematic-reveal) .music-toggle {
    opacity: 0;
    pointer-events: none;
}

.speaker-icon {
    width: 19px;
    height: 19px;
    display: block;
}

.music-toggle .speaker-on-icon { display: none; }
.music-toggle .speaker-off-icon { display: block; opacity: 0.78; }
.music-toggle.is-playing .speaker-on-icon { display: block; }
.music-toggle.is-playing .speaker-off-icon { display: none; }

.skip-reveal-btn {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 16px));
    bottom: max(18px, env(safe-area-inset-bottom, 18px));
    z-index: 980;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(184, 146, 90, 0.52);
    background: rgba(255, 253, 249, 0.96);
    color: var(--color-gold-dark);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(92, 66, 30, 0.12);
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity 0.3s ease, transform 0.3s var(--rev-ease-expo);
}

.skip-reveal-btn[hidden] { display: none !important; }
.skip-reveal-btn.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.skip-reveal-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
[dir="rtl"] .skip-reveal-btn { letter-spacing: 0; font-family: 'Cairo', sans-serif; font-size: 0.78rem; }
[dir="rtl"] .skip-reveal-btn svg { transform: scaleX(-1); }

.scroll-hint-indicator {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    z-index: 820;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 16px 4px;
    border-radius: 999px;
    border: 1px solid rgba(184, 146, 90, 0.55);
    background: rgba(255, 253, 249, 0.97);
    color: var(--color-gold-dark);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(92, 66, 30, 0.14);
    opacity: 0;
    transform: translate3d(-50%, 10px, 0);
    transition: opacity 0.4s ease, transform 0.4s var(--rev-ease-expo);
}

.scroll-hint-indicator[hidden] { display: none !important; }
.scroll-hint-indicator.is-visible { opacity: 0.96; transform: translate3d(-50%, 0, 0); }
.scroll-hint-indicator.is-dismissed { opacity: 0; transform: translate3d(-50%, 8px, 0); pointer-events: none; }
[dir="rtl"] .scroll-hint-indicator { letter-spacing: 0; text-transform: none; font-family: 'Cairo', sans-serif; font-size: 0.74rem; }

.scroll-hint-chevron {
    display: inline-flex;
    width: 15px;
    height: 15px;
    color: var(--color-gold);
    animation: scrollChevronBounce 1.8s ease-in-out infinite;
}

.scroll-hint-chevron svg { width: 100%; height: 100%; }

@keyframes scrollChevronBounce {
    0%, 100% { transform: translate3d(0, -1px, 0); }
    50% { transform: translate3d(0, 3px, 0); }
}

@media (max-width: 420px) {
    .music-toggle {
        width: 38px;
        height: 38px;
        top: max(12px, env(safe-area-inset-top, 12px));
        right: 12px;
    }
    .speaker-icon { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .envelope-overlay.is-reduced-fade-1s {
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 1s ease, visibility 1s ease !important;
    }
    .reveal-golden-glow,
    .reveal-gold-dust-layer,
    .reveal-petal-wave-layer,
    .skip-reveal-btn,
    .scroll-hint-chevron {
        animation: none !important;
        transition: none !important;
    }
}
