/*
	Auteur: Aston Nobs
	Date 14.01.2025
	Description: css pour page index.
	*/
/* Définition des couleurs sous forme de variables CSS */
:root {
    --vertAstonMartin: #005a50;
    /* Vert de Aston martin */

    --degraderAstonMartin: linear-gradient(to right, #0b2f28, #0f3f36, #1b5a4c);


    /* Vous pouvez ajouter plus de couleurs ici */
}

/* Cacher la barre de défilement mais garder le défilement fonctionnel */
html,
body {
    overflow: auto;
    /* Permet de défiler */
}

::-webkit-scrollbar {
    width: 0px;
    /* Cache la barre de défilement verticale */
    height: 0px;
    /* Cache la barre de défilement horizontale */
}


/* ==========================
   HERO VIDEO – HISTOIRE
========================== */

.video-hero {
    position: relative;
    height: 100vh;
    /* occupe tout l'écran */
    overflow: hidden;
}

/* Conteneur de l'iframe pour contrôler taille et position */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* iframe en mode cover comme object-fit: cover */
.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    /* 100vh * 16/9 pour garder ratio 16:9 */
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* pour que le scroll ne bloque pas */
}

/* overlay sombre */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}








































/*//////////////////// LOGO /////////////////////*/

/* Logo toujours au centre et au-dessus */
.logo-fixed {
    position: fixed;
    top: 20px;
    /* distance du haut */
    left: 50%;
    /* centre horizontal */
    transform: translateX(-50%);
    z-index: 1300;
    /* au-dessus du menu */
}

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


/* Menu principal */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--degraderAstonMartin);
    height: 105px;
    z-index: 1200;
    /* barre au-dessus */
}




/*----------------------------loop map favoris--------------------------*/
.menu-icons {
    position: absolute;
    right: 70px;
    /* décale un peu vers l'intérieur */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 40px;
    /* espace entre les icônes */
    z-index: 1300;
}

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




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

.burger-rolex {
    width: 26px;
    height: 10px;
    /* hauteur réduite pour barres rapprochées */
    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-text {
    margin-left: 10px;
    font-size: 16px;
    color: #e5e5e5;
    font-weight: 500;
    user-select: none;
    transition: all 0.35s ease;
}

/* Animation du burger en croix */
.burger-rolex.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

/* --- MENU FULLSCREEN SOUS LA BARRE --- */
/* Container du menu déroulant */
.side-menu-rolex {
    position: fixed;
    top: -100%;
    /* hors écran au départ */
    left: 0;
    width: 100%;
    height: calc(100% - 105px);
    background: var(--degraderAstonMartin);
    backdrop-filter: blur(4px);
    padding-top: 20px;
    padding-left: 100px;
    z-index: 1000;

    /* Ajout correct pour retour à la ligne */
    white-space: normal;
    /* permet de passer à la ligne si trop long */
    word-break: break-word;
    /* coupe les mots si nécessaire */
    overflow-wrap: break-word;
    /* meilleure compatibilité */
}

/* Quand le menu est ouvert */
.side-menu-rolex.open {
    top: 105px;
}

/* Liens du menu déroulant */
.side-menu-rolex a {
    display: block;
    color: #e9e9e9;
    font-size: 24px;
    font-weight: 600;
    margin: 8px 0;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    text-align: left;

    /* Retours à la ligne si texte trop long */
    white-space: normal;
    /* autorise le texte à passer à la ligne */
    word-wrap: break-word;
    /* coupe les mots si nécessaire */
    overflow-wrap: break-word;
    /* compatibilité maximale */
}

/* Liens visibles quand ouvert */
.side-menu-rolex.open a {
    opacity: 1;
    transform: translateY(0);
}

/* Liens disparaissent lors de la fermeture */
.side-menu-rolex.closing a {
    opacity: 0;
    transform: translateY(-20px);
}




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


.scroll-down-arrow {
    position: absolute;
    bottom: 50px;
    /* plus haut sur la page */
    left: 50%;

    width: 12px;
    /* plus étroite */
    height: 12px;

    border-right: 3px solid #ffffff;
    /* blanc pur */
    border-bottom: 3px solid #ffffff;

    transform: translateX(-50%) rotate(45deg);
    animation: rolexScroll 1.3s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes rolexScroll {
    0% {
        transform: translateX(-50%) translateY(-18px) rotate(45deg);
        opacity: 1;
    }

    65% {
        transform: translateX(-50%) translateY(20px) rotate(45deg);
        opacity: 1;
    }

    85% {
        opacity: 0.2;
    }

    100% {
        transform: translateX(-50%) translateY(20px) rotate(45deg);
        opacity: 0;
    }
}

/*//////////////////// BURGER STYLE ROLEX /////////////////////*/




/* ==========================
   RESET CSS
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* ==========================
   HEADER
========================== */
header {
    background-color: #0b2f28;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-left: 20px;
}

header nav {
    float: right;
    margin-right: 15px;
}


header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: #00b894;
}

/* ==========================
   HERO SECTION
========================== */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 130px 20px;
    background: linear-gradient(to right, #190606, #704b2e);
    color: #fff;
}

.hero-text {
    flex: 1 1 500px;
    padding: 20px;
}

.hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-image {
    flex: 1 1 500px;
    padding: 20px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* ==========================
   SECTION TITLES
========================== */
section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin: 50px 0 20px 0;
    color: var(--vertAstonMartin);
}

section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin: 50px 0 20px 0;
    color: #0b2f28;
}



/* ==========================
   HISTOIRE SECTION
========================== */
#histoire {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

#histoire p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
}

#histoire h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #005a50;
}

.quote {
    border-left: 5px solid #704b2e;
    padding-left: 15px;
    font-style: italic;
    margin: 20px 0;
}

/* ==========================
   TIMELINE SECTION
========================== */
.timeline {
    list-style: none;
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #704b2e;
}

.timeline li {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline li .year {
    position: absolute;
    left: -60px;
    top: 0;
    background: #0b2f28;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.timeline li p {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================
   CONTACT SECTION
========================== */
#contact {
    text-align: center;
    padding: 50px 20px;
    background-color: #005a50;
    color: #fff;
}

#contact .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #008e72;
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

#contact .btn:hover {
    background-color: #ffffff;
    color: #008e72;
}

/* ==========================
   FOOTER
========================== */
footer {
    background-color: #0b2f28;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* ==========================
   RESPONSIVE
========================== */
@media screen and (max-width: 768px) {
    header nav {
        float: none;
        text-align: center;
        margin: 10px 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        max-width: 100%;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline li .year {
        left: -50px;
    }
}






/* ========================= */
/* 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;
    }

}