/* ==========================================================================
   Base
   ========================================================================== */
/**
 * ============================================================================
 *  FEUILLE DE STYLES PRINCIPALE - COURS DE CORÉEN
 * ============================================================================
 *  Palette inspirée du drapeau coréen (rouge, bleu, blanc, noir)
 *  Sections commentées pour retrouver rapidement chaque bloc visuel
 * ============================================================================
 */

/* ============================================================================
   VARIABLES CSS - PALETTE DE COULEURS
   ============================================================================
   Variables globales utilisées dans tout le site
   ============================================================================ */
:root {
    --white: #ffffff;
    --red: #cd2e3a;        /* Rouge du drapeau coréen */
    --blue: #0047a0;        /* Bleu du drapeau coréen */
    --purple: #7c2d8c;      /* Violet accent */
    --black: #010101;       /* Noir principal */
    --light-blue: #b3c7e3;  /* Bleu clair */
    --light-red: #f8d7da;   /* Rouge clair */
    --primary: var(--black);
    --secondary: var(--red);
    --accent: var(--blue);
    --light: var(--white);
    --dark: #343a40;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;  /* Police principale pour le texte */
    color: var(--dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Titres avec police coréenne */
h1,
h2,
h3,
h4,
h5 {
    font-family: "Noto Sans KR", sans-serif;  /* Police coréenne pour les titres */
    font-weight: 700;
}

/* ============================================================================
   NAVBAR - Barre de navigation principale
   ============================================================================ */
.navbar {
    background-color: var(--primary) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: var(--white) !important;
}
.navbar-brand__logo-shell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    padding: 0;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.navbar-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
    transform-origin: center;
}
.navbar-brand__text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--white) !important;
}
.navbar-brand__text > span {
    color: var(--secondary) !important;
}
.nav-link {
    color: var(--white) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}
.nav-link:hover {
    color: var(--accent) !important;
}
.nav-link:hover::after {
    width: 100%;
}
.navbar-actions {
    align-items: center;
    gap: 0.6rem;
}
.navbar-actions .nav-link {
    margin: 0;
}
.nav-link-button {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
}
.nav-logout-form {
    margin: 0;
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    color: var(--white) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    color: var(--white) !important;
}
/* Offset pour compenser la navbar fixe */
.section-offset {
    padding-top: 130px;
}
@media (max-width: 992px) {
    .section-offset {
        padding-top: 110px;
    }
    .navbar-brand {
        font-size: 1.3rem;
        gap: 0.55rem;
    }
    .navbar-brand__logo-shell {
        width: 34px;
        height: 34px;
    }
    .navbar-actions {
        margin-top: 0.75rem;
        align-items: flex-start;
    }
    .navbar-actions .nav-cta {
        width: 100%;
    }
}

/* ============================================================================
   PAGES AUTH - Login / Register
   ============================================================================
   Styles pour les pages de connexion et d'inscription
   ============================================================================ */
.auth-section {
    padding-bottom: 90px;
    background: linear-gradient(180deg, rgba(0, 71, 160, 0.04), rgba(205, 46, 58, 0.02));
}
.auth-card {
    position: relative;
    border-radius: 26px;
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--red), var(--purple), var(--blue)) border-box;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.auth-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.22);
}
.auth-card::before {
    content: "";
    position: absolute;
    inset: -14px -18px -20px;
    background: radial-gradient(circle at top, rgba(205, 46, 58, 0.25), transparent 55%), radial-gradient(circle at bottom, rgba(0, 71, 160, 0.2), transparent 60%);
    filter: blur(30px);
    z-index: -1;
}
.auth-card .card-body {
    background-color: #fff;
}
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 71, 160, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}
.auth-title {
    font-weight: 700;
    font-size: 2rem;
    margin-top: 0.8rem;
}
.auth-subtitle {
    color: #6b7280;
    max-width: 320px;
    margin: 0 auto;
}
.auth-divider {
    display: block;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--secondary));
    border-radius: 50px;
    margin: 1.5rem auto 2rem;
}
.auth-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
}
.auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}
.auth-perks li::before {
    content: "•";
    color: var(--purple);
    font-size: 1.4rem;
    line-height: 0.5;
}
.auth-secondary-text {
    font-size: 0.9rem;
    color: #6b7280;
}
.dropdown-menu-dark {
    background-color: rgba(1, 1, 1, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 12rem;
}
.dropdown-menu-dark .dropdown-item {
    color: var(--white);
    font-weight: 500;
}
.dropdown-menu-dark .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--accent);
}
.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================================
   HERO PRINCIPAL - Page d'accueil
   ============================================================================
   Section hero avec gradient rouge/bleu et lettres coréennes animées
   ============================================================================ */
