/* ========================================
   FSP - France Securite Protection - Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: #2c3e5a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b8860b;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e5a;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.loader-logo {
    display: block;
    height: 180px;
    width: auto;
    object-fit: contain;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.loader-spinner {
    position: relative;
    width: 48px;
    height: 48px;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(44, 62, 90, 0.15);
    border-top-color: #b8860b;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }

/* ===== Header V2 (Modern Sticky Nav) ===== */
.header-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all 0.35s ease;
    background: transparent;
}

.header-v2.scrolled {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 960px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-v2-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    transition: all 0.35s ease;
}

.header-v2.scrolled .header-v2-nav {
    height: 50px;
    padding: 0 12px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: height 0.35s ease;
}

.header-v2.scrolled .logo-img {
    height: 52px;
}

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

/* Desktop Nav Links */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-v2-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-v2-link:hover,
.nav-v2-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-v2-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}

/* Dropdown */
.nav-v2-dropdown {
    position: relative;
}

.nav-v2-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 220px;
    padding: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.nav-v2-dropdown:hover .nav-v2-dropdown-menu {
    display: block;
}

.nav-v2-dropdown:hover .nav-v2-arrow {
    transform: rotate(180deg);
}

.nav-v2-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-v2-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Desktop Action Buttons */
.nav-desktop-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn-v2 .material-icons {
    font-size: 16px;
}

.btn-v2-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-v2-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-v2-primary {
    background: #b8860b;
    color: #fff;
    border-color: #b8860b;
}

.btn-v2-primary:hover {
    background: #d4a017;
    border-color: #d4a017;
    color: #fff;
}

.btn-v2-full {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
}

/* Mobile Toggle */
.menu-toggle-v2 {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle-v2 span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle-v2.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.menu-toggle-v2.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-v2.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Nav Panel */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 100px 30px 40px;
    overflow-y: auto;
}

.nav-mobile.active {
    display: flex;
}

