/* =========================================
   VARIABLES ET COULEURS DE BASE
   ========================================= */
:root {
    --blue: #0A0F5C;
    --green: #00B67A;
    --green-light: #00E699;
    --white: #FFFFFF;
    --text-muted: #4A5568;
    --bg-soft: #F4F7F6;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: var(--font-main); color: var(--blue); line-height: 1.6; overflow-x: hidden; width: 100%; }

/* =========================================
   TYPOGRAPHIE & CORRECTION MOBILE
   ========================================= */
h1, h2, h3, p, a, strong { overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
h1 span { color: var(--green); }
h2 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
h2 span { color: var(--green); }
h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }
.text-muted { color: var(--text-muted); line-height: 1.8; }

/* =========================================
   STRUCTURE ET GRILLES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 100px 0; min-height: 100vh; display: flex; align-items: center; }
.bg-vibrant { background-color: var(--blue); color: var(--white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: stretch; }

/* =========================================
   HAUT DE PAGE (HERO BANNER)
   ========================================= */
.hero-banner {
    position: relative; height: 100vh; min-height: 600px;
    background: url('https://images.pexels.com/photos/5414060/pexels-photo-5414060.jpeg') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; overflow: hidden; 
}
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); }
.hero-content { position: relative; z-index: 2; width: 100%; margin-top: 60px; }

.hero-box {
    max-width: 800px; margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 20px;
    padding: 60px 40px; text-align: center;
    background: rgba(10, 15, 92, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    will-change: transform, opacity;
}
.hero-box h1 { color: var(--white); }
.hero-box p { color: rgba(255, 255, 255, 0.95); font-size: 1.15rem; margin-bottom: 30px; }

/* =========================================
   ENCADREMENT "BRACKET" ÉPURÉ
   ========================================= */
.left-accent-card {
    position: relative; padding: 15px 0 15px 25px; height: fit-content; 
    align-self: center; transition: transform 0.4s ease;
}
.left-accent-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 100%; 
    border-left: 4px solid var(--green); border-top: 4px solid var(--green); border-bottom: 4px solid var(--green);
    border-top-left-radius: 6px; border-bottom-left-radius: 6px; pointer-events: none; 
}
.left-accent-card:hover { transform: translateX(10px); }

/* =========================================
   CARTES GLASSMORPHISM
   ========================================= */
.modern-card-glass, .modern-card-glass-light {
    position: relative; border-radius: 24px; padding: 35px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.modern-card-glass {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25); 
}
.modern-card-glass-light {
    background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 2px solid #CBD5E1; box-shadow: 0 15px 40px rgba(10, 15, 92, 0.05);
}
.modern-card-glass:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); border: 2px solid var(--green-light); box-shadow: 0 25px 50px rgba(0, 182, 122, 0.15); }
.modern-card-glass-light:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(10, 15, 92, 0.12); border: 2px solid var(--green); }

@media (min-width: 851px) { .modern-card-glass, .modern-card-glass-light { border-width: 3px; } }

.card-icon { font-size: 2.8rem; margin-bottom: 15px; }
.card-icon-small { font-size: 1.8rem; }
.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, var(--green) 0%, transparent 70%);
    filter: blur(60px); opacity: 0; transition: opacity 0.5s ease; z-index: -1; pointer-events: none;
}
.modern-card-glass:hover .card-glow { opacity: 0.15; }
.price-tag { font-size: 2.2rem; font-weight: 800; margin: 10px 0; }

/* =========================================
   BOUTONS ET BADGES
   ========================================= */
