/* ============================================
   FICHIER: modern.css
   Version: 3.0 - Tailles augmentées
   ============================================ */

/* ============================================
   1. IMPORTS & VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
    --font-modern: 'Inter', Avenir, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Variables pour le header */
    --header-nav-height: 72px;
    --header-z-index: 1000;
}

/* ============================================
   HEADER PROFESSIONNEL
   ============================================ */

/* --- Header principal --- */
.header {
    position: relative;
    min-height: auto;
    max-height: 650px !important;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    background: #0f172a;
    overflow: hidden;
}

/* ===== NAVIGATION ===== */
.header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--header-z-index);
    height: var(--header-nav-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.header__nav--scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Logo --- */
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: #ffffff;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.header__logo:hover,
.header__logo:focus,
.header__logo:active {
    text-decoration: none !important;
}

.header__logo:hover {
    transform: scale(1.02);
}

.header__logo-icon {
    width: 42px;
    height: 42px;
    color: var(--accent-color, #00aeef);
}

.header__logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.header__logo-text small {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Menu Toggle (mobile) --- */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.header__menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.header__menu-toggle-icon span {
    display: block;
    height: 2.5px;
    background: #ffffff;
    border-radius: 3px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Menu --- */
.header__menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__menu-item {
    position: relative;
}

.header__menu-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    border-radius: 8px;
}

.header__menu-link-text {
    position: relative;
    z-index: 1;
}

.header__menu-link-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color, #00aeef);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.header__menu-link:hover,
.header__menu-link:focus {
    color: #ffffff;
}

.header__menu-link:hover .header__menu-link-underline,
.header__menu-link:focus .header__menu-link-underline {
    width: 70%;
    background: var(--accent-color, #00aeef);
}

.header__menu-link {
    text-decoration: none !important;
}

.header__menu-link--cta {
    background: var(--accent-color, #00aeef);
    color: #ffffff !important;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.25);
    transition: var(--transition-smooth);
}

.header__menu-link--cta:hover {
    background: #ffffff;
    color: var(--accent-color, #00aeef) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 174, 239, 0.35);
}

.header__menu-link--cta .header__menu-link-underline {
    display: none;
}

/* ===== HERO ===== */
.header__hero {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-height: calc(100vh - var(--header-nav-height));
    padding-top: var(--header-nav-height);
}

/* --- Arrière-plan --- */
.header__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
}

.header__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    will-change: transform;
}

.header__overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 1;
}

.header__overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.7) 40%,
        rgba(15, 23, 42, 0.5) 70%,
        rgba(15, 23, 42, 0.3) 100%
    );
}

.header__overlay-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 174, 239, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 174, 239, 0.03) 0%, transparent 50%);
}

/* --- Conteneur du contenu --- */
.header__hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0.25rem 2rem;
    margin-top: calc(var(--header-nav-height) - 24rem);
}

.header__hero-content {
    max-width: 820px;
    margin: 0 auto;
}

/* --- Badge --- */
.header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.header__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color, #00aeef);
    animation: header-pulse-dot 2s ease-in-out infinite;
}

@keyframes header-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* --- Titre --- */
.header__hero-title {
    margin: 0 0 1.2rem 0;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.header__hero-title-highlight {
    display: block;
    background: linear-gradient(to right, var(--accent-color, #00aeef), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Sous-titre --- */
.header__hero-subtitle {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem 0;
}

/* --- Description --- */
.header__hero-description {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 0 2.5rem 0;
}

/* --- Statistiques --- */
.header__hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0 0 2.5rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    max-width: 500px;
}

.header__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.header__stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 400;
}

.header__stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Actions --- */
.header__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

.header__cta:hover,
.header__cta:focus,
.header__cta:active {
    text-decoration: none !important;
}

.header__cta--primary {
    background: var(--accent-color, #00aeef);
    color: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 174, 239, 0.3);
}

.header__cta--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 174, 239, 0.4);
}

.header__cta--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.header__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.header__cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.header__cta--primary:hover .header__cta-icon {
    transform: translateX(4px);
}

/* --- Scroll indicator --- */
.header__scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: header-bounce-scroll 2.5s ease-in-out infinite;
}