.hero {
    position: relative;
    min-height: min(52vh, 520px);
    max-height: 560px;
    padding-top: 110px;
    padding-bottom: 2.25rem;
    background: linear-gradient(135deg, var(--red), var(--blue));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 20%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 25%
        );
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 320px);
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.hero-content {
    max-width: none;
    padding: 0;
    text-align: left;
    margin: 0;
}
.hero h1 {
    font-size: clamp(1.65rem, 3.8vw, 2.35rem);
    line-height: 1.22;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--white);
}
.hero .highlight {
    color: var(--white);
    position: relative;
    display: inline-block;
    padding-bottom: 0.9rem;
}
.hero .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}
.hero p {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.55;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
    margin-left: 0;
    margin-right: 0;
}
.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-visual {
    display: flex;
    justify-content: center;
}
.hero-portrait-card {
    width: min(100%, 320px);
    padding: 1rem 1rem 1.15rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
    text-align: center;
}
.hero-portrait-card__image {
    display: block;
    width: min(100%, 250px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto 0.9rem;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}
.hero-portrait-card__image:only-child {
    margin-bottom: 0;
}
.hero-portrait-card__name {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}
.hero-portrait-card__meta {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}
.hero-buttons .btn {
    padding: 0.65rem 1.65rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary {
    background-color: var(--white);
    border: none;
    color: var(--blue);
}
.btn-primary:hover {
    background-color: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Hover vert pour le bouton de sauvegarde de progression */
.save-progress-btn:hover:not(:disabled) {
    background-color: #10b981 !important; /* Vert émeraude */
    color: var(--white) !important;
    transform: translateY(-3px);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Bandeaux intérieurs (/cours, /articles, /offres, /a-propos, etc.) : hauteur et typo unifiées */
.page-hero {
    position: relative;
    min-height: min(36vh, 360px);
    padding-top: 100px;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 45%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.25), transparent 50%);
    opacity: 0.25;
    pointer-events: none;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero--primary {
    background: linear-gradient(135deg, var(--red), var(--purple), var(--blue));
    color: var(--white);
}
.page-hero--airy {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(244, 247, 255, 0.84)),
        linear-gradient(135deg, rgba(205, 46, 59, 0.38), rgba(124, 45, 140, 0.42), rgba(0, 72, 160, 0.36));
    color: var(--primary);
}
.page-hero--airy h1,
.page-hero--airy h2,
.page-hero--airy h3 {
    color: var(--primary);
}
.page-hero--airy p,
.page-hero--airy .lead {
    color: #4c5160;
}
.page-hero--airy .hero-badge {
    color: var(--accent);
    background: rgba(0, 71, 160, 0.12);
    border: 1px solid rgba(0, 71, 160, 0.14);
}
.page-hero--airy .hero-divider {
    background: linear-gradient(90deg, rgba(205, 46, 58, 0.8), rgba(0, 71, 160, 0.7));
}
.page-hero--offers {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    min-height: min(36vh, 360px);
    padding-top: 100px;
    padding-bottom: 2rem;
    align-items: center;
}
.page-hero--offers::after {
    background: radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    opacity: 1;
}
.page-hero--offers .hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.page-hero--offers h1 {
    color: #fff;
}
.page-hero--offers .hero-divider {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
}
.page-hero--offers .lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.page-hero--offers .articles-pillars li {
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.75);
}
.page-hero--offers .lesson-list--hero li {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.75);
}
.page-hero--offers .module-card {
    padding: 1.25rem 1.35rem;
}
.page-hero--offers .module-card .lesson-list li {
    font-size: 0.88rem;
    padding: 0.28rem 0;
}
.about-hero-portrait {
    margin-bottom: 1.25rem;
}
.about-hero-portrait__image {
    display: block;
    width: min(100%, 240px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto 0.9rem;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}
.about-hero-portrait__name {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}
.about-hero-portrait__role {
    font-size: 0.95rem;
    color: #667085;
}
.page-hero--offers .articles-pillars li span {
    color: #fff;
}
.page-hero--offers .lesson-list--hero li::before {
    color: rgba(255, 255, 255, 0.6);
}
.btn-airy-primary {
    background: linear-gradient(135deg, var(--red), var(--blue));
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.9rem;
    box-shadow: 0 12px 28px rgba(0, 71, 160, 0.2);
}
.btn-airy-primary:hover {
    color: var(--white);
    opacity: 0.92;
}
.btn-airy-outline {
    border-radius: 999px;
    border: 2px solid rgba(0, 71, 160, 0.45);
    color: var(--accent);
    padding: 0.82rem 1.8rem;
}
.btn-airy-outline:hover {
    background: rgba(0, 71, 160, 0.08);
    color: var(--accent);
}

.page-hero--soft {
    background: linear-gradient(135deg, rgba(205, 46, 58, 0.09), rgba(124, 45, 140, 0.1), rgba(0, 71, 160, 0.08));
}
.page-hero .hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.85rem;
}
.page-hero--soft .hero-eyebrow {
    color: var(--accent);
}
.page-hero h1 {
    font-size: clamp(1.55rem, 3.2vw, 2.05rem);
    font-weight: 700;
    line-height: 1.2;
}
.page-hero .hero-divider {
    width: 72px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    margin: 1rem 0 1.1rem;
}
.page-hero--soft .hero-divider {
    background: linear-gradient(90deg, rgba(205, 46, 58, 0.7), rgba(0, 71, 160, 0.7));
}
.page-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.9);
}
.page-hero .lead {
    font-size: clamp(0.98rem, 1.55vw, 1.08rem);
    line-height: 1.55;
    margin-bottom: 0.65rem;
}
.page-hero--soft p {
    color: #5d6575;
}
.page-hero--airy .hero-eyebrow {
    color: var(--accent);
}
.page-hero--airy p,
.page-hero--airy .lead,
.page-hero--airy .text-secondary,
.page-hero--airy .text-muted {
    color: #4c5160 !important;
}
.page-hero--airy .lesson-list li {
    color: #4d5562;
}

/* ============================================================================
   ANIMATION LETTRES CORÉENNES
   ============================================================================
   Lettres coréennes qui flottent en arrière-plan du hero
   ============================================================================ */
