/* ============================================
   EVM - Plateforme éducative
   Feuille de style principale
   ============================================ */

/* --- Variables CSS --- */
:root {
    --evm-red: #E53935;
    --evm-blue: #1565C0;
    --evm-green: #43A047;
    --evm-yellow: #F9A825;
    --evm-orange: #EF6C00;
    --evm-dark: #1a1a2e;
    --evm-light: #f8f9fc;
    --evm-white: #ffffff;
    --evm-gray-100: #f0f2f5;
    --evm-gray-200: #e4e7ec;
    --evm-gray-300: #cdd2da;
    --evm-gray-500: #6b7280;
    --evm-gray-700: #374151;
    --evm-gray-900: #111827;
    --evm-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --evm-shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --evm-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --evm-radius: 12px;
    --evm-radius-lg: 20px;
    --evm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --evm-font: 'Nunito', 'Segoe UI', sans-serif;
    --evm-font-display: 'Poppins', 'Segoe UI', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--evm-font);
    background: var(--evm-light);
    color: var(--evm-gray-700);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.evm-header {
    background: var(--evm-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--evm-shadow-sm);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--evm-red), var(--evm-blue), var(--evm-green), var(--evm-yellow)) 1;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 44px;
    width: auto;
    transition: transform var(--evm-transition);
}

.header-logo img:hover {
    transform: scale(1.05);
}

.header-logo .logo-text {
    font-family: var(--evm-font-display);
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--evm-blue), var(--evm-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--evm-gray-700);
    transition: all var(--evm-transition);
    position: relative;
}

.nav-link:hover {
    background: var(--evm-gray-100);
    color: var(--evm-blue);
}

.nav-link.active {
    color: var(--evm-blue);
    background: rgba(21, 101, 192, 0.08);
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--evm-transition);
}

.nav-btn-primary {
    background: var(--evm-blue);
    color: var(--evm-white);
}

.nav-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.nav-btn-outline {
    background: transparent;
    color: var(--evm-blue);
    border: 2px solid var(--evm-blue);
}

.nav-btn-outline:hover {
    background: var(--evm-blue);
    color: var(--evm-white);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--evm-gray-700);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--evm-transition);
}

/* ============================================
   HERO SECTION (Page d'accueil)
   ============================================ */
.hero {
    background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #0d4a2e 100%);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 168, 37, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 160, 71, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--evm-yellow);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero h1 {
    font-family: var(--evm-font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--evm-white);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--evm-yellow), var(--evm-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--evm-font);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--evm-transition);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-yellow {
    background: linear-gradient(135deg, var(--evm-yellow), var(--evm-orange));
    color: var(--evm-dark);
    box-shadow: 0 4px 16px rgba(249, 168, 37, 0.3);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 168, 37, 0.4);
}

.btn-white-outline {
    background: transparent;
    color: var(--evm-white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-white-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.hero-visual {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 280px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

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

/* ============================================
   SECTION : COMMENT ÇA MARCHE
   ============================================ */
.section {
    padding: 70px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--evm-font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--evm-gray-900);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--evm-gray-500);
    font-size: 1rem;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--evm-white);
    border-radius: var(--evm-radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--evm-shadow-sm);
    transition: all var(--evm-transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--evm-shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--evm-font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--evm-white);
    margin: 0 auto 16px;
}

.step-card:nth-child(1) .step-number { background: var(--evm-red); }
.step-card:nth-child(2) .step-number { background: var(--evm-blue); }
.step-card:nth-child(3) .step-number { background: var(--evm-green); }
.step-card:nth-child(4) .step-number { background: var(--evm-yellow); color: var(--evm-dark); }

.step-card h3 {
    font-family: var(--evm-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--evm-gray-900);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--evm-gray-500);
    line-height: 1.5;
}

