/* =====================================================
   LES PTITES POUSSES - CRÈCHE PARENTALE
   Design System & Styles
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES (Design Tokens)
   ===================================================== */
:root {
    /* Colors - Extracted from logo */
    --color-brown: #6B4423;
    --color-brown-light: #8B6344;
    --color-brown-dark: #4A2F18;

    --color-green-dark: #4A7C23;
    --color-green: #5D9428;
    --color-green-light: #8BC34A;
    --color-green-pale: #C5E1A5;

    --color-orange: #E67E22;
    --color-orange-light: #F39C4D;

    --color-yellow: #F4D03F;
    --color-yellow-light: #FCF3CF;

    --color-pink: #C2185B;
    --color-pink-light: #E91E8C;

    /* Neutral Colors */
    --color-cream: #FDF8F0;
    --color-cream-dark: #F5EDE0;
    --color-white: #FFFFFF;
    --color-gray-100: #F7F7F7;
    --color-gray-200: #E5E5E5;
    --color-gray-300: #D4D4D4;
    --color-gray-400: #A3A3A3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;

    /* Semantic Colors */
    --color-primary: var(--color-green-dark);
    --color-primary-light: var(--color-green-light);
    --color-secondary: var(--color-orange);
    --color-accent: var(--color-brown);
    --color-background: var(--color-cream);
    --color-surface: var(--color-white);
    --color-text: var(--color-gray-800);
    --color-text-light: var(--color-gray-600);
    --color-text-muted: var(--color-gray-500);

    /* Typography */
    --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --container-max: 1200px;
    --navbar-height: 72px;
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {
    font-size: var(--text-5xl);
}

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

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

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

ul,
ol {
    list-style: none;
}

/* =====================================================
   3. UTILITIES
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--color-green-pale), var(--color-yellow-light));
    color: var(--color-green-dark);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-intro {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 4px 14px rgba(74, 124, 35, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 20px rgba(74, 124, 35, 0.5);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-green-dark);
    border: 2px solid var(--color-green-dark);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   4. NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    gap: var(--space-4);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.navbar-logo-img {
    height: 58px;
    width: auto;
}

.navbar-logo-text {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--color-brown);
    white-space: nowrap;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

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

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-brown);
    left: 0;
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.navbar-toggle.active .hamburger {
    background: transparent;
}

.navbar-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* navbar-menu prend tout l'espace restant après le logo */
.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

/* Les liens principaux s'étirent et se centrent */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.navbar-links li {
    display: flex;
    align-items: center;
}

.navbar-link {
    padding: var(--space-2) 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-green-dark);
    background: var(--color-green-pale);
}

/* Boutons d'action — collés à droite */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.navbar-link-cta {
    background: var(--color-green-dark);
    color: var(--color-white) !important;
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) 1.1rem;
}

.navbar-link-cta:hover {
    background: var(--color-green);
    color: var(--color-white) !important;
}

.navbar-link-famille {
    background: var(--color-brown);
    color: var(--color-white) !important;
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) 1.1rem;
}

.navbar-link-famille:hover {
    background: var(--color-brown-light);
    color: var(--color-white) !important;
}

/* =====================================================
   5. HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    height: 780px;
    /* Augmenté de 30% (600px -> 780px) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--navbar-height);
    padding-bottom: 8rem;
    overflow: hidden;
}

.leaves-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-logo {
    width: 460px;
    /* Agrandi de 20% (384px -> 460px) */
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.15));
    animation: pulse 3s ease-in-out infinite;
    display: block;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 50%, var(--color-yellow-light) 100%);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--color-green-pale), transparent 70%);
    top: 5%;
    right: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--color-yellow-light), transparent 70%);
    bottom: 10%;
    left: -4%;
    animation-delay: -3s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--color-orange-light), transparent 70%);
    top: 55%;
    right: 8%;
    animation-delay: -5s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--color-green-pale), transparent 70%);
    top: 20%;
    left: 15%;
    animation-delay: -2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-18px) rotate(4deg) scale(1.05);
    }

    66% {
        transform: translateY(8px) rotate(-2deg) scale(0.97);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
}

