/* ═══════════════════════════════════════════
   ENTRE ÉLÈVES — Global Styles
   Typography: Playfair Display + Nunito Sans
   Palette: Blue #1B4965, Gold #D4952A, Warm whites
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&display=swap');

:root {
    --blue: #1B4965;
    --blue-mid: #2E6DA4;
    --blue-light: #3D8CC4;
    --blue-pale: #E6F0F8;
    --blue-wash: #F2F7FB;
    --gold: #D4952A;
    --gold-light: #F5E6CC;
    --gold-wash: #FBF5EC;
    --red: #B5453A;
    --red-light: #FCEAE8;
    --green: #2D8A56;
    --green-light: #E8F5EE;
    --text: #1C1C28;
    --text-secondary: #4A4A5E;
    --text-muted: #7E7E92;
    --bg: #FAFAF7;
    --white: #FFFFFF;
    --border: #E4E4DC;
    --border-light: #F0F0EA;
    --shadow-sm: 0 2px 8px rgba(27,73,101,0.06);
    --shadow-md: 0 8px 30px rgba(27,73,101,0.08);
    --shadow-lg: 0 20px 60px rgba(27,73,101,0.1);
    --shadow-xl: 0 30px 80px rgba(27,73,101,0.12);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══ ICONS (inline SVG utility) ═══ */
.icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

/* ═══ NAVIGATION ═══ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,250,247,0.9);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 74px;
}
.navbar-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.navbar-logo img {
    height: 38px; width: auto;
    border-radius: 4px;
}
.navbar-logo-text {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.01em;
}
.navbar-links {
    display: flex; align-items: center; gap: 0.2rem; flex-wrap: nowrap;
}
.navbar-links a {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    white-space: nowrap;
    transition: all var(--transition);
}
.navbar-links a:hover { color: var(--blue); background: var(--blue-pale); }
.navbar-links a.active { color: var(--blue); background: var(--blue-pale); }
.navbar-cta {
    padding: 10px 24px !important;
    background: var(--blue) !important;
    color: var(--white) !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    transition: all var(--transition) !important;
    box-shadow: 0 2px 8px rgba(27,73,101,0.15);
}
.navbar-cta:hover {
    background: var(--blue-mid) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27,73,101,0.2) !important;
}
.navbar-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: 8px;
    color: var(--text);
    transition: background var(--transition);
}
.navbar-toggle:hover { background: var(--border-light); }
.navbar-toggle svg { width: 22px; height: 22px; stroke-width: 2; }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 99;
    padding: 1.5rem 2rem;
    flex-direction: column; gap: 0.5rem;
    border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    font-size: 1rem; font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--blue-pale); color: var(--blue); }

/* ═══ LAYOUT ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
section { padding: 100px 0; }
.section-header { margin-bottom: 3.5rem; }
.section-label {
    font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin-top: 1rem;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    font-family: var(--sans);
    font-size: 0.92rem; font-weight: 700;
    border-radius: 10px; border: none;
    cursor: pointer; text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
}
.btn-primary {
    background: var(--blue); color: var(--white);
    box-shadow: 0 2px 10px rgba(27,73,101,0.15);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-white {
    background: var(--white); color: var(--blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-white {
    background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-gold {
    background: var(--gold); color: var(--white);
    box-shadow: 0 2px 10px rgba(212,149,42,0.2);
}
.btn-gold:hover { background: #c08825; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ═══ CARDS ═══ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* ═══ IMAGE BLOCKS ═══ */
.img-block {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.img-block img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.6);
    padding: 70px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}
.footer-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 1rem;
}
.footer-brand img { height: 36px; border-radius: 4px; }
.footer-brand span {
    font-family: var(--serif);
    font-size: 1.1rem; font-weight: 700;
    color: var(--white);
}
.footer-desc { font-size: 0.84rem; line-height: 1.75; max-width: 320px; }
.footer-col h4 {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.2rem;
}
.footer-col a {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.86rem; color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-col a svg { width: 14px; height: 14px; opacity: 0.5; }
.footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: rgba(255,255,255,0.35);
}

/* ═══ ANIMATIONS ═══ */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══ PAGE HERO (reusable for sub-pages) ═══ */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--blue-wash) 0%, var(--bg) 100%);
    position: relative;
}
.page-hero-overline {
    font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--gold); margin-bottom: 0.75rem;
}
.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700; color: var(--blue);
    line-height: 1.15; letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.1rem; color: var(--text-secondary);
    line-height: 1.8; max-width: 600px;
}

