/* Style global */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 2rem;
    background: #020617;          /* bleu très foncé / presque noir */
    border-bottom: 1px solid #1f2937;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.logo-mark {
    background: #f97316;
    color: #111827;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e5e7eb;
}

.logo-subtitle {
    margin-left: 0.6rem;
    font-size: 0.95rem;   /* avant: 0.8rem → on augmente */
    color: #e5e7eb;       /* plus clair et lisible sur fond sombre */
    white-space: nowrap;
}

/* Navigation principale */
.main-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    margin-left: 0.75rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
}

.main-nav a:hover {
    background: #111827;
}

.main-nav a.active {
    border-color: #f97316;
    color: #f97316;
}

/* Conteneur principal */
.container {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 1.5rem auto 3rem auto;
    padding: 1.25rem 1.5rem;

    /* Cadre clair autour du hero + carte */
    background: #f9fafb;          /* clair (presque blanc) */
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;

    /* IMPORTANT : texte foncé dans tout le hero */
    color: #0f172a;
}

.hero-content {
    flex: 1.2;
    min-width: 0;
}

.hero-content h1 {
    font-size: 2.1rem;
    margin: 0 0 0.5rem 0;
    color: #f9fafb;     /* blanc cassé, bien lisible */
}

.hero-text h1 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    font-weight: 800;
    color: #0f172a;   /* bien foncé */
}

.hero-subtitle {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 520px;
    color: #4b5563;   /* gris foncé, très lisible sur fond clair */
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #f97316;
    color: #111827;
    border-color: #ea580c;
}

.btn-primary:hover {
    background: #ea580c;
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border-color: #111827;
}

.btn-secondary:hover {
    background: #020617;
}

/* Colonne droite du hero */
.hero-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Carte Objectifs */

.hero-card {
    max-width: 340px;
    width: 100%;
    background: #0b1120;          /* légèrement plus clair que le hero */
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border: 1px solid #1f2937;    /* bord discret mais visible */
    color: #e5e7eb;
}
.hero-card h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #f9fafb;               /* titre “Ce que tu trouves ici” */
}

.hero-card-intro {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e5e7eb;
}

.hero-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.hero-card li {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 0.3rem;
    color: #d1d5db;
}

/* ===== Grille des chapitres ===== */

.levels {
    margin-top: 2.5rem;
}

.levels h2 {
    margin-bottom: 1rem;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Cartes de niveau (Seconde, Première, etc.) */
.level-card {
    background: #020617;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.level-title {
    font-size: 1rem;
    font-weight: 600;
}

.level-badge {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #111827;
    color: #9ca3af;
    border: 1px solid #1f2937;
}

.level-body {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.level-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chip-link {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #111827;
    color: #9ca3af;
    text-decoration: none;
    border: 1px solid #1f2937;
}

.chip-link:hover {
    color: #e5e7eb;
    border-color: #f97316;
}

.level-status {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ===== Pied de page ===== */
.site-footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #1f2937;
    font-size: 0.85rem;
    color: #9ca3af;
}

.site-footer {
    margin-top: 3rem;
    padding: 1rem 0 2rem;
    border-top: 1px solid #4b5563;   /* plus clair et plus visible */
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* ===== Responsive ===== */

@media (max-width: 800px) {
    .site-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .logo {
        margin-bottom: 0.5rem;
    }
    .logo-subtitle {
        display: none;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-side {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-card {
        max-width: 100%;
    }

    .level-grid {
        grid-template-columns: 1fr;
    }
}

.chapitres-titre {
    text-align: center;
    margin-top: 0.5rem;       /* petit espace au-dessus → il monte vers le cadre blanc */
    margin-bottom: 2.5rem;  /* plus d'espace vers les chapitres en bas */
    font-size: 1.6rem;
    font-weight: 700;
    color: #f9fafb;
}

/* Cadre bleu pour Cours du chapitre (lecture), Exercices du chapitre (lecture), etc. */
.chapter-pill--blue {
    background: #3b82f6;          /* bleu principal du cadre */
    border: 1px solid #93c5fd;    /* bordure plus claire, bien visible */
    color: #0f172a;               /* texte foncé pour bonne lisibilité */
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
}

.chapter-pill--blue:hover {
    background: #2563eb;
}
/* Forcer le style des petits cadres de lecture */
.chapter-pill--blue,
.chapter-course {
    background: #3b82f6 !important;      /* fond bleu lisible */
    border: 1px solid #93c5fd !important;/* bordure plus claire, bien visible */
    color: #0f172a !important;           /* texte foncé pour bien lire */
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
}
.premium-banner {
    max-width: 1100px;
    margin: 3rem auto 0 auto;
    padding: 1.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #facc15; /* jaune */
    background: rgba(250, 204, 21, 0.08);
    color: #fef9c3;
    text-align: center;
}

.premium-banner h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.premium-banner p {
    margin: 0 0 1rem 0;
    font-size: 0.98rem;
}

.btn-premium {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: #facc15;
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
}
.niveau-titre {
    margin: 2rem 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e5e7eb;
}
.level-card-soon {
    border: 1px dashed rgba(250, 204, 21, 0.6);
    background: rgba(15, 23, 42, 0.9);
    position: relative;
    overflow: hidden;
}

.level-card-soon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}

.level-badge-soon {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.15);
    color: #fde68a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
/* Conteneur 2 colonnes dans le rectangle blanc Premium */
.hero-premium-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: flex-start;
}

/* Colonne gauche (texte principal) */
.hero-premium-texte {
    min-width: 0;
}

/* Colonne droite (points Premium) */
.hero-premium-points {
    min-width: 0;
}

/* Sur petits écrans seulement : on repasse en dessous */
@media (max-width: 768px) {
    .hero-premium-layout {
        grid-template-columns: 1fr;
    }
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #f97316;
}












































