/* =========================================
   1. VARIABLES & RESET GLOBAUX
   ========================================= */
:root {
    --beige: #fefdf9;
    --dark: #1c1b1b;
    --accent: #803422;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .nav-cta {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.header-flex {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 25px;
}

.head-logo {
    height: 50px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.nav-cta {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--accent);
    color: var(--white) !important;
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(128, 52, 34, 0.3); 
}

.mobile-menu-btn {
    display: none; /* Caché par défaut sur PC */
}

/* --- Responsive Header --- */
@media screen and (max-width: 768px) {
    .header-flex {
        justify-content: space-between; 
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background-color: var(--dark);
        border-radius: 2px;
    }

    /* Menu mobile fusionné et optimisé pour l'animation */
    nav {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        border-bottom: 2px solid var(--accent);
        z-index: 1000;
        
        /* Animation fluide */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
        pointer-events: none;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* =========================================
   3. SECTION HERO
   ========================================= */
.hero {
    color: var(--white);
    padding: 120px 0; 
    text-align: center;
    position: relative; 
    background-image: linear-gradient(
        rgba(28, 27, 27, 0.50),
        rgba(28, 27, 27, 0.50)
    ), url('../img/hero-bg.webp');
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero h1 {
    font-size: 3rem;
    margin-top: 0;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-slogan {
    display: block; 
    font-size: 1.5rem; 
    font-weight: 400; 
    margin-top: 10px;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-assistance {
    background-color: var(--accent);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.btn-assistance:hover {
    background-color: #a04530;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Responsive Hero --- */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        padding: 0 10px;
    }
}

/* =========================================
   4. SOLUTIONS & ENGAGEMENTS (VIGNETTES)
   ========================================= */
#offres {
    padding: 80px 0;
    background-color: var(--white);
}

#engagements {
    padding: 60px 40px;
    margin-top: 80px; 
    margin-bottom: 80px; 
    background-color: #fafafa;
    border-radius: 20px;
}

.section-title, #offres h2 {
    text-align: center;
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.section-title::after, #offres h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}

.vignettes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; 
    justify-content: center;
}

/* Base commune pour toutes les vignettes */
.vignette, .vignette-engagement {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

/* Spécifique aux offres */
.vignette {
    background: var(--beige);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.vignette:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.vignette h3 {
    margin: 0 0 15px 0;
    color: var(--accent);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vignette p {
    margin: 0;
    font-size: 1rem;
    color: #444;
}

.vignette-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    opacity: 0;
}

/* Spécifique aux engagements */
.vignette-engagement {
    text-align: center;
}

.vignette-engagement:hover {
    transform: translateY(-5px);
}

.engagement-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; 
}

.engagement-icon svg {
    width: 45px; /* Largeur fixe calquée sur la taille visuelle d'un emoji */
    height: 30px; /* Hauteur fixe pour garder les bonnes proportions (3:2) */
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Ordre strict au navigateur : ne JAMAIS redimensionner ce SVG */
}

.vignette-engagement h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.vignette-engagement p {
    font-size: 0.95rem;
    color: #555;
}

/* --- Responsive Vignettes --- */
@media screen and (max-width: 768px) {
    .vignette, .vignette-engagement {
        max-width: 100%;
    }
}

/* =========================================
   5. FORMULAIRES & CONTACT
   ========================================= */
.form-section {
    padding: 60px 0;
    max-width: 700px;
    margin: 0 auto;
}

.form-section h2 {
    color: var(--accent);
    margin-bottom: 10px;
}

.contact-form {
    background: var(--beige);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* --- MESSAGES D'ALERTE (FORMULAIRE) --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background-color: #e6f4ea; 
    color: #1e4620; 
    border: 1px solid #ceead6;
}

.alert-danger {
    background-color: #fce8e6; 
    color: #c5221f; 
    border: 1px solid #fad2cf;
}

/* --- Carte Info Contact --- */
.info-card-container {
    max-width: 700px;
    margin: 40px auto;
}

.contact-info-card {
    background-color: var(--white);
    border: 1px solid var(--beige);
    border-left: 5px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-card h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #666;
}

.info-value {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}

.info-sub-value {
    font-size: 0.9rem;
    opacity: 0.8;
}

.info-note {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* =========================================
   8. PAGE A PROPOS
   ========================================= */
.page-header {
    background-color: #fafafa;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 60px;
}

.page-header h1 {
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header h1 span {
    color: var(--accent);
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


.about-section {
    padding-bottom: 60px;
}

/* On cible uniquement les sections "about" qui se suivent directement */
.about-section + .about-section {
    padding-top: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.reverse-grid {
    grid-template-columns: 2fr 3fr;
}

.reverse-grid .about-text {
    order: 2;
}

.reverse-grid .about-highlight {
    order: 1; 
}

.about-text h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight-box {
    background: var(--beige);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent);
}

.accent-box {
    background: var(--white);
    border: 2px solid var(--beige);
    border-top: 5px solid var(--dark);
}

.highlight-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--dark);
    font-size: 1.3rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-box ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}

.highlight-box ul li::before {
    content: '→';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 60px 0;
}

.about-cta {
    text-align: center;
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.about-cta h2 {
    color: var(--white);
    margin-top: 0;
    font-size: 2rem;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* --- Responsive A Propos --- */
@media screen and (max-width: 768px) {
    .about-grid, .reverse-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .reverse-grid .about-text {
        order: 1; 
    }
    
    .reverse-grid .about-highlight {
        order: 2;
    }
}

/* =========================================
   7. PAGE MENTIONS LÉGALES
   ========================================= */
.legal-section {
    padding: 60px 0;
    max-width: 800px; 
    margin: 0 auto;
}

.legal-section h1 {
    color: var(--accent);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.legal-content h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--beige);
}

.legal-content p, 
.legal-content ul {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style-type: square;
    padding-left: 20px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* =========================================
   6. FOOTER
   ========================================= */
.main-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

/* Fusion et nettoyage des liens du footer */
.footer-section a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-section p a {
    border-bottom: 1px dotted rgba(255,255,255,0.3);
    padding-bottom: 2px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    background-color: var(--white); 
    color: var(--dark);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

/* --- Responsive Footer --- */
@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background: var(--accent);
        margin: 10px auto;
    }
}