/* Variables CSS - Palette officielle NOCXILAE selon charte graphique FEV2026 */
:root {
    /* Charte graphique - BLEU NUIT : profondeur, fiabilité, élégance */
    --color-dark: #1E324D;
    --color-bg: #1E324D;
    --color-bg-light: #263B5A;
    --color-bg-dark: #152236;
    --color-border: #2D4563;
    
    /* Charte graphique - MAUVE : chaleur, créativité */
    --color-primary: #904C6E;
    --color-primary-dark: #6E3A57;
    --color-accent: #904C6E;
    --color-secondary: #904C6E;
    --color-accent-warm: #904C6E;
    --color-logo: #904C6E;
    
    /* Charte graphique - OR : technologie, premium, étoiles */
    --color-accent-secondary: #C79953;
    --color-gold: #C79953;
    --color-success: #C79953;
    
    /* Texte et clarté */
    --color-light: #f5f3e5;
    --color-text: #ffffff;
    --color-text-light: #f5f3e5;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    
    /* Typographie selon charte graphique */
    /* 35 pt = 46.67px ≈ 2.92rem (base 16px) */
    --font-size-surtitre: 2.92rem; /* Space Grotesk / 35 pt */
    /* 80 pt = 106.67px ≈ 6.67rem */
    --font-size-grand-titre: 6.67rem; /* Chillax / 80 pt */
    /* 18 pt = 24px = 1.5rem */
    --font-size-chapo: 1.5rem; /* Space Grotesk / 18 pt */
    /* 14 pt = 18.67px ≈ 1.17rem */
    --font-size-texte: 1.17rem; /* Space Grotesk / 14 pt */
    /* 18 pt = 24px = 1.5rem */
    --font-size-legende: 1.5rem; /* Space Grotesk Light italic / 18 pt */
    /* 22 pt ≈ 1.53rem - BOLD mise en avant (charte) */
    --font-size-bold: 1.53rem; /* BOLD mise en avant 22 pt - couleur or */
    
    /* Effets visuels - Charte NOCXILAE (mauve, or, bleu nuit) */
    --glow-primary: 0 0 20px rgba(144, 76, 110, 0.4);
    --glow-accent: 0 0 20px rgba(199, 153, 83, 0.4);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3);
    
    /* Effets cosmiques - dégradé mauve et or */
    --nebula-gradient: radial-gradient(ellipse at top, rgba(144, 76, 110, 0.15) 0%, transparent 50%),
                       radial-gradient(ellipse at bottom right, rgba(199, 153, 83, 0.12) 0%, transparent 50%),
                       radial-gradient(ellipse at bottom left, rgba(30, 50, 77, 0.2) 0%, transparent 50%);
    --cosmic-glow: 0 0 40px rgba(144, 76, 110, 0.3), 0 0 80px rgba(199, 153, 83, 0.2);
}

/* Polices de la charte graphique - Chillax et Space Grotesk */
@font-face {
    font-family: 'Chillax';
    src: url('../fonts/Chillax-Variable.woff2') format('woff2');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Variable.ttf') format('truetype');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

/* Chillax pour les grands titres et accroches (identité visuelle) */
h1, 
.hero__title,
h1.section__title {
    font-family: 'Chillax', 'Space Grotesk', sans-serif !important;
    font-weight: 500 !important;
}

/* Base - Space Grotesk pour le texte (charte graphique graphismes) */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-texte); /* Poppins regular 14 pt */
    color: var(--color-text);
    /* Gradient unifié - couleurs accentuées (mauve, or, bleu) */
    background: 
        radial-gradient(ellipse 100% 70% at 50% 10%, rgba(144, 76, 110, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 90% 80% at 100% 40%, rgba(199, 153, 83, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 90% 80% at 0% 60%, rgba(60, 95, 140, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #152236 0%, #1a2840 20%, #1d3149 40%, #152236 60%, #1a2840 80%, #121b2d 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    box-shadow: 
        inset 0 2px 60px rgba(0, 0, 0, 0.2),
        inset 0 -2px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Texture grain subtile - une seule couche sur toute la page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Léger relief - lumière et profondeur aux bords */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: 
        inset 0 80px 100px -80px rgba(144, 76, 110, 0.08),
        inset 0 -60px 80px -60px rgba(0, 0, 0, 0.15);
}

/* Typographie selon charte graphique */

/* Grands titres et accroches - Chillax Medium 80 pt */
h1 {
    font-family: 'Chillax', 'Space Grotesk', sans-serif !important;
    font-weight: 400 !important;
    font-size: var(--font-size-grand-titre) !important; /* 80 pt = 6.67rem */
    line-height: 1.1 !important;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    letter-spacing: -0.02em !important;
    text-transform: none !important; /* Pas de majuscules pour les grands titres MOGA */
}

/* Surtitres courts - Space Grotesk Medium Cap 35 pt */
h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-surtitre); /* 35 pt = 2.92rem */
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chapôs et intertitres - Space Grotesk regular 18 pt */
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-chapo); /* 18 pt = 1.5rem */
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-chapo); /* 18 pt = 1.5rem */
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

/* Texte principal - Space Grotesk regular 14 pt */
p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt = 1.17rem */
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Légendes et citations - Space Grotesk Light italic 18 pt */
.legende,
.citation,
figcaption,
.caption {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: var(--font-size-legende); /* 18 pt = 1.5rem */
    line-height: 1.4;
    color: var(--color-text-light);
}

