/* ═══════════════════════════════════════════
   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.4rem;
}
.navbar-links a {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    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: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@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; }
}