/**
 * ILVH - Main Stylesheet
 * Institut Linguistique Victor Hugo
 *
 * Table of Contents:
 * 1. CSS Variables
 * 2. Reset & Base
 * 3. Typography
 * 4. Layout
 * 5. Components
 * 6. Header
 * 7. Footer
 * 8. Sections
 * 9. Pages
 * 10. Animations
 * 11. Utilities
 * 12. Responsive
 */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #1A3F90;
    --color-primary-dark: #142f6b;
    --color-primary-light: #2a5bc4;
    --color-secondary: #30B1F2;
    --color-secondary-dark: #1a8bc7;
    --color-secondary-light: #5bc4f7;
    --color-background: #F8F3EB;
    --color-background-alt: #ffffff;
    --color-accent: #C8AD7F;
    --color-accent-dark: #a89060;
    --color-accent-light: #d9c49f;
    --color-highlight: #7B1E3A;
    --color-highlight-dark: #5a162b;
    --color-highlight-light: #9c264a;

    /* Text colors */
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-text-muted: #888888;
    --color-text-inverse: #ffffff;

    /* Semantic colors */
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Brittany Signature', cursive;

    /* Font sizes - fluid */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Font weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line heights */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Container */
    --container-max: 1280px;
    --container-narrow: 900px;
    --container-padding: clamp(1rem, 5vw, 2rem);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(200, 173, 127, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-header: 200;
    --z-modal: 300;
    --z-tooltip: 400;

    /* Header */
    --header-height: 100px;
    --header-height-scrolled: 70px;
}

/* Custom font */
@font-face {
    font-family: 'Brittany Signature';
    src: url('../fonts/Brittany-Signature-Regular.woff2') format('woff2'),
         url('../fonts/Brittany-Signature-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-background-alt);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.text-accent {
    font-family: var(--font-accent);
    font-size: var(--text-3xl);
    color: var(--color-accent);
}

.text-highlight {
    color: var(--color-highlight);
}

.text-muted {
    color: var(--color-text-light);
}

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light);
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: var(--container-narrow);
}

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

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

.section--lg {
    padding: var(--space-5xl) 0;
}

.section--sm {
    padding: var(--space-3xl) 0;
}

.section--cream {
    background-color: var(--color-background);
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-inverse);
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid--4,
    .grid--3,
    .grid--2 { grid-template-columns: 1fr; }
}

.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.btn--accent:hover {
    background-color: var(--color-accent-dark);
}

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

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

/* Bordeaux button - for dark backgrounds */
.btn--highlight {
    background-color: var(--color-highlight);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.btn--highlight:hover {
    background-color: var(--color-highlight-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Ghost white button - for dark backgrounds */
.btn--ghost-white {
    background-color: transparent;
    color: var(--color-text-inverse);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn--ghost-white:hover {
    background-color: var(--color-text-inverse);
    color: var(--color-primary);
    border-color: var(--color-text-inverse);
}

/* Gold/Accent outline button */
.btn--accent-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

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

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

.btn__icon {
    display: flex;
    transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.btn__icon svg {
    width: 18px;
    height: 18px;
}

/* Cards */
.card {
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card__content {
    padding: var(--space-xl);
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.card__text {
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--color-text-inverse);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

/* Team Card */
.team-card {
    text-align: center;
}

.team-card__image {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--color-accent);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team-card:hover .team-card__image::after {
    opacity: 1;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all var(--transition-base);
}

.team-card:hover .team-card__image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card__name {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
}

.team-card__role {
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.team-card__bio {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    max-width: 350px;
    margin: 0 auto;
}

/* Language Card */
.lang-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--color-background-alt);
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.lang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.lang-card:hover::before {
    transform: scaleX(1);
}

.lang-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.lang-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.lang-card:hover .lang-card__icon {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    transform: scale(1.1);
}

.lang-card__icon svg {
    width: 36px;
    height: 36px;
}

.lang-card__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.lang-card__text {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-style: italic;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-accent);
    color: var(--color-text);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge--outline {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

/* Pillar */
.pillar {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-background-alt);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pillar:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.pillar__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
}

.pillar__icon svg {
    width: 24px;
    height: 24px;
}

.pillar__content {
    flex: 1;
}

.pillar__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.pillar__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header__subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-header__title {
    margin-bottom: var(--space-lg);
}

.section-header__text {
    font-size: var(--text-lg);
    color: var(--color-text-light);
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    margin: var(--space-lg) auto;
    border-radius: var(--radius-full);
}

.divider--left {
    margin-left: 0;
}

/* Quote - Simple */
.quote {
    position: relative;
    padding: var(--space-2xl);
    background: var(--color-background);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
}

.quote__text {
    font-family: var(--font-accent);
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.quote__author {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    font-weight: var(--font-semibold);
}

/* Quote - Dramatic (pour la citation Victor Hugo) */
.quote-dramatic {
    position: relative;
    padding: var(--space-5xl) var(--space-2xl);
    background: var(--color-highlight);
    overflow: hidden;
}

/* Fond avec image bordeaux */
.quote-dramatic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/decorations/section bordeaux deux.jpg');
    background-size: cover;
    background-position: left center;
    opacity: 1;
    pointer-events: none;
}

/* Overlay subtil pour lisibilité */
.quote-dramatic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(123, 30, 58, 0.3) 0%,
        rgba(90, 21, 40, 0.2) 100%
    );
    pointer-events: none;
}

.quote-dramatic__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Image de citation style papier */
.quote-dramatic__image {
    max-width: 100%;
    width: 700px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    /* Animation d'apparition élégante */
    opacity: 0;
    transform: translateY(30px) rotate(-2deg);
    animation: citationReveal 1.2s ease-out 0.3s forwards;
}

@keyframes citationReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(-2deg) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) rotate(0.5deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Léger mouvement flottant permanent */
.quote-dramatic__inner {
    animation: citationFloat 4s ease-in-out infinite;
}

@keyframes citationFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Réduction du mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .quote-dramatic__image {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .quote-dramatic__inner {
        animation: none;
    }
}

.quote-dramatic__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-accent);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 173, 127, 0.3);
}

.quote-dramatic__icon svg {
    width: 40px;
    height: 40px;
}

.quote-dramatic__text {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: var(--font-normal);
    font-style: italic;
    color: var(--color-text-inverse);
    line-height: 1.4;
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.quote-dramatic__author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.quote-dramatic__author-line {
    width: 30px;
    height: 1px;
    background: var(--color-accent);
}

.quote-dramatic__author-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

/* Language Card with Flag */
.lang-card-flag {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-background-alt);
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.lang-card-flag::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-accent));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.lang-card-flag:hover::before {
    transform: scaleX(1);
}

.lang-card-flag:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(123, 30, 58, 0.2);
}