/* Listes - Texte principal Space Grotesk regular 14 pt */
ul, ol {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
}

li {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* Règles de la charte graphique */
/* Le gras doit être réservé à la mise en avant d'un mot ou d'une suite de mots */
strong, b {
    font-weight: 600; /* Space Grotesk SemiBold pour la mise en avant */
}

/* Limiter les lettres capitales - les accentuer si utilisées */
/* L'italique pour textes courts ou conventions (légendes, citations) */
em, i {
    font-style: italic;
}

/* Liens - Texte principal Space Grotesk regular 14 pt */
a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

a:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Containers épurés */
.container::before,
.container::after {
    display: none;
}

.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    margin: 0;
    background: transparent;
    color: var(--color-text);
    overflow: hidden;
}

/* Pas de bordure courbe */
.section:not(.section--alternate)::after {
    display: none;
}

/* Espacement généreux entre les sections */
.section + .section {
    margin-top: 0;
}

/* Header - image du hero en fond, scrolle avec la page et disparaît (toutes les pages) */
.header {
    background: url('../images/logo-fond-sombre.png') top center/cover no-repeat;
    border-bottom: none;
    position: relative;
    z-index: 100;
    box-shadow: none;
    height: 48px;
    display: flex;
    align-items: center;
}

/* Header en overlay sur l'accueil - même comportement scroll sur toutes les pages */
.header--overlay {
    position: relative;
    z-index: 10;
}

.header--overlay .header__container {
    padding: var(--spacing-md) var(--spacing-lg);
}

/* Trait doré type poussière d'étoile - séparation nav / contenu (toutes les pages) */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(199, 153, 83, 0.3) 15%, 
        rgba(199, 153, 83, 0.5) 50%, 
        rgba(199, 153, 83, 0.3) 85%, 
        transparent 100%);
    box-shadow: 0 0 8px rgba(199, 153, 83, 0.4);
}

.header__container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-md);
    height: 100%; /* Prend toute la hauteur du header */
}

/* Logo - Space Grotesk Medium ou image du graphisme */
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.25rem; /* Légèrement plus grand que le texte principal */
    color: var(--color-text);
}

.logo--header {
    color: var(--color-logo); /* Violet/magenta selon charte graphique */
    font-weight: 600;
    text-shadow: 0 0 10px rgba(144, 76, 110, 0.3);
}

.nav__list {
    display: flex;
    gap: var(--spacing-lg);
}

/* Navigation - cohérent sur toutes les pages (blanc sur fond transparent) */
.nav__link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav__link:hover {
    color: white;
    text-shadow: 0 0 8px rgba(199, 153, 83, 0.3);
}

