/* === Variables globales === */
:root {
    --bleu-ciel: #e8f1fe;
    --bleu-fonce: #0056d2;
    --text-color: #2c3e50;
    --fond-clair: #f7f9fc;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        transform 0.6s ease,
        opacity 0.6s ease,
        background 0.3s ease;
}
.mobile-nav {
    display: none;
}
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }
}

header.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}
.logo:hover {
    color: #000;
    transform: translateY(-1px);
}
.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

@media (max-width: 768px) {
    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        letter-spacing: -0.5px;
        font-weight: 800;
    }
    .logo img {
        width: 28px;
        height: 28px;
    }
}
.logo:hover img {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    transform: scale(1.08);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--bleu-fonce);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle::before {
    top: 14px;
}

.menu-toggle span {
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.menu-toggle::after {
    bottom: 14px;
}

/* Hamburger to X animation when menu opens */
header.open .menu-toggle::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--bleu-fonce);
}

header.open .menu-toggle span {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

header.open .menu-toggle::after {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
    background: var(--bleu-fonce);
}

nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    transition: color 0.25s ease;
    white-space: nowrap;
}
nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--bleu-fonce);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    opacity: 0.9;
}
nav a.active,
nav a:hover {
    color: var(--bleu-fonce);
}
nav a.active::after,
nav a:hover::after {
    transform: scaleX(1);
}

/* ========================================
   MOBILE-FIRST FULLSCREEN NAVIGATION
   Optimized for Touch & Thumb-Friendly
   ======================================== */

@media (max-width: 768px) {
    /* ===== PROFESSIONAL & AESTHETIC MOBILE NAVIGATION ===== */

    /* Header styles remain consistent */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        background: rgba(255, 255, 255, 0.85);
        /* backdrop-filter is removed to prevent clipping position:fixed menu */
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
        z-index: 1000;
        transition: background-color 0.3s ease;
    }

    header.open {
        background: transparent;
        box-shadow: none;
    }

    /* Change hamburger color for dark background */
    header.open .menu-toggle::before,
    header.open .menu-toggle::after {
        background: #ffffff;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        z-index: 1001;
    }

    /* Hide desktop nav on mobile */
    header > nav {
        display: none;
    }

    /* Sophisticated Dark Overlay */
    body > nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #002147; /* Dark blue from footer */
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition:
            opacity 0.35s ease,
            transform 0.35s ease;
    }

    header.open + nav {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    /* Elegant, Left-Aligned Menu Items */
    body > nav a {
        position: relative;
        width: 100%;
        max-width: 320px; /* More contained width */
        display: flex;
        align-items: center;
        padding: 20px 0;
        margin: 0;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.7); /* Softer white for text */
        font-size: 1.75rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
        transition: color 0.3s ease;
        opacity: 0;
        transform: translateY(15px);
    }

    body > nav a:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Staggered Animation for Menu Items */
    header.open + nav a {
        opacity: 1;
        transform: translateY(0);
        transition:
            opacity 0.4s ease,
            transform 0.4s ease;
    }

    header.open + nav a:nth-child(1) {
        transition-delay: 0.15s;
    }
    header.open + nav a:nth-child(2) {
        transition-delay: 0.2s;
    }
    header.open + nav a:nth-child(3) {
        transition-delay: 0.25s;
    }
    header.open + nav a:nth-child(4) {
        transition-delay: 0.3s;
    }
    header.open + nav a:nth-child(5) {
        transition-delay: 0.35s;
    }
    header.open + nav a:nth-child(6) {
        transition-delay: 0.4s;
    }

    /* Professional Hover/Active State with Animated Indicator */
    body > nav a::before {
        content: "";
        position: absolute;
        left: -20px;
        top: 50%;
        height: 0%;
        width: 3px;
        background-color: var(--bleu-fonce);
        border-radius: 2px;
        transform: translateY(-50%);
        transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    body > nav a.active,
    body > nav a:hover,
    body > nav a:focus {
        color: #ffffff; /* Bright white on hover */
        background-color: transparent;
    }

    body > nav a.active::before,
    body > nav a:hover::before,
    body > nav a:focus::before {
        height: 60%; /* Reveal indicator */
    }

    /* Body Scroll Lock */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        touch-action: none;
    }

    /* Adjustments for smaller screens */
    @media (max-width: 480px) {
        body > nav a {
            font-size: 1.5rem;
            max-width: 280px;
        }
    }
}