/* Keep header above mobile menu */
.header-v2 {
    z-index: 1100;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-mobile-link {
    display: block;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Nav V2 */
@media screen and (max-width: 1025px) {
    .nav-desktop,
    .nav-desktop-actions {
        display: none;
    }

    .menu-toggle-v2 {
        display: flex;
    }

    .header-v2 {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .header-v2.scrolled {
        top: 0;
        max-width: 100%;
        border-radius: 0;
        border-color: transparent;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0f172a;
    overflow: hidden;
}

/* Hero Background Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    will-change: opacity, transform;
}

.hero-bg.active {
    opacity: 1;
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.82) 0%, rgba(26, 42, 74, 0.65) 50%, rgba(10, 20, 40, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Animated Hero */
.hero-content-animated {
    max-width: 800px;
}

.hero-badge {
    margin-bottom: 32px;
}

.hero-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.hero-badge-link .material-icons {
    font-size: 16px;
}

.hero-badge-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-title-animated {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 28px;
    line-height: 1.15;
}

.hero-title-static {
    display: block;
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.hero-title-slider {
    display: block;
    position: relative;
    height: 1.3em;
    font-size: 3.8rem;
    font-weight: 700;
    overflow: hidden;
    margin-top: 4px;
    white-space: nowrap;
}

.hero-slide {
    position: absolute;
    white-space: nowrap;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.slide-up {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 36px;
    text-align: center;
}

.hero-buttons-animated {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon .material-icons {
    font-size: 18px;
}

/* Legacy hero (unused, kept for subpages) */
.hero-title {
    margin-bottom: 40px;
}

.hero-title-main {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-sub {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 6px;
    text-transform: uppercase;
}

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

/* Responsive animated hero */
@media screen and (max-width: 1025px) {
    .hero-title-static,
    .hero-title-slider {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 600px) {
    .hero-title-static,
    .hero-title-slider {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    animation: bounceDown 2s infinite;
}

.hero-scroll .material-icons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.hero-scroll:hover .material-icons {
    color: #fff;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #b8860b;
    color: #fff;
    border-color: #b8860b;
}

.btn-primary:hover {
    background: #9a7209;
    border-color: #9a7209;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #2c3e5a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2c3e5a;
    color: #fff;
    border-color: #2c3e5a;
    padding: 10px 24px;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: #3a5275;
    border-color: #3a5275;
    color: #fff;
}

.btn-lg {
    padding: 16px 48px;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b8860b;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e5a;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Prestations Grid --- */
.section-prestations {
    background: #f8f9fa;
}

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prestation-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    color: #333;
}

.prestation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    color: #333;
}

.prestation-card-img {
    height: 300px;
    overflow: hidden;
}

.prestation-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}

.prestation-card:hover .prestation-card-img img {
    transform: scale(1.08);
}

.prestation-card-content {
    padding: 20px;
    text-align: center;
}

.prestation-card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e5a;
    line-height: 1.4;
}

/* --- About Section --- */
.section-about {
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e5a;
}

.about-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e5a;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid #b8860b;
}

.about-text p {
    margin-bottom: 16px;
    color: #555;
}

.about-text ul {
    margin: 16px 0;
    padding-left: 20px;
}

.about-text ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: #555;
}

.about-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 100px;
}

.about-image img {
    width: 100%;
    height: auto;
}

/* --- Services Section --- */
.section-services {
    background: #f8f9fa;
    padding: 60px 0;
}

.services-content h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.services-content p {
    margin-bottom: 16px;
    color: #555;
}

.services-list {
    column-count: 2;
    column-gap: 40px;
    margin: 20px 0;
    padding-left: 20px;
}

.services-list li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: #555;
    break-inside: avoid;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

/* --- Devis Section --- */
.section-devis {
    background: #2c3e5a;
    padding: 60px 0;
}

.devis-block h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.devis-block p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

/* --- Gardiennage Section --- */
.section-gardiennage {
    padding: 60px 0;
}

.section-gardiennage h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.section-gardiennage h4 {
    font-size: 1.2rem;
    margin: 30px 0 16px;
    color: #b8860b;
}

.section-gardiennage p {
    margin-bottom: 16px;
    color: #555;
}

.section-gardiennage ul {
    margin: 16px 0;
    padding-left: 20px;
}

.section-gardiennage ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: #555;
}

.section-gardiennage ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

.phone-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e5a !important;
}

.phone-highlight a {
    color: #b8860b;
    font-weight: 700;
}

/* --- Agents Section --- */
.section-agents {
    background: #f8f9fa;
}

.agents-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.agents-text p {
    margin-bottom: 16px;
    color: #555;
}

.certif-list {
    margin: 16px 0;
    padding-left: 20px;
}

.certif-list li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: #555;
}

.certif-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

.agents-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- Coverage Section --- */
.section-coverage {
    background: #fff;
}

.coverage-content p {
    margin-bottom: 16px;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.coverage-content p:first-child {
    margin-top: 0;
}

/* --- Avis Section --- */
.section-avis {
    background: #f8f9fa;
    padding: 60px 0;
}

.avis-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    width: 280px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-discover {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #b8860b;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.link-discover:hover {
    color: #2c3e5a;
    border-color: #2c3e5a;
}

/* --- Placeholder Images --- */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e5a 0%, #3a5275 100%);
    min-height: 200px;
}

.placeholder-img .material-icons {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-img-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e5a 0%, #3a5275 100%);
    min-height: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.placeholder-img-lg .material-icons {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.placeholder-img-lg p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e5a 0%, #3a5275 100%);
    border-radius: 8px;
}

.gallery-placeholder .material-icons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.gallery-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Articles Section --- */
.section-articles {
    background: #fff;
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.article-card-img {
    height: 250px;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 24px;
}

.article-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #2c3e5a;
}

.article-card-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, #2c3e5a 0%, #3a5275 100%);
    padding: 80px 0;
    text-align: center;
}

.section-cta h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s;
}

.cta-phone:hover {
    color: rgba(255, 255, 255, 0.8);
}

.cta-phone .material-icons {
    font-size: 28px;
}

/* --- Contact Section --- */
.section-contact {
    background: #f8f9fa;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.info-card {
    background: #fff;
    padding: 30px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card .material-icons {
    font-size: 36px;
    color: #b8860b;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e5a;
}

.info-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.info-card a {
    font-size: 0.85rem;
    color: #b8860b;
}

/* --- Contact Form --- */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 24px;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e5a;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8860b;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    font-size: 0.85rem;
    color: #666;
}

.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #b8860b;
}

.form-check label {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.form-check label a {
    color: #b8860b;
    text-decoration: underline;
}

/* --- Extended Content --- */
.section-extended {
    padding: 40px 0;
    background: #fff;
}

.extended-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 16px;
    color: #2c3e5a;
}

.extended-content p {
    margin-bottom: 16px;
    color: #555;
}

.extended-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.extended-content ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: #555;
}

.extended-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

.extended-content a {
    color: #b8860b;
}

/* --- Secteurs Section --- */
.section-secteurs {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.secteurs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.secteur-block h4 {
    font-size: 1.1rem;
    color: #2c3e5a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b8860b;
}

.secteur-block ul li {
    padding: 0;
}

.secteur-block ul li a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: color 0.2s, padding-left 0.2s;
}

.secteur-block ul li a:hover {
    color: #b8860b;
    padding-left: 8px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: #f0f0f0;
    padding: 12px 0;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb a {
    color: #2c3e5a;
}

.breadcrumb a:hover {
    color: #b8860b;
}

.breadcrumb span {
    color: #555;
}

/* --- Page Hero (subpages) --- */
.page-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 80px 0 40px;
}