@keyframes header-bounce-scroll {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

.header__scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.header__scroll-indicator:hover .header__scroll-arrow {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(4px);
}

/* ============================================
   RESPONSIVE HEADER
   ============================================ */

/* --- Tablettes --- */
@media (max-width: 1024px) {
    .header__hero-stats {
        gap: 1.5rem;
        padding: 1.2rem 1.5rem;
    }

    .header__stat-number {
        font-size: 1.6rem;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    :root {
        --header-nav-height: 64px;
    }

    .header__nav-container {
        padding: 0 1.2rem;
    }

    .header__logo-text {
        font-size: 1rem;
    }

    .header__logo-icon {
        width: 34px;
        height: 34px;
    }

    /* Menu mobile */
    .header__menu-toggle {
        display: flex;
    }

    .header__menu {
        position: fixed;
        top: var(--header-nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.25rem;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transform: translateY(-110%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
        pointer-events: none;
    }

    .header__menu[aria-expanded="true"] {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__menu-item {
        width: 100%;
    }

    .header__menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.2rem;
        width: 100%;
        font-size: 1.6rem;
        border-radius: 8px;
    }

    .header__menu-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .header__menu-link--cta {
        justify-content: center;
        margin-top: 0.5rem;
        background: var(--accent-color, #00aeef);
        color: #ffffff !important;
    }

    .header__menu-link--cta:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
    }

    .header__menu-link-underline {
        display: none;
    }

    /* Hero */
    .header__hero {
        min-height: calc(100vh - var(--header-nav-height));
        padding-top: var(--header-nav-height);
    }

    .header__hero-container {
        padding: 1rem;
    }

    .header__hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .header__hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1rem 1.2rem;
    }

    .header__stat {
        flex: 1;
        min-width: 60px;
    }

    .header__stat-number {
        font-size: 1.4rem;
    }

    .header__stat-divider {
        display: none;
    }

    .header__hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .header__cta {
        justify-content: center;
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    .header__scroll-indicator {
        display: none;
    }

    .header__badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

/* --- Très petits écrans --- */
@media (max-width: 480px) {
    .header__hero-title {
        font-size: 2rem;
    }

    .header__hero-subtitle {
        font-size: 0.95rem;
    }

    .header__hero-description {
        font-size: 0.9rem;
    }

    .header__hero-stats {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .header__stat-number {
        font-size: 1.2rem;
    }

    .header__stat-label {
        font-size: 0.6rem;
    }
}

/* ============================================
   2. TYPOGRAPHIE MODERNE - TAILLES AUGMENTÉES
   ============================================ */

body {
    font-family: var(--font-modern);
    background: #f8fafc;
    color: #0f172a;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-modern);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.6rem;
}

h4 {
    font-size: 2.2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

/* ============================================
   3. HEADER MODERNISÉ
   ============================================ */

.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    isolation: isolate;
}

.header__img {
    mix-blend-mode: overlay;
    opacity: 0.6;
    filter: brightness(0.8) saturate(1.2);
}

.header__grid {
    min-height: 80vh;
    padding: 4rem var(--space);
}

.site_info {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.site_info ._bold {
    color: #ffffff;
    font-weight: 700;
    display: block;
    font-size: 1.1em;
}

.general_info {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.general_info span {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.5em;
    display: block;
    margin-top: 0.3em;
}

/* ============================================
   4. SECTIONS & CONTAINERS
   ============================================ */

.section {
    padding: 5rem var(--space);
    background: #ffffff;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.section:hover {
    box-shadow: var(--shadow-md);
}

.container {
    padding-left: var(--space);
    padding-right: var(--space);
    max-width: var(--max-width, 1240px);
}

/* Alternance des sections pour plus de dynamisme */
.section:nth-child(even) {
    background: #f8fafc;
}

/* ============================================
   5. TITRES MODERNES - TAILLES AUGMENTÉES
   ============================================ */

.title {
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    padding-bottom: 0.5em;
}

.title small {
    display: block;
    font-size: 0.4em;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
    margin-top: 0.3em;
}

.title > svg {
    width: 2.8rem;
    height: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.4em;
}

.subtitle {
    font-size: clamp(2.4rem, 3.5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.4;
    color: #1e293b;
}

.subtitle._accent {
    color: var(--accent-color);
    font-weight: 500;
}

/* ============================================
   6. CARTES / LISTES MODERNISÉES - TAILLES AUGMENTÉES
   ============================================ */

.list__item {
    font-size: 2rem;
    padding: 3rem 3.2rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.list__item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

/* Effet de brillance au survol */
.list__item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.1) 0%, 
                transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.list__item:hover::after {
    opacity: 1;
}

.list__item ._bold {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.2rem;
    margin-bottom: 0.5rem;
}

.item__title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--accent-color);
    background-size: 0% 100%;
    background-position: 0 100%;
    transition: background-size 0.4s ease, color 0.3s ease;
    padding: 0.1rem 0;
    display: inline-block;
    cursor: pointer;
}

.item__title svg {
    width: 1.2em;
    height: 1.2em;
    transition: transform 0.3s ease;
}

.item__title--hover:hover {
    background-size: 100% 100%;
    color: #ffffff;
}

.item__title--hover:hover svg {
    transform: translateX(6px) scale(1.1);
}

.item__title--hover:hover svg circle,
.item__title--hover:hover svg polyline,
.item__title--hover:hover svg line {
    stroke: #ffffff !important;
}

.list__item__title {
    font-size: 0.9em;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
    margin: 0.8rem 0 0.6rem 0;
}

.list__item__content {
    font-size: 0.85em;
    color: #475569;
    line-height: 1.9;
}

.list__item__content a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.list__item__content a:hover {
    border-bottom-color: var(--accent-color);
    text-decoration: none;
}

/* ============================================
   7. HERO SECTION MODERNISÉE - TAILLE AUGMENTÉE
   ============================================ */

.hero {
    font-size: 2.2rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.4);
}

.hero__text {
    color: #1e293b;
    line-height: 1.7;
    padding-bottom: 2rem;
    font-size: 1.1em;
}

.hero__text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.hero__icon {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.hero__item:hover .hero__icon {
    transform: scale(1.1) rotate(-5deg);
}

.info_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--accent-color);
    padding: 1.5rem 0;
    margin-left: 1.2rem;
    transition: var(--transition-smooth);
}

.info_box:hover {
    border-bottom-color: #0f172a;
}

.info_box ._accent {
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-color);
}

.hero__item:first-of-type .info_box {
    border-top: 2px solid var(--accent-color);
    padding-top: 1.5rem;
}

/* ============================================
   8. STATISTIQUES & NOMBRES - TAILLES AUGMENTÉES
   ============================================ */

.number {
    font-size: clamp(5rem, 7vw, 8rem);
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    display: inline-block;
    position: relative;
}

/* Animation subtile au défilement */
.number.animate-number {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

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

.generic__numbers {
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.generic__numbers .text {
    font-size: 0.9em;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* ============================================
   9. STATBAR MODERNISÉE - TAILLES AUGMENTÉES
   ============================================ */

.statbar {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.statbar:hover {
    border-top-color: var(--accent-color, #00aeef);
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.statbar__name {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    max-width: 65%;
    padding: 0.4rem 0.6rem;
    line-height: 1.5;
    word-break: break-word;
}

.statbar__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color, #00aeef);
    background: #f1f5f9;
    padding: 0.4rem 1.6rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    white-space: nowrap;
}

.statbar:hover .statbar__number {
    background: var(--accent-color, #00aeef);
    color: #ffffff;
}

.statbar__track {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color, #00aeef);
    width: 0%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .statbar {
        padding: 1rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .statbar__name {
        font-size: 0.9rem;
        max-width: 100%;
        padding: 0.2rem 0.3rem;
    }

    .statbar__number {
        font-size: 1.2rem;
        padding: 0.2rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .statbar {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }

    .statbar__name {
        font-size: 0.85rem;
        max-width: 100%;
        padding: 0.1rem 0.2rem;
        text-align: left;
    }

    .statbar__number {
        font-size: 1rem;
        padding: 0.15rem 0.6rem;
        align-self: flex-start;
    }
}

.animate .statbar__track {
    width: var(--stat-width, 0%);
}

/* ============================================
   10. GRID & MASONRY MODERNISÉS
   ============================================ */

.grid {
    gap: 3rem;
}

@media (min-width: 40rem) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(var(--min, 320px), 1fr));
    }
}

.masonry {
    column-gap: 3rem;
}

@media (min-width: 40rem) {
    .masonry {
        column-count: var(--masonry, 2);
    }
}

/* ============================================
   11. BOUTONS & LIENS
   ============================================ */

._accent {
    color: var(--accent-color);
    font-weight: 500;
}

._underline {
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
}

._underline:hover {
    border-bottom-color: var(--accent-color);
    text-decoration: none;
}

/* ============================================
   12. SOCIAL GRID MODERNISÉ - TAILLE AUGMENTÉE
   ============================================ */

.social {
    font-size: 1.6rem;
    gap: 1.5rem;
}

.social .info_box {
    border-bottom: 2px solid #e2e8f0;
    padding: 1.2rem 1.5rem;
    margin: 0;
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: var(--transition-smooth);
}

.social .info_box:hover {
    border-bottom-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.social .info_box:first-of-type,
.social .info_box:nth-of-type(2) {
    border-top: 2px solid #e2e8f0;
}

.social .info_box:hover:first-of-type,
.social .info_box:hover:nth-of-type(2) {
    border-top-color: var(--accent-color);
}

/* ============================================
   13. CIRCLE CHART MODERNISÉ
   ============================================ */

.circle-chart {
    max-width: 140px;
    height: auto;
    transition: var(--transition-smooth);
}

.circle-chart:hover {
    transform: scale(1.05);
}

.circle-chart .svgcircle__text {
    font-size: 2.8rem;
    font-weight: 800;
    fill: var(--accent-color);
}

.circle-chart .percent {
    transition: stroke-dashoffset 1.5s ease;
}

/* ============================================
   14. FOOTER / CONTACT - TAILLE AUGMENTÉE
   ============================================ */

.list__item._pb3 {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 2rem 0;
}

.list__item._pb3 h3 {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.6rem;
    margin-top: 2rem;
}

/* ============================================
   15. VERSION IMPRIMABLE
   ============================================ */

body.print {
    background: #f1f5f9;
    background-image: none;
}

.paper_section {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 5rem 6rem;
    margin: 4rem auto;
    width: 90vw;
    max-width: 1200px;
}

/* ============================================
   16. RESPONSIVE FINE-TUNING - TAILLES AUGMENTÉES
   ============================================ */

@media (max-width: 768px) {
    :root {
        --space: 2rem;
    }

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

    .section {
        padding: 3rem 1.5rem;
    }

    .header__grid {
        min-height: 60vh;
        padding: 3rem 1.5rem;
    }

    .site_info {
        font-size: 1.4rem;
    }

    .hero {
        font-size: 1.8rem;
        padding: 2rem;
    }

    .hero__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem;
    }

    .info_box {
        margin-left: 0;
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .list__item {
        font-size: 1.8rem;
        padding: 2rem 1.8rem;
    }

    .social .info_box {
        padding: 0.8rem 1rem;
    }

    .list__item--flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .list__item--flex > svg {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .list__item--flex:nth-of-type(odd) > svg {
        order: 0;
        margin-right: 0;
    }

    .circle-chart {
        max-width: 100px;
    }

    .paper_section {
        padding: 2rem;
        width: 95vw;
    }

    .generic__numbers {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .general_info {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .title {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
    }

    .subtitle {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }

    .number {
        font-size: 3.6rem;
    }

    .statbar__number {
        font-size: 1rem;
    }

    .statbar__name {
        font-size: 0.85rem;
    }

    .hero {
        font-size: 1.6rem;
        padding: 1.2rem;
    }

    .list__item {
        font-size: 1.6rem;
        padding: 1.5rem;
    }
}

/* ============================================
   17. ANIMATIONS GLOBALES
   ============================================ */

/* Apparition progressive des éléments */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionAppear 0.8s ease forwards;
}

.section:nth-child(2) {
    animation-delay: 0.1s;
}
.section:nth-child(3) {
    animation-delay: 0.2s;
}
.section:nth-child(4) {
    animation-delay: 0.3s;
}
.section:nth-child(5) {
    animation-delay: 0.4s;
}
.section:nth-child(6) {
    animation-delay: 0.5s;
}
.section:nth-child(7) {
    animation-delay: 0.6s;
}
.section:nth-child(8) {
    animation-delay: 0.7s;
}

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

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f172a;
}

/* ============================================
   18. UTILITAIRES SUPPLÉMENTAIRES
   ============================================ */

._glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

._gradient-text {
    background: linear-gradient(135deg, var(--accent-color), #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

._card-hover {
    transition: var(--transition-bounce);
}

._card-hover:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   19. CORRECTION FINALE - SECTIONS SOUS LA NAVBAR
   ============================================ */

/* 
   Problème : Les sections .container .section passent au-dessus de la navbar.
   Cause : Contexte d'empilement créé par le header.
   Solution : Créer un nouveau contexte d'empilement pour la navbar
              avec un z-index très élevé.
*/

.header__nav {
    z-index: 99999 !important;
    position: fixed !important;
}

/* 
   On s'assure que la navbar est bien en position fixed
   et qu'elle reste au-dessus de tout
*/
.header__nav-container {
    position: relative;
    z-index: 99999 !important;
}

/* 
   On force les sections à avoir un z-index inférieur
   en créant un contexte d'empilement pour elles
*/
.container .section {
    position: relative;
    z-index: 1 !important;
}

/* 
   On force le header à avoir un z-index inférieur
*/
.header {
    position: relative;
    z-index: 1 !important;
}

.header__hero {
    position: relative;
    z-index: 1 !important;
}

.header__grid {
    position: relative;
    z-index: 1 !important;
}

/* 
   Le contenu du header (badge, titre) peut être au-dessus du fond
   mais toujours sous la navbar
*/
.header__hero-content {
    position: relative;
    z-index: 2 !important;
}

.header__badge {
    position: relative;
    z-index: 2 !important;
}

.header__hero-title {
    position: relative;
    z-index: 2 !important;
}

.header__hero-subtitle {
    position: relative;
    z-index: 2 !important;
}

.header__hero-description {
    position: relative;
    z-index: 2 !important;
}

.header__hero-stats {
    position: relative;
    z-index: 2 !important;
}

.header__hero-actions {
    position: relative;
    z-index: 2 !important;
}

.header__scroll-indicator {
    position: relative;
    z-index: 2 !important;
}

/* ============================================
   20. ESPACE ENTRE HEADER ET SECTION 1
   ============================================ */

.header {
    margin-bottom: 4rem !important;
}

/* ============================================
   21. RESPONSIVE - TABLETTES (max 1024px)
   ============================================ */

@media (max-width: 1024px) {
    /* Header - on supprime la hauteur max pour que l'image soit visible */
    .header {
        max-height: none !important;
    }

    .header__image.rellax {
        transform: none !important;
    }
    
    .header__hero-container {
        padding: 0.25rem 2rem;
        margin-top: calc(var(--header-nav-height) - 18rem);
    }
    
    .header__hero-title {
        font-size: clamp(2.8rem, 7vw, 5.5rem);
    }
    
    .header__hero-subtitle {
        font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    }
    
    .header__hero-description {
        font-size: clamp(1rem, 1.3vw, 1.2rem);
    }
    
    .header__hero-stats {
        gap: 2.5rem;
        padding: 1.5rem 2rem;
        max-width: 500px;
    }
    
    .header__stat-number {
        font-size: 2rem;
    }
    
    /* Navigation */
    .header__menu-link {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
    }
    
    .header__logo-text {
        font-size: 1.5rem;
    }
    
    .header__logo-text small {
        font-size: 0.8rem;
    }
    
    /* Sections */
    .section {
        padding: 4rem 1.5rem;
    }
    
    .title {
        font-size: clamp(3.2rem, 5vw, 5.6rem);
    }
    
    .subtitle {
        font-size: clamp(2.4rem, 3.5vw, 4.8rem);
    }
    
    .list__item {
        font-size: 1.6rem;
        padding: 2rem 2rem;
    }
    
    .hero {
        font-size: 1.8rem;
        padding: 2.5rem;
    }
    
    .number {
        font-size: clamp(5rem, 7vw, 8rem);
    }
}

/* ============================================
   22. RESPONSIVE - MOBILES (max 768px)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --header-nav-height: 64px;
        --space: 1.5rem;
    }
    
    .header {
        max-height: 450px !important;
        margin-bottom: 2rem !important;
    }
    
    .header__nav-container {
        padding: 0 1rem;
    }
    
    .header__logo-text {
        font-size: 1.2rem;
    }
    .header__logo-text small {
        font-size: 0.65rem;
    }
    .header__logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .header__hero {
        min-height: auto;
        padding-top: var(--header-nav-height);
        padding-bottom: 0.5rem;
    }
    
    .header__hero-container {
        padding: 0.25rem 1rem;
        margin-top: calc(var(--header-nav-height) - 16rem);
        padding-top: 5rem !important;  /* Décale le contenu vers le bas */
    }
    
    .header__hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 0.5rem;
    }
    .header__hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    .header__hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .header__badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.8rem 0.2rem 0.5rem;
        margin-bottom: 1rem;
    }
    .header__badge-dot {
        width: 6px;
        height: 6px;
    }
    
    .header__hero-stats {
        gap: 1rem;
        padding: 0.8rem 1rem;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    .header__stat {
        flex: 1;
        min-width: 60px;
    }
    .header__stat-number {
        font-size: 1.2rem;
    }
    .header__stat-label {
        font-size: 0.55rem;
    }
    .header__stat-divider {
        display: none;
    }
    
    .header__hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .header__cta {
        justify-content: center;
        width: 100%;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .header__scroll-indicator {
        display: none;
    }
    
    /* Menu hamburger */
    .header__menu-toggle {
        display: flex !important;
    }

    .header__menu {
        position: fixed;
        top: var(--header-nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 0.25rem;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transform: translateY(-200%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
        pointer-events: none;
        z-index: 99998;
        max-height: calc(100vh - var(--header-nav-height));
        overflow-y: auto;
    }

    .header__menu[aria-expanded="true"] {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__menu-item {
        width: 100%;
    }

    .header__menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.2rem;
        width: 100%;
        font-size: 1.4rem;
        border-radius: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header__menu-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .header__menu-link--cta {
        justify-content: center;
        margin-top: 0.5rem;
        background: var(--accent-color, #00aeef);
        color: #ffffff !important;
        border-bottom: none;
    }

    .header__menu-link--cta:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
    }

    .header__menu-link-underline {
        display: none;
    }
    
    /* Sections */
    .section {
        padding: 2.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .title {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
        padding-bottom: 0.3em;
    }
    .title > svg {
        width: 2rem;
        height: 2rem;
    }
    
    .subtitle {
        font-size: clamp(1.6rem, 3vw, 2rem);
    }
    
    .list__item {
        font-size: 1.4rem;
        padding: 1.5rem 1.2rem;
        margin-bottom: 1rem;
    }
    .list__item ._bold {
        font-size: 0.7em;
    }
    .item__title {
        font-size: 1.1em;
    }
    .list__item__content {
        font-size: 0.8em;
    }
    
    .hero {
        font-size: 1.4rem;
        padding: 1.5rem;
    }
    .hero__text {
        font-size: 1em;
        padding-bottom: 1rem;
    }
    .hero__icon {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .info_box {
        margin-left: 0;
        padding: 0.8rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        font-size: 0.9em;
    }
    .info_box ._accent {
        font-size: 0.7em;
    }
    
    .number {
        font-size: clamp(3rem, 6vw, 4rem);
    }
    .generic__numbers {
        padding: 1.5rem;
    }
    
    .statbar {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .statbar__name {
        font-size: 0.8rem;
        max-width: 100%;
        padding: 0.1rem 0.2rem;
    }
    .statbar__number {
        font-size: 1rem;
        padding: 0.15rem 0.8rem;
    }
    
    .social {
        font-size: 1.2rem;
        gap: 0.8rem;
    }
    .social .info_box {
        padding: 0.6rem 0.8rem;
    }
    
    .circle-chart {
        max-width: 80px;
    }
    
    .list__item--flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .list__item--flex > svg {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    .list__item--flex:nth-of-type(odd) > svg {
        order: 0;
        margin-right: 0;
    }
    
    .paper_section {
        padding: 1.5rem;
        width: 95vw;
    }

    /* Augmentation des polices sur mobile */
    body {
        font-size: 1.6rem;  /* 1.8rem → 1.6rem (déjà bien) */
    }
    
    .header__hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);  /* Augmenté */
        margin-bottom: 0.8rem;
    }
    
    .header__hero-subtitle {
        font-size: 1.4rem;  /* 1rem → 1.4rem */
    }
    
    .header__hero-description {
        font-size: 1.2rem;  /* 0.9rem → 1.2rem */
    }
    
    .header__badge {
        font-size: 0.8rem;  /* 0.6rem → 0.8rem */
    }
    
    .header__stat-number {
        font-size: 1.6rem;  /* 1.2rem → 1.6rem */
    }
    
    .header__stat-label {
        font-size: 0.7rem;  /* 0.55rem → 0.7rem */
    }
    
    .header__cta {
        font-size: 1.1rem;  /* 0.85rem → 1.1rem */
    }
    
    .section {
        font-size: 1.6rem;  /* Ajouté */
    }
    
    .list__item {
        font-size: 1.8rem;  /* 1.4rem → 1.8rem */
    }
    
    .title {
        font-size: clamp(2.8rem, 6vw, 3.5rem);  /* Augmenté */
    }
    
    .subtitle {
        font-size: clamp(2rem, 4vw, 2.6rem);  /* Augmenté */
    }
    
    .hero {
        font-size: 1.8rem;  /* 1.4rem → 1.8rem */
    }
    
    .number {
        font-size: clamp(4rem, 8vw, 5.5rem);  /* Augmenté */
    }
    
    .statbar__name {
        font-size: 1.1rem;  /* 0.8rem → 1.1rem */
    }
    
    .statbar__number {
        font-size: 1.4rem;  /* 1rem → 1.4rem */
    }
    
    .social {
        font-size: 1.5rem;  /* 1.2rem → 1.5rem */
    }
    
    .info_box {
        font-size: 1.3rem;  /* 0.9em → 1.3rem */
    }
    
    .list__item__content {
        font-size: 1.2rem;  /* 0.8em → 1.2rem */
    }
}

/* ============================================
   23. RESPONSIVE - TRÈS PETITS MOBILES (max 480px)
   ============================================ */

@media (max-width: 480px) {
    .header {
        max-height: 380px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .header__logo-text {
        font-size: 1rem;
    }
    .header__logo-text small {
        font-size: 0.55rem;
    }
    .header__logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .header__hero-container {
        padding: 0.15rem 0.8rem;
        margin-top: calc(var(--header-nav-height) - 14rem);
    }
    
    .header__hero-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .header__hero-subtitle {
        font-size: 0.85rem;
    }
    .header__hero-description {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .header__badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.6rem 0.15rem 0.4rem;
        margin-bottom: 0.6rem;
    }
    .header__badge-dot {
        width: 5px;
        height: 5px;
    }
    
    .header__hero-stats {
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .header__stat-number {
        font-size: 1rem;
    }
    .header__stat-label {
        font-size: 0.5rem;
    }
    
    .header__cta {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    .header__cta-icon {
        width: 16px;
        height: 16px;
    }
    
    .section {
        padding: 2rem 0.8rem;
    }
    
    .title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    .subtitle {
        font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    }
    
    .list__item {
        font-size: 1.2rem;
        padding: 1rem 0.8rem;
    }
    
    .hero {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .number {
        font-size: clamp(2.5rem, 5vw, 3.2rem);
    }
    
    .statbar__number {
        font-size: 0.85rem;
        padding: 0.1rem 0.6rem;
    }
    .statbar__name {
        font-size: 0.7rem;
    }
    
    .social {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .circle-chart {
        max-width: 60px;
    }
    .circle-chart .svgcircle__text {
        font-size: 1.8rem;
    }
    /* Augmentation des polices sur mobile */
    .header__hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    
    .header__hero-subtitle {
        font-size: 1.2rem;
    }
    
    .header__hero-description {
        font-size: 1rem;
    }
    
    .header__cta {
        font-size: 1rem;
    }
    
    .title {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
    }
    
    .list__item {
        font-size: 1.5rem;
    }
    
    .number {
        font-size: clamp(3rem, 6vw, 4rem);
    }
}

/* ============================================
   24. RESPONSIVE - EXTRA PETITS (max 360px)
   ============================================ */

@media (max-width: 360px) {
    .header {
        max-height: 320px !important;
    }
    
    .header__hero-title {
        font-size: 1.4rem;
    }
    .header__hero-subtitle {
        font-size: 0.75rem;
    }
    .header__hero-description {
        font-size: 0.65rem;
    }
    
    .header__hero-stats {
        padding: 0.3rem 0.5rem;
    }
    .header__stat-number {
        font-size: 0.85rem;
    }
    .header__stat-label {
        font-size: 0.45rem;
    }
    
    .header__cta {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    
    .list__item {
        font-size: 1rem;
        padding: 0.8rem 0.6rem;
    }
    
    .title {
        font-size: 1.6rem;
    }
}
/* ============================================================
   25. RESPONSIVE - TABLETTES (PORTRAIT + PAYSAGE)
   Section ajoutée : optimisation dédiée pour tablettes
   (iPad mini/Air/Pro et équivalents Android, ~768px à 1366px).
   Ce bloc est volontairement placé en fin de fichier afin de
   surcharger, pour la plage tablette uniquement, les règles
   précédentes (mobile / desktop) sans les modifier.
   ============================================================ */

/* --- 25.1 Base commune tablette (portrait + paysage), 768px à 1366px --- */
@media (min-width: 768px) and (max-width: 1366px) {

    /* Navigation : on garde une nav confortable au toucher */
    .header__nav-container {
        padding: 0 1.75rem;
    }

    .header__menu-link {
        padding: 0.6rem 1.1rem;
        font-size: 1.15rem;
    }

    .header__logo-icon {
        width: 38px;
        height: 38px;
    }

    .header__logo-text {
        font-size: 1.5rem;
    }

    /* Zones tactiles confortables (44px min recommandé) */
    .header__menu-toggle,
    .header__cta,
    .header__menu-link {
        min-height: 44px;
    }

    /* Hero : évite les débordements liés aux marges négatives en rem */
    .header__hero-container {
        margin-top: 0;
        padding: 2.5rem 2rem;
    }

    .header__hero {
        padding-top: var(--header-nav-height);
        padding-bottom: 2rem;
        min-height: auto;
    }

    .header__hero-content {
        max-width: 640px;
    }

    .header__hero-stats {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .header__hero-actions {
        flex-wrap: wrap;
    }

    .header__cta {
        width: auto;
    }

    /* Grilles et listes flex : on repasse en ligne (plus de place qu'en mobile) */
    .list__item--flex {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .list__item--flex > svg {
        width: auto;
        max-width: 130px;
        margin: 0;
    }

    .list__item--flex:nth-of-type(odd) > svg {
        order: initial;
        margin-right: 1.5rem;
    }

    /* Sections et conteneurs */
    .section {
        padding: 3.5rem 2.25rem;
    }

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

    .paper_section {
        width: 92vw;
        max-width: 1100px;
        padding: 3.5rem 4rem;
    }

    /* Grille / masonry : profite de la largeur tablette */
    .grid {
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .masonry {
        column-count: 2;
        column-gap: 2rem;
    }

    /* Circle chart : taille intermédiaire lisible au toucher */
    .circle-chart {
        max-width: 115px;
    }

    /* Statbar : garde une seule ligne quand la place le permet */
    .statbar {
        flex-wrap: nowrap;
    }

    .statbar__name {
        font-size: 1rem;
    }

    /* Social */
    .social {
        gap: 1.2rem;
    }
}

/* --- 25.2 Tablettes en PORTRAIT (768px à 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

    :root {
        --header-nav-height: 68px;
    }

    /* On repasse sur le menu hamburger : trop d'items pour une nav horizontale
       en portrait, mais assez de hauteur pour un panneau déroulant confortable */
    .header__menu-toggle {
        display: flex;
    }

    .header__menu {
        position: fixed;
        top: var(--header-nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 2rem;
        gap: 0.4rem;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transform: translateY(-110%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
        pointer-events: none;
        max-height: calc(100vh - var(--header-nav-height));
        overflow-y: auto;
    }

    .header__menu[aria-expanded="true"] {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__menu-item {
        width: 100%;
    }

    .header__menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 1.5rem;
        padding: 0.9rem 1.3rem;
    }

    .header__menu-link-underline {
        display: none;
    }

    .header__menu-link--cta {
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Hero adapté au format vertical */
    .header {
        max-height: none !important;
    }

    .header__hero-title {
        font-size: clamp(2.6rem, 5.5vw, 4rem);
        text-align: left;
    }

    .header__hero-subtitle {
        font-size: 1.2rem;
    }

    .header__hero-description {
        font-size: 1.05rem;
        max-width: 100%;
    }

    .header__hero-stats {
        justify-content: flex-start;
        gap: 2rem;
        padding: 1.3rem 1.6rem;
    }

    .header__hero-actions {
        flex-direction: row;
    }

    .header__cta {
        flex: 0 1 auto;
    }

    /* Grilles/listes : 2 colonnes exploitent la largeur portrait */
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry {
        column-count: 2;
    }

    .title {
        font-size: clamp(3rem, 5.5vw, 4.4rem);
    }

    .subtitle {
        font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    }

    .list__item {
        font-size: 1.7rem;
        padding: 2.2rem 2rem;
    }

    .hero {
        font-size: 1.9rem;
        padding: 2.5rem;
    }

    .number {
        font-size: clamp(4.5rem, 6.5vw, 6.5rem);
    }
}

/* --- 25.3 Tablettes en PAYSAGE (1024px à 1366px) --- */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {

    :root {
        --header-nav-height: 76px;
    }

    /* Assez de largeur pour garder la navigation horizontale complète */
    .header__menu-toggle {
        display: none;
    }

    .header__menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        transform: none;
        opacity: 1;
        pointer-events: all;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        padding: 0;
        max-height: none;
        overflow: visible;
    }

    .header__menu-item {
        width: auto;
    }

    .header__menu-link {
        width: auto;
        justify-content: center;
        font-size: 1.05rem;
        padding: 0.55rem 1rem;
    }

    .header__menu-link-underline {
        display: block;
    }

        .header__menu-link--cta {
        display: none;
    }

    /* Hero : format large, proche du desktop mais plus compact */
    .header {
        max-height: 620px !important;
    }

    .header__hero-title {
        font-size: clamp(3.2rem, 6vw, 4.8rem);
    }

    .header__hero-subtitle {
        font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    }

    .header__hero-description {
        font-size: clamp(1rem, 1.4vw, 1.15rem);
        max-width: 560px;
    }

    .header__hero-stats {
        gap: 2rem;
        padding: 1.4rem 1.8rem;
        max-width: 520px;
    }

    .header__hero-actions {
        flex-direction: row;
    }

    .header__cta {
        flex: 0 1 auto;
    }

    /* Grilles : 3 colonnes exploitent la largeur paysage */
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.25rem;
    }

    .masonry {
        column-count: 3;
    }

    .section {
        padding: 4rem 3rem;
    }

    .title {
        font-size: clamp(3.6rem, 5vw, 5rem);
    }

    .subtitle {
        font-size: clamp(2.6rem, 3.2vw, 3.8rem);
    }

    .list__item {
        font-size: 1.75rem;
        padding: 2.4rem 2.4rem;
    }

    .hero {
        font-size: 2rem;
        padding: 3rem;
    }

    .number {
        font-size: clamp(5.5rem, 6.5vw, 7.5rem);
    }
}

/* --- 25.4 Confort tactile : neutralise les micro-interactions "hover only"
   sur les écrans tactiles (tablettes) pour éviter les états visuels bloqués --- */
@media (min-width: 768px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .list__item:hover,
    ._card-hover:hover,
    .social .info_box:hover {
        transform: none;
    }
}

/* ============================================================
   26. RESPONSIVE - GRANDS ÉCRANS & CAS PARTICULIERS
   Section ajoutée pour compléter la couverture "tous les écrans" :
   ordinateurs larges / 4K, ultra-wide, téléphones en paysage à
   faible hauteur, très petits écrans, et préférence de mouvement
   réduit. Placée en fin de fichier, elle ne modifie aucune règle
   existante : elle vient uniquement combler les plages non
   couvertes par les sections précédentes (jusqu'ici : jusqu'à
   1366px pour les tablettes en paysage).
   ============================================================ */

/* --- 26.1 Ordinateurs / laptops (1367px à 1919px) ---
   Plage entre la tablette paysage et les grands écrans : on garde
   les styles desktop de base, on ajuste juste quelques respirations */
@media (min-width: 1367px) and (max-width: 1919px) {
    .header {
        max-height: 700px !important;
    }

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

    .grid {
        gap: 2.75rem;
    }
}

/* --- 26.2 Grands écrans / desktop large (1920px et plus) ---
   Empêche les lignes de texte et les conteneurs de s'étirer à
   l'infini sur les moniteurs larges (Full HD 1920, QHD 2560...) */
@media (min-width: 1920px) {
    :root {
        --header-nav-height: 84px;
    }

    .header {
        max-height: 780px !important;
    }

    .header__nav-container {
        max-width: 1440px;
    }

    .header__hero-content {
        max-width: 920px;
    }

    .container {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .paper_section {
        max-width: 1320px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 3.5rem;
    }

    .masonry {
        column-count: 4;
        column-gap: 3.5rem;
    }
}

/* --- 26.3 Très grands écrans / ultra-wide (2560px et plus) --- */
@media (min-width: 2560px) {
    .header {
        max-height: 900px !important;
    }

    .header__nav-container {
        max-width: 1600px;
    }

    .container {
        max-width: 1600px;
    }

    .paper_section {
        max-width: 1500px;
    }

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

    .masonry {
        column-count: 5;
    }
}

/* --- 26.4 Téléphones/tablettes en paysage à faible hauteur ---
   Cas fréquemment oublié : un téléphone tenu à l'horizontale a
   une hauteur de viewport très réduite (souvent < 500px), ce qui
   fait déborder un header pensé pour occuper 100vh en portrait */
@media (max-height: 500px) and (max-width: 900px) and (orientation: landscape) {
    :root {
        --header-nav-height: 56px;
    }

    .header {
        max-height: 100vh !important;
    }

    .header__hero {
        min-height: 100vh;
        padding-top: var(--header-nav-height);
        padding-bottom: 1rem;
    }

    .header__hero-container {
        margin-top: 0;
        padding: 0.75rem 2rem;
    }

    .header__badge {
        margin-bottom: 0.6rem;
    }

    .header__hero-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        margin-bottom: 0.5rem;
    }

    .header__hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .header__hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .header__hero-stats {
        padding: 0.6rem 1rem;
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .header__stat-number {
        font-size: 1.1rem;
    }

    .header__hero-actions {
        flex-direction: row;
    }

    .header__cta {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .header__scroll-indicator {
        display: none;
    }

    /* Menu mobile ouvert : reste scrollable dans la hauteur disponible */
    .header__menu {
        max-height: calc(100vh - var(--header-nav-height));
        overflow-y: auto;
        padding: 0.5rem 1rem;
    }

    .header__menu-link {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
}

/* --- 26.5 Très petits écrans (moins de 320px) ---
   Anciens téléphones / vues navigateur très réduites */
@media (max-width: 320px) {
    .header__hero-title {
        font-size: 1.3rem;
    }

    .header__hero-subtitle {
        font-size: 0.7rem;
    }

    .header__hero-description {
        font-size: 0.6rem;
    }

    .header__cta {
        font-size: 0.6rem;
        padding: 0.4rem 0.7rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .list__item {
        font-size: 0.95rem;
        padding: 0.7rem 0.5rem;
    }

    .number {
        font-size: clamp(2rem, 5vw, 2.6rem);
    }

    .paper_section {
        padding: 1rem;
    }
}

/* --- 26.6 Accessibilité : respect de la préférence "mouvement réduit"
   Toutes tailles d'écran confondues --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