.hero-logo-wrapper {
    margin-bottom: var(--space-6);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--color-brown), var(--color-brown-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-green-dark);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.hero-tagline {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto var(--space-10);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero-cta {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

.hero-cta-alt {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
    background: transparent;
    border: 2px solid var(--color-green-dark);
    color: var(--color-green-dark);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.hero-cta-alt:hover {
    background: var(--color-green-dark);
    color: white;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    z-index: 3;
    font-size: var(--text-sm);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {

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

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Galerie Styles */
.section-galerie {
    background-color: var(--color-white);
}

/* Familiarisation Section - Reduced Size */
.familiarisation-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    /* Réduction de la place de l'image */
    background: #fdfaf5;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: var(--space-12) auto;
    /* Centrage */
    max-width: 1000px;
    /* Réduction de la largeur globale */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.familiarisation-image-box {
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    /* Clip nécessaire pour l'effet zoom hover */
}

/* État initial : cachée à gauche */
.familiarisation-image-box {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Déclenchée par IntersectionObserver */
.familiarisation-image-box.fami-visible {
    opacity: 1;
    transform: translateX(0);
}

.fami-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    animation: fami-float 5s ease-in-out infinite;
}

.familiarisation-image-box:hover .fami-img {
    transform: scale(1.06);
    filter: brightness(1.05);
    animation-play-state: paused;
}

@keyframes fami-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-8px) scale(1.02); }
}

.familiarisation-content-box {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    margin: 0;
}

.familiarisation-title {
    font-size: var(--text-3xl);
    color: var(--color-brown);
    margin-bottom: var(--space-6);
    /* Harmonisé */
    position: relative;
    text-align: left;
}

.info-note {
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 600;
}

.familiarisation-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
    width: 60px;
    height: 4px;
    background: var(--color-orange);
    border-radius: var(--radius-full);
}

.intro-p {
    font-size: 1.05rem;
    /* Harmonisé */
    line-height: 1.6;
    color: var(--color-brown-dark);
    margin-bottom: var(--space-3);
    /* Harmonisé */
    font-weight: 500;
    text-align: left;
}

.familiarisation-content-box p {
    font-size: 0.92rem;
    /* Harmonisé */
    color: var(--color-text-light);
    line-height: 1.6;
    /* Harmonisé */
    margin-bottom: var(--space-2);
    /* Harmonisé */
}

.familiarisation-content-box {
    padding: var(--space-8);
    /* Harmonisé */
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    margin: 0;
}

/* Projet Summary Section */
.projet-summary-section {
    margin: var(--space-16) auto;
    max-width: 900px;
    /* Ajusté pour texte seul */
}

.summary-box {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    padding: var(--space-10);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--color-orange-light);
    box-shadow: var(--shadow-xl);
}

.summary-intro {
    font-size: 1.15rem;
    color: var(--color-brown-dark);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    /* Centré */
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--color-orange-light);
    /* Séparateur élégant */
}

.summary-highlights h3 {
    font-size: 1.4rem;
    color: var(--color-brown);
    margin-bottom: var(--space-8);
    text-align: center;
}

.highlights-list {
    list-style: none;
    padding: 0;
    display: grid;
    /* Retour en grille de texte */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    /* Aligné en haut pour la cohérence */
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-normal);
}

.highlights-list li:hover {
    transform: translateY(-5px);
    border-color: var(--color-orange-light);
    background: var(--color-orange-light);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    font-size: 1.5rem;
    background: white;
    width: 44px;
    height: 44px;
    min-width: 44px;
    /* Empêcher le rétrécissement */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: -2px;
    /* Ajustement fin pour alignement texte */
}

.highlight-text {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.4;
}

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

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

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

    .familiarisation-image-box {
        min-height: 300px;
    }

    .familiarisation-content-box {
        padding: var(--space-8);
    }
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galerie-item:hover img {
    transform: scale(1.08);
}

.galerie-wide {
    grid-column: span 2;
}

.galerie-tall {
    grid-row: span 2;
}

.galerie-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galerie-item:hover .galerie-caption {
    opacity: 1;
}

@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .galerie-wide {
        grid-column: span 1;
    }
}

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

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.presentation-card {
    background: var(--color-cream);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.presentation-card-large {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentation-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.presentation-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-white);
}

