/* ==================================================
   VARIABLES & CONFIGURATION GLOBALE
   ================================================== */
:root {
    --full-anim: 30s;
    --primary-color: #000;
    --text-color: white;
    --overlay-color: rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
    --mobile-breakpoint: 768px;
    --tablet-breakpoint: 1024px;
    --small-mobile: 480px;
}

/* ==================================================
   STYLES DE BASE
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
    background-color: var(--primary-color);
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
}

/* ==================================================
   SECTIONS PRINCIPALES
   ================================================== */
.section {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    font-family: 'Bitter', serif;
    text-align: left; 
}

/* Grille à deux colonnes */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

/* Colonnes */
.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    height: 100%;
}

/* ==================================================
   IMAGES STICKY CENTRÉES
   ================================================== */
.sticky-image {
    position: sticky;
    top: 10px;
    width: 90%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--overlay-color);
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Contenu défilant */
.scroll-content {
    padding: 2rem 4rem;
}

.scroll-content p {
    font-family: "Rubik", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 300;
}

.scroll-content .ecart {
    padding-top: 6em;
    font-weight: 500;
}
.premier {
    padding: 20px 0;
}
.second {
    padding: 60px 0 20px 0;
}
.scroll-content .premier p, .scroll-content .second p {
    font-family: "Rubik", sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 300;
}
.interligne {
    line-height: 1em !important;
}

.scroll-content h3 {
    font-family: 'Bitter', serif;
    font-size: 2rem;
    color: white;
    margin: 2rem 0 1rem;
}

/* ==================================================
   SECTION VIDÉO
   ================================================== */
.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    width: 80%;
    max-width: 800px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   ANIMATIONS D'OUVERTURE - VERSION CORRIGÉE
   ================================================== */
.ouverture {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* Animation commune à tous les calques */
.animation {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    animation: animons-1 var(--full-anim) infinite;
    background-repeat: no-repeat;
    background-size: cover;
    /*background-position: center;*/
    transition: opacity 0.3s ease;
}

/* Configurations spécifiques par calque */
.animation.animation-1 {
    animation-delay: 0s;
    opacity: 1;
    background-image: url(../img/heroines/hero01.jpg);
    background-position: 17% 90%;
}

.animation.animation-2 {
    animation-name: animons-2;
    animation-delay: calc(var(--full-anim) * 0.25);
    background-image: url(../img/heroines/hero02.jpg);
    background-position: 97% 100%;
}

.animation.animation-3 {
    animation-name: animons-3;
    animation-delay: calc(var(--full-anim) * 0.5);
    background-image: url(../img/heroines/hero03.jpg);
    background-position: 15% 100%;
}

.animation.animation-4 {
    animation-name: animons-4;
    animation-delay: calc(var(--full-anim) * 0.75);
    background-image: url(../img/heroines/hero04.jpg);
    background-position: 97% 100%;
}

/* ==================================================
   KEYFRAMES ANIMATIONS - STRUCTURE QUI FONCTIONNE
   ================================================== */
@keyframes animons-1 {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    25% { opacity: 1; }
    50% { 
        opacity: 0;
        background-position: 99% 0%;
    }
    100% { opacity: 0; }
}

@keyframes animons-2 {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    25% { opacity: 1; }
    50% { 
        opacity: 0;
        background-position: 24% 11%;
    }
    100% { opacity: 0; }
}

@keyframes animons-3 {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    25% { opacity: 1; }
    50% { 
        opacity: 0;
        background-position: 80% 0%;
    }
    100% { opacity: 0; }
}

@keyframes animons-4 {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    25% { opacity: 1; }
    50% { 
        opacity: 0;
        background-position: 30% 0%;
    }
    100% { opacity: 0; }
}

/* ==================================================
   LOGO
   ================================================== */
.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-decoration: none;
}