/* Global Width Constraints - Mobile Specific */
@media (max-width: 768px) {
    .hero,
    .about-section,
    .section-choisir,
    .chiffres-section,
    .groupes-simples,
    .footer {
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }

    .hero-content,
    .about-container,
    .chiffres-container,
    .groupes-container,
    .footer-container {
        max-width: 100%;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

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

    .choisir-grid,
    .chiffres-grid,
    .groupes-logos {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== HERO ===== */
.hero {
    background: url("../images/heroBg.png") center/cover no-repeat fixed; /* Added fixed for subtle parallax */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    position: relative;
    padding: 0 60px; /* Increased padding for better spacing */
    text-align: left;
    overflow: hidden; /* Prevent overflow issues */
}
@media (max-width: 768px) {
    .hero {
        padding: 0;
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.2)
    ); /* Added gradient overlay */
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 56px; /* Enhanced typography: larger size */
    font-weight: 800; /* Bolder weight */
    line-height: 1.2; /* Improved line height */
    margin-bottom: 24px;
    letter-spacing: -1px; /* Slight letter spacing for modern feel */
}
.hero p {
    font-size: 24px; /* Larger size */
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.9; /* Subtle opacity for depth */
}

.hero-buttons .btn {
    text-decoration: none;
    padding: 14px 28px; /* Slightly larger for better touch targets */
    border-radius: 50px; /* More modern pill shape */
    font-weight: 700; /* Bolder text */
    margin-right: 16px;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease; /* Added transitions for hover lift */
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space for icons */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.btn.primary {
    background-color: #0056d2; /* Updated to var(--bleu-fonce) for consistency */
    color: #fff;
}
.btn.primary:hover {
    background-color: #0041a3; /* Darker hover */
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff; /* Outline style for modern look */
}
.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT ===== */
.about-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}
.about-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-image {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.section-header .line {
    flex: 1;
    height: 2px;
    background-color: var(--bleu-fonce);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--bleu-fonce);
    margin: 0 0 40px 0;
    font-weight: 700;
    position: relative;
}

.about-text h3 {
    font-size: 22px;
    color: var(--bleu-fonce);
    margin-bottom: 20px;
}
.about-text p {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 86, 210, 0.1);
    transition: transform 0.3s ease;
}
.btn-blue-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-blue {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--bleu-fonce);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
}
.btn-blue:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 86, 210, 0.35);
}

.construction-word {
    display: block;
    text-align: center;
    font-weight: 700;
    color: var(--bleu-fonce);
    font-size: 24px;
}

/* ===== CHIFFRES CLÉS ===== */
.chiffres-section {
    padding: 90px 24px;
    background:
        radial-gradient(
            1000px 1000px at 50% -20%,
            rgba(0, 86, 210, 0.06),
            transparent 60%
        ),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    position: relative;
    text-align: center;
    overflow: hidden;
}
.chiffres-container {
    max-width: 1200px;
    margin: auto;
}

.chiffres-container h2 {
    font-size: 2.75rem;
    font-weight: 300;
    color: #1a2332;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    justify-content: center;
    align-items: stretch;
    margin-top: 30px;
}

.chiffre-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.75),
        rgba(255, 255, 255, 0.6)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 44px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease,
        opacity 0.35s ease;
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.chiffre-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.chiffre-card .chiffre {
    font-size: 36px;
    font-weight: 900;
    color: #0b3b9a;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    display: inline-block;
}
.chiffre-card p {
    font-size: 0.925rem;
    color: #4b5563;
    margin: 8px 0 0 0;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* ===== Nos Entités ===== */
.groupes-simples {
    padding: 40px 40px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    position: relative;
    text-align: center;
}

.groupes-container {
    max-width: 1100px;
    margin: 0 auto;
}

.groupes-simples h2 {
    font-size: 2.75rem;
    font-weight: 300;
    color: #1a2332;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.groupes-simples h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--bleu-ciel);
    margin: 10px auto 0;
    border-radius: 4px;
}

.groupes-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    justify-content: center;
    margin-top: 30px;
}

/*@media (max-width: 768px) {
    .groupes-logos {
        width: 100%;
    }
}*/

.card-entity {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    opacity: 0;
    overflow: hidden;
}

.card-entity.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-entity:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-entity img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: grayscale(10%) contrast(1.1);
}

