/* =========================================
   1. VARIABLES & COULEURS (Mode Clair par défaut)
   ========================================= */
:root {
    color-scheme: light;

    /* --- COULEURS DE MARQUE KEVTEX --- */
    /* Orange = Primaire (Actions, Boutons, Accents) */
    --primary: #FF9700;
    --primary-hover: #e68800;

    /* Bleu = Secondaire (Structure, Texte, Sérieux) */
    --secondary: #12074B;
    --secondary-dark: #0d0536;

    --gradient: linear-gradient(135deg, #FF9700 0%, #12074B 100%);

    /* --- INTERFACE (Jour/Clair) --- */
    --bg: #ffffff;
    /* Fond blanc pur */
    --surface: #f8fafc;
    /* Gris très pâle pour les cartes */
    --surface-alt: #f1f5f9;
    /* Sections alternées */

    --text: #12074B;
    /* Texte principal en Bleu Kevtex */
    --muted: #475569;
    /* Texte secondaire gris */
    --text-heading: #12074B;
    /* Couleur pour les titres */
    --text-on-primary: #ffffff;
    /* Texte sur fond primaire (orange) */
    --text-on-secondary: #ffffff;
    /* Texte sur fond secondaire (bleu) */

    /* --- ÉLÉMENTS UI --- */
    --border-soft: rgba(18, 7, 75, 0.1);
    --border-strong: rgba(18, 7, 75, 0.2);
    --card-bg: #ffffff;
    --shadow-soft: 0 15px 40px -5px rgba(18, 7, 75, 0.1);
    --radius: 1rem;
    --radius-sm: 0.5rem;

    /* --- FOOTER (Toujours Sombre) --- */
    --footer-bg: linear-gradient(160deg, #0C093C, #10003F);
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.75);
    --footer-border: rgba(255, 255, 255, 0.15);
}

/* =========================================
   2. MODE SOMBRE (Automatique et Manuel)
   ========================================= */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        /* --- INTERFACE (Nuit/Sombre) --- */
        --bg: #02040a;
        /* Noir profond */
        --surface: #0f111a;
        /* Bleu nuit très sombre */
        --surface-alt: #151925;

        --text: #ffffff;
        /* Texte en BLANC pour lisibilité */
        --muted: #94a3b8;
        /* Gris clair */
        --text-heading: #ffffff;
        /* Couleur pour les titres en mode sombre */
        --text-on-primary: #ffffff;
        /* Texte sur fond primaire (orange) */
        --text-on-secondary: #ffffff;
        /* Texte sur fond secondaire (bleu) */

        /* --- BORDURES & OMBRES --- */
        --border-soft: rgba(255, 255, 255, 0.15);
        --border-strong: rgba(255, 255, 255, 0.25);
        --card-bg: #0f111a;
        --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.6);

        /* --- FOOTER (Dark) --- */
        --footer-bg: linear-gradient(160deg, #0C093C, #10003F);
        --footer-text: #ffffff;
        --footer-text-muted: rgba(255, 255, 255, 0.75);
        --footer-border: rgba(255, 255, 255, 0.15);
    }
}

/* Mode sombre manuel */
[data-theme="dark"] {
    color-scheme: dark;

    /* --- INTERFACE (Nuit/Sombre) --- */
    --bg: #02040a;
    --surface: #0f111a;
    --surface-alt: #151925;

    --text: #ffffff;
    --muted: #94a3b8;
    --text-heading: #ffffff;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;

    /* --- BORDURES & OMBRES --- */
    --border-soft: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.25);
    --card-bg: #0f111a;
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.6);

    /* --- FOOTER (Dark) --- */
    --footer-bg: linear-gradient(160deg, #0C093C, #10003F);
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.75);
    --footer-border: rgba(255, 255, 255, 0.15);
}

/* Mode clair manuel (override media query) */
[data-theme="light"] {
    color-scheme: light;

    /* --- INTERFACE (Jour/Clair) --- */
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;

    --text: #12074B;
    --muted: #475569;
    --text-heading: #12074B;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;

    /* --- BORDURES & OMBRES --- */
    --border-soft: rgba(18, 7, 75, 0.1);
    --border-strong: rgba(18, 7, 75, 0.2);
    --card-bg: #ffffff;
    --shadow-soft: 0 15px 40px -5px rgba(18, 7, 75, 0.1);
}