.presentation-card h3 {
    margin-bottom: var(--space-4);
}

.presentation-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.value-card {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    transition: all var(--transition-base);
}

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

.value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.value-icon-green {
    background: var(--color-green-pale);
}

.value-icon-green svg {
    stroke: var(--color-green-dark);
}

.value-icon-orange {
    background: rgba(230, 126, 34, 0.15);
}

.value-icon-orange svg {
    stroke: var(--color-orange);
}

.value-icon-brown {
    background: rgba(107, 68, 35, 0.1);
}

.value-icon-brown svg {
    stroke: var(--color-brown);
}

.value-card h4 {
    margin-bottom: var(--space-1);
    color: var(--color-gray-800);
}

.value-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Co-éducation block */
.presentation-coeducation {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    color: var(--color-white);
}

.coeducation-content {
    flex: 1;
}

.coeducation-content h3 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.coeducation-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    margin-bottom: 0;
}

.coeducation-illustration {
    flex-shrink: 0;
}

.coeducation-logo-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: var(--space-3);
    object-fit: contain;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* =====================================================
   7. PROJET SECTION
   ===================================================== */
.section-projet {
    background: var(--color-cream);
}

/* Highlight block */
.projet-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-10);
}

.projet-highlight-content {
    flex: 1;
}

.projet-highlight-content h3 {
    margin-bottom: var(--space-4);
}

.projet-highlight-content p:last-child {
    margin-bottom: 0;
}

.projet-highlight-visual {
    flex-shrink: 0;
}

.child-illustration {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--color-yellow-light), var(--color-orange-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.emoji-large {
    font-size: 4rem;
}

.sparkles {
    position: absolute;
    inset: 0;
}

.sparkles span {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkles span:nth-child(1) {
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.sparkles span:nth-child(2) {
    top: 0;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkles span:nth-child(3) {
    bottom: 10%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes sparkle {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Parents block */
.projet-parents {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-orange);
    margin-bottom: var(--space-12);
}

.parents-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parents-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-orange);
}

.parents-content h3 {
    margin-bottom: var(--space-3);
}

.parents-content p:last-child {
    margin-bottom: 0;
}

/* Journée type */
.journee-type {
    margin-bottom: var(--space-12);
}

.journee-type h3 {
    text-align: center;
    margin-bottom: var(--space-10);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-green-dark);
    background: var(--color-green-pale);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: var(--space-4);
}

.timeline-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-4);
    background-image: url('../images/routine_composite.jpg');
    background-size: 300% 200%;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-cream);
    box-shadow: var(--shadow-sm);
}

.routine-icon-1 {
    background-position: 0% 0%;
}

.routine-icon-2 {
    background-position: 50% 0%;
}

.routine-icon-3 {
    background-position: 100% 0%;
}

.routine-icon-4 {
    background-position: 0% 100%;
}

.routine-icon-5 {
    background-position: 50% 100%;
}

.routine-icon-6 {
    background-position: 100% 100%;
}

.timeline-content h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
    color: var(--color-gray-800);
}

.timeline-content p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ── Timeline interactive journée ─────────────────────── */
.journee-header {
    text-align: center;
    margin-bottom: var(--space-12);
}
.journee-title {
    font-size: var(--text-3xl);
    color: var(--color-gray-800);
    margin: var(--space-3) 0 var(--space-2);
}
.journee-subtitle {
    color: var(--color-text-light);
    font-size: var(--text-base);
}
.jtl-wrapper {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
}
.jtl-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    background: #e8f0e0;
    border-radius: 4px;
    overflow: hidden;
}
.jtl-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #4A7C23, #6BAE3A);
    border-radius: 4px;
    transition: height 0.4s ease;
}
.jtl-items {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.jtl-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}
.jtl-item:nth-child(odd)  { flex-direction: row; }
.jtl-item:nth-child(even) { flex-direction: row-reverse; }
.jtl-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dot-color, #4A7C23);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--dot-color, #4A7C23), 0 4px 12px rgba(0,0,0,0.15);
    position: absolute;
    left: 50%;
    top: 1.4rem;
    transform: translateX(-50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 2;
}
.jtl-item.jtl-visible .jtl-dot {
    transform: translateX(-50%) scale(1);
}
/* Carte */
.jtl-card {
    width: calc(50% - 2.5rem);
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    border-top: 4px solid var(--card-accent, #4A7C23);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s, box-shadow 0.3s ease;
}
.jtl-item.jtl-visible .jtl-card {
    opacity: 1;
    transform: translateY(0);
}
.jtl-item:nth-child(odd)  .jtl-card { margin-left: auto; }
.jtl-item:nth-child(even) .jtl-card { margin-right: auto; }
.jtl-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}
.jtl-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.jtl-time {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--card-accent, #4A7C23);
    background: rgba(74,124,35,0.1);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}