.lang-card-flag__icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.lang-card-flag:hover .lang-card-flag__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.lang-card-flag__icon svg,
.lang-card-flag__icon .flag-img {
    width: 54px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.lang-card-flag__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.lang-card-flag__text {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-style: italic;
}

/* Language Showcase - Premium version for Activities page */
.lang-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .lang-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lang-showcase {
        grid-template-columns: 1fr;
    }
}

.lang-showcase__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-background-alt);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-highlight);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.lang-showcase__item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-accent);
}

.lang-showcase__flag {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.lang-showcase__item:hover .lang-showcase__flag {
    transform: scale(1.1);
}

.lang-showcase__flag svg {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.lang-showcase__content {
    flex: 1;
}

.lang-showcase__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.lang-showcase__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Coming soon languages */
.lang-coming-soon {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    padding: var(--space-xl);
    background: var(--color-primary);
    border-radius: var(--radius-lg);
}

.lang-coming-soon__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.lang-coming-soon__item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.lang-coming-soon__item svg {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.lang-coming-soon__item span {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-inverse);
}

/* Coming Soon - Unified version with multi-country flag */
.lang-coming-soon--unified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-2xl);
}

.lang-coming-soon__flag {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.lang-coming-soon__flag .flag-img {
    width: 36px;
    height: 24px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

.lang-coming-soon__languages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-inverse);
}

.lang-coming-soon__separator {
    color: var(--color-accent);
    opacity: 0.6;
}

/* Coming Soon Badge - Homepage */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.coming-soon-badge__flag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.coming-soon-badge__flag .flag-img {
    width: 30px;
    height: 20px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

.coming-soon-badge__text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-inverse);
}

/* Flag images - PNG flags styling */
.flag-img {
    display: block;
    object-fit: cover;
}

/* Language Card - Bordeaux Premium */
.lang-card-bordeaux {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
    background: linear-gradient(135deg, var(--color-highlight) 0%, #5a1528 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.lang-card-bordeaux::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.lang-card-bordeaux:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(123, 30, 58, 0.3);
}

.lang-card-bordeaux__flag {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    overflow: hidden;
}

.lang-card-bordeaux:hover .lang-card-bordeaux__flag {
    transform: rotate(5deg) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.lang-card-bordeaux__flag svg,
.lang-card-bordeaux__flag .flag-img {
    width: 48px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.lang-card-bordeaux__content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.lang-card-bordeaux__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-xs);
}

.lang-card-bordeaux__text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* Icon with bordeaux background */
.card__icon--bordeaux {
    background: linear-gradient(135deg, var(--color-highlight) 0%, #5a1528 100%) !important;
}

/* ==========================================================================
   DECORATIVE PATTERNS & SHAPES
   ========================================================================== */

/* Section with calligraphie background - faded in center */
.section--calligraphie {
    position: relative;
}

.section--calligraphie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/patterns/calligraphie beige fondu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.3) 30%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,1) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.3) 30%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,1) 100%
    );
}