/* ═══ FORMS ═══ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-size: 0.78rem; font-weight: 700;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--sans); font-size: 0.92rem;
    color: var(--text); background: var(--white);
    outline: none; transition: border-color var(--transition);
    width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-pale);
}
.form-textarea { resize: vertical; min-height: 130px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) {
    .navbar-links a { padding: 7px 10px; font-size: 0.78rem; }
    .navbar-links { gap: 0.1rem; }
    .navbar-cta { padding: 8px 16px !important; font-size: 0.78rem !important; }
}
@media (max-width: 1024px) {
    .navbar-links a { padding: 6px 8px; font-size: 0.74rem; }
    .navbar-cta { padding: 7px 14px !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
}
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
    section { padding: 60px 0; }
    .container, .container-sm { padding: 0 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════
   ENHANCEMENTS — additive only, safe rollback
   Retirer ce bloc = retour total à l'état initial
   ═══════════════════════════════════════════ */

/* Spacing — respire un peu plus entre éléments resserrés */
.section-header { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-subtitle { margin-top: 1.2rem; line-height: 1.85; }
.hero-actions { gap: 16px; margin-top: 0.4rem; }
.btn + .btn { margin-left: 0; }
.card + .card { margin-top: 0; }

/* Smoother page transitions on navigation + button hover */
.btn {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease;
    will-change: transform;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(27,73,101,0.22); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(212,149,42,0.26); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.14); }

/* Shine sweep on primary CTAs */
.btn-primary, .btn-gold, .btn-white {
    position: relative;
    overflow: hidden;
}
.btn-primary::after, .btn-gold::after, .btn-white::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 80%; height: 100%;
    background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,0.22) 50%, transparent 90%);
    transform: skewX(-18deg);
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after, .btn-white:hover::after { left: 120%; }

/* Cards — softer spring hover */
.card, .approach-card, .action-card, .don-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
    will-change: transform;
}
.approach-card:hover, .action-card:hover, .don-card:hover {
    transform: translateY(-6px);
}

/* Stat number hover — subtle scale */
.stat-item { transition: background 0.35s ease; }
.stat-num { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-block; }
.stat-item:hover .stat-num { transform: scale(1.06); }

/* Pulsing dot on hero badge */
@keyframes eeDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,149,42,0.6); }
    50% { box-shadow: 0 0 0 8px rgba(212,149,42,0); }
}
.hero-badge-dot { animation: eeDotPulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Softer reveal easing (existing .reveal class gets better motion) */
.reveal {
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Link underline hover for footer + inline links */
.footer-col a, .mission-text a {
    transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a:hover { transform: translateX(3px); }

/* Navbar link subtle underline slide */
.navbar-links a {
    position: relative;
}
.navbar-links a:not(.navbar-cta)::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 1.5px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar-links a:not(.navbar-cta):hover::after,
.navbar-links a.active:not(.navbar-cta)::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Images — subtle zoom on hover inside img-block/mission-img */
.img-block img, .mission-img img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.img-block:hover img, .mission-img:hover img {
    transform: scale(1.04);
}

/* ═══════════════════════════════════════════
   SPACING NORMALIZATION — consistent across all pages
   Overrides inline padding-top hacks with uniform values
   ═══════════════════════════════════════════ */

/* After page-hero, first section always gets same breathing room */
.page-hero + section { padding-top: 40px !important; }

/* Regular section spacing — uniform */
section { padding: clamp(70px, 8vw, 100px) 0; }

/* Section-header spacing — uniform across all pages */
.section-header { margin-bottom: clamp(2rem, 3.5vw, 3.5rem); }
.section-title { margin-bottom: 0; }
.section-subtitle { margin-top: 1rem; }

/* Page hero bottom spacing */
.page-hero { padding-bottom: clamp(60px, 7vw, 80px); }

/* Footer top margin — consistent gap before footer */
.site-footer { margin-top: 0; }

/* Card grids — uniform gap */
.approach-grid, .impact-grid, .don-options { gap: clamp(20px, 2.5vw, 28px); }

/* Form sections — consistent top spacing */
.contact-grid, .contact-form { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Mobile adjustments */
@media (max-width: 768px) {
    section { padding: clamp(48px, 6vw, 64px) 0 !important; }
    .page-hero + section { padding-top: 28px !important; }
    .page-hero { padding-bottom: 48px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}