/*
Theme Name: Outils-EPS v2
Theme URI: https://outils-eps.fr
Author: Nathalie Prenois
Author URI: https://outils-eps.fr
Description: Thème personnalisé pour la suite d'applications Outils-EPS
Version: 2.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outils-eps-v2
Domain Path: /languages
Tags: education, eps, responsive, dark-mode
*/

:root {
    /* Couleurs principales */
    --navy: #1B3572;
    --navy-dark: #0E2147;
    --navy-light: #2D4F9E;
    --orange: #E8520A;
    --orange-light: #FF6B2B;
    --orange-pale: #FFF0E8;
    --green: #4CAF50;

    /* Neutres */
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #9DACC1;
    --dark-gray: #3D4A5C;

    /* Spacing system */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-size-body: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-h3: 1.25rem;
    --font-size-h2: 1.75rem;
    --font-size-h1: 2.5rem;

    /* Shadows & Borders */
    --shadow-sm: 0 2px 8px rgba(27,53,114,0.07);
    --shadow-md: 0 8px 24px rgba(27,53,114,0.11);
    --shadow-lg: 0 20px 60px rgba(27,53,114,0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--navy-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── SCROLL PROGRESS ─────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--orange));
    z-index: 2000;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── NAVBAR ──────────────────────────────────── */
nav {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27,53,114,0.08);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255,255,255,0.98);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.nav-logo img {
    height: 54px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-dark);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-cta {
    background: var(--orange) !important;
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 14px rgba(232,82,10,0.25);
}

.nav-cta:hover {
    background: var(--orange-light) !important;
    box-shadow: 0 6px 20px rgba(232,82,10,0.35) !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: var(--spacing-sm);
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    z-index: 999;
    flex-direction: column;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(27,53,114,0.08);
    box-shadow: var(--shadow-sm);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    text-decoration: none;
    color: var(--navy-dark);
    font-size: 1rem;
    font-weight: 600;
    padding: var(--spacing-md);
    border-radius: 10px;
    transition: background 0.2s;
}

.mobile-menu a:hover { background: var(--light-gray); }

/* ── HERO ──────────────────────────── */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

.hero p {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

/* ── GENERAL ──────────────────────────── */
main {
    min-height: 100vh;
}

article {
    padding: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

article h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
    color: var(--navy);
}

article h2 {
    font-size: var(--font-size-h2);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    color: var(--navy-light);
}

article p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    nav {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    article {
        padding: var(--spacing-lg);
    }
}
