/* ================== VARIABLES & TYPOGRAPHIE ================== */
:root {
    --couleur-primaire: #a82b1e;
    --noir-profond: #141414;
    --gris-anthracite: #222222;
    --gris-clair: #f9f9f9; 
    
    /* MODIFICATION : Le fond du site est désormais 100% Blanc */
    --blanc: #ffffff;
    --gris-fond-body: #ffffff; 
    
    --font-titre: 'Montserrat', sans-serif;
    --font-texte: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { background-color: var(--gris-fond-body); color: var(--noir-profond); font-family: var(--font-texte); }
* { margin: 0; padding: 0; box-sizing: border-box; }

h1, h2, h3, h4, .company-name, .nav-links a, .btn-main, .btn-contact, .engagements-subtitle, .footer-title, .stat-number, .btn-submit {
    font-family: var(--font-titre);
}

/* ================== FOND D'ÉCRAN DIAGONAL GÉOMÉTRIQUE ================== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Reste tout au fond derrière les cartes */
    pointer-events: none; /* Empêche les clics de bloquer sur les formes */
    background-color: var(--blanc);
    overflow: hidden;
}

.bg-pattern .shape {
    position: absolute;
    background-color: var(--noir-profond);
    opacity: 0.04; /* Filigrane noir très doux pour garantir la lisibilité */
    border-radius: 40px; /* Rectangles arrondis simples, pas de 3D */
    transform: rotate(-45deg); /* Angle diagonal */
}

/* Disposition le long d'une diagonale */
.shape-1 { width: 300px; height: 600px; top: -150px; left: -100px; }
.shape-2 { width: 250px; height: 400px; top: 20%; left: 10%; border-radius: 30px; }
.shape-3 { width: 450px; height: 800px; top: 15%; left: 35%; }
.shape-4 { width: 200px; height: 350px; top: 60%; left: 25%; border-radius: 20px; }
.shape-5 { width: 350px; height: 600px; top: 50%; left: 65%; }
.shape-6 { width: 250px; height: 400px; top: 80%; left: 85%; }
.shape-7 { width: 150px; height: 250px; top: 10%; left: 75%; border-radius: 20px;}

/* ================== ANIMATIONS (FADE UP) ================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ================== ÉLÉMENTS DE DESIGN GLOBAUX ================== */
.navbar, .hero, .about, .stats-banner, .services, .engagements, .realisations, .contact-section, .footer {
    max-width: 1400px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.4rem; color: var(--noir-profond); }
.divider { 
    height: 4px; width: 60px; 
    background-color: var(--couleur-primaire); 
    margin: 15px auto 0; border-radius: 2px; 
}
.divider.light { background-color: var(--couleur-primaire); width: 80px; }

/* ================== BOUTON FLOTTANT ================== */
.floating-phone {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--couleur-primaire); color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; z-index: 9999; box-shadow: 0 4px 15px rgba(168, 43, 30, 0.5);
    transition: transform 0.3s; animation: pulse 2s infinite;
}
.floating-phone:hover { color: white; transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 43, 30, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(168, 43, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 43, 30, 0); }
}

/* ================== MENU ================== */
.navbar { 
    position: sticky; top: 20px; z-index: 1000; display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 30px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.brand { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 45px; width: auto; }
.company-name { font-size: 1.4rem; font-weight: 800; color: var(--noir-profond); letter-spacing: -0.5px; }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { 
    color: var(--noir-profond); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    position: relative; padding: 5px 0;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--couleur-primaire); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.btn-contact { 
    background: var(--couleur-primaire); padding: 12px 25px !important; 
    border-radius: 50px; color: var(--blanc) !important; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(168, 43, 30, 0.3);
}
.btn-contact::after { display: none; } 
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 43, 30, 0.4); }