.korean-letters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.korean-letter {
    position: absolute;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 2.5rem;
    opacity: 0.15;
    color: var(--white);
    animation: float 15s infinite linear;
}
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* ============================================================================
   CARDS COURS - Plan de formation
   ============================================================================
   Styles pour les cartes de cours (Débutant, Intermédiaire, Avancé)
   ============================================================================ */
#courses {
    padding: 6rem 0;
    background-color: var(--white);
}
.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: var(--white);
}
.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
}
.card-body {
    padding: 1.8rem;
}
.card-body h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.card-body p {
    color: #666;
    margin-bottom: 1.8rem;
    min-height: 60px;
}
.btn-outline-dark {
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}
.btn-outline-dark:hover {
    background: var(--blue);
    color: var(--white);
}

.course-modules {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #ffffff, #f7f8fb);
}
.module-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}
.module-card--accent,
.module-card--focus {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(205, 46, 58, 0.6), rgba(0, 71, 160, 0.7)) border-box;
}
.module-card--focus {
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.12);
}
.module-card--focus .module-title,
.module-card--focus .text-secondary {
    color: var(--primary);
    letter-spacing: 0.08em;
}
.module-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.lesson-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.lesson-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #4d5562;
}
/* Puces pour les listes type « Ce que je vous propose » (hero /cours, etc.) */
.lesson-list li::before {
    content: "▹";
    color: var(--accent);
    font-size: 1rem;
}
.module-card--focus .lesson-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--blue));
    margin-right: 0.2rem;
}

/* ==========================================================================
   Offers
   ========================================================================== */
/* ============================================================================
   OFFRES - NOUVEAU DESIGN
   ============================================================================
   Design moderne et aéré pour la page d'offres (/offres)
   
   Structure :
   - Hero sombre en haut de page
   - Bannière horizontale pour l'offre gratuite
   - Grille de 3 cartes pour les offres payantes
   - Section de confiance (badges sécurité)
   
   Palette de couleurs :
   - Indigo #6366f1 / #4f46e5 : couleur d'accent principale
   - Violet #8b5cf6 : touches dans les dégradés
   - Émeraude #10b981 : badges "gratuit" et icônes de validation
   - Slate #0f172a, #1e293b, #64748b : textes et fonds sombres
   ============================================================================ */


/* ----------------------------------------------------------------------------
   HERO - Section d'en-tête sombre
   ---------------------------------------------------------------------------- */

/* Contenu centré du hero, au-dessus de la décoration */
.offers-hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Petit badge "Tarifs membres fondateurs" en haut */
.offers-hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3)); /* Dégradé indigo/violet translucide */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px; /* Pill shape */
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Titre principal du hero - taille responsive avec clamp() */
.offers-hero__title {
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

/* Sous-titre du hero */
.offers-hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.7); /* Blanc semi-transparent */
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Décoration de fond : halos lumineux indigo/violet */
.offers-hero__decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none; /* Ne bloque pas les clics */
}


/* ----------------------------------------------------------------------------
   GRILLE PRINCIPALE - Conteneur des offres
   ---------------------------------------------------------------------------- */

.offers-grid {
    padding: 4rem 0 5rem;
    background: #f8fafc; /* Gris très clair */
}


/* ----------------------------------------------------------------------------
   BANNIÈRE OFFRE GRATUITE - Layout horizontal
   ---------------------------------------------------------------------------- */

/* Carte horizontale pour l'offre "Découverte" gratuite */
.offers-free-banner {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); /* Ombre très subtile */
    border: 1px solid #e2e8f0;
}

/* Layout flex : info | features | bouton CTA */
.offers-free-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap; /* Passe en colonne sur mobile */
}

/* Colonne d'informations (badge + titre + description) */
.offers-free-banner__info {
    flex: 1;
    min-width: 200px;
}

/* Badge vert "Gratuit" */
.offers-free-banner__badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #10b981, #059669); /* Dégradé émeraude */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

/* Titre "Découverte" */
.offers-free-banner__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

/* Description de l'offre gratuite */
.offers-free-banner__desc {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* Liste des features incluses (affichées horizontalement) */
.offers-free-banner__features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex: 2;
    justify-content: center;
}

/* Chaque feature avec son icône check */
.offers-free-banner__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
}

/* Icône check verte */
.offers-free-banner__feature i {
    color: #10b981; /* Émeraude */
    font-size: 0.85rem;
}

/* Conteneur du bouton CTA */
.offers-free-banner__cta {
    flex-shrink: 0;
}

/* Style du bouton dans la bannière gratuite */
.offers-free-banner__cta .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 10px;
}

/* ----------------------------------------------------------------------------
   SECTION OFFRES PAYANTES - Titre + grille de cartes
   ---------------------------------------------------------------------------- */

/* Conteneur de la section payante */
.offers-paid {
    margin-bottom: 3rem;
}

/* En-tête centré "Passez au niveau supérieur" */
.offers-paid__header {
    text-align: center;
    margin-bottom: 3rem;
}

.offers-paid__title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.offers-paid__subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0;
}

/* Formulaire code promo */
.promo-form {
    max-width: 480px;
    margin: 0 auto;
}

.promo-form__wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.promo-form__wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.promo-form__icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.promo-form__wrapper:focus-within .promo-form__icon {
    color: #3b82f6;
}

.promo-form__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    padding: 10px 0;
    outline: none;
    min-width: 0;
}

.promo-form__input::placeholder {
    color: #94a3b8;
}

.promo-form__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.promo-form__btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.promo-form__btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.promo-form__btn:hover i {
    transform: translateX(3px);
}

.promo-form__message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: promo-slide-in 0.3s ease;
}