/* ============================================
   SECTION : MODULES (Cartes)
   ============================================ */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.module-card {
    background: var(--evm-white);
    border-radius: var(--evm-radius-lg);
    overflow: hidden;
    box-shadow: var(--evm-shadow-sm);
    transition: all var(--evm-transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--evm-gray-200);
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--evm-shadow-lg);
    border-color: transparent;
}

.module-card-header {
    height: 8px;
    width: 100%;
}

.module-card:nth-child(4n+1) .module-card-header { background: linear-gradient(90deg, var(--evm-red), #ef5350); }
.module-card:nth-child(4n+2) .module-card-header { background: linear-gradient(90deg, var(--evm-blue), #42a5f5); }
.module-card:nth-child(4n+3) .module-card-header { background: linear-gradient(90deg, var(--evm-green), #66bb6a); }
.module-card:nth-child(4n+4) .module-card-header { background: linear-gradient(90deg, var(--evm-yellow), var(--evm-orange)); }

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

.module-card-level {
    display: inline-block;
    background: var(--evm-gray-100);
    color: var(--evm-gray-500);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.module-card h3 {
    font-family: var(--evm-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--evm-gray-900);
    margin-bottom: 10px;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--evm-gray-500);
    line-height: 1.6;
    flex: 1;
}

.module-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--evm-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--evm-gray-500);
}

.module-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-module {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: var(--evm-blue);
    background: rgba(21, 101, 192, 0.08);
    transition: all var(--evm-transition);
}

.btn-module:hover {
    background: var(--evm-blue);
    color: var(--evm-white);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--evm-white);
    border-radius: var(--evm-radius-lg);
    padding: 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--evm-gray-100);
    color: var(--evm-gray-500);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--evm-transition);
}

.modal-close:hover {
    background: var(--evm-gray-200);
    color: var(--evm-gray-700);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
}

.modal-icon.success { background: #e8f5e9; }
.modal-icon.error { background: #ffebee; }
.modal-icon.info { background: #e3f2fd; }

.modal h2 {
    font-family: var(--evm-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--evm-gray-900);
    margin-bottom: 8px;
}

.modal p {
    color: var(--evm-gray-500);
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.code-display {
    background: var(--evm-gray-100);
    border: 2px dashed var(--evm-blue);
    border-radius: var(--evm-radius);
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--evm-blue);
    letter-spacing: 4px;
    margin: 18px 0;
    user-select: all;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-copy {
    padding: 10px 24px;
    background: var(--evm-blue);
    color: var(--evm-white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--evm-transition);
}

.btn-copy:hover {
    background: #0d47a1;
}

.btn-secondary {
    padding: 10px 24px;
    background: var(--evm-gray-100);
    color: var(--evm-gray-700);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--evm-transition);
}

.btn-secondary:hover {
    background: var(--evm-gray-200);
}

/* ============================================
   NOTIFICATIONS TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--evm-shadow-md);
    animation: toastIn 0.4s ease;
    max-width: 360px;
}

.toast.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #43a047;
}

.toast.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #e53935;
}

.toast.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

.toast.warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ef6c00;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--evm-gray-700);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--evm-red);
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid var(--evm-gray-200);
    border-radius: 10px;
    font-family: var(--evm-font);
    font-size: 0.95rem;
    color: var(--evm-gray-900);
    transition: border-color var(--evm-transition), box-shadow var(--evm-transition);
    outline: none;
    background: var(--evm-white);
}

.form-input:focus {
    border-color: var(--evm-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-input.error {
    border-color: var(--evm-red);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--evm-gray-500);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--evm-red);
    margin-top: 4px;
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: var(--evm-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--evm-transition);
    background: var(--evm-blue);
    color: var(--evm-white);
}

.btn-submit:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.evm-footer {
    background: var(--evm-dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 24px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 36px;
}

.footer-brand span {
    font-family: var(--evm-font-display);
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

.footer-text {
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

.footer-links a:hover {
    color: var(--evm-yellow);
}

/* ============================================
   PAGE DE CONNEXION / INSCRIPTION
   ============================================ */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--evm-gray-100) 0%, #e8edf5 100%);
}

.auth-card {
    background: var(--evm-white);
    border-radius: var(--evm-radius-lg);
    box-shadow: var(--evm-shadow-lg);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

.auth-card-header {
    background: linear-gradient(135deg, #0d2137, #1a3a5c);
    padding: 30px;
    text-align: center;
}

.auth-card-header img {
    height: 50px;
    margin-bottom: 10px;
}

.auth-card-header h2 {
    font-family: var(--evm-font-display);
    color: var(--evm-white);
    font-size: 1.2rem;
    font-weight: 700;
}

.auth-card-body {
    padding: 30px;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--evm-gray-100);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--evm-gray-500);
    transition: all var(--evm-transition);
    font-family: var(--evm-font);
}

.auth-tab.active {
    background: var(--evm-white);
    color: var(--evm-blue);
    box-shadow: var(--evm-shadow-sm);
}

/* ============================================
   CONTENU MODULE
   ============================================ */
.module-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.module-header {
    margin-bottom: 36px;
}

.module-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--evm-gray-500);
    margin-bottom: 12px;
}