.logo img {
    height: 162px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* ==================================================
   TITRE VERTICAL
   ================================================== */
.ouverture h2 {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    position: absolute;
    top: 51%;
    left: 13%;
    font-size: 15px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    z-index: 10;
}

.ecart-1 {
    letter-spacing: 0.3em;
}

.ecart-2 {
    letter-spacing: 0.2em;
}

/* ==================================================
   BOUTON DÉCOUVRIR
   ================================================== */
.decouvrir {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    z-index: 10;
}

.decouvrir .decouvrir_1 {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
}

.decouvrir a {
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 100;
}

.decouvrir .decouvrir_1 .decouvrir_2 {
    --c: white;
    position: relative;
    height: 3.3em;
    margin: 1em;
    color: var(--c);
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 3em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 0.3em solid var(--c);
    border-radius: 0.5em;
    overflow: hidden;
    z-index: 1;
    transition: 0.5s;
    padding: 0 20px;
    cursor: pointer;
    background: transparent;
}

.decouvrir .decouvrir_1 .decouvrir_2 span {
    --n: 1;
    position: absolute;
    width: 25%;
    height: 100%;
    left: calc((var(--n) - 1) * 25%);
    background-color: var(--c);
    border-radius: 50%;
    transform: translateY(150%);
    transition: 0.5s;
    transition-delay: calc((var(--n) - 1) * 0.1s);
    z-index: -1;
}

.decouvrir .decouvrir_1 .decouvrir_2 span:nth-child(1) { --n: 1; }
.decouvrir .decouvrir_1 .decouvrir_2 span:nth-child(2) { --n: 2; }
.decouvrir .decouvrir_1 .decouvrir_2 span:nth-child(3) { --n: 3; }
.decouvrir .decouvrir_1 .decouvrir_2 span:nth-child(4) { --n: 4; }

.decouvrir .decouvrir_1 .decouvrir_2:hover {
    color: black;
}

.decouvrir .decouvrir_1 .decouvrir_2:hover span {
    transform: translateY(0) scale(2);
}

/* ==================================================
   MÉDIAS QUERIES - ORIENTATION
   ================================================== */
@media (orientation: portrait) {
.animation {
     background-size: 150%;
  }
}

@media (orientation: landscape) {
.animation {
    background-size: 150%;
  }
}

/* ==================================================
   MÉDIAS QUERIES - TABLETTE (768px - 1024px)
   ================================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .two-columns {
        gap: 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .scroll-content p {
        font-size: 1.2rem;
    }
    
    .scroll-content {
        padding: 1.5rem 2rem;
    }
    
    .sticky-image {
        max-height: 80vh;
        object-fit: contain;
    }
}

/* ==================================================
   MÉDIAS QUERIES - GRANDS ÉCRANS
   ================================================== */
@media screen and (min-width: 1770px) {
    section h2 {
        visibility: hidden;
    }
}

/* ==================================================
   MÉDIAS QUERIES - MOBILE (jusqu'à 768px)
   ================================================== */
@media screen and (max-width: 768px) {
    .section {
        padding: 1rem;
        min-height: auto;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .col {
        min-height: auto;
        justify-content: flex-start;
    }

    .sticky-image {
        position: static;
        top: auto;
        transform: none;
        margin-bottom: 1rem;
        max-height: 50vh;
        object-fit: cover;
    }

    .section:first-of-type .two-columns {
        display: flex;
        flex-direction: column;
    }

    .section:nth-of-type(2) .two-columns {
        display: flex;
        flex-direction: column;
    }
    
    .section:nth-of-type(2) .two-columns .col:first-child {
        order: 2;
    }
    
    .section:nth-of-type(2) .two-columns .col:last-child {
        order: 1;
    }

    .scroll-content {
        padding: 1rem;
    }

    .scroll-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .video-container {
        width: 95%;
    }
    
    .logo img {
        height: 100px;
    }
    
    .decouvrir .decouvrir_1 .decouvrir_2 {
        font-size: 14px;
        padding: 0 15px;
    }
}

/* ==================================================
   MÉDIAS QUERIES - TRÈS PETITS ÉCRANS (jusqu'à 480px)
   ================================================== */
@media screen and (max-width: 480px) {
    .section {
        padding: 0.75rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .sticky-image {
        border-radius: 0.5rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .ouverture h2 {
        font-size: 12px;
        left: 5%;
    }
    
    .decouvrir .decouvrir_1 .decouvrir_2 {
        font-size: 12px;
        padding: 0 10px;
        height: 2.5em;
        line-height: 2em;
         border: 0.2em solid var(--c);
    }
}

/* ==================================================
   MÉDIAS QUERIES SPÉCIFIQUES POUR L'ANIMATION
   ================================================== */
@media screen and (max-width: 860px) and (orientation: portrait) {
    .animation {
        background-size: cover;
    }
    
    .logo img {
        height: 74px;
    }
}

@media screen and (max-width: 860px) and (orientation: landscape) {
    .animation {
        background-size: cover;
    }
    
    .logo img {
        height: 78px;
    }
}

/* ==================================================
   UTILITAIRES
   ================================================== */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==================================================
   SUPPORT LENIS SCROLL
   ================================================== */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}