.card-entity p {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Animation d'apparition décalée */
.card-entity.delay-1 {
    transition-delay: 0.2s;
}
.card-entity.delay-2 {
    transition-delay: 0.4s;
}
.card-entity.delay-3 {
    transition-delay: 0.6s;
}
.card-entity.delay-4 {
    transition-delay: 0.8s;
}

.footer {
    background-color: #002147;
    color: #ffffff;
    padding: 60px 20px 20px;
    font-size: 15px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.footer-logo span {
    font-size: 20px;
}

.footer-tagline {
    margin: 0;
    color: #cce5ff;
    opacity: 0.9;
}

.footer-social {
    display: inline-flex;
    gap: 12px;
    margin-top: 6px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    stroke: none;
}

.footer-columns {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 28px;
}

.footer-col {
    min-width: 240px;
}

.footer-col h4 {
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #e6f0ff;
}

.footer-col li svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #cce5ff;
    stroke-width: 1.6;
    flex: 0 0 18px;
    margin-top: 3px;
}

.footer-col li a {
    color: #cce5ff;
}

.footer-col li strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer a {
    color: #cce5ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    color: #cbd5e1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom-links {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 0 16px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 16px 0;
    }
}

.section-choisir {
    padding: 90px 24px;
    background:
        radial-gradient(
            1000px 1000px at 50% -20%,
            rgba(0, 86, 210, 0.06),
            transparent 60%
        ),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.section-choisir h2 {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0b3b9a 0%, #1aa1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-choisir .subtitle {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 760px;
    margin: 0 auto 56px auto;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.choisir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.choisir-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.62)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.choisir-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 86, 210, 0.35),
        rgba(26, 161, 255, 0.35)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.9;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 0;
}
.choisir-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 40%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.choisir-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.75)
    );
}

.choisir-card:hover::before {
    opacity: 1;
    transform: scale(1.01);
}

.choisir-card h3 {
    color: var(--bleu-fonce);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.choisir-card p {
    font-size: 0.98rem;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    line-height: 1.65;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.choisir-card:hover p {
    color: #475569;
}

.choisir-card.clicked {
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, #4da8da 100%);
    color: white;
    box-shadow: 0 16px 48px rgba(0, 86, 210, 0.25);
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.6);
}

.choisir-card.clicked h3 {
    color: white;
}

.choisir-card.clicked p {
    color: rgba(255, 255, 255, 0.9);
}

.choisir-card.clicked::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.35)
    );
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .choisir-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ===== Animations clés ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive rapide ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    nav {
        flex-direction: column;
        gap: 10px;
    }
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4da8da;
    max-width: 600px;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    color: #4da8da;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(77, 168, 218, 0.5);
    border-radius: 2px;
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 35px;
    line-height: 1.5;
    font-weight: 500;
    opacity: 0.95;
}

.gradient-text {
    background: linear-gradient(90deg, #4da8da, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.primary {
    background: #4da8da;
    color: white;
    border: none;
}

.primary:hover {
    background: #3a97c9;
}

.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #0056d2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary:hover {
    background: #ffffff;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px;
        margin: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 14px 22px;
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bleu-fonce);
    border-radius: 3px;
}

.about-intro h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.intro-highlight {
    font-size: 1.1rem;
    color: var(--bleu-fonce);
    font-weight: 500;
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 3px solid #4da8da;
    font-style: italic;
}

.about-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    width: 100%;
    margin: 24px 0;
}

.value-item {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.62)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 86, 210, 0.2);
}

.value-icon {
    font-size: 28px;
    color: #0b3b9a;
    background: rgba(0, 86, 210, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 16px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: var(--text-color);
}

.value-icon {
    font-size: 1.2rem;
}

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 40px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, #4da8da 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.company-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-intro h3 {
        font-size: 1.3rem;
    }

    .about-values {
        justify-content: center;
    }

    .value-item {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-choisir {
        padding: 80px 24px;
    }

    .section-choisir h2 {
        font-size: 2.25rem;
    }

    .section-choisir .subtitle {
        font-size: 1rem;
        margin-bottom: 60px;
    }

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

    .choisir-card {
        padding: 36px 24px;
    }

    .choisir-card h3 {
        font-size: 1.125rem;
    }

    .choisir-card p {
        font-size: 0.9rem;
    }
}

.chiffres-section::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    background:
        radial-gradient(closest-side, rgba(0, 86, 210, 0.08), transparent 60%)
            20% 30% / 280px 280px no-repeat,
        radial-gradient(closest-side, rgba(0, 115, 255, 0.06), transparent 60%)
            80% 50% / 360px 360px no-repeat;
    pointer-events: none;
    filter: blur(2px);
}

.section-header {
    text-align: left;
    margin-bottom: 24px;
}
.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0b3b9a 0%, #1aa1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 32px;
    height: 1px;
    background: var(--bleu-fonce);
    margin: 0 auto 32px;
    opacity: 0.6;
}