.jtl-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3a2e;
    margin: 0 0 0.5rem;
}
.jtl-desc {
    font-size: 0.9rem;
    color: #6b7b6c;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 640px) {
    .jtl-line { left: 1rem; }
    .jtl-item { flex-direction: column; padding-left: 2.5rem; gap: 0.75rem; }
    .jtl-dot  { left: 1rem; top: 0.8rem; }
    .jtl-card { width: 100%; }
}

/* Axes pédagogiques */
.axes-pedagogiques h3 {
    text-align: center;
    margin-bottom: var(--space-10);
}

.axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.axe-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

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

.axe-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}

.axe-icon svg {
    width: 32px;
    height: 32px;
}

.axe-icon-1 {
    background: var(--color-green-pale);
}

.axe-icon-1 svg {
    stroke: var(--color-green-dark);
}

.axe-icon-2 {
    background: rgba(230, 126, 34, 0.15);
}

.axe-icon-2 svg {
    stroke: var(--color-orange);
}

.axe-icon-3 {
    background: var(--color-yellow-light);
}

.axe-icon-3 svg {
    stroke: var(--color-orange);
}

.axe-icon-4 {
    background: rgba(107, 68, 35, 0.1);
}

.axe-icon-4 svg {
    stroke: var(--color-brown);
}

.axe-card h4 {
    color: var(--color-gray-800);
    margin-bottom: var(--space-3);
}

.axe-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Download block */
.projet-download {
    display: flex;
    justify-content: center;
}

.download-card {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    background: var(--color-white);
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--color-green-pale);
}

.download-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--color-green-pale);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-green-dark);
}

.download-content h4 {
    color: var(--color-gray-800);
    margin-bottom: var(--space-1);
}

.download-content p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* =====================================================
   8. ORGANISATION SECTION
   ===================================================== */
.section-organisation {
    background: var(--color-white);
}

.organigramme {
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.org-level {
    display: flex;
    justify-content: center;
}

.org-connector {
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: var(--color-gray-300);
}

.org-card {
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 500px;
}

.org-card-header {
    background: linear-gradient(135deg, var(--color-brown), var(--color-brown-light));
    color: var(--color-white);
    padding: var(--space-4) var(--space-6);
}

.org-card-direction .org-card-header {
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
}

.org-card-team .org-card-header {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
}

.org-badge {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.org-card-header h4 {
    color: var(--color-white);
    font-size: var(--text-base);
    margin-top: var(--space-1);
}

.org-card-body {
    padding: var(--space-6);
}

.org-role {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.org-role:last-child {
    border-bottom: none;
}

.role-title {
    font-weight: 600;
    color: var(--color-gray-700);
}

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

.org-member {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.member-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 600;
    color: var(--color-gray-800);
}

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

.team-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Parents implication */
.parents-implication {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    background: var(--color-cream);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
}

.implication-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--color-green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.implication-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-green-dark);
}

.implication-content h3 {
    margin-bottom: var(--space-4);
}

.implication-content>p {
    color: var(--color-text-light);
}

.implication-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.implication-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.list-icon {
    width: 24px;
    height: 24px;
    background: var(--color-green-dark);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

/* =====================================================
   9. INFOS SECTION
   ===================================================== */
.section-infos {
    background: var(--color-cream);
}

.infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.info-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-green-pale), var(--color-yellow-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}

.info-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-green-dark);
}

.info-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--color-gray-800);
}

.info-card p {
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
}

.info-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

