/* ========================================
   LANDING PAGE – L2 PHP Sorbonne
   Couleur principale: #7451eb
   Typographie: Inter
   Mobile-first, responsive
   ======================================== */

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

:root {
    --primary: #7451eb;
    --primary-dark: #5a3ec8;
    --primary-light: #f0ecfd;
    --primary-glow: rgba(116, 81, 235, 0.12);
    --text-dark: #1a1a2e;
    --text-body: #4a4a6a;
    --text-muted: #8888a4;
    --bg-white: #ffffff;
    --bg-light: #f8f7fc;
    --bg-section: #faf9ff;
    --border: #e8e5f0;
    --border-light: #f0eef5;
    --success: #10b981;
    --warning: #f59e0b;
    --gold: #fbbf24;
    --silver: #9ca3af;
    --bronze: #d97706;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-primary: 0 4px 16px rgba(116, 81, 235, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.navbar-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
}

.navbar-links {
    display: none;
    list-style: none;
    gap: 4px;
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all var(--transition);
}

.navbar-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.navbar-cta:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.burger:hover {
    background: var(--bg-light);
}

@media (min-width: 1024px) {
    .burger {
        display: none;
    }
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all var(--transition);
}

.mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-section) 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
}

.hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 380px;
        gap: 60px;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.4rem;
    }
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-bottom: 36px;
    }
}

@media (max-width: 1023px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 81, 235, 0.35);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Mini leaderboard in hero */
.hero-leaderboard {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.hero-leaderboard-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.hero-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.hero-lb-row:hover {
    background: var(--bg-light);
}

.hero-lb-medal {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.hero-lb-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.hero-lb-pts {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

.hero-lb-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.hero-lb-footer a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.hero-lb-footer a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   SECTION – Comment ca marche
   ════════════════════════════════════════ */
.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section--alt {
    background: var(--bg-section);
}

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

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 52px;
    }
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

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

/* Mode cards (Coach + Controle) */
.modes-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .modes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

.mode-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.mode-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.mode-card-icon--coach {
    background: #ede9fe;
    color: #7c3aed;
}

.mode-card-icon--exam {
    background: #fef3c7;
    color: #d97706;
}

.mode-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.mode-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.mode-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.5;
}

.mode-card-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ════════════════════════════════════════
   SECTION – Cours
   ════════════════════════════════════════ */
.courses-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.course-card-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.course-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.course-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.course-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.course-badge--coach {
    background: #ede9fe;
    color: #7c3aed;
}

.course-badge--exam {
    background: #fef3c7;
    color: #d97706;
}

.course-badge--pdf {
    background: #dbeafe;
    color: #2563eb;
}

.course-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.course-card-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ════════════════════════════════════════
   SECTION – Leaderboard Quizz (Podium + List)
   ════════════════════════════════════════ */

/* ── Podium ── */
.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .lb-podium {
        gap: 20px;
        margin-bottom: 40px;
    }
}

.lb-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
}

/* Crown for 1st place */
.lb-podium-crown {
    font-size: 1.6rem;
    margin-bottom: -4px;
    animation: crownBounce 2s ease-in-out infinite;
}

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

/* Avatars */
.lb-podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
    .lb-podium-avatar {
        width: 68px;
        height: 68px;
        font-size: 1rem;
    }
}

.lb-podium--first .lb-podium-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.05rem;
}

@media (min-width: 640px) {
    .lb-podium--first .lb-podium-avatar {
        width: 84px;
        height: 84px;
        font-size: 1.15rem;
    }
}

.lb-podium-avatar--gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.lb-podium-avatar--silver {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 50%, #6b7280 100%);
    box-shadow: 0 4px 16px rgba(156, 163, 175, 0.4);
}

.lb-podium-avatar--bronze {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

/* Medal emoji */
.lb-podium-medal {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

/* Name & score */
.lb-podium-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (min-width: 640px) {
    .lb-podium-name {
        font-size: 0.92rem;
    }
}

.lb-podium-score {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.78rem;
    margin-bottom: 10px;
}

@media (min-width: 640px) {
    .lb-podium-score {
        font-size: 0.85rem;
    }
}

/* Podium bars */
.lb-podium-bar {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    position: relative;
}

.lb-podium-bar-rank {
    font-weight: 800;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
    .lb-podium-bar-rank {
        font-size: 1.8rem;
    }
}

.lb-podium-bar--gold {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    height: 100px;
    box-shadow: 0 -4px 20px rgba(251, 191, 36, 0.3);
}

@media (min-width: 640px) {
    .lb-podium-bar--gold {
        height: 120px;
    }
}

.lb-podium-bar--silver {
    background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
    height: 72px;
    box-shadow: 0 -4px 16px rgba(156, 163, 175, 0.25);
}

@media (min-width: 640px) {
    .lb-podium-bar--silver {
        height: 88px;
    }
}

.lb-podium-bar--bronze {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    height: 56px;
    box-shadow: 0 -4px 16px rgba(217, 119, 6, 0.2);
}

@media (min-width: 640px) {
    .lb-podium-bar--bronze {
        height: 68px;
    }
}

/* ── List (rank 4+) ── */
.lb-list {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all 0.25s;
}

@media (min-width: 640px) {
    .lb-list-row {
        padding: 14px 20px;
        gap: 16px;
    }
}

.lb-list-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.lb-list-rank {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.82rem;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.lb-list-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-list-avatar span {
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
    letter-spacing: 0.02em;
}

.lb-list-info {
    flex: 1;
    min-width: 0;
}

.lb-list-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.88rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-list-bar-wrapper {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.lb-list-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.6s ease;
}

.lb-list-points {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.92rem;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.lb-list-points span {
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════
   SECTION – Contact
   ════════════════════════════════════════ */
.contact-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
}

.contact-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--primary);
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   ANIMATIONS  (on scroll reveal)
   ════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

/* ════════════════════════════════════════
   MODALE TD
   ════════════════════════════════════════ */
.td-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.td-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.td-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    padding: 48px 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.td-modal.open .td-modal-content {
    transform: scale(1);
}

.td-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.td-modal-close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.td-modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 24px;
}

.td-modal-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.td-modal-body {
    text-align: center;
}

.td-modal-lead {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.6;
}

.td-modal-lead strong {
    color: var(--primary);
    font-weight: 700;
}

.td-modal-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.td-modal-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.td-modal-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.td-modal-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.td-modal-feature p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.5;
}

.td-modal-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .td-modal-content {
        padding: 32px 24px;
    }
    
    .td-modal-title {
        font-size: 1.5rem;
    }
    
    .td-modal-lead {
        font-size: 1rem;
    }
    
    .td-modal-cta {
        flex-direction: column;
    }
    
    .td-modal-cta .btn {
        width: 100%;
    }
}
