/* =============================================
   LA PETITE ACADEMY - STYLE PRINCIPAL
   Palette extraite du logo officiel
   ============================================= */

:root {
    --navy:       #1E2D6B;   /* Bleu marine (texte logo) */
    --blue:       #3A5BA0;   /* Bleu moyen (accents) */
    --blue-light: #5A7CC0;   /* Bleu clair (hover) */
    --lavender:   #C9A8C8;   /* Mauve/Rose (globe) */
    --green:      #4CAF50;   /* Vert feuille */
    --green-dark: #2E7D32;   /* Vert foncé */
    --brown:      #8B5E3C;   /* Brun (mains) */
    --brown-light:#C49A72;   /* Brun clair */
    --white:      #FFFFFF;
    --off-white:  #F5F7FF;   /* Fond légèrement bleuté */
    --gray-100:   #F0F2F8;
    --gray-200:   #E2E6F0;
    --gray-500:   #8896B0;
    --gray-700:   #4A5568;
    --text:       #2D3748;

    --radius:     12px;
    --radius-lg:  20px;
    --shadow:     0 4px 20px rgba(30,45,107,0.10);
    --shadow-lg:  0 8px 40px rgba(30,45,107,0.16);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   TOP BAR
   ============================ */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--blue);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-admin-link {
    background: var(--green);
    color: white !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    transition: var(--transition);
}
.topbar-admin-link:hover { background: var(--green-dark); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--lavender);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-top {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
}

.brand-bottom {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--off-white); }

.nav-btn-cta {
    background: var(--green);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
    margin-left: 8px;
}
.nav-btn-cta:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

.nav-btn-ent {
    background: var(--navy);
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30,45,107,0.25);
    margin-left: 4px;
    border: 2px solid var(--blue);
}
.nav-btn-ent:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,45,107,0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================
   HERO
   ============================ */
.hero {
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #4A6BB8 100%); /* défaut si pas d'image */
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,168,200,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(76,175,80,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--lavender);
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--green);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(76,175,80,0.4);
    display: inline-block;
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(76,175,80,0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.6);
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-circle {
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: floatLogo 4s ease-in-out infinite;
}

.hero-logo-circle img {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--lavender);
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================
   SECTIONS COMMUNES
   ============================ */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--lavender));
    border-radius: 2px;
    margin: 0 auto 20px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================
   NIVEAUX SCOLAIRES
   ============================ */
.niveaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.niveau-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--blue);
    position: relative;
    overflow: hidden;
}

.niveau-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(30,45,107,0.03));
    opacity: 0;
    transition: var(--transition);
}

.niveau-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.niveau-card:hover::before { opacity: 1; }