.info-link {
    color: var(--color-green-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

.info-link:hover {
    color: var(--color-green);
}

/* Map */
.map-container {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    padding: var(--space-20) var(--space-12);
    text-align: center;
    background: linear-gradient(rgba(253, 250, 245, 0.8), rgba(253, 250, 245, 0.8)),
        url('../images/map-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-icon {
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-md);
}

.map-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-green-dark);
}

.map-placeholder p {
    font-size: var(--text-lg);
    color: var(--color-gray-700);
    margin-bottom: var(--space-6);
}

/* =====================================================
   10. FOOTER
   ===================================================== */
.footer {
    background: linear-gradient(135deg, var(--color-brown-dark), var(--color-brown));
    color: var(--color-white);
    padding-top: var(--space-16);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    margin-bottom: 0;
}

.footer-contact h3,
.footer-links h3 {
    color: var(--color-white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.contact-list svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: var(--color-green-light);
}

.contact-list a,
.contact-list span {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.contact-list a:hover {
    color: var(--color-green-light);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: var(--space-2);
}

/* Réseaux sociaux footer */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-social h3 {
    color: #fff;
}
.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}
.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
/* Couleur officielle Facebook #1877F2 */
.social-btn-fb {
    background: #1877F2;
}
/* Gradient officiel Instagram */
.social-btn-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   11. RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
    }

    .presentation-grid {
        grid-template-columns: 1fr;
    }

    .presentation-coeducation {
        flex-direction: column;
        text-align: center;
    }

    .projet-highlight {
        flex-direction: column;
        text-align: center;
    }

    .projet-parents {
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--space-4);
    }
}