.nav__link--active {
    color: white;
    font-weight: 500;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-primary), 
        var(--color-accent), 
        var(--color-primary), 
        transparent);
    box-shadow: 0 0 8px rgba(144, 76, 110, 0.6);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance sur les boutons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(144, 76, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn--primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn--primary:hover {
    background: linear-gradient(135deg, 
        var(--color-primary-dark) 0%, 
        var(--color-primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(144, 76, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.btn--secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(144, 76, 110, 0.2);
}

.btn--secondary:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Hero */
.hero:not(.hero--identity) {
    background: var(--color-bg);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

/* Hero avec image d'identité */
.hero--identity {
    /* 
    ============================================
    CHOIX TECHNIQUES - EXPLICATION CSS
    ============================================
    
    1. background-image vs <img> :
    ---------------------------------
    Utilisation de background-image plutôt que <img> car :
    - Plus de contrôle sur le positionnement et le redimensionnement
    - background-size: cover permet de couvrir tout l'espace tout en préservant les proportions
    - background-position: center centre l'image automatiquement
    - Pas besoin de gérer l'aspect ratio d'un élément <img>
    - Plus facile pour faire du plein écran responsive
    - L'image peut être rognée si nécessaire sans déformation
    
    2. background-size: cover :
    ---------------------------------
    - Couvre 100% de l'espace disponible (largeur ET hauteur)
    - Préserve les proportions de l'image (pas de déformation)
    - Peut rogner l'image si le ratio ne correspond pas à l'écran
    - Alternative : "contain" (affiche toute l'image mais peut laisser des espaces)
    - Alternative : "100% 100%" (étire l'image, peut déformer)
    
    3. background-position: center :
    ---------------------------------
    - Centre l'image horizontalement et verticalement
    - Alternative : "top center" (pour centrer en haut)
    - Alternative : "bottom center" (pour centrer en bas)
    
    4. min-height: 100vh :
    ---------------------------------
    - vh = viewport height (hauteur de la fenêtre)
    - 100vh = 100% de la hauteur visible de l'écran
    - min-height permet à la section de prendre au minimum cette hauteur
    - Si le contenu est plus grand, la section s'agrandit
    
    5. background-attachment: fixed (desktop uniquement) :
    ---------------------------------
    - Fixe l'image lors du scroll (effet parallaxe)
    - Retiré sur mobile car peut poser des problèmes de performance
    - Alternative : "scroll" (image défile avec le contenu)
    */
    /* Overlay minimal en bas pour fondu vers le body - sans touche chaude qui masque la baseline */
    background-image: 
        linear-gradient(to bottom, 
            transparent 0%, 
            transparent 70%, 
            rgba(21, 34, 53, 0.2) 80%, 
            rgba(21, 34, 53, 0.6) 90%, 
            rgba(21, 34, 53, 1) 100%),
        url('../images/logo-fond-sombre.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, scroll; /* L'image défile avec la page */
    
    /* Plein écran moins la hauteur de la nav pour que l'indicateur de scroll soit visible */
    min-height: calc(100vh - 48px);
    width: 100%;
    padding: 0;
    margin: 0;
    
    /* Position relative pour le header en overlay */
    position: relative;
    
    display: block;
    overflow: hidden;
}

.narrative-block {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.narrative-block__text {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.narrative-block__text:last-of-type {
    margin-bottom: 0;
}

/* Hero épuré sans overlay */
.hero--identity::after {
    display: none;
}

/* Indicateur de scroll - espacé de la baseline du texte */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-sm);
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(144, 76, 110, 0.9) 0%, 
        rgba(110, 58, 87, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    box-shadow: 
        0 4px 20px rgba(144, 76, 110, 0.4),
        0 0 0 0 rgba(144, 76, 110, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-indicator:hover {
    background: linear-gradient(135deg, 
        rgba(144, 76, 110, 1) 0%, 
        rgba(110, 58, 87, 1) 100%);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 
        0 6px 30px rgba(144, 76, 110, 0.6),
        0 0 0 4px rgba(144, 76, 110, 0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 
            0 4px 20px rgba(144, 76, 110, 0.4),
            0 0 0 0 rgba(144, 76, 110, 0.7);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
        box-shadow: 
            0 6px 30px rgba(144, 76, 110, 0.6),
            0 0 0 4px rgba(144, 76, 110, 0.3);
    }
}

.scroll-indicator span {
    display: block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 0 4px 20px rgba(144, 76, 110, 0.4), 0 0 0 0 rgba(144, 76, 110, 0.7);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
        box-shadow: 0 6px 30px rgba(144, 76, 110, 0.6), 0 0 0 4px rgba(144, 76, 110, 0.3);
    }
}

.scroll-indicator:hover {
    animation: none;
}

/* Responsive : ajustement pour mobile */
@media (max-width: 1024px) {
    .hero--identity {
        min-height: calc(100vh - 48px);
        /* background-attachment: fixed peut poser problème sur mobile, on le retire */
        background-attachment: scroll;
        /* Ajustement du background-size pour mobile si l'image est très large */
        background-size: cover;
        background-position: center;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .hero--identity {
        min-height: calc(100vh - 48px);
        /* On peut ajuster le positionnement si l'image a un focus particulier */
        background-position: center center;
    }
}

.hero__title {
    font-family: 'Chillax', 'Space Grotesk', sans-serif !important;
    font-weight: 400 !important;
    font-size: var(--font-size-grand-titre) !important; /* Moga regular 80 pt */
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important; /* Pas de majuscules pour les grands titres MOGA */
}

.hero__subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-chapo); /* Poppins regular 18 pt */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero__cta {
    margin-top: var(--spacing-lg);
}

/* Grilles */
.grid {
    display: grid;
    gap: var(--spacing-xl);
    position: relative;
}

/* Lignes de connexion décoratives entre les éléments de grille */
.grid--2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(144, 76, 110, 0.1), 
        rgba(144, 76, 110, 0.1), 
        rgba(144, 76, 110, 0.1), 
        transparent);
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.grid:hover.grid--2::before {
    opacity: 1;
}

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

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

.grid--3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(144, 76, 110, 0.1), 
        rgba(144, 76, 110, 0.1), 
        rgba(144, 76, 110, 0.1), 
        transparent);
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.grid:hover.grid--3::before {
    opacity: 1;
}

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

/* Points de connexion décoratifs */
.grid > * {
    position: relative;
    z-index: 1;
}

.grid > *::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 8px rgba(144, 76, 110, 0.6);
}

.grid:hover > *::before {
    opacity: 1;
    transform: translateX(-50%) scale(1.5);
}

/* Cards (conservées pour compatibilité avec autres pages) */
.card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Cards épurées sans effets de lumière */
.card::after {
    display: none;
}

/* Pattern de points subtil sur les cards - supprimé */

.card > * {
    position: relative;
    z-index: 2;
}

/* Cards épurées sans bordure lumineuse */
.card::before {
    display: none;
}

.card:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
    border-color: var(--color-primary);
    background: rgba(21, 34, 53, 0.98);
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(144, 76, 110, 0.4));
    transition: var(--transition);
}

.card:hover .card__icon {
    filter: drop-shadow(0 0 12px rgba(144, 76, 110, 0.6));
    transform: scale(1.05);
}

.card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-chapo); /* Poppins regular 18 pt - Chapôs et intertitres */
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

/* Icônes dans les cards */
.card-icon-wrapper {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    filter: drop-shadow(0 0 8px rgba(144, 76, 110, 0.4));
    transition: var(--transition);
}

.card:hover .card-icon {
    filter: drop-shadow(0 0 12px rgba(144, 76, 110, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.card--featured .card-icon {
    color: var(--color-primary);
}

.card--featured[style*="border-left: 3px solid var(--color-accent)"] .card-icon {
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px rgba(144, 76, 110, 0.4));
}

.card--featured[style*="border-left: 3px solid var(--color-accent)"]:hover .card-icon {
    filter: drop-shadow(0 0 12px rgba(144, 76, 110, 0.6));
}

/* Cartes cliquables (règle des 3 clics - accès direct au contenu) */
.card--link {
    display: block;
    color: inherit;
}

.card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.card--link .card__title,
.card--link .card__text {
    color: inherit;
}

/* Numéros de processus */
.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(144, 76, 110, 0.3);
    position: relative;
}

.process-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card--process:hover .process-number::before {
    opacity: 0.3;
}

.card--process:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(144, 76, 110, 0.5);
}

/* Badges pour les exemples */
.example-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card--example {
    position: relative;
    overflow: visible;
}

.card--example::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, 
        rgba(144, 76, 110, 0.2), 
        rgba(144, 76, 110, 0.2), 
        rgba(144, 76, 110, 0.2));
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

/* Icônes de confiance */
.trust-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(144, 76, 110, 0.3));
    transition: var(--transition);
    line-height: 1;
}