/* ================== BANNIÈRE ================== */
.hero { 
    height: 75vh; min-height: 600px;
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 40px; border-radius: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.carousel { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: var(--noir-profond); }
.slide { 
    position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; 
    transform: scale(1.1); transition: opacity 1s ease-in-out, transform 12s linear; 
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-content { 
    position: relative; z-index: 2; color: var(--blanc); text-align: center; 
    background: rgba(0,0,0,0.4); padding: 60px 50px; border-radius: 30px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1);
}
.hero-content h1 { font-size: 3rem; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.25rem; margin-bottom: 35px; opacity: 0.9; }
.btn-main { 
    background: var(--couleur-primaire); color: var(--blanc); padding: 16px 40px; 
    text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; box-shadow: 0 10px 20px rgba(168, 43, 30, 0.3);
}
.btn-main:hover { background: #8b2318; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(168, 43, 30, 0.4); }
.prev, .next { 
    position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer; padding: 20px; color: var(--blanc); 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px);
    font-size: 20px; z-index: 3; transition: 0.3s; border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
}
.prev:hover, .next:hover { background: var(--couleur-primaire); border-color: var(--couleur-primaire); transform: translateY(-50%) scale(1.1); }
.prev { left: 30px; } .next { right: 30px; }

/* ================== À PROPOS (AVEC IMAGE) ================== */
.about { padding: 100px 40px; background-color: var(--blanc); margin-bottom: 40px; border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.about-container-split { display: flex; justify-content: space-between; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; }
.about-text-column { flex: 1; min-width: 300px; }
.about-text-column h3 { font-size: 1.6rem; color: var(--couleur-primaire); margin-bottom: 15px; }
.about-text-column p { font-size: 1.1rem; color: #555; line-height: 1.8; text-align: justify; margin-bottom: 20px;}
.about-image-column { flex: 1; min-width: 300px; display: flex; justify-content: center; }
.about-illustration { width: 100%; max-width: 500px; height: 450px; object-fit: cover; border-radius: 30px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* ================== CHIFFRES CLÉS ================== */
.stats-banner {
    display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap;
    background-color: var(--couleur-primaire); color: var(--blanc);
    padding: 60px 20px; margin-bottom: 40px; border-radius: 40px;
    box-shadow: 0 15px 30px rgba(168, 43, 30, 0.2);
}
.stat-item { text-align: center; flex: 1; min-width: 200px; padding: 20px; }
.stat-number { display: block; font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.stat-text { font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; }

/* ================== SERVICES ================== */
.services { padding: 100px 40px; text-align: center; background-color: var(--blanc); margin-bottom: 40px; border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.services-container { display: flex; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.service-card { 
    background: var(--gris-clair); padding: 50px 40px; width: 340px; border-radius: 30px; 
    border-bottom: 4px solid var(--couleur-primaire); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card.visible:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: var(--blanc); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--couleur-primaire); }
.service-card p { font-size: 1.05rem; color: #555; line-height: 1.7; text-align: justify; }

/* ================== ENGAGEMENTS ================== */
.engagements { padding: 100px 40px; text-align: center; background-color: var(--noir-profond); margin-bottom: 40px; border-radius: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.engagements-header { margin-bottom: 70px; }
.engagements-subtitle { color: var(--couleur-primaire); font-size: 0.85rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 15px; }
.engagements h2 { font-size: 2.8rem; color: var(--blanc); }
.engagements-container { display: flex; justify-content: center; gap: 40px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.engagement-card { flex: 1; min-width: 220px; text-align: center; padding: 20px; }
.engagement-icon { 
    width: 90px; height: 90px; background: linear-gradient(135deg, rgba(168, 43, 30, 0.2), rgba(168, 43, 30, 0.05)); 
    border: 1px solid rgba(168, 43, 30, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 25px auto; font-size: 2.2rem; color: var(--couleur-primaire); transition: 0.4s ease;
}
.engagement-card:hover .engagement-icon { transform: scale(1.1) translateY(-5px); background: var(--couleur-primaire); color: var(--blanc); box-shadow: 0 10px 25px rgba(168, 43, 30, 0.4); }
.engagement-card h3 { font-size: 1.3rem; color: var(--blanc); margin-bottom: 15px; }
.engagement-card p { font-size: 1rem; color: #a0a0a0; line-height: 1.6; }

/* ================== RÉALISATIONS ================== */
.realisations { padding: 100px 40px; text-align: center; background-color: var(--blanc); margin-bottom: 40px; border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.gallery-category { max-width: 1200px; margin: 50px auto 30px auto; text-align: left; }
.gallery-category h3 { font-size: 1.8rem; color: var(--couleur-primaire); margin-bottom: 25px; padding-left: 20px; border-left: 6px solid var(--noir-profond); }
.gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.gallery-item-wrapper { overflow: hidden; border-radius: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: 0.4s; }
.gallery-item { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item-wrapper.visible:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.gallery-item-wrapper.visible:hover .gallery-item { transform: scale(1.08); } 

/* ================== FORMULAIRE DE CONTACT & CAPTCHA ================== */
.contact-section { padding: 100px 40px; background-color: var(--blanc); margin-bottom: 40px; border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.contact-container { display: flex; gap: 60px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { font-size: 2.8rem; color: var(--noir-profond); margin-bottom: 20px; font-family: var(--font-titre); }
.contact-info p { font-size: 1.1rem; color: #555; line-height: 1.7; margin-bottom: 40px; }
.contact-details p { font-size: 1.1rem; color: var(--noir-profond); font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.contact-details i { color: var(--couleur-primaire); font-size: 1.3rem; width: 25px; }

.contact-form-wrapper { flex: 1; min-width: 320px; background: var(--gris-clair); padding: 40px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 18px 20px; border: 1px solid #ddd; border-radius: 15px; 
    font-size: 1rem; font-family: var(--font-texte); background: var(--blanc); outline: none; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--couleur-primaire); }

/* Styles du Captcha */
.captcha-group {
    background: #fdf0ef; 
    padding: 20px;
    border-radius: 15px;
    border: 1px dashed var(--couleur-primaire);
    margin-bottom: 25px;
}
.captcha-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--noir-profond);
    font-weight: 600;
}
.captcha-group label i { color: var(--couleur-primaire); margin-right: 8px;}
.error-msg {
    display: none;
    color: var(--couleur-primaire);
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: bold;
}

.btn-submit { 
    width: 100%; padding: 18px; background: var(--couleur-primaire); color: var(--blanc); 
    border: none; border-radius: 15px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: #8b2318; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(168, 43, 30, 0.3); }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* ================== FOOTER (MINIMALISTE) ================== */
.footer { background: var(--noir-profond); padding: 60px; margin-bottom: 20px; border-radius: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.brand-col { align-items: flex-start; }
.footer-logo { height: 45px; width: auto; background: var(--blanc); padding: 6px 8px; border-radius: 12px; margin-bottom: 5px; }
.footer-title { font-size: 1.3rem; color: var(--blanc); letter-spacing: -0.3px; }
.social-col { align-items: flex-end; text-align: right; gap: 15px; }
.footer-insta { color: var(--blanc); font-size: 1.8rem; transition: color 0.3s, transform 0.3s; }
.footer-insta:hover { color: var(--couleur-primaire); transform: scale(1.1); }
.footer-copyright { font-size: 0.85rem; color: #666; }

/* ================== RESPONSIVE (MOBILES & TABLETTES) ================== */
@media (max-width: 900px) {
    .about-container-split, .contact-container { flex-direction: column; text-align: center; }
    .about-text-column p { text-align: center; }
    .about-illustration { height: 350px; }
    .footer-content { flex-direction: column; text-align: center; align-items: center; gap: 40px; }
    .brand-col, .social-col { align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    .navbar, .hero, .about, .stats-banner, .services, .engagements, .realisations, .contact-section, .footer {
        width: calc(100% - 20px);
        border-radius: 30px;
        margin-bottom: 20px;
    }
    .navbar { top: 10px; padding: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 15px; }
    .hero, .about, .services, .engagements, .realisations, .contact-section, .stats-banner { padding: 50px 20px; }
    
    .hero { height: auto; min-height: 500px; }
    .hero-content h1 { font-size: 2.2rem; }
    .service-card, .about-text-box, .engagement-card, .contact-form-wrapper { width: 100%; min-width: 100%; }
    .engagements h2, .contact-info h2 { font-size: 2.2rem; }
    .stat-number { font-size: 2.8rem; }
    .floating-phone { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 20px; }
    .delay-1, .delay-2, .delay-3 { transition-delay: 0s; }
}