/**
 * BALART INVITATION — Base CSS
 * /wp-content/themes/kadence-child/invitation-styles/base.css
 *
 * Variables universelles — écrasées par snippet-palette.php si le client personnalise
 */



:root {
    /* Palette — valeurs par défaut Classique */
    --cream:      #F5F0E8;
    --cream-mid:  #EDE6D6;
    --cream-dark: #D9CFC0;
    --gold:       #C4A882;
    --gold-dark:  #A07830;
    --brown:      #4A3F35;
    --brown-mid:  #2C2420;
    --text:       #3A2E26;
    --text-light: #8C8278;
    --white:      #FDFAF5;
    --seal-gold-light: #D4AF6A;
    --seal-gold-dark:  #A07830;
    /* Typographie — valeurs par défaut (Classique) */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans:  'Jost', sans-serif;
}

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

body { background: var(--cream); }

/* ── Contenu principal ── */
#balart-content {
    opacity: 0;
    transition: opacity 0.8s ease 0.2s;
    font-family: var(--font-sans);
    color: var(--brown-mid);
    min-height: 100vh;
}
#balart-content.visible { opacity: 1; }

/* ── Séparateur universel entre blocs ── */
.balart-sep {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    max-width: 680px;
    margin: 0 auto 48px;
}
.balart-sep::before,
.balart-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cream-dark);
}
.balart-sep-icon { color: var(--gold); font-size: 14px; opacity: .7; }

/* ── Section générique ── */
.balart-section {
    padding: 80px 24px;
    max-width: 680px;
    margin: 0 auto;
}
.s-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}
.s-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 300;
    font-style: italic;
    color: var(--brown);
    margin-bottom: 40px;
    line-height: 1.2;
}

/* ── Bouton musique fixe ── */
#balart-music-btn {
    position: fixed; bottom: 28px; right: 28px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--brown); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(44,36,32,.2);
    transition: transform .2s ease;
}
#balart-music-btn:hover { transform: scale(1.1); }
#balart-music-btn svg { color: var(--cream-mid); }

/* ── Espace admin ── */
.balart-admin-box {
    margin: 40px auto; padding: 24px;
    background: #f0f4ff; border-radius: 8px;
    border: 1px dashed #99b; max-width: 680px;
}

/* ── Footer ── */
.balart-footer {
    padding: 40px 24px; text-align: center;
    background: var(--cream);
    border-top: 1px solid var(--cream-dark);
}
.balart-footer p {
    font-family: var(--font-serif);
    font-size: 13px; font-style: italic;
    color: var(--cream-dark); letter-spacing: 1px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BALART INVITATION — Système de fond par section (VERSION FINALE)
   À ajouter à la fin de /invitation-styles/base.css
   ════════════════════════════════════════════════════════════════════════════

   Principe :
   - Chaque section "à contempler" peut avoir un fond illustré (image/vidéo)
   - L'illustration s'adapte à la hauteur naturelle de la section (pas l'inverse)
   - Le contenu commande, l'illustration suit
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Toute section doit pouvoir contenir une couche absolute ───────────── */
/* Spécificité élevée pour battre les règles des CSS de collection */
section.balart-section,
.bloc-histoire-wrap.balart-section {
    position: relative;
    overflow: hidden;
}

/* ── Couche de fond commune ────────────────────────────────────────────── */
.bloc-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* ── Variante image ────────────────────────────────────────────────────── */
.bloc-bg-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ── Variante vidéo ────────────────────────────────────────────────────── */
.bloc-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ── Le contenu passe au-dessus de la couche bg ────────────────────────── */
section.balart-section > *:not(.bloc-bg-layer),
.bloc-histoire-wrap.balart-section > *:not(.bloc-bg-layer) {
    position: relative;
    z-index: 1;
}

/* ── Reduced motion : on cache la vidéo si l'utilisateur a désactivé ──── */
@media (prefers-reduced-motion: reduce) {
    .bloc-bg-video video {
        display: none;
    }
    .bloc-bg-video {
        background-color: var(--cream, #faf4ee);
    }
}

/* ── Fallback couleur si la vidéo ne charge pas ────────────────────────── */
.bloc-bg-video {
    background-color: var(--cream, #faf4ee);
}