.page-hero-small {
    height: 350px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.85) 0%, rgba(26, 42, 74, 0.7) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.page-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.page-hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.75rem;
}

/* --- Page Content --- */
.section-page-content h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e5a;
}

.section-page-content h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #2c3e5a;
}

.section-page-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 16px;
    color: #2c3e5a;
}

.section-page-content h4 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: #b8860b;
}

.section-page-content p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.7;
}

.section-page-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.section-page-content ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: #555;
}

.section-page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

/* --- Service Cards Section (subpages) --- */
.section-cards {
    background: #f8f9fa;
    padding: 60px 0;
}

/* --- Dual Contact Forms --- */
.contact-forms-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form-block h3 {
    font-size: 1.3rem;
    color: #2c3e5a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b8860b;
}

/* --- Testimonials (FAQ) --- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.testimonial-header .material-icons {
    font-size: 40px;
    color: #2c3e5a;
}

.testimonial-header strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2c3e5a;
}

.stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.stars .material-icons {
    font-size: 18px;
    color: #f5a623;
}

.testimonial-card p {
    color: #555;
    font-style: italic;
    line-height: 1.7;
}

/* --- Scrolling Testimonials (Homepage) --- */
.testimonials-scroll-wrapper {
    display: flex;
    gap: 24px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    padding: 0 20px;
}

.testimonials-col {
    flex: 1;
    max-width: 340px;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.testimonials-col-up .testimonials-track {
    animation: scrollUp 25s linear infinite;
}

.testimonials-col-down .testimonials-track {
    animation: scrollDown 28s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.tcard {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 24px rgba(44, 62, 90, 0.06);
    flex-shrink: 0;
}

.tcard p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.tcard-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tcard-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tcard-author strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #2c3e5a;
    line-height: 1.3;
}

.tcard-author span {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}

@media screen and (max-width: 1025px) {
    .testimonials-col-third {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .testimonials-scroll-wrapper {
        height: 400px;
    }

    .testimonials-col:nth-child(2) {
        display: none;
    }

    .testimonials-col {
        max-width: 100%;
    }
}

/* --- Legal Pages --- */
.legal-content {
    max-width: 800px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.legal-table th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c3e5a;
    width: 200px;
    background: #f8f9fa;
}

.legal-table td {
    color: #555;
}

.legal-table a {
    color: #b8860b;
}

/* --- Responsive subpages --- */
@media screen and (max-width: 1025px) {
    .page-hero-content h1 {
        font-size: 1.8rem;
    }

    .contact-forms-duo {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .page-hero {
        min-height: auto;
        padding: 80px 0 30px;
    }

    .page-hero-content h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .page-hero-buttons .btn {
        padding: 8px 14px;
        font-size: 0.7rem;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .legal-table th {
        width: 120px;
    }
}

/* ===== Footer V2 (Modern) ===== */
.footer-v2 {
    position: relative;
    background: #0f172a;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px 40px 0 0;
    padding: 60px 0 0;
    overflow: hidden;
}

.footer-v2-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 33%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.5), transparent);
    filter: blur(1px);
}

.footer-v2-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
}

/* Brand Column */
.footer-v2-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-v2-logo {
    display: block;
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 12px;
}

.footer-v2-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer-v2-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.footer-v2-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-v2-contact a:hover {
    color: #fff;
}

.footer-v2-contact .material-icons {
    font-size: 18px;
    color: #b8860b;
}

/* Links Columns */
.footer-v2-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-v2-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-v2-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-v2-col ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-v2-col ul li a:hover {
    color: #fff;
}

.footer-v2-social li a .material-icons {
    font-size: 18px;
}

/* Bottom Bar */
.footer-v2-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-v2-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Responsive Footer V2 */
@media screen and (max-width: 1025px) {
    .footer-v2-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-v2-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .footer-v2 {
        border-radius: 24px 24px 0 0;
    }

    .footer-v2-columns {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-v2-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Legacy footer (subpages) */
.footer {
    background: #1e2d42;
    color: #fff;
    padding: 60px 0 0;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #b8860b;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #b8860b;
}

/* --- Responsive --- */
@media screen and (max-width: 1025px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 80px 20px 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: 14px 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: #f8f9fa;
        display: none;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .submenu li a {
        padding-left: 32px;
    }

    .hero-title-main {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-title-sub {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .prestations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .agents-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
    }

    .services-list {
        column-count: 1;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .secteurs-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title-main {
        font-size: 1.8rem;
    }

    .hero-title-sub {
        font-size: 0.9rem;
    }

    .prestations-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .avis-gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        width: 100%;
        max-width: 350px;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
