
/* --- 1. CHARTE GRAPHIQUE --- */
:root {
    --blue: #1e3a8a; /* Bleu Royal */
    --red: #dc2626;  /* Rouge Vif */
    --dark: #0f172a; /* Texte sombre */
    --light: #f8fafc; /* Fond gris très clair */
    --white: #ffffff;
}

/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, .nav-link, .btn { font-family: 'Oswald', sans-serif; text-transform: uppercase; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section { padding: 80px 0; }

/* --- 2. HEADER & NAVIGATION --- */
header {
    background-color: var(--blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: var(--red); }

.nav-menu { display: flex; gap: 30px; list-style: none; }

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--red); }

.cta-nav {
    background-color: var(--red);
    padding: 8px 20px;
    border-radius: 4px;
}
.cta-nav:hover { background-color: #b91c1c; }

/* --- 3. SECTION HERO (L'ACCROCHE) --- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(30, 58, 138, 0.6)),
                url('images/photo3.jpeg'); /* REMPLACER PAR PHOTO ECOLE */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h2 {
    font-family: 'Inter', sans-serif; /* Plus doux pour le sous-titre */
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-transform: none;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}
.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 20px;
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--blue);
}

/* --- 4. IDENTITÉ (VALEURS) --- */
.values-section { background-color: var(--white); }

.section-title {
    text-align: center;
    color: var(--blue);
    font-size: 2.5rem;
    margin-bottom: 60px;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--red);
    margin: 15px auto 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 20px;
}
.value-card i {
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 20px;
}
.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--blue);
}
.value-card p { color: #64748b; }

/* --- 5. CYCLES DE FORMATION --- */
.cycles-section { background-color: var(--light); }

.cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cycle-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.cycle-card:hover { transform: translateY(-5px); }

.cycle-header {
    background-color: var(--blue);
    color: var(--white);
    padding: 20px;
    text-align: center;
}
.cycle-body { padding: 30px; }
.cycle-body ul { list-style: none; margin-top: 15px; }
.cycle-body ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #475569;
}
.cycle-body ul li::before {
    content: "✓";
    color: var(--red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- 6. TECHNIQUE (FOCUS) --- */
.tech-section { background-color: var(--white); border-top: 5px solid var(--red); }

.tech-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-item {
    background-color: var(--light);
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--blue);
    padding: 20px;
    width: 280px;
    transition: 0.3s;
}
.tech-item:hover {
    border-left-color: var(--red);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.tech-code {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--blue);
    font-weight: 700;
}
.tech-name {
    color: #64748b;
    font-weight: 600;
}

/* --- 7. GALERIE --- */
.gallery-section { padding-bottom: 40px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
    background-color: #ddd; /* Placeholder */
}
.gallery-img:hover { opacity: 0.8; }

/* --- 8. FOOTER --- */
footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.footer-info li { list-style: none; margin-bottom: 15px; display: flex; gap: 10px; }
.footer-info i { color: var(--red); margin-top: 5px; }

.copyright {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; height: auto; padding: 20px 0; }
    .nav-menu { flex-direction: column; gap: 15px; text-align: center; margin-top: 20px; display: none; }
    .nav-menu.active { display: flex; } /* Sera activé par JS si besoin */
    .hero h1 { font-size: 2.2rem; }
    .hero { height: auto; padding: 100px 0; }
    .btn-secondary { margin-left: 0; margin-top: 15px; display: block; }
}