.card--trust:hover .trust-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(144, 76, 110, 0.5));
}

/* Badges de réassurance */
.reassurance-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.reassurance-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, rgba(144, 76, 110, 0.1) 0%, rgba(144, 76, 110, 0.1) 100%);
    border: 1px solid rgba(144, 76, 110, 0.2);
    border-radius: 2rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.reassurance-badge:hover {
    background: linear-gradient(135deg, rgba(144, 76, 110, 0.15) 0%, rgba(144, 76, 110, 0.15) 100%);
    border-color: rgba(144, 76, 110, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 76, 110, 0.2);
}

.reassurance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-secondary), var(--color-accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Texte des cartes - Texte principal Poppins regular 14 pt */
.card__text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* Blocs UI simplifiés pour la page d'accueil */

/* Comparaison côte à côte */
.comparison-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: var(--spacing-xl) auto 0;
}

@media (max-width: 768px) {
    .comparison-block {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Option (Site web ou Logiciel) */
.option-block {
    padding: var(--spacing-lg);
    border-left: 3px solid;
    /* Pas de fond, pas de bordure complète, pas d'ombre */
}

.option-block--site-web {
    border-left-color: var(--color-primary);
}

.option-block--logiciel {
    border-left-color: var(--color-accent);
}

.option-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

/* Titres d'option en blanc pour plus d'épure */
.option-title {
    color: var(--color-text);
    /* Couleur uniquement sur la bordure gauche, pas sur le titre */
}

.option-intro {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    line-height: 1.6;
}

.option-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.option-summary {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.option-summary p {
    margin: 0;
    font-weight: 600;
    color: var(--color-text);
}

/* Message complémentaire */
.complementary-message {
    text-align: center;
    margin-top: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.complementary-message p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.help-message {
    margin-top: var(--spacing-lg);
    padding: 0;
    /* Pas de bordure, pas de padding, juste espacement */
    color: var(--color-text-light);
}

.help-message a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Exemples de réalisations */
.examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: var(--spacing-xl) auto 0;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.example-block {
    padding: var(--spacing-lg);
    /* Pas de bordure, juste espacement généreux */
}

.example-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.example-block p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.example-result {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    color: var(--color-success);
    font-weight: 500;
}

.section-link {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.link-secondary {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

/* Processus */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.process-step {
    padding: var(--spacing-lg);
    /* Pas de fond, pas de bordure, pas d'ombre */
}

.process-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
    /* Pas de cercle, pas de background, juste numéro en gras et coloré */
}

.process-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.process-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.process-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* Engagements */
.commitments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: var(--spacing-xl) auto 0;
}

@media (max-width: 768px) {
    .commitments-grid {
        grid-template-columns: 1fr;
    }
}

.commitment-block {
    padding: var(--spacing-lg);
    /* Pas de fond, pas de bordure, pas d'ombre */
}

.commitment-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.commitment-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-block {
    margin-top: var(--spacing-xl);
}

.cta-reassurances {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-reassurances p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    /* Pas d'emoji dans le CSS, juste texte simple */
}

/* Sections - style de base déjà défini plus haut */

.section--alternate {
    background: transparent;
    position: relative;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    overflow: hidden;
}

/* Pas de bordures courbes */
.section--alternate::before,
.section--alternate::after {
    display: none;
}

/* Les séparateurs courbes sont déjà définis plus haut pour .section--alternate */

/* Séparateur élégant pour les sections alternées */
.section--alternate::before {
    display: none;
}

.section__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-surtitre); /* Poppins Medium Cap 35 pt - Surtitres courts */
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

/* Formes décoratives autour des titres */
.section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(144, 76, 110, 0.5),
        transparent);
    opacity: 0.5;
}

/* Lignes décoratives autour des titres */
.section__title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(144, 76, 110, 0.5));
    opacity: 0.5;
}


/* Ligne décorative sous les titres - utilisant un pseudo-élément supplémentaire via un wrapper */
.section__title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section__title-wrapper::after {
    content: '';
    position: absolute;
    bottom: -var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-primary), 
        var(--color-accent),
        var(--color-primary), 
        transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(144, 76, 110, 0.4);
}

/* Titre principal de section (H1) - style spécifique */
.section__title--main {
    font-family: 'Chillax', 'Space Grotesk', sans-serif !important;
    font-weight: 400 !important;
    font-size: 2.5rem !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section__title--main::after {
    display: none; /* Pas de ligne décorative sur le H1 principal */
}

/* Les H1 avec section__title utilisent MOGA (grands titres) - Priorité maximale */
h1.section__title {
    font-family: 'Chillax', 'Space Grotesk', sans-serif !important;
    font-weight: 400 !important;
    font-size: var(--font-size-grand-titre) !important; /* 80 pt - Grands titres MOGA */
    text-transform: none !important; /* Pas de majuscules pour les grands titres MOGA */
    letter-spacing: -0.02em !important; /* Espacement négatif pour MOGA */
    line-height: 1.1 !important;
}

.section__subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-chapo); /* Poppins regular 18 pt - Chapôs */
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__subtitle,
.card__text {
    color: var(--color-text-light);
}