.section--calligraphie > .container {
    position: relative;
    z-index: 1;
}

/* Section with subtle gradient (slightly darker) */
.section--gradient-subtle {
    background: linear-gradient(
        180deg,
        var(--color-background) 0%,
        rgba(230, 225, 215, 1) 100%
    );
}

.section--cream.section--gradient-subtle {
    background: linear-gradient(
        180deg,
        var(--color-background) 0%,
        rgba(235, 228, 215, 1) 100%
    );
}

/* Section with corner decoration (top-right) */
.section--corner-decor {
    position: relative;
    overflow: hidden;
}

.section--corner-decor::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 300px;
    height: 400px;
    background-image: url('../images/patterns/formes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.section--corner-decor:hover::after {
    transform: translate(-10px, 10px);
    opacity: 0.25;
}

.section--corner-decor > .container {
    position: relative;
    z-index: 1;
}

/* Section bleue avec angle décoratif en haut à droite */
.section--dark.section--angle-decor {
    position: relative;
    overflow: hidden;
}

.section--dark.section--angle-decor::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background-image: url('../images/decorations/angle section bleue.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.section--dark.section--angle-decor > .container {
    position: relative;
    z-index: 1;
}

/* Section beige avec décor en bas - ANCIENNE VERSION */
.section--cream.section--footer-decor {
    position: relative;
    padding-bottom: 0;
}

.section--footer-decor__image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: var(--space-3xl);
    pointer-events: none;
}

/* Section "Un institut pour tous" avec cartes qui débordent sur le bandeau beige */
.section--pillars-overlap {
    position: relative;
    padding-top: var(--space-3xl);
    padding-bottom: 40px; /* Réduit pour que les cartes chevauchent le bandeau */
}

.section--pillars-overlap .container {
    position: relative;
    z-index: 2;
}

.section--pillars-overlap .pillars {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

/* Bandeau décoratif en bas de section (derrière les cartes) */
.section-decor-bottom {
    position: absolute;
    bottom: -10px; /* Légèrement en dessous pour déborder */
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.section-decor-bottom img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .section--pillars-overlap {
        padding-bottom: 30px;
    }
}

/* Section separator at bottom */
.section--separator {
    position: relative;
    padding-bottom: calc(var(--space-4xl) + 30px);
}

.section--separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-image: url('../images/patterns/separateur-pied de section.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 2;
}

/* Floating animated shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    transition: transform 0.1s ease-out, filter 0.3s ease;
    will-change: transform, filter;
}

.floating-shape--bleu {
    top: 15%;
    left: -100px;
    width: 200px;
    height: auto;
    opacity: 0.12;
}

.floating-shape--bordeaux {
    top: 50%;
    right: -120px;
    width: 250px;
    height: auto;
    opacity: 0.1;
}

/* Scroll-based blur effect handled by JS */
.floating-shape.is-blurred {
    filter: blur(8px);
}

/* Method Section - Premium Design */
.method-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .method-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .method-showcase {
        grid-template-columns: 1fr;
    }
}

.method-item {
    position: relative;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    transition: all var(--transition-base);
    /* Effet carte visible en permanence */
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.method-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-accent));
    /* Barre visible en permanence */
    transform: scaleX(1);
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.method-item__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-highlight) 0%, #5a1528 100%);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-inverse);
}

.method-item__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.method-item__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-base);
}

.faq-item__question:hover {
    color: var(--color-secondary);
}

.faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.faq-item__icon svg {
    width: 20px;
    height: 20px;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-item__answer p {
    color: var(--color-text-light);
}

/* Form */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    background: var(--color-background-alt);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(26, 63, 144, 0.1);
}

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

/* ==========================================================================
   6. HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: height var(--transition-base);
}

.header.scrolled .header__inner {
    height: var(--header-height-scrolled);
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 60px;
    width: auto;
    transition: all var(--transition-base);
}

/* Logo switching on scroll */
.header__logo-white {
    display: block;
}

.header__logo-dark {
    display: none;
}

.header.scrolled .header__logo-white {
    display: none;
}

.header.scrolled .header__logo-dark {
    display: block;
    height: 45px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) 0;
    transition: color var(--transition-base);
}

