/* ======================= GOOGLE FONTS ======================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Montserrat:wght@400;500;700&display=swap');

/* ======================= CSS VARIABLES (COULEURS ADAPTÉES AU LOGO) ======================= */
:root {
    --primary-color: #2a402b; /* Vert riche du logo */
    --accent-color: #e6a602; /* Or vibrant du logo */
    --text-color: #333;
    --background-color: #fdfdfc;
    --light-gray-color: #f4f4f4;
    --white-color: #fff;
    --hero-overlay-color: rgba(42, 64, 43, 0.5); /* Overlay teinté de vert pour le hero */

    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --header-height: 4.5rem;
}

/* ======================= BASE & RESET ======================= */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1120px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.section {
    padding: 5rem 0 2rem;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section__subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================= BUTTONS ======================= */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color); /* Texte blanc pour un meilleur contraste */
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
    text-align: center;
}

.button:hover {
    background-color: #d09602; /* Or légèrement assombri */
    border-color: #d09602;
    transform: translateY(-3px);
}

.button--outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.button--outline:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.button--small {
    padding: 0.75rem 1.5rem;
}

/* ======================= HEADER & NAV ======================= */
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Espace entre le logo et le texte */
    color: var(--primary-color);
}

.nav__logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text__name {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text__slogan {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav__toggle {
    display: inline-flex;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav__social {
    display: none; /* Caché sur mobile par défaut */
}

.nav__social i {
    font-size: 1.4rem;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: var(--background-color);
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        padding: 6rem 2rem 4rem;
        transition: right 0.4s;
    }
    .logo-text__slogan {
        display: none; /* On cache le slogan sur les petits écrans */
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Show Menu */
.show-menu {
    right: 0;
}

/* ======================= HERO ======================= */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('./assets/BG.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color);
    z-index: 1;
}

.hero__container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--white-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero .button--outline {
    color: var(--white-color);
    border-color: var(--white-color);
}
.hero .button--outline:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}


/* ======================= VIDEO ======================= */
.video__wrapper {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 25px;
    overflow: hidden; /* Important pour que la vidéo respecte les bords arrondis */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video__wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* ======================= GAMMES ======================= */
.gammes__container {
    display: grid;
    gap: 2rem;
}

.gamme__card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.gamme__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.gamme__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gamme__description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ======================= WHY ======================= */
.why {
    background-color: var(--light-gray-color);
}

.why__container {
    display: grid;
    gap: 2rem;
    text-align: center;
}

.why__item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ======================= PROMOTEUR ======================= */
.promoter__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}
.promoter__img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}
.promoter__text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.promoter__text p {
    font-style: italic;
    max-width: 600px;
}

/* ======================= TESTIMONIALS ======================= */
.testimonials__container {
    display: grid;
    gap: 1.5rem;
}
.testimonial__card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.testimonial__card p {
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial__card h4 {
    color: var(--accent-color);
    text-align: right;
}

/* ======================= FAQ ======================= */
.faq__container {
    display: grid;
    gap: 1rem;
    max-width: 700px;
    margin: auto;
}
.faq__item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
}
.faq__icon {
    transition: transform 0.3s;
    font-size: 1.5rem;
}
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq__answer p {
    padding: 0 1.5rem 1rem;
}
/* Active FAQ */
.faq__item.active .faq__answer {
    max-height: 200px;
    padding-bottom: 1rem;
}
.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

/* ======================= CONTACT ======================= */
.contact {
    background-color: var(--light-gray-color);
}
.contact__container {
    display: grid;
    gap: 3rem;
}
.contact__info {
    text-align: center;
}
.contact__info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.contact__form .form__group {
    margin-bottom: 1.5rem;
}
.contact__form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

/* ======================= FOOTER ======================= */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}
.footer__container {
    display: grid;
    gap: 2rem;
    text-align: center;
}
.footer h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.footer__logo {
    max-width: 150px;
    margin: 0 auto 1rem auto; /* Centre le logo */
}
.footer__links ul li {
    margin-bottom: 0.5rem;
}
.footer__links a:hover {
    color: var(--accent-color);
}
.footer__social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.footer__social a {
    font-size: 1.5rem;
    transition: color 0.3s;
}
.footer__social a:hover {
    color: var(--accent-color);
}
.footer__copyright {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ======================= MEDIA QUERIES ======================= */
@media screen and (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav__toggle,
    .nav__close { /* ON CACHE AUSSI LA CROIX SUR PC */
        display: none;
    }
    .nav__list {
        flex-direction: row;
        gap: 2rem;
    }
    .nav__menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .nav__social {
        display: flex;
        gap: 1rem;
        align-items: center;
        color: var(--primary-color);
    }
    .nav__social a:hover {
        color: var(--accent-color);
    }

    .hero__cta {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .gammes__container,
    .why__container,
    .testimonials__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .promoter__container {
        flex-direction: row;
        gap: 3rem;
        text-align: left;
    }

    .contact__container {
        grid-template-columns: 1fr 1.5fr;
        text-align: left;
        align-items: center;
    }
    .contact__info {
        text-align: left;
    }

    .footer__container {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        align-items: start;
    }
}

@media screen and (min-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }
    .section__title {
        font-size: 3rem;
    }
}