/* about-story-charte — charte sombre V4 A propos VIP */
.lws-about-story-charte.about-section-block {
  --color-dark: #111111;
  --color-light: #F4EFE8;
  --color-muted: #C7BBB3;
  --color-surface: #1C181B;
  --color-surface-secondary: #231A20;
  --color-border: #3B3137;
  --color-copper: #C87846;
  --color-copper-hover: #D88C58;
  --color-prune: #351425;
  --color-cacao: #3A2116;
  --color-vin: #5A2137;
  --mobile-padding-vertical: 40px;
  --mobile-padding-horizontal: 40px;
}





/* Reset & Base pour ce bloc */
.lws-about-story-charte.about-section-block * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BLOC PRINCIPAL - Full Screen avec scroll naturel */
.lws-about-story-charte.about-section-block {
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    color: var(--color-light);
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow-x: clip;
    overflow-y: visible;
    line-height: 1.6;
    box-sizing: border-box;
    perspective: 1000px;
    isolation: isolate;
}

/* Halos : toujours SOUS le contenu (fiche, ombre, image), AU-DESSUS du fond. */
.lws-about-story-charte.about-section-block::before {
    content: '';
    position: absolute;
    width: min(92vw, 980px);
    height: min(92vw, 980px);
    left: -18%;
    bottom: -22%;
    z-index: -1;
}

.lws-about-story-charte.about-section-block::after {
    content: '';
    position: absolute;
    width: min(82vw, 880px);
    height: min(82vw, 880px);
    right: -16%;
    top: -18%;
    z-index: -1;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- CONTENEUR PRINCIPAL (PC) --- */
.lws-about-story-charte.about-section-block .about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem; /* Remplacé 40px par 2.5rem */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: calc(5rem + 20px); /* PC : +20px entre fiche slider et image / forme géo */
    position: relative;
    z-index: 2;
}

/* --- COLONNE TEXTE (Effet Carte Verre) --- */
.lws-about-story-charte.about-section-block .text-column {
    flex: 1;
    position: relative;
    z-index: 2;
    background: var(--color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2.5rem; /* Remplacé 40px par 2.5rem */
    border-radius: 1.5rem; /* Remplacé 24px par 1.5rem */
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

.lws-about-story-charte.about-section-block h2 {
    font-size: 0.8125rem; /* Remplacé 13px par 0.8125rem */
    text-transform: uppercase;
    letter-spacing: 0.25rem; /* Remplacé 4px par 0.25rem */
    color: var(--color-copper);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-weight: 700;
    margin-bottom: 1.25rem; /* Remplacé 20px par 1.25rem */
    display: inline-block;
}

.lws-about-story-charte.about-section-block h3 {
    font-size: 2rem; /* Remplacé 32px par 2rem */
    font-weight: 700;
    color: var(--color-light);
    margin-top: 0;
    margin-bottom: 1.56rem; /* Remplacé 25px par 1.56rem */
    line-height: 1.25;
}

.lws-about-story-charte.about-section-block p {
    font-size: 0.9375rem; /* Remplacé 15px par 0.9375rem */
    color: var(--color-muted);
    margin-bottom: 1.25rem; /* Remplacé 20px par 1.25rem */
    font-weight: 300;
    text-align: justify;
    line-height: 1.7;
}

/* --- CARROUSEL BIOGRAPHIE --- */
.lws-about-story-charte.about-section-block .bio-carousel {
    position: relative;
    overflow: visible;
}

.lws-about-story-charte.about-section-block .bio-slides-container {
    position: relative;
    width: 100%;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.lws-about-story-charte.about-section-block .bio-slide {
    /* ✅ POSITIONNEMENT ABSOLU pour permettre le cross-fade (superposition) */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    /* ✅ ANIMATION MODERNE : Glissement latéral + Zoom arrière + Flou */
    transform: translateX(20px) scale(0.98);
    filter: blur(3px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Empêcher les interactions sur les slides cachées */
}

.lws-about-story-charte.about-section-block .bio-slide.active {
    /* ✅ ÉTAT FINAL : Net, à sa place, taille réelle, visible et cliquable */
    position: relative; /* Redevient relative pour prendre de l'espace dans le flux */
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    pointer-events: auto; /* Réactiver les interactions */
}

.lws-about-story-charte.about-section-block .bio-slide p {
    margin-bottom: 0;
}

/* Navigation flèches */
.lws-about-story-charte.about-section-block .bio-nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
    padding: 10px 0;
    overflow: visible;
}

.lws-about-story-charte.about-section-block .bio-arrow {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.lws-about-story-charte.about-section-block .bio-arrow:hover {
    background: var(--color-surface-secondary);
    border-color: var(--color-copper);
    transform: none;
}

.lws-about-story-charte.about-section-block .bio-arrow:active {
    transform: scale(0.95);
}

.lws-about-story-charte.about-section-block .bio-arrow svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.7);
    transition: stroke 0.3s ease;
}

.lws-about-story-charte.about-section-block .bio-arrow:hover svg {
    stroke: #ffffff;
}

.lws-about-story-charte.about-section-block .bio-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Points indicateurs */
.lws-about-story-charte.about-section-block .bio-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.lws-about-story-charte.about-section-block .bio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lws-about-story-charte.about-section-block .bio-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.lws-about-story-charte.about-section-block .bio-dot.active {
    background: var(--color-copper);
    width: 24px;
    border-radius: 4px;
    border-color: var(--color-copper);
}

.lws-about-story-charte.about-section-block strong {
    color: var(--color-light);
    font-weight: 600;
}

/* --- BOUTON MODERNE --- */
.lws-about-story-charte.about-section-block .btn-luxe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.875rem;
    padding: 1rem 2.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    color: #111111;
    text-decoration: none;
    border-radius: 0.75rem;
    background: var(--color-copper);
    border: 1px solid var(--color-copper);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    align-self: center;
}

.lws-about-story-charte.about-section-block .btn-luxe::before {
    display: none;
}

.lws-about-story-charte.about-section-block .btn-luxe:hover {
    background: var(--color-copper-hover);
    border-color: var(--color-copper-hover);
    color: #111111;
    transform: none;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.45);
}