@media (prefers-color-scheme: dark) {

    /* Header sombre : couleur stable (ne change pas de teinte au scroll) */
    :root:not([data-theme="light"]) .site-header {
        background-color: rgba(2, 4, 10, 0.95);
        border-bottom: 1px solid var(--border-soft);
    }

    :root:not([data-theme="light"]) .site-header.site-header--transparent {
        background-color: rgba(2, 4, 10, 0.95);
        border-color: var(--border-soft);
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .site-header.site-header--scrolled {
        background-color: rgba(2, 4, 10, 0.95);
        border-color: var(--border-soft);
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
    }

    /* --- LOGO EN MODE SOMBRE --- */
    :root:not([data-theme="light"]) .brand-logo {
        content: url('../assets/logo.png');
    }
}

/* Styles pour mode sombre manuel */
[data-theme="dark"] .site-header {
    background-color: rgba(2, 4, 10, 0.95);
    border-bottom: 1px solid var(--border-soft);
}

[data-theme="dark"] .site-header.site-header--transparent {
    background-color: rgba(2, 4, 10, 0.95);
    border-color: var(--border-soft);
    box-shadow: none;
}

[data-theme="dark"] .site-header.site-header--scrolled {
    background-color: rgba(2, 4, 10, 0.95);
    border-color: var(--border-soft);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .brand-logo {
    content: url('../assets/logo.png');
}

/* Bordures nécessaires pour les cartes sur fond noir */
[data-theme="dark"] .card,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .logo-card,
:root:not([data-theme="light"]) .card,
:root:not([data-theme="light"]) .hero-card,
:root:not([data-theme="light"]) .contact-card,
:root:not([data-theme="light"]) .logo-card {
    border: 1px solid var(--border-soft);
}

/* Ajustement bouton primaire pour contraste */
[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* =========================================
   3. RESET & STYLES DE BASE
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

a:not(.btn):hover {
    color: var(--primary);
}

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

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

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

/* =========================================
   4. HEADER & TOP BAR (Compact)
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header--transparent {
    background-color: transparent;
    box-shadow: none;
    border-color: transparent;
}

.site-header--scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    border-color: rgba(18, 7, 75, 0.08);
    box-shadow: 0 25px 45px rgba(18, 7, 75, 0.08);
}

.site-header--scrolled .dropdown-menu {
    background: var(--card-bg);
}

/* Barre du haut fine et Bleue */
.top-bar {
    background: var(--secondary);
    /* Fond Bleu */
    color: white;
    /* Texte Blanc */
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.75rem;
    line-height: 1.2;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    /* Hauteur réduite */
    min-height: 32px;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-contact a,
.top-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.top-contact a:hover {
    color: var(--primary);
}

.top-contact svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    opacity: 0.8;
}

/* Réseaux sociaux dans la top bar */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.2s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Partie principale du Header (Logo + Menu) */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    /* Compact */
}

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

/* Logo */
.brand-logo {
    width: clamp(100px, 12vw, 170px);
    height: auto;
    display: block;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-list>li {
    position: relative;
}

.site-nav a:not(.btn),
.dropdown-toggle {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.site-nav a:not(.btn):hover,
.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chevron {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .chevron {
    transform: rotate(-135deg);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.dropdown-menu a {
    padding: 0.85rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-soft);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--surface);
    color: var(--primary);
}

.dropdown-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 821px) {
    .site-nav {
        position: static;
        max-height: none;
        opacity: 1;
        padding: 0;
        display: flex;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.active .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* =========================================
   5. HERO & VIDÉO
   ========================================= */
.hero {
    position: relative;
    padding: 5rem 0 5rem;
    overflow: hidden;
    background: var(--secondary);
    color: white;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay pour assombrir la vidéo */
.video-background .overlay {
    position: absolute;
    inset: 0;
    /* Opacité réduite pour voir l'image de fond */
    background: rgba(18, 7, 75, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-card {
    margin-top: 0;
    padding-top: 0;
    align-self: flex-start;
    /* Pour monter uniquement le bloc texte */
}

.hero-text1 {
    margin-top: -50px;
    padding-top: 0px;
    align-self: flex-start;

    /* Pour monter uniquement le bloc texte */
}




.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lead {
    opacity: 0.9;
    max-width: 38rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-points {
    display: grid;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-points li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* Carte Hero Translucide */
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 2rem;
    color: white;
}

.hero-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.hero-card ul {
    color: white;
}

.hero-card li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0;
}

.hero-card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   6. COMPOSANTS & SECTIONS
   ========================================= */
.section-heading {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-heading h2 {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Bouton Orange (Principal) */
.btn-primary {
    background: var(--primary);
    color: white;
    /* Blanc sur Orange */
    box-shadow: 0 4px 15px rgba(255, 151, 0, 0.3);
}

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

/* Bouton Outline (pour fond clair) */
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Bouton Outline Blanc (pour sur la vidéo) */
.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

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

/* Bouton Accent Nav */
.btn-accent {
    background: rgba(255, 151, 0, 0.1);
    color: var(--primary);
}

/* Titres et Textes */
.eyebrow {
    color: var(--primary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
}

h2 {
    margin: 0 0 1rem;
}

p {
    margin-top: 0;
    color: var(--text);
}

/* Cartes Générales */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s;
}

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

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    color: white;
    border: none;
    padding: 0;
}

.service-card::before,
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.service-card::before {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.45;
    filter: grayscale(0.4) brightness(0.6);
    transform: scale(1);
}

.service-card::after {
    background: linear-gradient(180deg, rgba(5, 5, 20, 0.2) 0%, rgba(5, 5, 20, 0.75) 100%);
    opacity: 0.9;
}

.service-card .service-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    height: 100%;
}

.service-card h3 {
    color: white;
    margin: 0;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.service-card:hover::before {
    transform: scale(1.08);
}

.service-card:hover {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
}

.service-card:hover h3 {
    color: #FFA300;
}

.service-supply::before {
    background-image: url('');
}

.service-digital::before {
    background-image: url('');
}

.service-construction::before {
    background-image: url('');
}

.partners {
    background: var(--surface);
}

.partners-marquee {
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: marquee 35s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    padding: 1.5rem 2.75rem;
    border-radius: var(--radius);
    background: transparent;
    /* 🔥 Suppression du fond blanc */
    box-shadow: none;
    /* Optionnel → retire l’ombre pour un rendu plus clean */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
}

.partner-logo img {
    width: clamp(180px, 15vw, 220px);
    /* Taille agrandie */
    max-height: 100px;
    object-fit: contain;
    border-radius: 0;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Effet au survol fluide */
.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.10);
    /* léger zoom pour embellir */
}




@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .partner-logo {
        min-width: 150px;
        padding: 1.25rem 1.5rem;
    }

    .partners-track {
        gap: 1.5rem;
    }
}

.projects {
    padding: 4rem 0;
    background: var(--surface-alt);
}

.projects-marquee {
    overflow: hidden;
    position: relative;
}

.projects-track {
    display: flex;
    gap: 1.5rem;
    animation: projectsScroll 45s linear infinite;
}

.projects-marquee:hover .projects-track {
    animation-play-state: paused;
}

.project-card {
    flex: 0 0 280px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover .project-info {
    opacity: 1;
}

@keyframes projectsScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sections Spécifiques */
.about,
.services,
.partners,
.reasons,
.cta {
    padding: 4rem 0;
}

.services {
    position: relative;
    background: var(--secondary);
    overflow: hidden;
}

.services::before,
.services::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.services::before {
    /* Même image que la page Contact, avec légère mise en avant */
    background-image: url('../assets/about-us-team.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: grayscale(0.2) contrast(0.9) brightness(0.9);
}

/* .services::after {
     Overlay léger pour garder le texte lisible 
    background: linear-gradient(180deg, rgba(2,4,10,0.7) 0%, rgba(2,4,10,0.35) 100%);
}  */
.services>.container {
    position: relative;
    z-index: 1;
}

.cta {
    background: var(--surface-alt);
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.cta-content>div:first-child {
    max-width: 720px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-actions .btn {
    min-width: 180px;
}

.reasons {
    background: var(--surface);
}

.reasons-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.3fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.reasons-intro {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.reasons-lead {
    color: var(--muted);
    margin: 0;
}

.reasons-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reasons-metrics span {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 151, 0, 0.15);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.reason-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reason-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(18, 7, 75, 0.12);
}

.reason-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 151, 0, 0.18);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.reason-icon svg {
    width: 24px;
    height: 24px;
}

.reason-card h3 {
    margin: 0 0 0.4rem;
    color: var(--text-heading);
}

.reason-card p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 960px) {
    .reasons-layout {
        grid-template-columns: 1fr;
    }

    .reasons-intro {
        text-align: center;
        align-items: center;
    }

    .reasons-metrics {
        justify-content: center;
    }
}

/* Footer */
.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 5rem;
}

.footer-wave {
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    height: 110px;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-wave path {
    fill: var(--footer-bg);
    /* Use matching bg color but might need solid color content for fill */
    /* Note: gradients don't work on fill directly usually, so let's use a solid color fallback or variable if possible.
       Actually, for the wave, it needs to match the top of the footer.
       The top of the footer gradient in Light is #f8fafc approx.
       Let's assume the wave should match the main background or the footer background?
       Usually the wave is the TRANSITION.
       If the footer is light, the wave should be light?
       Let's check the previous path fill: #0C093C (Dark blue).
       In light mode, we want it to be light.
     */
    fill: currentColor;
    /* Allows overriding via color property provided we set color on the svg wrapper? No. */
}

/* We need to handle the wave fill dynamically. */
:root {
    --footer-wave-fill: #0C093C;
}

:root:not([data-theme="light"]) {
    /* Dark media query handled below */
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --footer-wave-fill: #0C093C;
    }
}

[data-theme="dark"] {
    --footer-wave-fill: #0C093C;
}

.footer-wave path {
    fill: var(--footer-wave-fill);
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 320px;
}

.footer-description {
    font-size: 1.1rem;
    color: var(--footer-text-muted);
}

.footer-logo {
    width: clamp(280px, 22vw, 360px);
    height: auto;
}

.footer-contact,
.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--footer-text-muted);
}

.footer-contact a,
.footer-links a {
    color: var(--footer-text);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

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

.footer-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--footer-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.footer-social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-copy {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* =========================================
   SERVICE PAGES
   ========================================= */
body.service-page {
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    background: var(--bg);
}

.service-page main {
    overflow: hidden;
}

.section-padding {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.service-hero {
    position: relative;
    min-height: clamp(60vh, 70vw, 80vh);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    animation: heroFade 1s ease forwards;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(12, 9, 60, 0.7), rgba(16, 0, 63, 0.25));
}

.service-hero__content {
    position: relative;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    z-index: 1;
}

.service-eyebrow {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFA300;
}

.service-hero__content h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin: 0;
}

.service-hero__lead {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.service-hero--supply {
    background-image: linear-gradient(135deg, rgba(16, 0, 63, 0.6), rgba(0, 0, 0, 0.4)), url('../assets/appro2.jpg');
}

.service-hero--digital {
    background-image: linear-gradient(135deg, rgba(12, 9, 60, 0.8), rgba(0, 0, 0, 0.4)), url('../assets/cctv.jpg');
}

.service-hero--construction {
    background-image: linear-gradient(135deg, rgba(12, 9, 60, 0.85), rgba(0, 0, 0, 0.45)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80');
}

.service-overview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.service-overview__text h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.service-list li::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 163, 0, 0.15);
    border: 1px solid rgba(255, 163, 0, 0.5);
    flex-shrink: 0;
}

.service-overview__media img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
    object-fit: cover;
    animation: floatUp 0.8s ease both;
}

.service-overview--reverse .service-overview__grid {
    direction: rtl;
}

.service-overview--reverse .service-overview__text,
.service-overview--reverse .service-overview__media {
    direction: ltr;
}

.service-interventions {
    background: var(--surface);
}

.intervention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.intervention-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.intervention-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.intervention-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.intervention-card:hover .intervention-card__overlay {
    opacity: 1;
}

.service-guarantees {
    background: var(--surface-alt);
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.guarantee-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text);
}

.guarantee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(12, 9, 60, 0.12);
}

.guarantee-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 151, 0, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.guarantee-icon svg {
    width: 42px;
    height: 42px;
}

.service-cta-block {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: linear-gradient(120deg, #0C093C, #10003F 45%, #FFA300);
    color: white;
}

.service-cta__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.service-cta__content h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.btn-cta {
    background: white;
    color: #0C093C;
    padding: 0.9rem 2.4rem;
    font-weight: 600;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.03);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .service-cta__content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .service-hero {
        min-height: 60vh;
        padding: 4rem 0;
    }

    .service-hero__lead {
        font-size: 1rem;
    }

    .intervention-card img {
        height: 220px;
    }
}

/* =========================================
   PARTENAIRES PAGE
   ========================================= */
.partners-page main {
    background: var(--bg);
}

.partners-hero {
    position: relative;
    padding: clamp(6rem, 10vw, 9rem) 0;
    color: white;
    background-image: linear-gradient(135deg, rgba(12, 9, 60, 0.85), rgba(255, 151, 0, 0.35)), url('../assets/p4.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.partners-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partners-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1rem;
}

.partners-hero__stats span {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.partners-gallery {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(12, 9, 60, 0.12);
}

.partner-card img {
    width: min(220px, 75%);
    max-height: 100px;
    margin: 0 auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.partner-card:hover img {
    transform: scale(1.1);
}

.partner-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.partner-card h3,
.partner-card h4 {
    color: var(--text-heading);
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.partner-tags span {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(18, 7, 75, 0.08);
    color: var(--text-heading);
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonials {
    background: var(--surface-alt);
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.testimonial-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    box-shadow: var(--shadow-soft);
    overflow: visible;
    transition: opacity 0.6s ease, transform 0.6s ease;
    max-width: 520px;
    margin: 0 auto;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 151, 0, 0.15), transparent 50%);
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(18, 7, 75, 0.12);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    margin: -45px auto 1.5rem;
    /* Remonte l'image pour l'effet 'visible au-dessus' */
    position: relative;
    z-index: 2;
    background: var(--card-bg);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}

.testimonial-meta {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
}

.testimonial-meta strong {
    color: var(--text-heading);
}

.testimonial-meta span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-company {
    text-transform: none;
}

.testimonial-role {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* =========================================
   SECTION INDUSTRIE CONGOLAISE / LOGOS
   ========================================= */
.industry-trust {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: linear-gradient(90deg, #05052B 0%, #12074B 35%, #FF9700 100%);
    color: #ffffff;
}

.industry-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1.2fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.industry-text h2 {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.industry-accent-line {
    display: inline-block;
    width: 120px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFE08A, #FFB03A, #FF9700);
}

.industry-logos-wrapper {
    overflow: hidden;
}

.industry-logos-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: industryMarquee 35s linear infinite;
}

.industry-trust:hover .industry-logos-track {
    animation-play-state: paused;
}

.industry-logo {
    flex: 0 0 auto;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-logo img {
    width: clamp(120px, 12vw, 180px);
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.1) invert(0.02);
    opacity: 0.9;
}

@keyframes industryMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .industry-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .industry-text {
        order: 0;
    }

    .industry-logos-wrapper {
        order: 1;
    }

    .industry-accent-line {
        margin-inline: auto;
    }
}

/* Slider state (activé via JS) */
.testimonials.is-slider .testimonial-grid {
    position: relative;
}

.testimonials.is-slider .testimonial-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
}

.testimonials.is-slider .testimonial-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.testimonial-nav {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(18, 7, 75, 0.25);
    background: rgba(255, 255, 255, 0.2);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-dot.is-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15);
}

.testimonial-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
body.contact-page {
    position: relative;
    min-height: 100%;
    background: var(--bg);
}

body.contact-page::before,
body.contact-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body.contact-page::before {
    background-image: url('../assets/about1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: grayscale(0.2);
}

body.contact-page::after {
    background: linear-gradient(180deg, rgba(2, 4, 10, 0.65), rgba(2, 4, 10, 0.35));
}

.contact-page main {
    position: relative;
    z-index: 1;
}

.contact-hero .hero-text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.contact-hero {
    background-image: linear-gradient(145deg, rgba(18, 7, 75, 0.95), rgba(0, 0, 0, 0.55)), url('../assets/about-us-team.jpg');
    background-size: cover;
    background-position: center;
}

.contact-wrapper {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 151, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.contact-card h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.contact-card p,
.contact-card a {
    margin: 0;
    color: var(--muted);
}

.contact-card a {
    font-weight: 600;
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.contact-form {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input,
.form-group textarea {
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    padding: 0.85rem 1rem;
    font: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 151, 0, 0.2);
}

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

.map-card {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.map-card iframe,
.map-card img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--surface-alt);
    transform: scale(1.05);
    border-color: var(--primary);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.theme-icon--light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon--dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon--light {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon--dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Burger Menu (Mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Mobile */
@media (max-width: 820px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-icon {
        width: 18px;
        height: 18px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border-soft);
        padding: 1.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        z-index: 1000;
    }

    .site-nav.is-open {
        max-height: 100vh;
        opacity: 1;
        padding: 1.5rem;
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .nav-list>li {
        width: 100%;
    }

    .nav-list a:not(.btn),
    .dropdown-toggle {
        width: 100%;
        padding: 0.75rem 0;
        display: block;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        transform: none;
        border: 1px solid var(--border-soft);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
    }

    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        margin-top: 0.5rem;
        padding: 0;
        display: flex;
        pointer-events: auto;
    }

    .dropdown-menu a {
        pointer-events: auto;
        cursor: pointer;
    }

    .has-dropdown.active .chevron {
        transform: rotate(-135deg);
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-content {
        text-align: center;
        grid-template-columns: 1fr;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-points {
        display: inline-block;
        text-align: left;
    }
}

.about {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 3rem;
}

.about-text {
    max-width: 560px;
}

.about-text p {
    font-size: 1rem;
}

.about-media {
    display: flex;
    justify-content: center;
}

/* Conteneur */
.about-media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}

/* Zone qui contient les shapes et l'image */
.about-mask {
    position: relative;
    width: 460px;
    /* ajustez la taille */
    height: 360px;
    display: block;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

/* Forme bleue (derrière) */
.about-mask::before {
    content: "";
    position: absolute;
    width: 105%;
    height: 105%;
    left: -6%;
    top: 12%;
    z-index: 1;
    /* derrière l'orange */
    border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%;
    background: radial-gradient(circle at 70% 75%, #0067b5 0%, #004a8f 45%, #00305a 100%);
    transform: rotate(-6deg) scale(1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    will-change: transform;
}

/* Forme orange (devant) + décor (points/ligne) */
.about-mask::after {
    content: "";
    position: absolute;
    width: 92%;
    height: 88%;
    left: 4%;
    top: 6%;
    z-index: 2;
    /* devant la bleue, sous l'image */
    border-radius: 60% 40% 55% 45% / 40% 55% 45% 60%;
    background:
        /* petits points décoratifs (blancs, discrets) */
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
        /* petit trait blanc oblique */
        linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 100%),
        /* dégradé orange principal */
        radial-gradient(circle at 30% 25%, #ffd07a 0%, #ffb23a 20%, #ff8a00 60%, #ff7800 100%);
    background-repeat: no-repeat;
    background-size: 6% 6%, 4% 4%, 18px 3px, cover;
    background-position: 82% 18%, 88% 80%, 20% 8%, center;
    transform: rotate(4deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16), inset 0 8px 30px rgba(255, 255, 255, 0.02);
    will-change: transform;
}

/* L'image (votre PNG sans fond) : au-dessus de tout */
.about-mask img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    /* réduit l'espace occupé par la photo */
    max-width: 400px;
    /* limite la taille */
    height: auto;
    margin: 0 auto;
    top: 6%;
    /* ajuste la position verticale si besoin */
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
    object-fit: contain;
    transform: translateZ(0);
    /* pour garder rendu fluide */
}

/* Responsive : réduire la taille sur petit écran */
@media (max-width: 520px) {
    .about-mask {
        width: 260px;
        height: 260px;
    }

    .about-mask img {
        width: 64%;
        max-width: 180px;
        top: 4%;
    }
}

@media (max-width: 360px) {
    .about-mask {
        width: 200px;
        height: 200px;
    }

    .about-mask img {
        width: 68%;
        max-width: 140px;
    }
}




@media (max-width: 640px) {
    .about-mask {
        width: 100%;
    }
}

.history {
    padding: 4rem 0;
    background: var(--surface-alt);
}

.timeline {
    position: relative;
    display: grid;
    gap: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 151, 0, 0.15), rgba(18, 7, 75, 0.4));
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-node {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    animation: fadeUp 0.6s ease forwards;
    color: var(--text);
}

.timeline-node p {
    color: var(--text);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(255, 151, 0, 0.15);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PRELOADER (Écran de chargement)
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    /* S'adapte au mode clair/sombre */
    z-index: 9999;
    /* Au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    /* Orange Kevtex */
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

/* Petite ligne animée sous le texte */
.loader-line {
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: loadLine 1.5s ease-in-out forwards;
}

/* Animation de pulsation du texte */
@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Animation de la ligne qui grandit */
@keyframes loadLine {
    0% {
        width: 0;
    }

    100% {
        width: 100px;
    }
}

/* Classe pour cacher le loader */
.loaded {
    opacity: 0;
    visibility: hidden;
}