.badge { display: inline-block; background-color: rgba(0, 182, 122, 0.1); color: var(--green); padding: 6px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; }
.badge-white { background-color: var(--green); color: white; }
.btn-group { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    display: inline-block; background-color: var(--green); color: var(--white);
    padding: 14px 28px; border-radius: 50px; font-weight: 700; text-decoration: none;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s; border: none; cursor: pointer; text-align: center;
}
.btn-primary:hover { background-color: #009966; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 182, 122, 0.3); }
.btn-primary.w-100 { width: 100%; font-size: 1.2rem; padding: 20px; }

.btn-secondary-white {
    display: inline-block; padding: 14px 28px; border: 2px solid white; color: white;
    text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s;
}
.btn-secondary-white:hover { background-color: white; color: var(--blue); }

/* Ce bouton n'apparaît que sur mobile */
.btn-mobile-devis { display: none; }

/* =========================================
   EN-TÊTE EN PILULE (SMART HEADER)
   ========================================= */
header { position: fixed; top: 20px; width: 100%; z-index: 1000; padding: 0 20px; pointer-events: none; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
header.header-hidden { transform: translateY(-150%); }

.header-pill {
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 50px; box-shadow: 0 10px 30px rgba(10, 15, 92, 0.1);
    padding: 10px 20px; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; pointer-events: auto; border: 1px solid rgba(255,255,255,0.4);
}
.logo { font-size: 1.1rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
nav ul { display: flex; list-style: none; gap: 20px; align-items: center; margin: 0; padding: 0; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: color 0.3s; font-size: 0.9rem; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--green); }
header .btn-primary { padding: 10px 20px; font-size: 0.9rem; white-space: nowrap; }

/* =========================================
   MENU HAMBURGER
   ========================================= */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 3px; background-color: var(--blue); border-radius: 3px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   PIED DE PAGE (FOOTER)
   ========================================= */
footer { background-color: #050833; color: var(--white); padding: 70px 0 30px; }
footer h3, footer h4 { color: var(--white); margin-bottom: 20px; }
footer p { color: rgba(255, 255, 255, 0.7); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 12px; }
footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--green); }

/* =========================================
   TRANSITIONS D'APPARITION
   ========================================= */
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }
.grid-2 > div:nth-child(2).reveal, .grid-3 > div:nth-child(2).reveal { transition-delay: 0.1s; }
.grid-3 > div:nth-child(3).reveal { transition-delay: 0.2s; }

/* =========================================
   UTILITAIRES & STRUCTURE
   ========================================= */
.bg-white { background-color: var(--white); }
.bg-soft { background-color: var(--bg-soft); }
.bg-blue-gradient { background: linear-gradient(135deg, var(--blue) 0%, #151B73 100%); }

.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-light { color: rgba(255,255,255,0.8); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.95rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.15rem; }

.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }
.mt-50 { margin-top: 50px; }
.mt-auto { margin-top: auto; }

.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; align-items: flex-start; gap: 15px; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-25 { gap: 25px; }
.gap-20 { gap: 20px; }

.section-subtitle { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--green); }
.section-subtitle.light { color: var(--green-light); }
.section-title { font-size: 3.2rem; margin-top: 10px; color: var(--blue); }
.section-title.light { color: var(--white); }
.section-desc { max-width: 800px; margin-bottom: 50px; font-size: 1.1rem; }
.badge-top { background: var(--green); color: white; padding: 4px 40px; position: absolute; top: 20px; right: -35px; transform: rotate(45deg); font-size: 0.8rem; font-weight: 900; letter-spacing: 1px; }

.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--blue); }
.form-input { width: 100%; padding: 15px; border: 1px solid #E2E8F0; border-radius: 8px; font-family: var(--font-main); }
.form-textarea { width: 100%; padding: 15px; border: 1px solid #E2E8F0; border-radius: 8px; font-family: var(--font-main); min-height: 180px; resize: vertical; }
.form-contact-wrapper { max-width: 800px; margin: 0 auto; padding: 60px; background: white; border-radius: 24px; }
.email-direct-box { text-align: center; margin-top: 35px; border-top: 1px solid #E2E8F0; padding-top: 25px; }
.email-link { color: var(--green); font-size: 1.15rem; font-weight: 700; text-decoration: none; }

.legal-main { padding: 150px 0 100px; min-height: 80vh; }
.legal-card-wrapper { max-width: 800px; margin: 0 auto; background: white; }
.list-none { list-style: none; }
.w-100 { width: 100%; }

/* =========================================
   📱 RESPONSIVE (POUR TÉLÉPHONE)
   ========================================= */
@media (max-width: 850px) {
    h1 { font-size: 2.2rem; }
    h2, .section-title { font-size: 2rem; }
    
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
    .btn-group { flex-direction: column; width: 100%; }
    
    .hero-box { padding: 30px 20px; border-width: 1px; border-radius: 15px; }
    .modern-card-glass, .modern-card-glass-light { padding: 25px 20px; }
    .form-contact-wrapper { padding: 30px 20px; }
    
    .desktop-only { display: none !important; }
    /* Affiche le bouton Devis uniquement sur mobile */
    .btn-mobile-devis { display: inline-block !important; padding: 10px 20px; font-size: 0.9rem; margin-left: auto; margin-right: 15px; }
    
    .header-pill { padding: 10px 15px; position: relative; }
    .logo { font-size: 0.95rem; max-width: 120px; margin-right: 5px; }
    .hamburger { display: flex; order: 3; }

    .nav-menu {
        position: absolute; top: 65px; right: 0; background: var(--white); border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 20px; flex-direction: column; gap: 20px;
        min-width: 220px; border: 1px solid rgba(0,0,0,0.05);
        opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease;
    }
    .nav-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

    .section-padding { padding: 80px 0; min-height: auto; }
    footer .grid-3 { grid-template-columns: 1fr !important; text-align: center; }
}