/* ==========================================================================
   VIVIA SSI - GROUPE VIVIA - STYLESHEET OFFICIELLE
   Design System Sécurité Incendie & Conformité ONPC
   ========================================================================== */

/* --- 1. VARIABLES & RESET --- */
:root {
    --primary: #DC2626;          /* Rouge Sécurité Incendie */
    --primary-dark: #991B1B;     /* Rouge profond */
    --primary-light: #EF4444;    /* Rouge vif */
    --primary-glow: rgba(220, 38, 38, 0.25);
    
    --accent-orange: #EA580C;    /* Orange flamme */
    --accent-orange-light: #F97316;
    
    --dark-950: #050811;         /* Fond sombre quasi noir */
    --dark-900: #0B1120;         /* Slate sombre profond */
    --dark-850: #0F172A;         /* Slate sombre carte */
    --dark-800: #1E293B;         /* Slate bordure / fond */
    --dark-700: #334155;
    
    --light-bg: #F8FAFC;         /* Fond gris très clair */
    --light-card: #FFFFFF;
    --light-border: #E2E8F0;
    
    --text-dark: #0F172A;        /* Texte sur fond clair */
    --text-muted: #64748B;
    --text-light: #F8FAFC;       /* Texte sur fond sombre */
    --text-light-muted: #94A3B8;
    
    --success: #10B981;
    --warning: #F59E0B;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 25px rgba(220, 38, 38, 0.35);
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
}