@keyframes promo-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-form__message--success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.promo-form__message--error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.promo-form__message i {
    font-size: 1.1rem;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .promo-form__wrapper {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
    }
    
    .promo-form__icon {
        display: none;
    }
    
    .promo-form__input {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }
    
    .promo-form__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Grille CSS Grid pour les cartes */
.offers-paid__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes par défaut */
    gap: 1.5rem;
    align-items: stretch; /* Toutes les cartes font la même hauteur */
}

/* Grille à 4 colonnes (toutes les offres) */
.offers-paid__grid--4cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 1200px) {
    .offers-paid__grid--4cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive : empiler les cartes sur mobile */
@media (max-width: 768px) {
    .offers-paid__grid,
    .offers-paid__grid--4cols {
        grid-template-columns: 1fr; /* Une seule colonne */
        max-width: 450px;
        margin: 0 auto;
    }
}


/* ----------------------------------------------------------------------------
   CARTES D'OFFRES - Style de base
   ---------------------------------------------------------------------------- */

/* Carte d'offre standard */
.offer-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
}

/* Effet de survol : légère élévation + ombre */
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


/* ----------------------------------------------------------------------------
   CARTE MISE EN AVANT (Autonomie) - Style spécial
   ---------------------------------------------------------------------------- */

/* Carte "featured" avec bordure indigo et légère mise à l'échelle */
.offer-card--featured {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 2px solid #6366f1; /* Bordure indigo */
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.2); /* Ombre indigo */
    transform: scale(1.02); /* Légèrement plus grande */
    z-index: 2; /* Au-dessus des autres cartes */
}

/* Hover de la carte featured : combine scale + translateY */
.offer-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
}

/* Sur mobile : pas de scale, carte en premier (order: -1) */
@media (max-width: 1024px) {
    .offer-card--featured {
        transform: none;
        order: -1; /* Affichée en premier */
    }
    .offer-card--featured:hover {
        transform: translateY(-4px);
    }
}


/* ----------------------------------------------------------------------------
   RUBAN - Badge en haut de carte (Populaire / Abonnement actuel)
   ---------------------------------------------------------------------------- */

.offer-card__ribbon {
    position: absolute;
    top: -1px; /* Collé au bord supérieur */
    left: 50%;
    transform: translateX(-50%); /* Centré horizontalement */
    background: linear-gradient(135deg, #6366f1, #4f46e5); /* Dégradé indigo */
    color: #fff;
    padding: 0.4rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0 0 10px 10px; /* Coins arrondis en bas seulement */
}

/* Ruban "Abonnement actuel" (vert émeraude) */
.offer-card__ribbon--current {
    background: linear-gradient(135deg, #10b981, #059669);
}


/* ----------------------------------------------------------------------------
   CARTE ABONNEMENT ACTUEL - Style spécial
   ---------------------------------------------------------------------------- */

.offer-card--current {
    border: 2px solid #10b981; /* Bordure verte */
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}


/* ----------------------------------------------------------------------------
   CARTE GRATUITE - Légèrement différenciée
   ---------------------------------------------------------------------------- */

.offer-card--free {
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%); /* Teinte verte très légère */
}


/* ----------------------------------------------------------------------------
   EN-TÊTE DE CARTE - Nom + description
   ---------------------------------------------------------------------------- */

.offer-card__header {
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

/* Plus d'espace en haut pour les cartes avec ruban */
.offer-card--featured .offer-card__header,
.offer-card--current .offer-card__header,
.offer-card__header--with-ribbon {
    padding-top: 1.5rem;
}

/* Ligne titre + badge côte à côte */
.offer-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Nom de l'offre (ex: "Autonomie") */
.offer-card__name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
}

/* Badge à côté du titre (ex: "Membres fondateurs") */
.offer-card__badge {
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    color: #6366f1;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Badge vert pour l'offre gratuite */
.offer-card__badge--free {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
}

/* Description courte de l'offre */
.offer-card__tagline {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ----------------------------------------------------------------------------
   SECTION PRIX - Affichage du tarif
   ---------------------------------------------------------------------------- */

/* Conteneur du prix avec ligne de séparation en bas */
.offer-card__pricing {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

/* Badge promo (-X%) */
.offer-card__promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Prix barré (tarif normal avant réduction early bird) */
.offer-card__price-old {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

/* Conteneur flex pour aligner prix + € + /mois */
.offer-card__price-main {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

/* Valeur du prix (ex: "7,90") */
.offer-card__price-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

/* Prix en indigo pour la carte featured */
.offer-card--featured .offer-card__price-value {
    color: #6366f1;
}

/* Symbole € */
.offer-card__price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

/* € en indigo pour la carte featured */
.offer-card--featured .offer-card__price-currency {
    color: #6366f1;
}

/* Période "/mois" */
.offer-card__price-period {
    color: #64748b;
    font-size: 0.95rem;
    margin-left: 0.25rem;
}


/* ----------------------------------------------------------------------------
   BARRE DE PLACES RESTANTES - Indicateur visuel
   ---------------------------------------------------------------------------- */

.offer-card__seats {
    margin-bottom: 1.25rem;
}

/* Barre de fond grise */
.offer-card__seats-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Remplissage de la barre (largeur définie inline via style="width: X%") */
.offer-card__seats-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6); /* Dégradé indigo → violet */
    border-radius: 999px;
    transition: width 0.5s ease; /* Animation fluide */
}

/* Texte "X places restantes" */
.offer-card__seats-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}


/* ----------------------------------------------------------------------------
   HIGHLIGHT - Badge temps inclus (ex: "30 min / mois")
   ---------------------------------------------------------------------------- */

.offer-card__highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 71, 160, 0.08); /* Bleu très léger */
    border-radius: 10px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Icône horloge */
.offer-card__highlight i {
    font-size: 0.9rem;
}

/* ----------------------------------------------------------------------------
   LISTE DES FEATURES - Avantages inclus dans l'offre
   ---------------------------------------------------------------------------- */

/* Liste sans puces */
.offer-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1; /* Prend l'espace disponible pour aligner les footers */
}

/* Chaque feature avec icône + texte */
.offer-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f8fafc; /* Séparateur très léger */
    font-size: 0.9rem;
    color: #334155;
}

