@font-face {
    font-family: 'Warnock Pro';
    src: url('fonts/WarnockPro-LightSubh.eot');
    src: url('fonts/WarnockPro-LightSubh.eot?#iefix') format('embedded-opentype'),
    url('fonts/WarnockPro-LightSubh.woff2') format('woff2'),
    url('fonts/WarnockPro-LightSubh.woff') format('woff'),
    url('fonts/WarnockPro-LightSubh.ttf') format('truetype'),
    url('fonts/WarnockPro-LightSubh.svg#WarnockPro-LightSubh') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

body, html {
    height: 100%;
    overflow: hidden;
}

.vertical-container {
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* On bloque le scroll natif */
    position: relative;
}

.section {
    position: absolute; /* On superpose les sections */
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); /* C'est ici que la magie opère */
    will-change: transform;
}

/* Slider Horizontal */
.slider-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Style des flèches horizontales (enfin visibles !) */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    border-radius: 5px;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.nav-arrow img {
    height: 16px;
    width: auto;
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Logo */
.logo {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 34vw;
    min-width: 260px;
    z-index: 10;
    /* Ajout de la transition */
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Classe utilitaire pour masquer le logo temporairement */
.logo-fade {
    opacity: 0;
}

.section-text-container {
    position: absolute;
    top: 140px;
    bottom: 0;
    left: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    justify-content: center;
    overflow-y: scroll;
    /* Empêche le scroll de se propager aux parents (sections) */
    overscroll-behavior: contain;
    /* Masquer la barre sur Firefox */
    scrollbar-width: none;
    /* Masquer la barre sur IE et Edge */
    -ms-overflow-style: none;
}

.section-text {
    font-family: 'Warnock Pro';
    font-size: 1.2em;
    line-height: 1.1em;
    width: auto;
    max-width: 640px;
}

.section-text h2 {
    font-weight: bold;
    font-size: 1.8rem;
}

.section-text ul {
    padding: 0 0 20px 30px;
}

.section-text li {
    margin: 0
}

/* Style du bouton Hamburger */
.mobile-menu-container {
    position: fixed;
    top: 60px;
    right: 10px;
    z-index: 1000;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 20px;
}

.hamburger span {
    width: 22px;
    height: 3px;
    background-color: #fff; /* À ajuster selon vos fonds */
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Menu déroulant */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Caché par défaut */
    width: 200px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 20px 0 20px;
    transition: right 0.3s ease-in-out;
    border-bottom-left-radius: 10px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 20px;
    text-align: center;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.close-menu {
    height: 20px;
    width: auto;
    float: right;
    cursor: pointer;
}

/* Animation de la croix quand ouvert */
.hamburger.open { opacity: 0; }
.hamburger.open span:nth-child(1) { opacity: 0; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { opacity: 0; }

.chevron-up {
    position: absolute;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: auto;
    top: 18dvh;
}

/* Footer fixe par section */
.section-footer {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    z-index: 10;
    min-width: 300px;
    text-align: center;
    line-height: 1.4em;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-family: 'Warnock Pro';
    font-size: 1.4rem;
    line-height: 1.1em;
}

.contact {
    position: absolute;
    bottom: 5vh;
    right: 40px;
    z-index: 1100;
    color: darkcyan;
    font-family: 'Warnock Pro';
    font-size: 2.6rem;
    cursor: pointer;
}

.v-arrow {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Overlay Vidéo */
.video-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.video-content {
    position: relative;
    width: 80%;
    max-width: 1920px;
}

video { width: 100%; border-radius: 8px; }

.video-trigger {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
}

.play-icon {
    font-size: 3rem;
    transition: color 0.5s ease;
}

.close-video {
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    width: 100%;
    text-align: right;
    display: block;
}

.form-control {
    margin-bottom: 8px
}
.bt {
    margin: 0 auto;
    border: 1px solid #FFFFFF;
    background: transparent;
    font-size: 16px;
    color: #FFFFFF;
    transition: all 0.3s ease-in-out;
}
.message {
    height: 100px;
}
.bt:hover {
    border: 1px solid #FFFFFF;
    background: #FFFFFF;
    font-size: 16px;
    color: #675b55;
    transition: all 0.3s ease-in-out;
}

/* Styles par défaut (mobile first) */
.bg_container {
    width: 100vw;
    height: 100%;
    text-align: center;
    position: absolute;
    z-index: 2;
    top: 0;
    background-image: url('images/accueil-web.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Styles pour les écrans plus grands (desktop) */
@media (min-width: 768px) {
    .form-control {
        margin-bottom: 15px
    }
    .message {
        height: 140px !important;
    }
    .section-text-container {
        top: 25vh;
        left: 50%;
        right: inherit;
        transform: translateX(-50%);
    }
    .section-text {
        font-size: 1.4em;
        line-height: 1.2em;
    }
    .section-text h2 {
        font-size: 2.4rem;
    }
    .footer-text {
        font-size: 1.8rem;
        line-height: inherit;
    }
    .section-footer {
        bottom: 5vh;
        line-height: 1.4rem;
    }
    .logo {
        width: 32vw;
    }
    .chevron-up {
        top: 22vh;
    }
}

/* Styles spécifiques pour desktop */
@media (min-width: 1024px) {
    .form-control {
        margin-bottom: 15px
    }
    .message {
        height: 140px !important;
    }
}
