/* GÉNÉRAL */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #364524;
    background-color: #fff;
    line-height: 1.6;
}

/* CONTAINER AVEC MARGES ADAPTATIVES */
.container {
    width: 90%;
    max-width: 1024px;
    margin: 0 auto;
}

/* HEADER FIXE 80px */
.main-header {
    height: 80px;
    background: #364524;
    color: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* LOGO & DROPDOWN MENU */
.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 240px; /* Largeur fixe alignée avec le menu */
    padding: 5px;
    border-radius: 8px;
    transition: background 0.3s;
}

.logo-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.header-text-group {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.8;
}

.header-subtitle {
    font-weight: normal;
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Style du Menu Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 240px; /* Largeur fixe identique au logo-link */
    max-width: 90vw; /* Sécurité mobile */
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 2000;
    flex-direction: column;
    border: 1px solid #729e57;
}

.dropdown-menu.active {
    display: flex;
    animation: fadeInDown 0.3s ease-out;
}

.dropdown-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: #364524;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f7f6f6;
    color: #729e57;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA HEADER */
.cta-header {
    background: #fff;
    color: #364524;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.cta-header:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Cache le texte mobile par défaut */
.txt-mobile {
    display: none;
}

/* Affiche le texte desktop par défaut */
.txt-desktop {
    display: inline;
}

/* HERO SECTION */
.hero-portrait {
    width: 100%;
    height: 480px; 
    overflow: hidden;
    background-color: #f0f0f0;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    display: block;
}

/* SECTIONS */
.section {
    padding: 30px 0;
}

.section.light {
    background-color: #f7f6f6;
}

h2 {
    color: #729e57;
    margin-bottom: 20px;
    font-size: 1.7rem;
    line-height: 1.2;
}

ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

.split-img img {
    width: 100%;
    max-width: 720px;
    border-radius: 10px;
    display: block;
    margin: 10px auto 0;
}

/* FAQ */
.faq-list details {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: #729e57;
    cursor: pointer;
    outline: none;
}

.faq-list summary::before {
    content: '▶';
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.faq-list details[open] summary::before {
    transform: rotate(90deg);
}

/* FORMULAIRE */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

form button {
    background: #729e57;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background: #364524;
}

/* FOOTER & CARTE */
.footer {
    background: #f7f6f6;
    padding: 20px 0;
    text-align: center;
}

.footer .split-img img {
    max-width: 720px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.footer .split-img img:hover {
    transform: scale(1.01);
    border-color: #729e57;
}

/* PARTENAIRES */
.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.partner-logos img {
    max-height: 100px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.partner-logos img:hover {
    filter: none;
    opacity: 1;
}

/* BOUTON RETOUR EN HAUT */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    width: 45px;
    height: 45px;
    background-color: #729e57;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #364524;
    transform: translateY(-3px);
}

/* RESPONSIVE TABLETTE & IPAD (1024px) */
@media (max-width: 1024px) {
    .container {
        width: 85%;
    }

    .cta-header {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .logo-link {
        width: 210px; /* Légèrement réduit pour laisser de la place au CTA */
        gap: 10px;
    }

    .header-subtitle {
        font-size: 0.65rem; /* Taille réduite pour mobile mais reste lisible */
        display: block;      /* S'assure qu'il reste sur sa propre ligne */
    }
    
    .header-logo {
        height: 40px;
    }

    .header-title {
        font-size: 0.8rem;
    }

    .dropdown-menu {
        width: 210px;
        top: 70px;
    }

    .cta-header {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    /* Cache le texte long sur mobile */
    .txt-desktop {
        display: none;
    }

    /* Affiche le texte court sur mobile */
    .txt-mobile {
        display: inline;
    }

    /* Optionnel : Ajustement du bouton si besoin */
    .cta-header {
        padding: 6px 10px;
        font-size: 0.75rem;
    }    

    .hero-portrait {
        height: 320px;
    }

    .partner-logos img {
        max-height: 50px;
    }
    
    .footer {
        font-size: 0.85rem;
        padding: 20px 0;
    }
}