/* Pas de bordure sur le dernier élément */
.offer-card__features li:last-child {
    border-bottom: none;
}

/* Icône check verte */
.offer-card__features li i {
    margin-top: 0.15rem; /* Alignement vertical avec le texte */
    font-size: 0.8rem;
    color: #10b981; /* Émeraude */
    flex-shrink: 0;
}

/* Feature "grisée" (non incluse dans l'offre) */
.offer-card__feature--muted {
    color: #94a3b8 !important;
}

/* Icône X grise pour les features non incluses */
.offer-card__feature--muted i {
    color: #cbd5e1 !important;
}

/* ----------------------------------------------------------------------------
   FOOTER DE CARTE - Note + bouton CTA
   ---------------------------------------------------------------------------- */

/* Conteneur du footer, collé en bas grâce à margin-top: auto */
.offer-card__footer {
    margin-top: auto;
}

/* Note en italique (ex: "Tarif garanti tant que l'abonnement reste actif") */
.offer-card__note {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-align: center;
    font-style: italic;
}


/* ----------------------------------------------------------------------------
   BOUTONS CTA - Styles des boutons d'action
   ---------------------------------------------------------------------------- */

/* Style de base commun à tous les boutons */
.offer-card__btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease; /* Animation fluide au survol */
}

/* Bouton principal (carte featured) - fond blanc, bordure indigo */
.offer-card__btn.btn-primary {
    background: #fff;
    border: 2px solid #6366f1;
    color: #4f46e5;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

/* Hover du bouton principal : se remplit en indigo */
.offer-card__btn.btn-primary:hover {
    transform: translateY(-2px); /* Légère élévation */
    background: #6366f1;
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Bouton secondaire (autres cartes) - même style que primary pour cohérence */
.offer-card__btn.btn-outline-primary {
    border: 2px solid #6366f1;
    color: #4f46e5;
    background: #fff;
}

/* Hover du bouton secondaire : même effet de remplissage */
.offer-card__btn.btn-outline-primary:hover {
    transform: translateY(-2px);
    background: #6366f1;
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Bouton "Gérer mon abonnement" (carte actuelle) - vert émeraude */
.offer-card__btn--current {
    border: 2px solid #10b981;
    color: #059669;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.offer-card__btn--current:hover {
    transform: translateY(-2px);
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.offer-card__btn--current i {
    font-size: 0.9rem;
}


/* ----------------------------------------------------------------------------
   SECTION DE CONFIANCE - Badges de réassurance
   ---------------------------------------------------------------------------- */

/* Conteneur flex centré */
.offers-trust {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Chaque badge (icône + texte) */
.offers-trust__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Icône verte */
.offers-trust__item i {
    color: #10b981; /* Émeraude */
    font-size: 1.1rem;
}


/* ----------------------------------------------------------------------------
   RESPONSIVE - Adaptations mobile
   ---------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Bannière gratuite : passage en colonne */
    .offers-free-banner__content {
        flex-direction: column;
        text-align: center;
    }
    
    .offers-free-banner__features {
        justify-content: center;
    }
    
    /* Moins d'espace entre les badges de confiance */
    .offers-trust {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Auth and marketing pages
   ========================================================================== */
/* ============================================================================
   À PROPOS - Section présentation
   ============================================================================
   Styles pour la page À propos avec feature-box
   ============================================================================ */
#about {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}
.about-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px var(--red);
}
.about-img:hover {
    transform: scale(1.02);
}
#about h2 {
    margin-bottom: 1.8rem;
    color: var(--primary);
}
#about ul {
    padding-left: 0;
}
#about li {
    list-style: none;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}
#about li i {
    color: var(--red);
    font-size: 1.3rem;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}
.feature-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--light-blue);
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.feature-box i {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
}
.feature-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ============================================================================
   TÉMOIGNAGES - Carousel d'avis élèves
   ============================================================================
   Styles pour le carousel de témoignages sur la page cours particuliers
   ============================================================================ */
#testimonials {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}
.testimonial-card {
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--blue);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}
.testimonial-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--red);
}
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--red);
}

/* ============================================================================
   CONTACT - Formulaire de contact
   ============================================================================
   Section avec formulaire de contact (fond gradient rouge/bleu)
   ============================================================================ */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--red), var(--blue));
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 10% 20%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 30%
        );
    pointer-events: none;
}
.contact-section .section-title::after {
    background: var(--white);
}
.form-control {
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    background: var(--white);
}