/* Sections compactes (accueil) - Hiérarchie charte graphique */
.section--compact {
    padding: var(--spacing-xl) 0;
}
/* H2 surtitres : Space Grotesk 35 pt (charte) */
.section--compact .section__title {
    font-size: var(--font-size-surtitre);
    margin-bottom: var(--spacing-sm);
}
/* H1 titre principal : Chillax 80 pt (charte) */
.section--compact .section__title--main {
    font-size: var(--font-size-grand-titre) !important;
}
.section--compact .section__title::before,
.section--compact .section__title::after {
    display: none;
}
/* Chapô/sous-titre : Space Grotesk 18 pt (charte) */
.section--compact .section__subtitle {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-chapo);
}
/* Pied de section : texte 14 pt (charte) */
.section__footnote {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-texte);
}
.section__footnote a {
    color: var(--color-text-light);
}
.section__footnote a:hover {
    color: var(--color-primary);
}

/* Bénéfices intro page services */
.intro-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-xl);
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) 0 0;
    font-size: var(--font-size-texte);
    color: var(--color-text-light);
}
.intro-benefits li {
    position: relative;
    padding-left: 1.25rem;
}
.intro-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* Grille compacte */
.grid--compact {
    max-width: 900px;
    margin: 0 auto;
    gap: var(--spacing-md);
}

/* Grille FAQ : 2 cartes par ligne, ratio hauteur/largeur équilibré */
.grid--faq {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--spacing-lg);
    align-items: stretch;
}
.grid--faq .card--compact {
    display: flex;
    flex-direction: column;
}
/* Séparation visuelle question / réponse */
.grid--faq .card--compact .card__title {
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}
.grid--faq .card--compact .card__text {
    flex: 1;
    padding-top: 0;
}
@media (max-width: 640px) {
    .grid--faq {
        grid-template-columns: 1fr;
    }
}
.grid--compact::before,
.grid--compact > *::before {
    display: none; /* Pas de lignes décoratives pour une interface épurée */
}

/* Cards compactes - Chapô 18 pt, Texte 14 pt (charte) */
.card--compact {
    padding: var(--spacing-lg);
    margin-bottom: 0;
    border: 1px solid var(--color-border);
}
.card--compact .card__title {
    font-size: var(--font-size-chapo);
    margin-bottom: var(--spacing-xs);
}
.card--compact .card__text {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-texte);
}
.card__cta {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-texte);
    font-weight: 500;
    color: var(--color-primary);
}
.card--compact.card--primary {
    border-left: 3px solid var(--color-primary);
}
.card--compact.card--accent {
    border-left: 3px solid var(--color-accent-secondary);
}
.card--compact.card--strategie {
    border-left: 3px solid var(--color-gold);
}
.card--compact.card--example .card__title {
    color: inherit;
}
.example-badge--site {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
}
.example-badge--logiciel {
    background: linear-gradient(135deg, var(--color-accent-secondary), var(--color-gold)) !important;
}

/* Ils nous font confiance */
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}
.trust-item {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-size: var(--font-size-texte);
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition);
}
.trust-item:hover {
    border-color: var(--color-primary);
    background: rgba(144, 76, 110, 0.1);
}
/* Support pour logos clients : utiliser .trust-item avec <img> à l'intérieur */
.trust-item img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(0.6);
    opacity: 0.9;
}
.trust-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.btn--sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

/* Timeline processus - 4 étapes horizontales */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: var(--spacing-lg) auto 0;
}
.process-timeline__step {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(38, 59, 90, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.process-timeline__step:hover {
    border-color: var(--color-primary);
    background: rgba(144, 76, 110, 0.08);
}
.process-timeline__number {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto var(--spacing-sm);
    line-height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-weight: 600;
    font-size: var(--font-size-chapo);
}
/* Titre étape : Chapô 18 pt (charte) */
.process-timeline__title {
    font-size: var(--font-size-chapo);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}
/* Texte étape : 14 pt (charte) */
.process-timeline__step p {
    font-size: var(--font-size-texte);
    margin: 0;
    color: var(--color-text-light);
}
@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

/* Histoire courte - L'origine */
.section--story .story-block {
    max-width: 620px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(38, 59, 90, 0.6) 0%, rgba(21, 34, 53, 0.4) 100%);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: calc(var(--border-radius) * 1.5);
    transition: var(--transition);
}
.section--story .story-block:hover {
    border-left-color: var(--color-gold);
}
.story-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-lg);
    align-items: start;
}
.story-block__photo {
    flex-shrink: 0;
}
.story-block__photo img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.story-block__lead,
.story-block__text,
.story-block__footer {
    grid-column: 1;
}
.story-block__photo {
    grid-column: 2;
    grid-row: 1 / -1;
}
@media (max-width: 600px) {
    .story-block {
        grid-template-columns: 1fr;
    }
    .story-block__photo {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }
    .story-block__lead,
    .story-block__text,
    .story-block__footer {
        grid-column: 1;
    }
}
/* Accroche histoire : Chapô 18 pt ou BOLD 22 pt (charte) */
.story-block__lead {
    font-size: var(--font-size-bold);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    position: relative;
}
.story-block__lead::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.5;
}
/* Texte histoire : 14 pt (charte) */
.story-block__text {
    font-size: var(--font-size-texte);
    line-height: 1.7;
    margin-bottom: 0;
    color: var(--color-text-light);
}
.story-block__footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}
.section--story .btn {
    margin-top: 0;
}