/* --- COLONNE IMAGE --- */
.lws-about-story-charte.about-section-block .image-column {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lws-about-story-charte.about-section-block .image-frame {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 0.5s ease-out;
}

/* Cercles décoratifs (même animation/décalage qu’avant, couleur vin unifiée) */
.lws-about-story-charte.about-section-block .image-frame::before,
.lws-about-story-charte.about-section-block .image-frame::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid var(--color-vin);
    border-radius: 50%;
    z-index: -1;
    background: transparent;
    box-shadow: none;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.lws-about-story-charte.about-section-block .image-frame::before {
    top: -30px;
    right: -30px;
    border-color: var(--color-vin);
    transform: translate(15px, -15px);
}

.lws-about-story-charte.about-section-block .image-frame::after {
    bottom: -30px;
    left: -30px;
    border-color: var(--color-vin);
    transform: translate(-15px, 15px);
}

.lws-about-story-charte.about-section-block .image-column:hover .image-frame::before {
    transform: translate(0, 0);
    border-color: var(--color-vin);
    box-shadow: none;
}

.lws-about-story-charte.about-section-block .image-column:hover .image-frame::after {
    transform: translate(0, 0);
    border-color: var(--color-vin);
    box-shadow: none;
}

.lws-about-story-charte.about-section-block .main-photo {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    filter: none;
    transition: none;
}

.lws-about-story-charte.about-section-block .image-column:hover .main-photo {
    transform: none;
    filter: none;
    box-shadow: none;
}

/* ============================================
   RESPONSIVE MOBILE - REFONTE COMPLETE
   ============================================ */
@media (max-width: 900px) {
    /* BLOC PRINCIPAL : Full screen + padding interne de sécurité */
    .lws-about-story-charte.about-section-block {
        width: 100%; /* Correction : Largeur standard pour éviter double scrollbar */
        height: auto; /* Permet au contenu de dépasser si nécessaire */
        min-height: 0; /* Plus de 100svh : ça créait un vide énorme avant le slider */
        padding: var(--mobile-padding-vertical) var(--mobile-padding-horizontal);
        /* −35 % sur le padding bas entre À propos et la section suivante */
        padding-bottom: calc(var(--mobile-padding-vertical) * 0.65);
        overflow-x: clip;
        overflow-y: visible;
        align-items: flex-start; /* Ancrage en haut */
        justify-content: center;
        position: relative;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
    
    /* CONTENEUR : Colonne inversée, largeur fixe pour alignement */
    .lws-about-story-charte.about-section-block .about-container {
        flex-direction: column-reverse;
        justify-content: flex-start; /* Ancrage top */
        align-items: center;
        gap: 15px;
        width: 100%;
        height: auto; /* Hauteur flexible */
        padding: 0;
        margin: 0 auto;
        max-width: 440px; /* Largeur commune pour image ET bulle */
    }

    /* IMAGE : Alignée latéralement sur la bulle — ~30 % plus petite sur mobile */
    .lws-about-story-charte.about-section-block .image-column {
        flex: 0 0 auto;
        width: 70%; /* −30 % vs pleine largeur du container */
        max-width: 308px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lws-about-story-charte.about-section-block .image-frame {
        width: 100%; /* Même largeur que la bulle */
        height: auto;
        aspect-ratio: 1 / 1; /* Image carrée */
        display: flex;
        justify-content: center;
        overflow: hidden;
        border-radius: 16px;
    }

    .lws-about-story-charte.about-section-block .main-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 22%;
        border-radius: 16px;
        box-shadow: none;
    }

    .lws-about-story-charte.about-section-block .image-frame::before,
    .lws-about-story-charte.about-section-block .image-frame::after {
        display: none;
    }

    /* BLOC TEXTE : opaque, au-dessus des orbes FX (jamais transparent) */
    .lws-about-story-charte.about-section-block .text-column {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(10px, 2.5svh, 20px);
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-surface);
        border-radius: 16px;
        border: 1px solid var(--color-border);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
        overflow: visible;
    }

    .lws-about-story-charte.about-section-block h2 {
        font-size: clamp(9px, 1.5svh, 11px);
        letter-spacing: 3px;
        margin-bottom: clamp(5px, 1svh, 10px);
    }

    .lws-about-story-charte.about-section-block h3 {
        font-size: clamp(18px, 3.5svh, 24px);
        margin-bottom: clamp(8px, 2svh, 15px);
        line-height: 1.2;
    }

    .lws-about-story-charte.about-section-block p {
        text-align: center;
        font-size: clamp(11px, 2.1svh, 14px);
        line-height: 1.5;
        margin-bottom: clamp(8px, 2svh, 15px);
    }

    /* CARROUSEL */
    .lws-about-story-charte.about-section-block .bio-carousel {
        width: 100%;
    }

    .lws-about-story-charte.about-section-block .bio-slides-container {
        overflow: visible;
        /* ✅ Transition conservée pour animation fluide mobile (comme desktop) */
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: height;
        /* ❌ height: auto !important SUPPRIMÉ - Empêchait l'animation JavaScript */
        /* Le JavaScript gère la hauteur pour l'animation, puis repasse en auto après */
    }
    
    .lws-about-story-charte.about-section-block .bio-nav-arrows {
        margin-top: clamp(5px, 1.5svh, 15px);
        gap: 10px;
        padding: 5px 0;
    }
    
    .lws-about-story-charte.about-section-block .bio-arrow {
        width: clamp(30px, 5svh, 36px);
        height: clamp(30px, 5svh, 36px);
    }
    
    .lws-about-story-charte.about-section-block .bio-arrow svg {
        width: 14px;
        height: 14px;
    }
    
    .lws-about-story-charte.about-section-block .bio-dots {
        gap: 6px;
    }
    
    .lws-about-story-charte.about-section-block .bio-dot {
        width: 5px;
        height: 5px;
    }
    
    .lws-about-story-charte.about-section-block .bio-dot.active {
        width: 15px;
    }
    
    .lws-about-story-charte.about-section-block .btn-luxe {
        margin-top: clamp(8px, 2svh, 15px);
        padding: clamp(10px, 2svh, 14px) clamp(20px, 5vw, 30px);
        font-size: clamp(11px, 1.8svh, 13px);
        align-self: center;
        flex-shrink: 0;
    }
}

/* --- LOGIQUE HOMOTHÉTIQUE ÉCRANS GÉANTS / TV (Supérieur à 1920px) --- */
/* 
   Le but est de simuler un "container full screen" qui zoome.
   On change l'unité de base (REM) pour qu'elle soit proportionnelle à la largeur (VW).
   Au lieu de rester fixe à 16px, 1rem devient une fraction de la largeur de l'écran.
   Ratio : 16px / 1920px * 100 = 0.833333vw
*/
@media (min-width: 1921px) {.lws-about-story-charte.about-section-block {
        /* On force la hauteur à suivre le ratio pour éviter les barres blanches si ratio étrange */
        height: 100vh; 
        width: 100vw;
        max-width: 100vw;
    }

    /* On débloque les limites max-width pour que tout puisse grandir */
    .lws-about-story-charte.about-section-block .about-container {
        max-width: 80%; /* Au lieu de 1200px fixe */
        width: 80%;
    }
}

.lws-about-story-charte .bio-dot { appearance: none; -webkit-appearance: none; padding: 0; }