.auth-form label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #6b7280;
}
.auth-form :is(.form-control, .form-select) {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.auth-form .form-control {
    background: #fff;
    padding: 0.95rem 1.15rem;
}
.auth-form .form-select {
    background-color: #fff;
    padding: 0.95rem 3rem 0.95rem 1.15rem;
}
.auth-form :is(.form-control, .form-select):focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 71, 160, 0.15);
}
.auth-form .form-control::placeholder {
    color: #a0a7b4;
}
.auth-form textarea.form-control {
    min-height: 220px;
    resize: vertical;
}
.auth-form .btn-primary {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 15px 35px rgba(0, 71, 160, 0.25);
}
.auth-form .btn-outline-light {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Content report
   ========================================================================== */
/* ============================================================================
   PAGE DE SIGNALEMENT DE CONTENU (DSA)
   ============================================================================
   Variante légère basée sur dashboard-card + auth-form
   ============================================================================ */
.content-report-card {
    overflow: hidden;
}
.content-report-card__header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.content-report-card__title {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}
.content-report-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--red), var(--blue));
    color: var(--white);
    box-shadow: 0 14px 28px rgba(0, 71, 160, 0.18);
    flex-shrink: 0;
}
.content-report-card__title h2 {
    margin: 0.65rem 0 0;
    color: var(--primary);
    font-size: 1.55rem;
}
.content-report-card__lead {
    margin: 0;
    color: #5f6778;
    line-height: 1.65;
}
.content-report-meta__item {
    padding: 1.1rem 1.2rem;
}
.content-report-meta__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}
.content-report-meta__value {
    color: var(--primary);
    font-weight: 600;
    line-height: 1.55;
}
.content-report-meta__value a,
.content-report-target__link {
    color: var(--accent);
    text-decoration: none;
}
.content-report-meta__value a:hover,
.content-report-target__link:hover {
    text-decoration: underline;
}
.content-report-contest {
    background: linear-gradient(180deg, #fffdf6 0%, #fff8e8 100%);
    border-color: rgba(205, 46, 58, 0.08);
}
.content-report-target__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}
.content-report-target__excerpt {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: rgba(0, 71, 160, 0.05);
    color: #263247;
    line-height: 1.7;
}
.content-report-form .form-label {
    margin-bottom: 0.55rem;
    color: #1f2937;
    font-weight: 700;
}
.content-report-form .form-text {
    margin-top: 0.25rem;
    color: #6b7280;
    line-height: 1.55;
}
.content-report-form ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 600;
}
.content-report-consent .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.content-report-consent .form-check-input {
    margin-top: 0.18rem;
    flex-shrink: 0;
}
.content-report-consent .form-check-label {
    color: #334155;
    line-height: 1.55;
}
.content-report-submit-hint {
    max-width: 40rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.55;
}
.auth-form .btn.content-report-submit-btn {
    min-width: 260px;
    padding-inline: 1.5rem;
}
@media (max-width: 767.98px) {
    .content-report-card__title {
        align-items: center;
    }
    .content-report-card__title h2 {
        margin-top: 0;
        font-size: 1.3rem;
    }
    .auth-form .btn.content-report-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================================
   Footer and FAQ
   ========================================================================== */
/* ============================================================================
   FOOTER - Pied de page
   ============================================================================
   Footer avec copyright, réseaux sociaux et slogan
   ============================================================================ */
footer {
    padding: 3rem 0 2rem;
    background: var(--primary);
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 1.5rem;
    color: var(--white);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-icons a:hover {
    background: var(--red);
    transform: translateY(-5px);
}

/* Liens du footer */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* ============================================================================
   FAQ - Questions fréquentes
   ============================================================================ */
.faq-section {
    background: linear-gradient(180deg, rgba(0, 71, 160, 0.04), rgba(205, 46, 58, 0.02));
    padding-bottom: 90px;
}

.faq-header {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 71, 160, 0.1);
}

.faq-category-title i {
    color: var(--accent);
    margin-right: 0.75rem;
}

.faq-section .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.faq-section .accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-section .accordion-button {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background: linear-gradient(180deg, rgba(0, 71, 160, 0.05), #fff);
    color: var(--accent);
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 71, 160, 0.15);
    border-color: transparent;
}

.faq-section .accordion-body {
    padding: 1.5rem;
    color: #4d5562;
    line-height: 1.7;
    background: #fff;
}

.faq-contact-card {
    background: linear-gradient(135deg, rgba(0, 71, 160, 0.05), rgba(205, 46, 58, 0.05));
    border: 2px solid rgba(0, 71, 160, 0.1);
    margin-top: 3rem;
}

.faq-contact-card h3 {
    color: var(--primary);
    font-weight: 700;
}

.faq-contact-card .btn {
    margin-top: 0.5rem;
}

/* Section CTA FAQ sur la page d'accueil */
.faq-cta-section {
    background: linear-gradient(180deg, rgba(0, 71, 160, 0.03), rgba(205, 46, 58, 0.02));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-cta-section a {
    color: var(--accent);
    transition: color 0.2s ease;
}

.faq-cta-section a:hover {
    color: var(--red);
    text-decoration: underline !important;
}

/* ==========================================================================
   Member dashboard
   ========================================================================== */
/* ============================================================================
   DASHBOARD - Tableau de bord espace membre
   ============================================================================
   Styles pour l'espace membre avec navigation par onglets
   Design cohérent avec la page de connexion (auth-card)
   ============================================================================ */
.dashboard-section {
    padding-bottom: 90px;
    background: linear-gradient(180deg, rgba(0, 71, 160, 0.04), rgba(205, 46, 58, 0.02));
}
.dashboard-card {
    background: #fff;
    border-radius: 26px;
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--red), var(--purple), var(--blue)) border-box;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.member-visio-card {
    position: relative;
    border-radius: 28px;
    padding: 1.6rem;
    border: 1px solid rgba(74, 102, 200, 0.16);
    background:
        radial-gradient(circle at top right, rgba(124, 45, 140, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.96));
    box-shadow: 0 22px 45px rgba(46, 27, 86, 0.12);
}
.member-visio-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -55px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 71, 160, 0.12), transparent 68%);
    pointer-events: none;
}
.member-visio-card__body {
    position: relative;
    z-index: 1;
    display: grid;
    /* Deux bandes flexibles : la colonne droite n’est plus « auto » (min-content),
       sinon le CTA reste collé au bloc de gauche alors qu’il reste de la place à droite */
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}
.member-visio-card__content {
    min-width: 0;
}
.member-visio-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(74, 102, 200, 0.08);
    color: #615381;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.member-visio-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.member-visio-card__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #241245;
}
.member-visio-card__description {
    margin: 0.55rem 0 0;
    max-width: 48rem;
    color: #665b82;
    line-height: 1.6;
}
.member-visio-card__remaining {
    flex-shrink: 0;
    min-width: 168px;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 255, 0.98));
    border: 1px solid rgba(74, 102, 200, 0.14);
    box-shadow: 0 12px 30px rgba(0, 71, 160, 0.08);
    text-align: center;
}
.member-visio-card__remaining-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1f376f;
}
.member-visio-card__remaining-label {
    display: block;
    margin-top: 0.2rem;
    color: #5d6680;
    font-weight: 700;
}
.member-visio-card__progress {
    margin-top: 1.2rem;
}
.member-visio-card__progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #53476e;
}
.member-visio-card__progress-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(74, 102, 200, 0.1);
    overflow: hidden;
}
.member-visio-card__progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--purple), var(--blue));
}
.member-visio-card__aside {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
/* Tout le bloc latéral (CTA + note) centré ; sélecteur sous aside pour surcharger .btn */
.member-visio-card__aside .btn.member-visio-card__cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    border-radius: 16px;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 16px 32px rgba(0, 71, 160, 0.16);
}
.member-visio-card__aside .member-visio-card__note {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.5;
    width: 100%;
}
.member-visio-card__footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
}
.member-visio-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(89, 78, 163, 0.1);
}
.member-visio-card__meta-label {
    color: #7b7192;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.member-visio-card__meta strong {
    color: #241245;
    font-size: 1rem;
}
.member-visio-card__meta a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.member-visio-card__meta a:hover {
    text-decoration: underline;
}
@media (max-width: 991.98px) {
    .member-visio-card {
        padding: 1.35rem;
    }
    .member-visio-card__body {
        grid-template-columns: 1fr;
    }
    .member-visio-card__header {
        flex-direction: column;
    }
    .member-visio-card__remaining {
        min-width: 0;
        width: 100%;
        text-align: left;
    }
    .member-visio-card__aside {
        width: 100%;
    }
    .member-visio-card__footer {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575.98px) {
    .member-visio-card {
        padding: 1.15rem;
    }
    .member-visio-card__title {
        font-size: 1.15rem;
    }
    .member-visio-card__description {
        font-size: 0.95rem;
    }
    .member-visio-card__remaining-value {
        font-size: 1.35rem;
    }
}
.dashboard-tabs {
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    padding: 0 1.5rem;
    background: linear-gradient(180deg, #f8f9fa, #fff);
}
.dashboard-tabs .nav-link {
    color: #6b7280 !important;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    margin-bottom: -2px;
}
.dashboard-tabs .nav-link i {
    color: inherit;
}
.dashboard-tabs .nav-link:hover {
    color: var(--accent) !important;
    background: rgba(0, 71, 160, 0.05);
    border-bottom-color: rgba(0, 71, 160, 0.3);
}
.dashboard-tabs .nav-link.active {
    color: var(--accent) !important;
    background: transparent;
    border-bottom-color: var(--accent);
    font-weight: 700;
}
.dashboard-content {
    min-height: 400px;
}
.dashboard-card .form-control {
    /* Inputs visibles dans le dashboard (fond blanc + bordure) */
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.dashboard-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.dashboard-subsection {
    background: linear-gradient(180deg, #f8f9fa, #fff);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}
.subsection-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
/* Sous-navigation de l'onglet "Ressources" (Vocabulaire / Conjugaison / Idiomes…) */
.resources-subnav {
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 0.35rem;
    width: fit-content;
    max-width: 100%;
}
.resources-subnav .nav-link {
    /* !important nécessaire pour surcharger la règle globale .nav-link
       (color: var(--white) !important) utilisée par la navbar du site. */
    color: #4b5563 !important;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    margin: 0;
}
.resources-subnav .nav-link i {
    color: inherit;
}
.resources-subnav .nav-link:hover {
    color: var(--accent) !important;
    background: rgba(0, 71, 160, 0.08);
}
.resources-subnav .nav-link.active,
.resources-subnav .nav-link.active:hover {
    color: #fff !important;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 71, 160, 0.2);
}
@media (max-width: 575.98px) {
    .resources-subnav {
        border-radius: 14px;
        width: 100%;
    }
    .resources-subnav .nav-item {
        flex: 1 1 auto;
    }
    .resources-subnav .nav-link {
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
.user-admin-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.5rem;
    align-items: stretch;
}
.user-admin-search__input.form-control {
    margin-bottom: 0;
}
.user-admin-search__controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .user-admin-search__controls {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   COURSE ADMIN ACTIONS - Gestion des cours (Espace membre)
   ============================================================================
   Deux cartes d'actions ("Créer une leçon" / "Gérer niveaux & unités").
   Objectif : rendre la zone d'actions plus lisible que 2 gros boutons.
   ============================================================================ */
.course-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.course-admin-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    min-height: 84px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #f8f9fa, #fff);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}
.course-admin-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 71, 160, 0.25);
}
.course-admin-action:focus-visible {
    outline: 3px solid rgba(0, 71, 160, 0.25);
    outline-offset: 3px;
}
.course-admin-action__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
}
.course-admin-action--create .course-admin-action__icon {
    background: linear-gradient(135deg, var(--blue), rgba(0, 71, 160, 0.8));
}
.course-admin-action--manage .course-admin-action__icon {
    background: linear-gradient(135deg, var(--purple), rgba(124, 45, 140, 0.85));
}
.course-admin-action__content {
    flex: 1;
    min-width: 0;
}
.course-admin-action__title {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.15rem;
}
.course-admin-action__text {
    display: block;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.35;
}
.course-admin-action__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.course-admin-action:hover .course-admin-action__chevron {
    transform: translateX(3px);
    background: rgba(0, 71, 160, 0.08);
    color: var(--accent);
}

/* ============================================================================
   COURSE LESSONS ACCORDION - Liste des leçons (Espace membre > Cours)
   ============================================================================
   Accordéon niveaux → unités → leçons, avec espacements pour éviter chevauchement.
   ============================================================================ */
.course-lessons-accordion .accordion-item {
    background: #fff;
}
.course-lessons-accordion__level-btn {
    padding: 1rem 1.25rem !important;
    font-size: 1.05rem;
}
.course-lessons-accordion__level-btn .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}
/* Corps du niveau : espace au-dessus des unités pour ne pas coller au header */
.course-lessons-accordion__level-body {
    padding-top: 0.5rem !important;
}
/* Conteneur des unités : espace entre chaque bloc unité */
.course-lessons-accordion__units .accordion-item {
    margin-bottom: 0;
}
.course-lessons-accordion__unit-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 1rem;
}
.course-lessons-accordion__unit-item:last-child {
    margin-bottom: 0;
}
/* Contenu développé d'une unité : marge en bas pour bien séparer du bloc suivant */
.course-lessons-accordion__unit-body {
    margin-bottom: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.course-lessons-accordion__unit-btn {
    padding: 0.85rem 1.1rem !important;
    font-size: 0.98rem;
}
.course-lessons-accordion__unit-btn .unit-title {
    font-weight: 600;
}
.course-lessons-accordion__unit-btn .badge {
    font-weight: 500;
    padding: 0.3em 0.55em;
}
/* Switcher accès unité dans l'en-tête : ne pas rétrécir, éviter le collapse au clic */
.course-lessons-accordion__unit-item .accordion-header .accordion-button {
    min-width: 0;
}
.unit-access-switcher {
    flex-shrink: 0;
}
.unit-access-switcher .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}
.lesson-access-switcher .btn-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
}
.course-lessons-accordion__table thead th {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.course-lessons-accordion__lesson-row td {
    font-size: 0.95rem;
    vertical-align: middle;
}
.course-lessons-accordion__table .course-status-badge {
    padding: 0.35em 0.65em;
    font-size: 0.8rem;
}
.course-lessons-accordion__table .btn-group .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
}

/* ============================================================================
   STAT CARDS - Cartes de statistiques
   ============================================================================
   Cartes affichant des statistiques avec icônes colorées
   ============================================================================ */
.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-icon-blue,
.action-icon-blue {
    background: linear-gradient(135deg, var(--blue), rgba(0, 71, 160, 0.8));
}
.stat-icon-red,
.action-icon-red {
    background: linear-gradient(135deg, var(--red), rgba(205, 46, 58, 0.8));
}
.stat-icon-purple {
    background: linear-gradient(135deg, var(--purple), rgba(124, 45, 140, 0.8));
}
.stat-icon-green,
.action-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}
.stat-content {
    flex: 1;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ============================================================================
   ACTION CARDS - Cartes d'actions rapides
   ============================================================================
   Cartes pour les actions rapides de l'éditeur (articles, commentaires, etc.)
   ============================================================================ */
.action-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}
.action-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1rem;
}
.action-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.action-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.action-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.action-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* ============================================================================
   DASHBOARD ACTIONS - Zone d'actions
   ============================================================================
   Zone contenant les boutons d'actions (créer, modifier, etc.)
   ============================================================================ */
.dashboard-actions {
    background: linear-gradient(180deg, #f8f9fa, #fff);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.dashboard-actions .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.dashboard-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   RESPONSIVE - Media queries
   ============================================================================
   Adaptations pour tablettes et mobiles
   ============================================================================ */
@media (max-width: 991.98px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .korean-letter {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: auto;
        min-height: auto;
        max-height: none;
        padding-top: 8.5rem;
        padding-bottom: 3rem;
        align-items: flex-start;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
        line-height: 1.15;
    }
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        gap: 0.8rem;
    }
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.8rem;
        padding: 0.9rem 1.25rem;
    }
    .korean-letter {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    /* Dashboard responsive */
    .dashboard-tabs {
        padding: 0 0.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .dashboard-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .dashboard-tabs .nav-link i {
        display: none;
    }
    .dashboard-section-title {
        font-size: 1.3rem;
    }
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .stat-value {
        font-size: 1.75rem;
    }
    .action-card {
        margin-bottom: 1rem;
    }
    .dashboard-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .course-admin-actions {
        grid-template-columns: 1fr;
    }
}