/* CTA final - bloc d'action conversion */
.section--cta {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
}
.section--cta .section__subtitle {
    margin-bottom: var(--spacing-lg);
}
.btn--lg {
    font-size: 1.125rem;
    padding: var(--spacing-md) var(--spacing-xl);
}
.cta-reassurance {
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-texte);
    color: var(--color-text-light);
}
.cta-reassurance a {
    color: var(--color-primary);
}
.cta-reassurance a:hover {
    text-decoration: underline;
}

/* Liste de services */
.services-list {
    margin: var(--spacing-xl) 0;
}

.service-item {
    padding: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-bg-light);
    margin-bottom: var(--spacing-md);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.service-item__title {
    margin-bottom: var(--spacing-xs);
}

/* Description de service - Texte principal Poppins regular 14 pt */
.service-item__description {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

/* Formulaires */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* Labels de formulaire - Texte principal Poppins regular 14 pt */
.form-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

/* Inputs de formulaire - Texte principal Poppins regular 14 pt */
.form-input,
.form-textarea {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: rgba(21, 34, 53, 0.5);
    color: var(--color-text);
}

.form-input:hover,
.form-textarea:hover {
    border-color: rgba(144, 76, 110, 0.3);
    background-color: rgba(21, 34, 53, 0.7);
}

.form-input:focus,
.form-textarea:focus,
select:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(110, 58, 87, 0.1), 0 0 12px rgba(144, 76, 110, 0.2);
    background-color: rgba(144, 76, 110, 0.02);
}

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

/* Liste déroulante (sujet) : contraste lisible — fond clair, texte sombre dans les options */
select.form-input {
    cursor: pointer;
}
select.form-input option,
option {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
}

/* Styles pour les erreurs de formulaire */
.form-input--error,
.form-textarea--error {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(144, 76, 110, 0.2) !important;
}

.form-error {
    display: block;
    color: var(--color-primary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-message {
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--font-size-texte);
}

.form-message--success {
    background-color: rgba(199, 153, 83, 0.15);
    color: var(--color-accent-secondary);
    border: 1px solid var(--color-accent-secondary);
}

.form-message--error {
    background-color: rgba(144, 76, 110, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Footer - séparation visuelle nette avec le reste du site */
.footer {
    background: linear-gradient(180deg, #0d1625 0%, #0a1019 100%);
    color: var(--color-text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    border-top: 3px solid rgba(144, 76, 110, 0.5);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Footer épuré sans effets de lumière */
.footer::before {
    display: none;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Titres de section footer - Chapôs Poppins regular 18 pt */
.footer__section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-chapo); /* 18 pt */
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

/* Liens footer - Texte principal Poppins regular 14 pt */
.footer__link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    color: var(--color-text-light);
    display: block;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition);
}

.footer__link:hover {
    color: white;
    transform: translateX(4px);
    transition: all 0.2s ease;
}

/* Footer bottom - Texte principal Poppins regular 14 pt */
.footer__bottom {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-texte); /* 14 pt */
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--color-text-light);
}
/* Mentions légales et Politique de confidentialité côte à côte */
.footer__bottom .footer__link {
    display: inline;
    margin-bottom: 0;
}

/* Skip link pour accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

/* Texte accessible uniquement aux lecteurs d'écran (accessibilité) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.highlight {
    background-color: rgba(245, 243, 229, 0.15);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Espacement entre sections */
.section + .section {
    position: relative;
}

/* Effet de particules subtil sur les sections - déjà géré par ::before */

/* ========== Mise en page storytelling (récit, chapitres, parcours) ========== */

.story-layout {
    --story-measure: 38rem;
    --story-wide: min(48rem, 100%);
    /* Titres chapitre : lisibles sur plusieurs mots par ligne (évite le « un mot par ligne » du 80pt) */
    --story-title-h1: clamp(1.85rem, 2.75vw + 1rem, 3.15rem);
    --story-title-h2: clamp(1.45rem, 1.85vw + 0.85rem, 2.35rem);
}

.story-layout .section--story-band {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.story-layout .section--story-band + .section--story-band {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Chapitre : numéro discret + bloc titre & texte alignés à gauche (lecture récit) */
.story-chapter {
    display: grid;
    grid-template-columns: minmax(3.25rem, 5rem) 1fr;
    gap: var(--spacing-md) var(--spacing-lg);
    align-items: start;
    max-width: calc(var(--max-width) - 2rem);
    margin: 0 auto;
}

.story-chapter__index {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1;
    color: rgba(199, 153, 83, 0.28);
    user-select: none;
    padding-top: 0.15em;
    font-variant-numeric: tabular-nums;
}

.story-chapter__kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 var(--spacing-sm);
}

.story-chapter__body {
    min-width: 0;
}

.story-layout .story-chapter__body > .section__title--main,
.story-layout .story-chapter__body > h1.section__title {
    text-align: left !important;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
    font-size: var(--story-title-h1) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-wrap: balance;
    hyphens: manual;
    word-break: normal;
    overflow-wrap: break-word;
}

.story-layout .story-chapter__body > h2.section__title {
    text-align: left !important;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    font-size: var(--story-title-h2) !important;
    line-height: 1.22 !important;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
}

.story-layout .story-chapter__body > h2.section__title::before,
.story-layout .story-chapter__body > h2.section__title::after {
    display: none !important;
}

.story-layout .story-chapter__body > .section__subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: var(--story-measure);
}

.story-layout .story-chapter--header-only {
    margin-bottom: var(--spacing-xl);
}

.story-layout .narrative-block {
    margin-left: 0;
    max-width: var(--story-measure);
}

.story-layout .narrative-block__text:first-of-type::first-letter {
    float: left;
    font-size: 3.25rem;
    line-height: 0.85;
    font-weight: 600;
    color: var(--color-gold);
    margin-right: 0.15em;
    margin-top: 0.08em;
}

/* Voix / répliques (peurs, témoignages implicites) */
.story-voices {
    margin-top: var(--spacing-md);
}

.story-voices .card--voice {
    text-align: left;
    border-left: 3px solid var(--color-gold);
    background: linear-gradient(135deg, rgba(21, 34, 53, 0.65) 0%, rgba(38, 59, 90, 0.35) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.story-voices .card--voice .card__title {
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--color-text);
}

.story-voices .card--voice .card__text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Parcours vertical (fil du récit) */
.story-path {
    list-style: none;
    margin: var(--spacing-xl) auto 0;
    padding: 0;
    max-width: 34rem;
    position: relative;
}

.story-path::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(144, 76, 110, 0.5), rgba(199, 153, 83, 0.35));
    border-radius: 1px;
    opacity: 0.85;
}

.story-path__step {
    position: relative;
    padding: 0 0 var(--spacing-xl) 3.75rem;
    margin: 0;
}

.story-path__step:last-child {
    padding-bottom: 0;
}

.story-path__bullet {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 0 0 4px rgba(21, 34, 53, 0.9), 0 4px 14px rgba(144, 76, 110, 0.35);
    z-index: 1;
}

.story-path__title {
    font-size: var(--font-size-chapo);
    font-weight: 600;
    margin: 0 0 var(--spacing-xs);
    color: var(--color-text);
}

.story-path__text {
    margin: 0;
    font-size: var(--font-size-texte);
    line-height: 1.65;
    color: var(--color-text-light);
    max-width: var(--story-measure);
}

.story-layout .section--ensemble .section__footnote {
    text-align: left;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spacing-xl);
}