.header:not(.scrolled) .nav__link {
    color: var(--color-text-inverse);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link:hover {
    color: var(--color-accent);
}

.header:not(.scrolled) .nav__link:hover {
    color: var(--color-accent);
}

.header__cta .btn {
    padding: var(--space-sm) var(--space-lg);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: calc(var(--z-header) + 10);
}

.menu-toggle__bar {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
    position: relative;
}

.header:not(.scrolled) .menu-toggle__bar {
    background: var(--color-text-inverse);
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: inherit;
    transition: all var(--transition-base);
}

.menu-toggle__bar::before {
    top: -7px;
}

.menu-toggle__bar::after {
    bottom: -7px;
}

.menu-toggle.active .menu-toggle__bar {
    background: transparent;
}

.menu-toggle.active .menu-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-text);
}

.menu-toggle.active .menu-toggle__bar::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--color-text);
}

/* Mobile menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-background-alt);
    padding: var(--space-5xl) var(--space-2xl) var(--space-2xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-header);
    box-shadow: var(--shadow-xl);
}

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

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-nav__link {
    font-size: var(--text-xl);
    font-family: var(--font-heading);
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.mobile-nav__link:hover {
    color: var(--color-accent);
}

.mobile-nav__cta {
    margin-top: var(--space-2xl);
}

.mobile-nav__cta .btn {
    width: 100%;
    justify-content: center;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: calc(var(--z-header) - 1);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.footer {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

/* Container des 3 colonnes (Nav, Langues, Contact) - DESKTOP */
.footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    margin-bottom: var(--space-lg);
}

.footer__logo img {
    height: 50px;
    width: auto;
}

.footer__text {
    font-size: var(--text-sm);
    opacity: 0.8;
    line-height: var(--leading-relaxed);
}

.footer__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-lg);
    color: var(--color-text-inverse);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--text-sm);
    opacity: 0.8;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__link:hover {
    opacity: 1;
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    opacity: 0.8;
}

.footer__contact-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
    opacity: 0.6;
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a:hover {
    opacity: 1;
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__cols {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

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

    .footer__logo {
        margin: 0 auto var(--space-md);
    }
}

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

    .footer__cols {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .footer__brand {
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ==========================================================================
   8. SECTIONS
   ========================================================================== */

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-primary);
    /* Espace fixe pour le header */
    padding-top: 100px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 63, 144, 0.9) 0%,
        rgba(26, 63, 144, 0.7) 50%,
        rgba(123, 30, 58, 0.6) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: var(--space-3xl) var(--container-padding);
    /* Espace en bas pour le bouton Découvrir */
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    .hero__content {
        padding-bottom: 100px;
    }
}

.hero__subtitle {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: var(--text-5xl);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-xl);
    line-height: 1.1;
}

.hero__text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__quote {
    font-family: var(--font-accent);
    font-size: var(--text-3xl);
    color: var(--color-accent);
    margin-bottom: var(--space-2xl);
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-inverse);
    opacity: 0.6;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity var(--transition-base);
}

/* Cacher le bouton Découvrir sur petits écrans - TOUJOURS */
@media (max-width: 900px) {
    .hero__scroll {
        display: none !important;
    }
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: var(--color-highlight);
    opacity: 0.3;
    transform: skewX(-15deg);
}

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

.page-hero__title {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.page-hero__text {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Pillars grid */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Two columns layout */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.two-cols--reverse {
    direction: rtl;
}

.two-cols--reverse > * {
    direction: ltr;
}

.two-cols__content {
    max-width: 500px;
}

.two-cols__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.two-cols__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(123, 30, 58, 0) 0%,
        rgba(123, 30, 58, 0.1) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.two-cols__image:hover::before {
    opacity: 1;
}

.two-cols__image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow), filter var(--transition-base);
    filter: brightness(1) saturate(1);
}

.two-cols__image:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) saturate(1.1);
}

