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


/*//////////////////// 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: 20px 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 /////////////////////*/















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

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

body {
    font-family: 'Roboto', sans-serif;
    background: #f4f4f4;
    color: #222;
}

/* HERO */
.contact-hero {
    height: 40vh;
    background: var(--degraderAstonMartin);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    /* hauteur exacte du menu */
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
}

.contact-hero p {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* CONTAINER */
.contact-container {
    max-width: 1100px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

/* INFO */
.contact-info h2,
.contact-form h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--vertAstonMartin);
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* FORM */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form textarea {
    height: 140px;
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--vertAstonMartin);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #003e37;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}


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

}