/* Branches : liens vers le détail (encore récit, pas grille froide) */
.story-branches {
    margin-top: var(--spacing-lg);
}

.story-branches .card--link {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.story-branches .card--link:hover {
    transform: translateY(-3px);
}

.story-layout .story-branches + .section__footnote,
.story-layout #intro-services .section__footnote {
    text-align: left;
    max-width: var(--max-width);
    margin-top: var(--spacing-xl);
}

.story-layout #intro-services .intro-benefits {
    justify-content: flex-start;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Chapitre « visage » : bloc portrait plus large, ton carnet */
.story-layout .section--story .container {
    max-width: min(52rem, 100%);
}

.story-layout .section--story .story-block {
    max-width: none;
    margin: var(--spacing-lg) auto 0;
}

.story-layout .section--cta {
    border-top: 1px solid rgba(199, 153, 83, 0.2);
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(144, 76, 110, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(199, 153, 83, 0.08) 0%, transparent 50%);
}

.story-layout .section--cta .section__title {
    text-transform: none;
    letter-spacing: 0.02em;
}

.story-layout .section--cta .section__title::before,
.story-layout .section--cta .section__title::after {
    display: none;
}

.story-cta__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 var(--spacing-md);
}

.story-footnote--inline {
    text-align: left !important;
    margin-top: var(--spacing-lg);
}

/* Pieds de section sur la page services (alignés au fil storytelling) */
.story-layout .story-services-footnote {
    text-align: left;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spacing-xl);
}