@media (max-width: 1024px) {
    .two-cols {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .two-cols--reverse {
        direction: ltr;
    }

    .two-cols__content {
        max-width: 100%;
    }
}

/* ==========================================================================
   9. PAGES
   ========================================================================== */

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-form {
    background: var(--color-background-alt);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: var(--space-xl) 0;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-info__item:last-child {
    border-bottom: none;
}

.contact-info__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-info__icon svg {
    width: 22px;
    height: 22px;
}

.contact-info__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.contact-info__value {
    font-weight: var(--font-medium);
    color: var(--color-primary);
}

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

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-3xl);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Legal / Mentions Légales */
.page-hero--compact {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.legal-section p {
    color: var(--color-text-light);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.legal-section a:hover {
    color: var(--color-secondary);
}

.legal-list {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.legal-list li {
    position: relative;
    color: var(--color-text-light);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: calc(-1 * var(--space-md));
    color: var(--color-accent);
}

.legal-list li strong {
    color: var(--color-text);
}

.legal-footer {
    text-align: center;
    padding-top: var(--space-2xl);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   10. ANIMATIONS
   ========================================================================== */

/* Animation d'apparition élégante pour le Hero */
.hero__content {
    animation: heroFadeIn 1.2s ease-out forwards;
}

.hero__subtitle {
    opacity: 0;
    animation: heroElementFade 0.8s ease-out 0.2s forwards;
}

.hero__title {
    opacity: 0;
    animation: heroTitleReveal 1s ease-out 0.4s forwards;
}

.hero__text {
    opacity: 0;
    animation: heroElementFade 0.8s ease-out 0.7s forwards;
}

.hero__quote {
    opacity: 0;
    animation: heroElementFade 0.8s ease-out 0.9s forwards;
}

.hero__cta {
    opacity: 0;
    animation: heroElementFade 0.8s ease-out 1.1s forwards;
}

.hero__scroll {
    opacity: 0;
    animation: heroElementFade 0.8s ease-out 1.4s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: 0.1em;
    }
    60% {
        opacity: 1;
        letter-spacing: 0.02em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

/* Réduction du mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .hero__content,
    .hero__subtitle,
    .hero__title,
    .hero__text,
    .hero__quote,
    .hero__cta,
    .hero__scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Transitions hover uniquement pour le reste */
[data-animate],
[data-stagger] > * {
    opacity: 1;
    transform: none;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    z-index: calc(var(--z-header) + 1);
    transition: width 0.1s linear;
}

/* Back to top - Glassmorphism */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transform: rotate(180deg);
}

/* Loading animation */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   11. UTILITIES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mt-4 { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.mb-4 { margin-bottom: var(--space-3xl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
        --header-height-scrolled: 60px;
    }
}

@media (max-width: 640px) {
    :root {
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    .hero {
        min-height: 100svh;
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .scroll-progress {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   CORRECTIF DÉFINITIF - Cacher le bouton "Découvrir" sur petits écrans
   Placé à la fin pour garantir la priorité maximale
   ========================================================================== */
@media (max-width: 900px) {
    .hero__scroll,
    .hero .hero__scroll,
    section.hero .hero__scroll,
    body .hero__scroll {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        animation: none !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* ==========================================================================
   13. OPTIMISATION MOBILE XXL
   Version aggressive pour une meilleure expérience mobile
   NE TOUCHE PAS AU DESKTOP - Tout est dans des media queries
   ========================================================================== */

@media (max-width: 768px) {

    /* --------------------------------------------------------------------------
       TYPOGRAPHIE MOBILE - Tailles réduites
       -------------------------------------------------------------------------- */
    :root {
        /* Réduction des tailles de police pour mobile */
        --text-xs: 0.7rem;
        --text-sm: 0.8rem;
        --text-base: 0.9rem;
        --text-lg: 1rem;
        --text-xl: 1.15rem;
        --text-2xl: 1.35rem;
        --text-3xl: 1.6rem;
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;

        /* Réduction des espacements */
        --space-xl: 1.25rem;
        --space-2xl: 1.75rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
        --space-5xl: 4rem;

        /* Section padding réduit */
        --section-padding-mobile: 2.5rem;
    }

    /* Section padding réduit globalement */
    .section {
        padding: var(--section-padding-mobile) 0;
    }

    .section--lg {
        padding: calc(var(--section-padding-mobile) * 1.3) 0;
    }

    .section--sm {
        padding: calc(var(--section-padding-mobile) * 0.8) 0;
    }

    /* Section header plus compact */
    .section-header {
        margin-bottom: var(--space-xl);
    }

    .section-header__title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-sm);
    }

    .section-header__subtitle {
        font-size: var(--text-xs);
        margin-bottom: var(--space-sm);
    }

    .section-header__text {
        font-size: var(--text-sm);
    }

    /* Divider plus petit */
    .divider {
        width: 40px;
        height: 2px;
        margin: var(--space-sm) auto;
    }

    .divider--left {
        margin: var(--space-sm) 0;
    }

    /* --------------------------------------------------------------------------
       CAROUSEL HORIZONTAL AVEC SWIPE
       Transforme les grilles en carousels sur mobile
       -------------------------------------------------------------------------- */

    /* Container avec scroll horizontal natif */
    .grid--3,
    .grid--4,
    .pillars,
    .method-showcase,
    .lang-showcase {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        gap: var(--space-md) !important;
        padding-bottom: var(--space-md);
        padding-right: 50px !important;
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
        padding-left: var(--container-padding);
    }

    /* Section Ateliers : grille 2x3 au lieu de carousel */
    #ateliers .grid--3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        padding-right: var(--container-padding) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
    }

    #ateliers .grid--3 > * {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #ateliers .grid--3::after {
        display: none !important;
    }

    /* Masquer la scrollbar */
    .grid--3::-webkit-scrollbar,
    .grid--4::-webkit-scrollbar,
    .pillars::-webkit-scrollbar,
    .method-showcase::-webkit-scrollbar,
    .lang-showcase::-webkit-scrollbar {
        display: none;
    }

    /* Chaque élément du carousel */
    .grid--3 > *,
    .grid--4 > *,
    .pillars > *,
    .method-showcase > *,
    .lang-showcase > * {
        flex: 0 0 auto !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        scroll-snap-align: start;
    }

    /* Éléments plus larges pour certaines cartes */
    .grid--3 > .card,
    .grid--4 > .card {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
    }

    .grid--3 > .lang-card-bordeaux,
    .grid--3 > .lang-card-flag {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }

    /* Pillars en carousel */
    .pillars > .pillar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        padding: var(--space-md);
    }

    /* Method items en carousel */
    .method-showcase > .method-item {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        padding: var(--space-md);
    }

    /* --------------------------------------------------------------------------
       INDICATEUR DE SWIPE - FLÈCHE VISIBLE
       -------------------------------------------------------------------------- */

    /* Indicateur de swipe glassmorphism - effet verre dépoli */
    .grid--3::after,
    .grid--4::after,
    .pillars::after,
    .method-showcase::after {
        content: '→' !important;
        position: sticky !important;
        right: 8px !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        color: var(--color-primary) !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        border-radius: 50% !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.1) !important;
        pointer-events: none !important;
        z-index: 100 !important;
        margin-left: auto !important;
    }

    .section--cream .grid--3::after,
    .section--cream .grid--4::after,
    .section--cream .pillars::after,
    .section--cream .method-showcase::after {
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    .section--dark .grid--3::after,
    .section--dark .pillars::after {
        background: rgba(255, 255, 255, 0.15) !important;
        color: white !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1) !important;
    }

    .section--calligraphie .grid--3::after,
    .section--calligraphie .method-showcase::after {
        background: rgba(255, 255, 255, 0.25) !important;
        color: var(--color-primary) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }

    /* --------------------------------------------------------------------------
       CARDS COMPACTES
       -------------------------------------------------------------------------- */

    .card__content {
        padding: var(--space-md);
    }

    .card__title {
        font-size: var(--text-base);
        margin-bottom: var(--space-xs);
    }

    .card__text {
        font-size: var(--text-xs);
    }

    .card__image {
        aspect-ratio: 16/9;
    }

    /* Lang card flag compact */
    .lang-card-flag {
        padding: var(--space-lg) var(--space-md);
    }

    .lang-card-flag__icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-sm);
    }

    .lang-card-flag__icon .flag-img {
        width: 36px !important;
        height: 36px !important;
    }

    .lang-card-flag__title {
        font-size: var(--text-base);
    }

    .lang-card-flag__text {
        font-size: var(--text-xs);
    }

    /* Lang card bordeaux compact */
    .lang-card-bordeaux {
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
    }

    .lang-card-bordeaux__flag {
        width: 55px;
        height: 55px;
    }

    .lang-card-bordeaux__flag .flag-img {
        width: 32px !important;
        height: 32px !important;
    }

    .lang-card-bordeaux__title {
        font-size: var(--text-base);
    }

    .lang-card-bordeaux__text {
        font-size: var(--text-xs);
    }

    /* Pillar compact */
    .pillar {
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .pillar__icon {
        width: 40px;
        height: 40px;
    }

    .pillar__icon svg {
        width: 20px;
        height: 20px;
    }

    .pillar__title {
        font-size: var(--text-sm);
    }

    .pillar__text {
        font-size: var(--text-xs);
    }

    /* Method item compact */
    .method-item {
        padding: var(--space-md);
    }

    .method-item__number {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
        margin-bottom: var(--space-sm);
    }

    .method-item__title {
        font-size: var(--text-sm);
    }

    .method-item__text {
        font-size: var(--text-xs);
    }

    /* --------------------------------------------------------------------------
       TWO COLS - Stack vertical compact + IMAGE EN PREMIER
       -------------------------------------------------------------------------- */

    .two-cols {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }

    /* IMAGE TOUJOURS EN PREMIER SUR MOBILE */
    .two-cols__image {
        order: -1;
        max-height: 200px;
        overflow: hidden;
        border-radius: var(--radius-md);
    }

    .two-cols__image img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    .two-cols__content {
        order: 1;
        max-width: 100%;
    }

    .two-cols__content h2 {
        font-size: var(--text-xl);
    }

    .two-cols__content .lead {
        font-size: var(--text-sm);
    }

    .two-cols__content ul li {
        font-size: var(--text-sm);
    }

    /* Section separator - plus d'espace pour éviter de couper */
    .section--separator {
        padding-bottom: calc(var(--section-padding-mobile) + 40px);
    }

    .section--separator::after {
        height: 35px;
        background-size: auto 100%;
    }

    /* --------------------------------------------------------------------------
       HERO COMPACT
       -------------------------------------------------------------------------- */

    .hero__content {
        padding: var(--space-xl) var(--container-padding);
        padding-bottom: var(--space-2xl);
    }

    .hero__subtitle {
        font-size: var(--text-xs);
        letter-spacing: 0.1em;
        margin-bottom: var(--space-sm);
    }

    .hero__title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-md);
        line-height: 1.15;
    }

    .hero__text {
        font-size: var(--text-sm);
        margin-bottom: var(--space-sm);
    }

    .hero__quote {
        font-size: var(--text-xl);
        margin-bottom: var(--space-lg);
    }

    .hero__cta {
        gap: var(--space-sm);
    }

    .hero__cta .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-xs);
    }

    /* --------------------------------------------------------------------------
       PAGE HERO COMPACT
       -------------------------------------------------------------------------- */

    .page-hero {
        padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    }

    .page-hero__title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-sm);
    }

    .page-hero__text {
        font-size: var(--text-sm);
    }

    /* --------------------------------------------------------------------------
       QUOTE DRAMATIC COMPACT
       -------------------------------------------------------------------------- */

    .quote-dramatic {
        padding: var(--space-2xl) var(--space-md);
    }

    .quote-dramatic__image {
        width: 90%;
        max-width: 400px;
    }

    /* --------------------------------------------------------------------------
       CTA SECTIONS COMPACT
       -------------------------------------------------------------------------- */

    .section .text-center h2 {
        font-size: var(--text-xl);
    }

    .section .text-center .lead {
        font-size: var(--text-sm);
        margin-bottom: var(--space-lg);
    }

    /* --------------------------------------------------------------------------
       FOOTER COMPACT - Nav+Langues centrés, Contact pleine largeur en dessous
       -------------------------------------------------------------------------- */

    .footer {
        padding: var(--space-lg) 0 var(--space-sm);
    }

    .footer__grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        margin-bottom: var(--space-md);
    }

    /* Logo seul, texte caché sur mobile */
    .footer__brand {
        text-align: center;
    }

    .footer__text--desktop {
        display: none;
    }

    .footer__logo {
        margin-bottom: 0;
    }

    .footer__logo img {
        height: 35px;
        width: auto;
        margin: 0 auto;
    }

    /* Grille mobile : Nav + Langues sur 1ère ligne, Contact pleine largeur */
    .footer__cols {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        gap: var(--space-md) !important;
        justify-items: center;
    }

    .footer__col--nav {
        text-align: center;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .footer__col--langues {
        text-align: center;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    /* Contact : pleine largeur sur la 2ème ligne */
    .footer__col--contact {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        text-align: center;
        width: 100%;
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer__col--contact .footer__contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }

    .footer__col--contact .footer__contact-item {
        justify-content: center;
    }

    .footer__title {
        font-size: 0.65rem;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.8;
    }

    .footer__text,
    .footer__link,
    .footer__contact-item {
        font-size: 0.65rem;
        line-height: 1.5;
    }

    .footer__links {
        gap: 0;
    }

    .footer__links li {
        margin-bottom: 2px;
    }

    .footer__link--soon {
        opacity: 0.5;
        font-style: italic;
    }

    .footer__contact-item {
        margin-bottom: 2px;
        gap: 6px;
    }

    .footer__contact-item svg {
        width: 12px;
        height: 12px;
    }

    .footer__bottom {
        font-size: 0.6rem;
        padding-top: var(--space-sm);
        flex-direction: column;
        gap: 4px;
        opacity: 0.7;
    }

    /* --------------------------------------------------------------------------
       MENTIONS LÉGALES COMPACT
       -------------------------------------------------------------------------- */

    .page-hero--compact {
        padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-lg);
    }

    .legal-section {
        margin-bottom: var(--space-xl);
        padding-bottom: var(--space-lg);
    }

    .legal-section h2 {
        font-size: var(--text-base);
        margin-bottom: var(--space-sm);
    }

    .legal-section p {
        font-size: var(--text-xs);
    }

    .legal-list {
        padding-left: var(--space-lg);
    }

    .legal-list li {
        font-size: var(--text-xs);
    }

    /* --------------------------------------------------------------------------
       COMING SOON BADGE COMPACT
       -------------------------------------------------------------------------- */

    .coming-soon-badge {
        padding: var(--space-xs) var(--space-md);
        gap: var(--space-sm);
    }

    .coming-soon-badge__flag .flag-img {
        width: 24px !important;
        height: 24px !important;
    }

    .coming-soon-badge__text {
        font-size: var(--text-xs);
    }

    /* Lang coming soon unified compact */
    .lang-coming-soon--unified {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .lang-coming-soon__flag {
        width: 40px;
        height: 40px;
    }

    .lang-coming-soon__flag .flag-img {
        width: 28px !important;
        height: 28px !important;
    }

    .lang-coming-soon__languages {
        font-size: var(--text-sm);
        justify-content: center;
    }

    /* --------------------------------------------------------------------------
       CONTACT PAGE COMPACT
       -------------------------------------------------------------------------- */

    .contact-form {
        padding: var(--space-lg);
    }

    .form-label {
        font-size: var(--text-xs);
    }

    .form-input,
    .form-textarea {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }

    .contact-info__item {
        padding: var(--space-sm) 0;
    }

    .contact-info__icon {
        width: 40px;
        height: 40px;
    }

    .contact-info__icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-info__label,
    .contact-info__value {
        font-size: var(--text-xs);
    }

    /* Map container compact */
    .map-container {
        height: 250px;
        margin-top: var(--space-xl);
    }

    /* --------------------------------------------------------------------------
       FAQ COMPACT
       -------------------------------------------------------------------------- */

    .faq-item__question {
        padding: var(--space-sm) 0;
        font-size: var(--text-sm);
    }

    .faq-item__answer p {
        font-size: var(--text-xs);
    }

    /* --------------------------------------------------------------------------
       TEAM CARDS COMPACT + MARGE CAROUSEL
       -------------------------------------------------------------------------- */

    /* Marge gauche pour le premier élément du carousel équipe */
    .grid--3 > .team-card:first-child {
        margin-left: var(--space-sm);
    }

    .team-card {
        padding: 0 var(--space-sm);
    }

    .team-card__image {
        width: 150px;
        height: 190px;
        margin-bottom: var(--space-sm);
    }

    .team-card__name {
        font-size: var(--text-base);
    }

    .team-card__role {
        font-size: var(--text-xs);
        margin-bottom: var(--space-sm);
    }

    .team-card__bio {
        font-size: var(--text-xs);
    }

    /* --------------------------------------------------------------------------
       BUTTONS COMPACT
       -------------------------------------------------------------------------- */

    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-xs);
    }

    .btn--lg {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--text-sm);
    }

    .btn__icon svg {
        width: 14px;
        height: 14px;
    }

    /* --------------------------------------------------------------------------
       BADGES COMPACT
       -------------------------------------------------------------------------- */

    .badge {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.65rem;
    }

    /* --------------------------------------------------------------------------
       DECORATIVE ELEMENTS - Réduire/masquer sur mobile
       -------------------------------------------------------------------------- */

    .section--angle-decor::after {
        width: 200px;
        height: 200px;
        opacity: 0.4;
    }

    .section--corner-decor::after {
        width: 150px;
        height: 200px;
        opacity: 0.1;
    }

    /* Section decor bottom (pied de section beige.png) - PLUS GRAND en hauteur, peut être étiré */
    .section-decor-bottom {
        bottom: 0;
        left: 0;
        right: 0;
        overflow: hidden;
    }

    .section-decor-bottom img {
        width: 100%;
        height: 50px;
        display: block;
        object-fit: fill;
    }

    /* Section separator (separateur-pied de section.png) - VISIBLE ENTIÈREMENT, proportions gardées */
    .section--separator::after {
        height: auto;
        min-height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center bottom;
    }

    /* --------------------------------------------------------------------------
       ANIMATIONS RÉDUITES SUR MOBILE
       Pour de meilleures performances
       -------------------------------------------------------------------------- */

    .quote-dramatic__inner {
        animation: none;
    }

    .quote-dramatic__image {
        animation: none;
        opacity: 1;
        transform: none;
    }

}

/* ==========================================================================
   TRÈS PETITS ÉCRANS (moins de 400px)
   ========================================================================== */

@media (max-width: 400px) {

    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.4rem;
        --container-padding: 0.75rem;
    }

    /* Carousel items encore plus petits */
    .grid--3 > *,
    .grid--4 > *,
    .pillars > *,
    .method-showcase > * {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }

    .grid--3 > .card,
    .grid--4 > .card {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    .method-showcase > .method-item {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }

    /* Hero encore plus compact */
    .hero__title {
        font-size: var(--text-2xl);
    }

    .hero__quote {
        font-size: var(--text-lg);
    }

    /* Coming soon languages wrap */
    .lang-coming-soon__languages {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs);
    }

}