/* Navbar hamburger — s'active dès 1150px pour éviter le wrap */
@media (max-width: 1150px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .navbar-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-links {
        flex-direction: column;
        gap: var(--space-1);
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
        padding-top: var(--space-2);
        border-top: 1px solid var(--color-gray-100);
    }

    .navbar-link {
        width: 100%;
        text-align: center;
        padding: var(--space-3) var(--space-4);
    }

    .navbar-link-cta,
    .navbar-link-famille {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2rem;
        --text-6xl: 2.25rem;
        --navbar-height: 64px;
    }

    .hero-logo {
        width: 140px;
    }

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

    .hero-tagline {
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }

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

    .section-header {
        margin-bottom: var(--space-10);
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .parents-implication {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }

    .implication-icon {
        margin: 0 auto;
    }

    .implication-list {
        text-align: left;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .implication-list li {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .list-icon {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--space-4);
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero-logo {
        width: 120px;
    }

    .hero-cta {
        width: 100%;
        padding: var(--space-4) var(--space-6);
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .axes-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SECTION ARTICLES — Vie de la crèche
   ===================================================== */
.section-articles {
    background: var(--color-white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.article-card {
    background: var(--color-cream);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--color-cream-dark);
}

.article-card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.article-card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.article-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-badge-vie      { background: rgba(74,124,35,0.12); color: var(--color-green-dark); }
.article-badge-evenement{ background: rgba(230,126,34,0.12); color: var(--color-orange); }
.article-badge-pedagogie{ background: rgba(49,130,206,0.12); color: #3182CE; }
.article-badge-sortie   { background: rgba(128,90,213,0.12); color: #805AD5; }
.article-badge-parents  { background: rgba(107,68,35,0.12); color: var(--color-brown); }

.article-date {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-brown);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.article-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    margin-top: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-read-more {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-green-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition-fast);
}
.article-card:hover .article-read-more { gap: 0.55rem; }

.article-read-time {
    font-size: 0.72rem;
    color: var(--color-gray-400);
}

/* Modal article */
.article-modal-ov {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 900;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}
.article-modal-ov.show { display: flex; }

.article-modal {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 720px;
    margin: auto;
    overflow: hidden;
}

.article-modal-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: var(--color-cream-dark);
}

.article-modal-img-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.article-modal-content {
    padding: 2rem;
}

.article-modal-close {
    float: right;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gray-500);
    border: none;
    margin-left: 1rem;
    flex-shrink: 0;
}
.article-modal-close:hover { background: var(--color-gray-200); }
.article-modal-close svg { width: 14px; height: 14px; }

.article-modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-brown);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    clear: right;
}

.article-modal-body {
    font-size: 0.92rem;
    color: var(--color-gray-700);
    line-height: 1.8;
    white-space: pre-line;
    margin-top: 1rem;
}

/* Articles vide */
.articles-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-modal-content { padding: 1.25rem; }
    .article-modal-title { font-size: 1.25rem; }
}

/* ─── Lightbox ─────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}
.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: lb-in 0.22s ease;
}
@keyframes lb-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    display: block;
}
.lightbox-caption {
    margin-top: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.85;
}
.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.28); }
/* =====================================================
   OPTIMISATIONS MOBILE — responsive complet
   ===================================================== */

/* Viewport overflow global */
html, body { overflow-x: hidden; }

/* ── Tablette (≤ 992px) ──────────────────────────── */
@media (max-width: 992px) {
    .hero { height: auto; min-height: 620px; padding-bottom: 4rem; }
    .hero-logo { width: 320px; }
    .org-roles-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .familiarisation-img { min-height: 240px !important; }
}

/* ── Mobile (≤ 768px) ────────────────────────────── */
@media (max-width: 768px) {
    /* Hero */
    .hero { height: auto; min-height: 520px; padding-bottom: 3rem; padding-top: calc(var(--navbar-height) + 1rem); }
    .hero-logo { width: 200px; }
    .hero-title { font-size: 1.75rem !important; }
    .hero-tagline { font-size: 0.95rem !important; }
    .hero-cta-group { flex-direction: column; align-items: center; gap: 0.75rem; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .hero-scroll { margin-top: 1.5rem; }

    /* Shapes décoratives — réduites */
    .shape-1 { width: 180px; height: 180px; }
    .shape-2 { width: 130px; height: 130px; }
    .shape-3 { width: 90px;  height: 90px; }
    .shape-4 { width: 60px;  height: 60px; }

    /* Navbar logo */
    .navbar-logo-text { font-size: 1rem; }

    /* Sections */
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.6rem; }

    /* Organigramme */
    .org-counters { flex-direction: column; align-items: center; }
    .org-counter-card { max-width: 100%; width: 100%; }
    .org-roles-grid { grid-template-columns: 1fr !important; }

    /* Galerie */
    .galerie-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .galerie-wide { grid-column: span 2; }
    .galerie-tall { grid-row: span 1; }

    /* Infos pratiques */
    .infos-grid { grid-template-columns: 1fr; }

    /* Projet pédagogique */
    .familiarisation-grid { grid-template-columns: 1fr !important; }
    .familiarisation-img { min-height: 200px !important; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0 !important; }

    /* Footer */
    .footer-social { flex-direction: column; align-items: center; }

    /* Contact page */
    .contact-grid { grid-template-columns: 1fr !important; }

    /* Timeline journée */
    .jtl-item { flex-direction: column !important; }
    .jtl-side-photo, .jtl-card { width: 100% !important; }
    .jtl-dot-col { display: none; }
}

/* ── Petit mobile (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
    .hero { min-height: 460px; }
    .hero-logo { width: 160px; }
    .hero-title { font-size: 1.5rem !important; }
    .hero-tagline { font-size: 0.88rem !important; }

    /* Shapes masquées sur très petit écran */
    .shape-1, .shape-2 { display: none; }

    /* Navbar */
    .navbar-logo-text { font-size: 0.9rem; }
    .navbar-logo-img { height: 32px; }

    /* Organigramme bureau */
    .org-card-body { padding: 1rem !important; }
    .org-role { flex-direction: column; gap: 0.15rem; }
    .role-name { font-size: 0.85rem; }

    /* Galerie 1 colonne */
    .galerie-grid { grid-template-columns: 1fr !important; }
    .galerie-wide { grid-column: span 1; }

    /* Boutons CTA hero */
    .hero-cta-group .btn { font-size: 0.9rem; padding: 0.8rem 1.2rem; }

    /* Articles */
    .articles-grid { grid-template-columns: 1fr !important; }

    /* Section headers */
    .section-title { font-size: 1.35rem; }
    .section-subtitle { font-size: 0.88rem; }

    /* Footer social */
    .social-btn { width: 100%; justify-content: center; }
}