.module-header .breadcrumb a {
    color: var(--evm-blue);
}

.module-header h1 {
    font-family: var(--evm-font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--evm-gray-900);
    margin-bottom: 8px;
}

.module-header .level-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(21, 101, 192, 0.1);
    color: var(--evm-blue);
}

.content-tabs {
    display: flex;
    gap: 4px;
    background: var(--evm-white);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    box-shadow: var(--evm-shadow-sm);
    overflow-x: auto;
}

.content-tab {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--evm-gray-500);
    transition: all var(--evm-transition);
    font-family: var(--evm-font);
    white-space: nowrap;
}

.content-tab.active {
    background: var(--evm-blue);
    color: var(--evm-white);
}

.content-tab:hover:not(.active) {
    background: var(--evm-gray-100);
}

.content-section {
    background: var(--evm-white);
    border-radius: var(--evm-radius-lg);
    padding: 36px;
    box-shadow: var(--evm-shadow-sm);
    line-height: 1.8;
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section h2 {
    font-family: var(--evm-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--evm-gray-900);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--evm-blue);
    display: inline-block;
}

.content-section h3 {
    font-family: var(--evm-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--evm-gray-900);
    margin: 24px 0 10px;
}

.content-section p {
    margin-bottom: 14px;
    color: var(--evm-gray-700);
}

.content-section ul, .content-section ol {
    margin: 10px 0 16px 24px;
}

.content-section li {
    margin-bottom: 6px;
}

.example-box {
    background: #f0f7ff;
    border-left: 4px solid var(--evm-blue);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 16px 0;
}

.example-box .label {
    font-weight: 800;
    color: var(--evm-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.exercise-box {
    background: #f1f8e9;
    border-left: 4px solid var(--evm-green);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 16px 0;
}

.exercise-box .label {
    font-weight: 800;
    color: var(--evm-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.correction-box {
    background: #fff8e1;
    border-left: 4px solid var(--evm-yellow);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 16px 0;
}

.correction-box .label {
    font-weight: 800;
    color: var(--evm-orange);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.important-box {
    background: #fce4ec;
    border-left: 4px solid var(--evm-red);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 16px 0;
}

.important-box .label {
    font-weight: 800;
    color: var(--evm-red);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--evm-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--evm-shadow-md);
        gap: 4px;
    }

    .header-nav.open {
        display: flex;
    }

    .nav-link, .nav-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

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

    .hero p {
        margin: 0 auto 24px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
    }

    .hero-visual img {
        width: 200px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .content-section {
        padding: 24px 18px;
    }

    .module-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

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

    .modal {
        padding: 24px 20px;
    }

    .auth-card-body {
        padding: 24px 20px;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================
   FORMULAIRES AUTH (affichage onglets)
   ============================================ */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--evm-red);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 18px;
}