.chiffre-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--bleu-fonce),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chiffre-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.75)
    );
}

.chiffre-card:hover .chiffre-number {
    box-shadow:
        0 10px 28px rgba(0, 86, 210, 0.2),
        0 0 12px rgba(0, 86, 210, 0.3) inset;
    transform: translateZ(0) scale(1.02);
}

.chiffre-card:hover .chiffre {
    color: #0044a8;
}

.chiffre-card:hover::before {
    opacity: 1;
}

.chiffre-number {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(
                closest-side,
                rgba(255, 255, 255, 0.9),
                rgba(255, 255, 255, 0.6)
            )
            padding-box,
        conic-gradient(
                from 0deg,
                #0056d2 0%,
                #1aa1ff 0%,
                rgba(0, 86, 210, 0.15) 0%,
                rgba(0, 86, 210, 0.15) 100%
            )
            border-box;
    border: 8px solid transparent;
    box-shadow: 0 8px 26px rgba(0, 86, 210, 0.15);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    --progress: 0%;
    background:
        radial-gradient(
                closest-side,
                rgba(255, 255, 255, 0.9),
                rgba(255, 255, 255, 0.6)
            )
            padding-box,
        conic-gradient(
                from 0deg,
                #0056d2 0%,
                #1aa1ff var(--progress),
                rgba(0, 86, 210, 0.15) var(--progress),
                rgba(0, 86, 210, 0.15) 100%
            )
            border-box;
}

/* Mobile responsiveness for Chiffres Clés */
@media (max-width: 768px) {
    .chiffre-number {
        width: 100px;
        height: 100px;
        border-width: 6px;
        margin-bottom: 18px;
    }
    .chiffre-card .chiffre {
        font-size: 28px;
    }
    .chiffres-grid {
        gap: 28px;
        margin-top: 30px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .chiffre-card {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .chiffre-number {
        width: 88px;
        height: 88px;
        border-width: 5px;
    }
    .chiffre-card {
        padding: 28px 20px;
    }
    .chiffres-grid {
        gap: 24px;
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.chiffre {
    display: block;
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--bleu-fonce);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color 0.3s ease;
}

.chiffre-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.chiffre-card:hover .chiffre-label {
    color: #334155;
}

@media (max-width: 768px) {
    .chiffres-section {
        padding: 80px 24px;
    }

    .chiffres-container h2 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .chiffres-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }

    .chiffre-card {
        padding: 36px 24px;
    }

    .chiffre {
        font-size: 2.75rem;
    }

    .chiffre-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chiffres-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 30px auto;
    }
}

.section-divider {
    width: 32px;
    height: 1px;
    background: var(--bleu-fonce);
    margin: 0 auto;
    opacity: 0.6;
}

.card-entity::before {
    /* Gradient halo/border around the card */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 86, 210, 0.35),
        rgba(26, 161, 255, 0.35)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 0;
}

.card-entity::after {
    /* Shimmer sweep overlay */
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 40%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.card-entity:hover::before {
    opacity: 1;
    transform: scale(1.01);
}

.card-entity:hover::after {
    left: 150%;
}

.card-entity:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.75)
    );
}

.card-entity:hover::before {
    opacity: 1;
}

.entity-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 16px;
    position: relative;
    isolation: isolate; /* ensure halo stays behind */
}

.entity-image-wrapper::before {
    /* Logo halo glow */
    content: "";
    position: absolute;
    inset: 10% 12%;
    border-radius: 16px;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 86, 210, 0.22),
        rgba(26, 161, 255, 0.12) 50%,
        transparent 70%
    );
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.entity-image-wrapper:hover::before {
    opacity: 0.95;
    transform: scale(1.03);
}

.entity-image-wrapper img {
    position: relative;
    z-index: 1;
}

.card-entity:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.2);
}

/* Animation delays */
.card-entity.delay-1 {
    transition-delay: 0.1s;
}

.card-entity.delay-2 {
    transition-delay: 0.2s;
}

.card-entity.delay-3 {
    transition-delay: 0.3s;
}

.card-entity.delay-4 {
    transition-delay: 0.4s;
}

@media (max-width: 768px) {
    .groupes-simples {
        padding: 80px 24px;
    }

    .groupes-simples h2 {
        font-size: 2.25rem;
    }

    .groupes-logos {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }

    .card-entity {
        padding: 24px;
    }

    .entity-image-wrapper {
        min-height: 100px;
        padding: 12px;
    }

    .card-entity img {
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .groupes-logos {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}