.niveau-icone {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.niveau-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.niveau-age {
    display: inline-block;
    background: var(--gray-100);
    color: var(--blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.niveau-desc {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================
   ACTUALITÉS
   ============================ */
.actu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.actu-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.actu-img {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, var(--lavender) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.actu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.actu-card:hover .actu-img img { transform: scale(1.05); }

.actu-img-placeholder {
    font-size: 3rem;
    opacity: 0.7;
}

.actu-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actu-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.actu-cat {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cat-annonce   { background: #EEF2FF; color: var(--blue); }
.cat-evenement { background: #FFF3E0; color: #E65100; }
.cat-resultat  { background: #E8F5E9; color: var(--green-dark); }
.cat-activite  { background: #FCE4EC; color: #C2185B; }

.actu-date {
    color: var(--gray-500);
    font-size: 0.78rem;
}

.actu-body h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.actu-body p {
    color: var(--gray-500);
    font-size: 0.875rem;
    flex: 1;
    line-height: 1.65;
}

.actu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 16px;
    transition: var(--transition);
}
.actu-link:hover { color: var(--navy); gap: 10px; }

/* ============================
   GALERIE
   ============================ */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.galerie-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galerie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,45,107,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.galerie-overlay-text {
    color: white;
    text-align: center;
    padding: 16px;
    font-weight: 600;
}

/* ============================
   POURQUOI NOUS
   ============================ */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(30,45,107,0.25);
}

.why-text h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.why-text p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
}

.why-visual {
    position: relative;
}

.why-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--navy), var(--blue));
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-img-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--green);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.why-img-badge .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.why-img-badge .lbl {
    font-size: 0.78rem;
    opacity: 0.9;
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text strong {
    display: block;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item-text span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.contact-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(58,91,160,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================
   ALERTS & FLASH MESSAGES
   ============================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-success { background: #E8F5E9; color: var(--green-dark); border-color: var(--green); }
.alert-error   { background: #FFEBEE; color: #C62828; border-color: #EF5350; }
.alert-info    { background: #EEF2FF; color: var(--navy); border-color: var(--blue); }

/* ============================
   INSCRIPTION PAGE
   ============================ */
.inscription-hero {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.inscription-hero h1 { color: white; font-size: 2.4rem; }
.inscription-hero p  { color: rgba(255,255,255,0.8); margin-top: 12px; }

.inscription-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: -40px auto 60px;
    position: relative;
    z-index: 2;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--navy);
    border-left: 4px solid var(--green);
    padding-left: 14px;
    margin: 28px 0 16px;
}

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.85); }

.footer-top { padding: 64px 0 40px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(1.2);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition);
    color: white;
}

.social-btn:hover {
    background: var(--green);
    transform: translateY(-3px);
}

.footer-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--lavender); padding-left: 6px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }

.footer-contact-list li {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
}

.footer-icon { font-size: 1rem; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ============================
   PAGE HEADER INTERNE
   ============================ */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 40px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 { color: white; font-size: 2.2rem; }
.page-header p  { color: rgba(255,255,255,0.8); margin-top: 10px; font-size: 1rem; }

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
}

.breadcrumb a { color: var(--lavender); }
.breadcrumb span { opacity: 0.5; }

/* ============================
   PAGINATION
   ============================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    color: var(--navy);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.pagination a:hover { background: var(--blue); color: white; }
.pagination .current { background: var(--navy); color: white; border-color: var(--navy); }

/* ============================
   GROUPES DE NIVEAUX
   ============================ */
.niveau-groupe-header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 8px;
}

.niveau-groupe-badge {
    display: inline-block;
    color: white;
    padding: 8px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ============================
   SECTION PROJETS
   ============================ */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.projet-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-left: 4px solid var(--blue);
}

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

.projet-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--off-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projet-body { flex: 1; }

.projet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.projet-header h3 {
    font-size: 1rem;
    color: var(--navy);
    flex: 1;
}

.projet-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.projet-body p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.projet-progress { }

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 4px;
    transition: width 1.2s ease;
}

/* ============================
   FOOTER DÉVELOPPEUR
   ============================ */
.dev-credit {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 14px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
}

.dev-credit a {
    color: var(--lavender);
    font-weight: 700;
    transition: var(--transition);
}
.dev-credit a:hover { color: white; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 992px) {
    .hero-inner         { grid-template-columns: 1fr; text-align: center; }
    .hero-actions       { justify-content: center; }
    .hero-visual        { display: none; }
    .why-grid           { grid-template-columns: 1fr; }
    .why-visual         { display: none; }
    .contact-grid       { grid-template-columns: 1fr; }
    .footer-grid        { grid-template-columns: 1fr 1fr; }
    .hero-stats         { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }
    .nav-menu.open   { display: flex; }
    .nav-toggle      { display: flex; }
    .navbar-inner    { position: relative; }
    .topbar-right    { display: none; }
    .form-row        { grid-template-columns: 1fr; }
    .footer-grid     { grid-template-columns: 1fr; }
    .hero-stats      { grid-template-columns: 1fr 1fr; }
    .inscription-form-wrap { padding: 28px 20px; }
    .contact-form    { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .niveaux-grid    { grid-template-columns: 1fr; }
    .actu-grid       { grid-template-columns: 1fr; }
    .hero-stats      { grid-template-columns: 1fr; }
}

/* ============================
   BANNIERE BREVET / AEFE
   ============================ */
.brevet-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #FFD600;
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(255,214,0,0.2);
    margin-bottom: 40px;
}

.brevet-banner .trophy { font-size: 2.8rem; animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

.brevet-banner .brevet-text strong {
    display: block;
    color: #FFD600;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.brevet-banner .brevet-text span {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}