@media (max-width: 640px) {
    .story-chapter {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .story-chapter__index {
        font-size: 1.75rem;
        padding-top: 0;
        opacity: 0.9;
    }

    .story-layout .narrative-block__text:first-of-type::first-letter {
        font-size: 2.5rem;
    }

    .story-path::before {
        left: 15px;
    }

    .story-path__step {
        padding-left: 3.25rem;
    }

    .story-path__bullet {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.9rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Grands titres - Réduction pour mobile */
    h1 {
        font-size: 3.5rem; /* Réduction de 80 pt à ~56 pt sur mobile */
    }
    
    /* Surtitres - Réduction pour mobile */
    h2 {
        font-size: 2rem; /* Réduction de 35 pt à ~32 pt sur mobile */
    }
    
    /* Chapôs et intertitres - Légère réduction */
    h3 {
        font-size: 1.25rem; /* Réduction de 18 pt à ~20 pt sur mobile */
    }
    
    .hero__title {
        font-size: 3.5rem; /* Réduction responsive du grand titre Moga 80 pt */
    }
    
    .section__title {
        font-size: 2rem; /* Réduction des surtitres sur mobile */
    }
    /* Titre principal accueil (Chillax 80pt) → ~56pt sur mobile */
    .section--compact .section__title--main {
        font-size: 3.5rem !important;
    }
    
    .header__container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .header--overlay .header__container {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .header--overlay .nav__list {
        flex-direction: row;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    .header--overlay .nav__link {
        font-size: var(--font-size-texte); /* 14 pt - Texte principal */
    }
    
    /* Cartes empilées uniquement sur très petit écran (< 480px) */
    
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .hero--identity {
        background-attachment: scroll; /* Déjà en scroll */
    }
    
    .scroll-indicator {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Correctifs responsive finaux (pré-mise en ligne) */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .hero__title,
    .section--compact .section__title--main {
        font-size: clamp(2.2rem, 8.2vw, 3.4rem) !important;
        line-height: 1.12;
        text-wrap: balance;
    }

    .section__title {
        font-size: clamp(1.6rem, 5.8vw, 2.2rem);
        line-height: 1.2;
        text-wrap: balance;
    }
}

@media (max-width: 768px) {
    .header--overlay .header__container {
        justify-content: center;
        align-items: center;
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .header--overlay .nav__list {
        justify-content: center;
    }

    .nav__link {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .story-layout .section--story-band {
        padding: var(--spacing-lg) 0;
    }

    .story-layout .story-block {
        padding: var(--spacing-lg);
    }

    .story-layout .story-chapter__body > .section__subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    h1,
    .hero__title,
    .section--compact .section__title--main {
        font-size: clamp(2rem, 10vw, 2.7rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.01em;
    }

    h2,
    .section__title {
        font-size: clamp(1.45rem, 6.8vw, 1.9rem) !important;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .form {
        max-width: 100%;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
    }

    .footer__container {
        gap: var(--spacing-lg);
    }
}

/* Version téléphone complète (priorité mobile) */
@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: 56px;
        padding: 0.25rem 0;
    }

    .header__container {
        height: auto;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .nav {
        width: 100%;
    }

    .nav__list {
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0.2rem 0.7rem;
        flex-wrap: wrap;
    }

    .nav__link {
        font-size: 0.95rem;
        padding: 0.25rem 0.15rem;
    }

    .hero--identity {
        min-height: calc(100dvh - 56px);
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    .grid,
    .grid--2,
    .grid--3,
    .grid--4,
    .grid--faq,
    .process-timeline {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    .card,
    .card--compact,
    .story-layout .story-block {
        padding: var(--spacing-md);
    }

    .story-layout .story-chapter {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .story-layout .story-chapter__index {
        font-size: 1.45rem;
        line-height: 1;
    }

    .story-path__step {
        padding-left: 2.8rem;
    }

    .story-path__bullet {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.85rem;
    }

    .story-path::before {
        left: 14px;
    }

    .trust-logos {
        gap: var(--spacing-sm);
    }

    .trust-item {
        width: 100%;
        text-align: center;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .hero:not(.hero--identity) {
        padding: var(--spacing-xl) 0;
    }

    h1,
    .hero__title,
    .section--compact .section__title--main {
        font-size: clamp(1.8rem, 9.2vw, 2.3rem) !important;
        line-height: 1.12 !important;
    }

    h2,
    .section__title {
        font-size: clamp(1.35rem, 7vw, 1.7rem) !important;
    }

    .section__subtitle,
    .narrative-block__text,
    .card__text,
    .story-block__text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .story-block__photo img {
        width: 120px;
        height: 150px;
    }

    .btn,
    .btn--sm {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .form-group {
        margin-bottom: var(--spacing-sm);
    }

    .form-label {
        margin-bottom: 0.35rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
    }

    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
}

/* Navigation burger mobile */
.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(21, 34, 53, 0.8);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(144, 76, 110, 0.2);
}

.nav-toggle__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle__line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header__container {
        position: relative;
        justify-content: center;
        overflow: visible;
    }

    .nav-toggle {
        display: inline-flex;
        position: relative;
        z-index: 160;
    }

    .nav {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(calc(100vw - 1rem), 360px);
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
        z-index: 150;
        border-radius: 14px;
        border: 1px solid var(--color-border);
        background: rgba(13, 22, 37, 0.98);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.28s ease, opacity 0.2s ease;
    }

    .header.nav-open .nav {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
        padding: 0.35rem;
        width: 100%;
        box-sizing: border-box;
    }

    .nav__list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav__list li:last-child {
        border-bottom: 0;
    }

    .nav__link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem 0.7rem;
        min-height: auto;
    }

    .header--overlay .header__container {
        padding: 0.45rem var(--spacing-sm);
    }
}

/* Hero mobile: visuel icone seul */
@media (max-width: 768px) {
    .hero--identity {
        background-image: url('../images/background-blur.png') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: #152236 !important;
        min-height: calc(100dvh - 56px) !important;
    }

    .scroll-indicator {
        display: flex;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        bottom: var(--spacing-md);
    }
}

/* Telephone en paysage: zero debordement horizontal */
@media (orientation: landscape) and (max-height: 500px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        min-height: 52px;
    }

    .header__container {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    .nav {
        width: min(calc(100vw - 0.75rem), 480px);
        max-width: calc(100vw - 0.75rem);
        max-height: 72dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .header.nav-open .nav {
        max-height: 72dvh;
    }

    .hero--identity {
        min-height: calc(100dvh - 52px) !important;
    }

    h1,
    h2,
    h3,
    .section__title,
    .section__subtitle,
    .card__text,
    .story-path__text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Correctif strict telephone paysage (anti rendu casse) */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
    .header__container {
        justify-content: center !important;
    }

    .nav-toggle {
        display: inline-flex !important;
        position: relative;
        z-index: 220;
    }

    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        transform: none !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 68px) !important;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        z-index: 210;
        border-radius: 12px;
    }

    .header.nav-open .nav {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        width: 100%;
        padding: 0.25rem;
    }

    .nav__link {
        width: 100%;
        text-align: center;
        padding: 0.6rem 0.5rem;
    }
}

