/* ===============================
   CSS nettoyé et optimisé
   Auteur: Aston Nobs
   Date: 14.01.2025
   =============================== */

/* ========== VARIABLES ========== */
:root {
    --vertAstonMartin: #005a50;
    --degraderAstonMartin: linear-gradient(to right, #0b2f28, #0f3f36, #1b5a4c);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html,
body {
    overflow: auto;
}

::-webkit-scrollbar {
    display: none;
}

/* ========== LOGO ========== */
.logo-fixed {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
}

.logo-fixed img {
    height: 50px;
    width: auto;
}

/* ========== MENU FIXE ========== */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 105px;
    background: var(--degraderAstonMartin);
    z-index: 1200;
}

/* ========== BURGER MENU ========== */
.burger-wrapper {
    position: absolute;
    left: 100px;
    top: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1200;
}

.burger-rolex {
    width: 26px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-rolex span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #e5e5e5;
    border-radius: 2px;
    transition: all 0.35s ease;
}

.burger-rolex.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.burger-rolex.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

.burger-text {
    margin-left: 10px;
    font-size: 16px;
    color: #e5e5e5;
    font-weight: 500;
    user-select: none;
}

/* ========== ICÔNES MENU ========== */
.menu-icons {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    display: flex;
    gap: 40px;
    z-index: 1300;
}

.menu-icons .menu-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    fill: white;
}

/* ========== MENU LATÉRAL ========== */
.side-menu-rolex {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: calc(100% - 105px);
    background: var(--degraderAstonMartin);
    backdrop-filter: blur(4px);
    padding: 20px 100px;
    z-index: 1000;
    white-space: normal;
    word-break: break-word;
}

.side-menu-rolex.open {
    top: 105px;
}

.side-menu-rolex a {
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0;
    color: #e9e9e9;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.side-menu-rolex.open a {
    opacity: 1;
    transform: translateY(0);
}

.side-menu-rolex.closing a {
    opacity: 0;
    transform: translateY(-20px);
}

/* ========== VIDÉO EN ARRIÈRE-PLAN ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* ========== TEXTE SUR VIDÉO ========== */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-text .subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ========== SECTIONS AVEC SNAP ========== */
.sections {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    scroll-snap-align: start;
}

/* Couleurs alternées */
section:nth-child(odd) {
    background-color: #333;
    color: #fff;
}

section:nth-child(even) {
    background-color: #f1f1f1;
    color: #333;
}

/* Accueil */
#accueille {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

#accueille h1,
#accueille p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ========== INTRO SECTION ========== */
.intro-section {
    background: white;
    height: 50vh;
    display: flex;
    align-items: center;
    padding: 0 120px;
}

.intro-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 80px;
}

.intro-content h1 {
    color: var(--vertAstonMartin);
    flex: 1;
    font-size: 42px;
    font-weight: 500;
    text-align: left;
}

.intro-content p {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: left;
}



/* ============================
   SECTION GALERIE PLEIN ÉCRAN
============================ */

/* Galerie prend tout l'écran */
.gallery-section {
    width: 100%;
    height: 100vh;
    /* plein écran */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

/* Grille pour chaque carte */
.gallery-grid {
    display: flex;
    flex: 1;
    flex-direction: column;
    /* une carte par "slide" */
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none;
}

/* cache scrollbar */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

/* Chaque carte prend tout l'écran */
.model-card {
    flex: 0 0 100vh;
    /* 100% de la hauteur du viewport */
    width: 100%;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Image de fond de chaque carte */
.model-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.model-card:hover img {
    transform: scale(1.05);
}

/* Overlay sombre */
.model-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* Infos sur le modèle */
.model-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 2;
    color: white;
}

.model-info h3 {
    font-size: 5vw;
    /* adaptatif à l'écran */
    font-weight: 300;
    margin-bottom: 20px;
}

.model-info .btn {
    display: inline-block;
    padding: 12px 34px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.model-info .btn:hover {
    background-color: white;
    color: black;
}

/* Responsive : cartes plus petites sur mobile */
@media (max-width: 900px) {
    .model-info h3 {
        font-size: 8vw;
    }

    .model-card {
        height: 80vh;
        /* légèrement plus petit que plein écran */
    }
}



/* FOOTER */
footer {
    background: #0b2f28;
    color: white;
    text-align: center;
    padding: 20px;
}





/* ========================= */
/* MOBILE (max 768px) */
/* ========================= */
@media (max-width: 768px) {

    /* Logo */
    .logo-fixed img {
        height: 36px;
    }

    /* Burger menu */
    .burger-wrapper {
        left: 30px;
        top: 35px;
    }

    .burger-rolex {
        width: 20px;
    }

    .burger-rolex span {
        width: 20px;
        height: 2px;
    }

    .burger-text {
        font-size: 13px;
    }

    /* Icônes */
    .menu-icons {
        gap: 20px;
        right: 25px;
    }

    .menu-icons .menu-icon {
        width: 20px;
        height: 20px;
    }

}


/* ========================= */
/* PETIT MOBILE (max 480px) */
/* ========================= */
@media (max-width: 480px) {

    /* Logo */
    .logo-fixed img {
        height: 30px;
    }

    /* Burger menu */
    .burger-wrapper {
        left: 15px;
        top: 32px;
    }

    .burger-rolex {
        width: 18px;
    }

    .burger-rolex span {
        width: 18px;
    }

    .burger-text {
        display: none;
        /* cache le texte menu */
    }

    /* Icônes */
    .menu-icons {
        gap: 15px;
        right: 15px;
    }

    .menu-icons .menu-icon {
        width: 18px;
        height: 18px;
    }

}