/* Toutes les sections ne débordent jamais horizontalement */
section, header, footer, main, .topbar {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* --- 2. LAYOUT & CONTAINERS --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-py {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.section-dark {
    background-color: var(--dark-900);
    color: var(--text-light);
    position: relative;
}

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

.section-gray {
    background-color: var(--light-bg);
}

/* --- 3. TYPOGRAPHY & SECTION HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: min(780px, 100%);
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-tag.tag-warning {
    color: #DC2626;
    background-color: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}

.section-tag.tag-light {
    color: #FDA4AF;
    background-color: rgba(225, 29, 72, 0.18);
    border-color: rgba(225, 29, 72, 0.35);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-dark .section-title {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.section-dark .section-subtitle {
    color: var(--text-light-muted);
}

/* --- 4. BUTTONS & UI ELEMENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: normal;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-orange) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
    color: #FFFFFF;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
    background: #FFFFFF;
    color: var(--dark-900);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.pulse-animation {
    animation: pulse-glow 2.4s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
}

/* --- 5. TOP BAR --- */
.topbar {
    background-color: var(--dark-950);
    color: var(--text-light-muted);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.55rem 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-badge {
    color: #F87171;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-link {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.topbar-link:hover {
    color: var(--primary-light);
}

/* --- 6. NAVBAR --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* LOGO OFFICIEL */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.brand-logo:hover .site-logo-img {
    transform: scale(1.02);
}

.drawer-logo-img {
    height: 46px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.desktop-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.nav-link {
    font-size: 0.90625rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 0.35rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* HAMBURGER TOGGLE */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle .bar {
    width: 26px;
    height: 3px;
    background-color: var(--dark-900);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- 7. MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-border);
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-drawer-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-900);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-link i {
    width: 20px;
    color: var(--primary);
}

.mobile-nav-link:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

.mobile-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-drawer-contact {
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--light-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 17, 32, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- 8. HERO SECTION --- */
.hero-section {
    background-color: var(--dark-900);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, rgba(11, 17, 32, 0.94) 0%, rgba(15, 23, 42, 0.88) 50%, rgba(11, 17, 32, 0.96) 100%),
        url('../../Images/hero_banner_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 6rem;
    overflow: hidden;
    max-width: 100%;
}

/* Effet lumineux d'arrière-plan */
.hero-glow {
    position: absolute;
    width: min(700px, 100vw);
    height: min(700px, 100vw);
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, rgba(234, 88, 12, 0.1) 50%, transparent 75%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    color: #FECACA;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(6px);
    max-width: 100%;
    flex-wrap: wrap;
    word-break: break-word;
}

.hero-badge-pill i {
    color: #F87171;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.65rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .highlight {
    color: #F87171;
    position: relative;
    display: inline-block;
}

.hero-lead {
    font-size: 1.1875rem;
    color: var(--text-light-muted);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: min(620px, 100%);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

/* Compteurs Hero */
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.hero-stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hero-stat-item .stat-suffix {
    color: var(--primary-light);
    font-size: 1.75rem;
}

.hero-stat-item .stat-label {
    font-size: 0.8125rem;
    color: var(--text-light-muted);
    font-weight: 500;
    margin-top: 0.35rem;
}

/* Carte visuelle Hero côté droit */
.hero-visual-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 35px rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(12px);
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-image-wrapper img {
    transform: scale(1.03);
}

.hero-floating-badge {
    position: absolute;
    bottom: -15px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: calc(100% - 40px);
}

.badge-icon-fire {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.badge-text-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
}

.badge-text-sub {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* --- 9. SECTION RISQUES & SANCTIONS ONPC --- */
.risks-section {
    background-color: #FFFFFF;
    position: relative;
}

.risks-alert-banner {
    background: linear-gradient(90deg, #7F1D1D 0%, #991B1B 50%, #B91C1C 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(185, 28, 28, 0.25);
}

.alert-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.alert-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FECACA;
    flex-shrink: 0;
}

.alert-banner-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.alert-banner-desc {
    font-size: 0.9375rem;
    color: #FEE2E2;
}

.risks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.risk-card {
    background: #FFFFFF;
    border: 1px solid var(--light-border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.risk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 38, 38, 0.4);
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.risk-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(220, 38, 38, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.risk-card:hover .risk-icon-circle {
    background: var(--primary);
    color: #FFFFFF;
    transform: rotate(5deg);
}

.risk-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-900);
    line-height: 1.3;
}

.risk-card-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.risk-card-points {
    margin-top: auto;
    border-top: 1px solid var(--light-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.risk-point-item {
    font-size: 0.84375rem;
    font-weight: 600;
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- 10. SECTION QUI SOMMES-NOUS --- */
.about-section {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #FFFFFF;
}

.about-image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-overlay-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-content-col .section-tag {
    margin-bottom: 0.75rem;
}

.about-content-col .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text-lead {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-text-desc {
    color: var(--text-muted);
    font-size: 0.96875rem;
    margin-bottom: 2rem;
}

/* Boîte Mission & Engagement */
.about-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.about-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.about-box-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.about-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--dark-900);
}

.about-box p {
    font-size: 0.84375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- 11. SECTION PILIERS D'EXPERTISE (PLAN DE CONFORMITÉ) --- */
.expertises-section {
    background-color: #FFFFFF;
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.expertise-card {
    background: #FFFFFF;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
}

.expertise-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #F1F5F9;
    line-height: 1;
    user-select: none;
    transition: var(--transition);
}

.expertise-card:hover .expertise-number {
    color: rgba(220, 38, 38, 0.12);
}

.expertise-icon-box {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-orange) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.expertise-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.expertise-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.expertise-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-border);
}

.expertise-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.90625rem;
    color: var(--text-dark);
}

.expertise-feature-item i {
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* --- 12. SECTION SECTEURS SENSIBLES --- */
.sectors-section {
    background-color: var(--dark-900);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.sector-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sector-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sector-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid rgba(220, 38, 38, 0.35);
    color: #F87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.sector-card:hover .sector-icon {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: scale(1.1);
}

.sector-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.sector-desc {
    font-size: 0.8125rem;
    color: var(--text-light-muted);
    line-height: 1.5;
}

/* --- 13. BANNIÈRE OFFRE DIAGNOSTIC GRATUIT --- */
.diagnostic-cta-section {
    background: linear-gradient(135deg, #0B1120 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
}

.diagnostic-cta-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
    color: #FFFFFF;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(185, 28, 28, 0.35);
}

.cta-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.0625rem;
    color: #FEE2E2;
    margin-bottom: 1.75rem;
    max-width: 650px;
}

.cta-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.cta-benefit-item i {
    color: #FEF08A;
}

.cta-action-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* --- 14. SECTION CONTACT & DEVIS --- */
.contact-section {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
    align-items: flex-start;
}

/* Carte coordonnées contact */
.contact-info-card {
    background: var(--dark-900);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-info-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.contact-info-card h3 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-method-meta strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    margin-bottom: 0.2rem;
}

.contact-method-meta a, .contact-method-meta span {
    color: #FFFFFF;
    font-size: 1.0625rem;
    font-weight: 600;
}

.contact-method-meta a:hover {
    color: var(--primary-light);
}

.contact-notice-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-notice-box p {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: #CBD5E1;
}

/* Formulaire Contact */
.contact-form-wrapper {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.65rem;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.site-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.site-form .form-group {
    margin-bottom: 1.25rem;
}

.site-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-900);
    margin-bottom: 0.4rem;
}

.site-form .form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
    color: var(--dark-900);
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.site-form .form-control:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-status {
    margin-bottom: 1rem;
}

.form-status .alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* --- 15. FOOTER STYLES --- */
.site-footer {
    background-color: var(--dark-950);
    color: var(--text-light);
}

.footer-trust-bar {
    background-color: var(--dark-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.25rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 0.90625rem;
    color: #FFFFFF;
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.78125rem;
    color: var(--text-light-muted);
}

.footer-main {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 3rem;
}

.footer-col .footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.footer-logo-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(220, 38, 38, 0.25);
}

.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

.footer-desc {
    color: var(--text-light-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-mini {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.07);
    color: #CBD5E1;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-mini i {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    color: var(--text-light-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links li a i {
    font-size: 0.65rem;
    color: var(--primary);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-links li a:hover i {
    color: var(--primary-light);
}

.footer-contact-subtitle {
    color: var(--text-light-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.footer-contact-list .icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-val {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-address {
    color: #E2E8F0;
    font-size: 0.84375rem;
    line-height: 1.4;
}

.footer-bottom {
    background-color: var(--dark-950);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-light-muted);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- 16. BOUTONS FLOTTANTS RAPIDES --- */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-size: 1.35rem;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.btn-whatsapp {
    background: #25D366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2.5s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

.btn-call {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-orange) 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-scrolltop {
    background-color: var(--dark-850);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.btn-scrolltop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scrolltop:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

.floating-tooltip {
    position: absolute;
    right: 65px;
    background: var(--dark-900);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    right: 68px;
}

/* --- 17. MODAL --- */
.site-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.site-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    width: 100%;
    max-width: 580px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-modal.open .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--light-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: #FEE2E2;
    color: var(--primary);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(220, 38, 38, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- 18. ANIMATIONS AU SCROLL & INTERSECTION OBSERVER --- */
.reveal-fade {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS — COMPLET
   ========================================================================== */

/* -------- 1024px : Tablette -------- */
@media (max-width: 1024px) {

    /* Navigation */
    .desktop-nav, .hide-md {
        display: none !important;
    }
    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-visual-card {
        max-width: 580px;
        margin: 0 auto;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Expertises */
    .expertises-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Secteurs */
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* -------- 768px : Mobile large -------- */
@media (max-width: 768px) {

    /* --- Global --- */
    .section-py {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .section-title {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .hide-sm, .hide-mobile {
        display: none !important;
    }

    /* --- Topbar --- */
    .topbar {
        padding: 0.4rem 0;
    }
    .topbar-content {
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        text-align: center;
    }
    .topbar-left, .topbar-right {
        gap: 0.75rem;
    }
    .topbar-link, .topbar-item {
        font-size: 0.75rem;
    }

    /* --- Hero --- */
    .hero-section {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }
    .hero-title {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem);
        margin-bottom: 1rem;
    }
    .hero-lead {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-badge-pill {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
        margin-bottom: 1.25rem;
    }
    .hero-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding-top: 1.25rem;
    }
    .hero-stat-item .stat-number {
        font-size: 1.6rem;
    }
    .hero-stat-item .stat-label {
        font-size: 0.72rem;
    }
    .hero-visual-card {
        padding: 1rem;
    }
    .hero-floating-badge {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 0.75rem;
        max-width: 100%;
    }

    /* --- Risques --- */
    .risks-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .risks-alert-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .alert-banner-left {
        gap: 0.85rem;
    }
    .alert-icon-wrap {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        flex-shrink: 0;
    }
    .alert-banner-title {
        font-size: 0.9375rem;
        word-break: break-word;
    }
    .alert-banner-desc {
        font-size: 0.8125rem;
        word-break: break-word;
    }
    .risks-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .risk-card {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        overflow: hidden;
    }
    .risk-card-title {
        font-size: 1rem;
        word-break: break-word;
    }
    .risk-card-desc {
        font-size: 0.875rem;
    }
    .risk-point-item {
        font-size: 0.8125rem;
        word-break: break-word;
    }

    /* --- About --- */
    .about-visual-col {
        display: none; /* masque l'image sur mobile, garde le texte */
    }
    .about-text-lead {
        font-size: 1rem;
    }
    .about-box-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .about-box {
        padding: 1.1rem;
    }

    /* --- Expertises --- */
    .expertises-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .expertise-card {
        padding: 1.75rem 1.25rem;
    }
    .expertise-title {
        font-size: 1.15rem;
    }
    .expertise-number {
        font-size: 2.25rem;
    }
    .expertise-icon-box {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    /* --- Secteurs --- */
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .sector-card {
        padding: 1.5rem 1rem;
    }
    .sector-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .sector-title {
        font-size: 0.95rem;
    }
    .sector-desc {
        font-size: 0.78rem;
    }

    /* --- Galerie --- */
    .intervention-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .gallery-img-wrap {
        aspect-ratio: 4 / 3;
    }
    .gallery-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(5,8,17,0.9) 0%, rgba(5,8,17,0.2) 60%, transparent 100%);
        padding: 0.85rem;
    }
    .gallery-overlay-content {
        transform: translateY(0) !important;
    }
    .gallery-overlay-content i {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    .gallery-overlay-content h4 {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    .gallery-overlay-content p {
        font-size: 0.72rem;
        display: none; /* masque la description sur mobile pour éviter l'encombrement */
    }
    .gallery-cta-row {
        padding-top: 0.25rem;
    }
    .gallery-cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Diagnostic CTA --- */
    .diagnostic-cta-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }
    .cta-title {
        font-size: clamp(1.3rem, 5vw, 1.75rem);
        margin-bottom: 0.75rem;
    }
    .cta-desc {
        font-size: 0.9375rem;
    }
    .cta-benefits-list {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cta-tag-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
    .cta-action-wrap .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-info-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    .contact-info-card h3 {
        font-size: 1.2rem;
    }
    .contact-info-card > p {
        font-size: 0.875rem;
    }
    .contact-method-item {
        gap: 0.85rem;
    }
    .contact-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .contact-method-meta a,
    .contact-method-meta span {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .contact-notice-box {
        padding: 0.75rem 1rem;
    }
    .contact-notice-box p {
        font-size: 0.78rem;
        word-break: break-word;
    }
    .contact-form-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    .form-header {
        margin-bottom: 1.25rem;
    }
    .form-header h3 {
        font-size: 1.2rem;
    }
    .form-header p {
        font-size: 0.875rem;
    }
    .site-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .site-form .form-control {
        font-size: 0.9rem;
        padding: 0.75rem 0.9rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .trust-card {
        gap: 0.75rem;
    }
    .trust-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    .trust-text strong {
        font-size: 0.8125rem;
    }
    .trust-text span {
        font-size: 0.72rem;
    }
    .footer-trust-bar {
        padding: 1.5rem 0;
    }
    .footer-main {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }
    .footer-col .footer-title {
        margin-bottom: 0.85rem;
        font-size: 0.9375rem;
    }
    .footer-desc {
        font-size: 0.84375rem;
    }
    .footer-links {
        gap: 0.5rem;
    }
    .footer-links li a {
        font-size: 0.84375rem;
        word-break: break-word;
    }
    .footer-contact-subtitle {
        font-size: 0.84375rem;
    }
    .footer-contact-list {
        gap: 0.85rem;
    }
    .footer-contact-list li {
        align-items: flex-start;
    }
    .footer-contact-list .icon-wrap {
        flex-shrink: 0;
    }
    .contact-val {
        font-size: 0.84375rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .contact-address {
        font-size: 0.8125rem;
        word-break: break-word;
    }
    .footer-bottom {
        padding: 1.25rem 0;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        font-size: 0.78rem;
    }
    .footer-badges-list {
        gap: 0.35rem;
    }
    .badge-mini {
        font-size: 0.72rem;
        padding: 0.25rem 0.55rem;
    }

    /* --- Modal --- */
    .modal-dialog {
        margin: 0.75rem;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
        border-radius: var(--radius-lg);
    }
    .modal-content {
        padding: 1.5rem 1.25rem;
    }
    .modal-title {
        font-size: 1.15rem;
    }

    /* --- Boutons flottants --- */
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .floating-tooltip {
        display: none;
    }
}

/* -------- 480px : Mobile moyen -------- */
@media (max-width: 480px) {

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Secteurs en 1 colonne */
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .sector-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
        padding: 1.1rem;
    }
    .sector-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* Galerie 1 colonne */
    .intervention-gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .gallery-img-wrap {
        aspect-ratio: 16 / 9;
    }
    .gallery-overlay-content p {
        display: block;
        font-size: 0.75rem;
    }

    /* Footer trust 1 colonne */
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-card {
        flex-direction: row;
    }

    /* Hero stats */
    .hero-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .hero-stat-item .stat-number {
        font-size: 1.35rem;
    }
    .hero-stat-item .stat-label {
        font-size: 0.68rem;
    }
    .hero-stat-item .stat-suffix {
        font-size: 1.1rem;
    }
}

/* -------- 400px : Très petit mobile -------- */
@media (max-width: 400px) {

    .section-py {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* Hero stats : passe en colonne */
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .hero-stat-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 0.6rem;
    }
    .hero-stat-item:first-child {
        border-top: none;
        padding-top: 0;
    }
    .hero-stat-item .stat-number {
        font-size: 1.5rem;
        min-width: 60px;
    }
    .hero-stat-item .stat-label {
        font-size: 0.78rem;
    }

    /* Risk header en colonne */
    .risk-header {
        flex-direction: row;
        gap: 0.75rem;
    }
    .risk-icon-circle {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    /* Boutons */
    .btn-lg {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Modal plein écran */
    .modal-dialog {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
}

/* ==========================================================================
   GALERIE ZONES D'INTERVENTION — Overlay sur l'image & Lightbox
   ========================================================================== */

.intervention-gallery-section,
#galerie {
    background-color: var(--dark-950) !important;
    position: relative;
}

.intervention-gallery-section .section-title,
#galerie .section-title {
    color: #FFFFFF !important;
}

.intervention-gallery-section .section-subtitle,
#galerie .section-subtitle {
    color: #CBD5E1 !important;
}

.intervention-gallery-section .section-tag,
#galerie .section-tag {
    color: #FDA4AF !important;
    background-color: rgba(225, 29, 72, 0.18) !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
}

.intervention-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--dark-900);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(220, 38, 38, 0.3);
}

.gallery-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2.35 / 1;
    background: #070B14;
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.04);
}

/* Overlay permanent avec dégradé sombre lisible sur l'image */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 8, 17, 0.95) 0%,
        rgba(5, 8, 17, 0.62) 50%,
        rgba(5, 8, 17, 0.2) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.25rem 1.4rem;
    transition: var(--transition);
    z-index: 2;
}

.gallery-overlay-content {
    width: 100%;
    color: #FFFFFF;
    transform: translateY(4px);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 0.35rem;
    display: block;
}

.gallery-overlay-content h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: #FFFFFF;
    line-height: 1.25;
}

.gallery-overlay-content p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.65rem 0;
    line-height: 1.45;
}

.gallery-zoom-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(220, 38, 38, 0.9);
    color: #FFFFFF;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    transition: var(--transition);
}

.gallery-zoom-action i {
    font-size: 0.78rem !important;
    color: #FFFFFF !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
}

.gallery-item:hover .gallery-zoom-action {
    background: var(--primary);
    transform: scale(1.05);
}

.gallery-cta-row {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

/* ==========================================================================
   LIGHTBOX / VISIONNEUSE GRAND FORMAT
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

.lightbox-modal.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 17, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3;
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -64px;
}

.lightbox-next {
    right: -64px;
}

.lightbox-body {
    position: relative;
    background: #0B1120;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(220, 38, 38, 0.25);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.open .lightbox-body {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000;
}

.lightbox-caption {
    padding: 0.9rem 1.5rem;
    background: rgba(11, 17, 32, 0.95);
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

@media (max-width: 1300px) {
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}

@media (max-width: 900px) {
    .intervention-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intervention-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-img-wrap {
        aspect-ratio: 2.35 / 1;
    }

    .lightbox-modal { padding: 0.75rem; }
    .lightbox-close { top: -42px; right: 0; width: 36px; height: 36px; font-size: 1.1rem; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-img { max-height: 65vh; }
    .lightbox-caption { font-size: 0.8125rem; padding: 0.75rem 1rem; }
}

