/* ==========================================================================
   1. RESET & BASES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfbfa; /* Blanc crème doux */
    color: #2c2c2c; /* Anthracite haut de gamme */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (VERSION DORÉE EXTRA-LARGE)
   ========================================================================== */
.main-header {
    background-color: #c5a880; /* Superbe fond Doré Laiton Mat */
    border-bottom: 1px solid #b3966e;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    max-width: 100%; /* Occupe toute la largeur de l'écran */
    padding: 0 40px; /* Confort aux extrémités gauche et droite */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column; /* Logo au-dessus du texte */
    align-items: center;    /* Centre horizontalement */
    text-align: center;
}

.logo-img img {
    max-height: 100px;
}

.logo-text {
    margin-top: 8px;
    display: block;
}

.logo-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Aligne le logo au bord gauche */
}

.logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 5px;
    color: #1a1a1a; /* Noir profond pour impacter sur le doré */
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #ffffff; /* Le logo passe au blanc pur au survol */
}

/* Menu Liste */
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff; /* Texte blanc pour contraster sur le doré */
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1a1a1a; /* Passe au noir au survol */
}

/* Effet de soulignement élégant au survol (sauf sur le bouton contact) */
.nav-link:not(.btn-nav-contact)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:not(.btn-nav-contact):hover::after {
    width: 100%;
}

/* Bouton Contact distinct dans le menu */
.btn-nav-contact {
    border: 1px solid #1a1a1a;
    padding: 10px 20px !important;
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-nav-contact:hover {
    background-color: #1a1a1a;
    color: #c5a880 !important; /* Inversion des couleurs au survol */
}

/* Bouton Mobile (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
    text-align: center;
    padding: 80px 0 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #9a8466; /* Couleur Laiton / Or mat */
    font-weight: 500;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: #9a8466;
    margin: 30px auto;
}

.lead-text {
    font-size: 16px;
    color: #555;
    font-weight: 300;
}

/* ==========================================================================
   4. ECOSYSTEM GRID (PÔLES D'ACTIVITÉ)
   ========================================================================== */
.grid-ecosystem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
}

.card {
    background: #ffffff;
    border: 1px solid #eae6e1;
    padding: 40px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(154, 132, 102, 0.06);
}

.card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.card-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

/* ==========================================================================
   5. LINKS LIST
   ========================================================================== */
.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 20px;
}

.links-list li:last-child {
    margin-bottom: 0;
}

.links-list a {
    display: block;
    text-decoration: none;
    color: #2c2c2c;
    padding: 16px;
    background: #fdfdfd;
    border-left: 2px solid #9a8466;
    border-top: 1px solid #f2effc;
    border-right: 1px solid #f2effc;
    border-bottom: 1px solid #f2effc;
    transition: background 0.2s ease;
}

.links-list a:hover {
    background: #fdfaf6;
}

.links-list a strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(154, 132, 102, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.links-list a:hover strong {
    text-decoration-color: #9a8466;
}

.links-list a span {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 300;
    line-height: 1.4;
}

/* ==========================================================================
   6. PAGE CONTACT & FORMULAIRE
   ========================================================================== */
.contact-container {
    max-width: 650px;
    margin: 0 auto 100px auto;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #eae6e1;
    padding: 40px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    border: 1px solid #eae6e1;
    background-color: #fdfdfd;
    color: #2c2c2c;
    border-radius: 2px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-contact input:focus,
.form-contact textarea:focus {
    outline: none;
    border-color: #9a8466;
    background-color: #ffffff;
}

.form-contact textarea {
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-radius: 2px;
}

.btn-submit:hover {
    background-color: #9a8466;
    border-color: #9a8466;
}

.alert {
    padding: 16px;
    font-size: 14px;
    margin-bottom: 24px;
    border-radius: 2px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f4f8f5;
    color: #2e623a;
    border-color: #2e623a;
}

.alert-danger {
    background-color: #fdf4f4;
    color: #af3434;
    border-color: #af3434;
}

.honeypot {
    display: none !important;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.main-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 0;
    font-size: 12px;
    font-weight: 300;
}

.footer-legal h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #eae6e1;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-legal p {
    line-height: 1.8;
}

.footer-legal strong {
    color: #eae6e1;
}

.footer-legal code {
    background: #2a2a2a;
    padding: 2px 6px;
    color: #9a8466;
    border-radius: 3px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    color: #666;
}

/* ==========================================================================
   8. RESPONSIVE MOBILE MENU & ADAPTATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animation Hamburger en X au clic */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Affichage du menu mobile en rideau */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        padding: 120px 40px;
        transition: right 0.4s ease;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .nav-link {
        font-size: 16px;
        color: #1a1a1a; /* Liens noirs dans le volet blanc mobile */
    }
    
    .btn-nav-contact {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    /* Ajustements grilles et sections */
    .grid-ecosystem {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .hero-section {
        padding: 50px 0 40px 0;
    }
    
    .card, .contact-card {
        padding: 24px;
    }
}