/* ==========================================================
   TCF CANADA PRO — STYLE GLOBAL PREMIUM (VERSION B2)
   Fichier optimisé, réutilisable sur toutes les pages
   ========================================================== */

/* -------------------------
   VARIABLES GLOBALES 
-------------------------- */
:root {
    --primary: #3554f4;
    --primary-dark: #2240d4;
    --secondary: #845ef7;
    --accent: #ffd700;

    --bg-body: #f4f6fb;
    --bg-soft: #f6f7fc;
    --bg-card: #ffffff;

    --text-main: #20243a;
    --text-muted: #6b7280;

    --radius-lg: 20px;
    --radius-md: 12px;

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 20px 50px rgba(15, 23, 42, 0.16);
}

/* -------------------------
   RESET 
-------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1.8rem;
}

/* ==========================================================
   NAVBAR PREMIUM
========================================================== */
.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e3e6f3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-brand img {
    height: 50px;
    border-radius: 12px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-main);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: 0.2s;
}

.nav-menu a:hover {
    background: #e7ecff;
    color: var(--primary);
}

.nav-menu a.active {
    background: #dde3ff;
    color: var(--primary-dark);
}

.btn-start {
    background: var(--accent) !important;
    color: #111 !important;
    font-weight: 700;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* MOBILE MENU */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #111;
    border-radius: 999px;
}

/* ==========================================================
   TITRES & SECTIONS
========================================================== */
.section {
    padding: 4rem 0;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    text-align: center;
    margin: 0.5rem 0 0.7rem 0;
}

.section-subtitle {
    text-align: center;
    max-width: 620px;
    margin: auto;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================
   CARTES
========================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

/* ==========================================================
   BOUTONS
========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.25s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* ==========================================================
   FORMULAIRES PREMIUM
========================================================== */
.form-card {
    max-width: 500px;
    margin: auto;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.25s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(53, 84, 244, 0.25);
    outline: none;
}

.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    display: none;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    display: none;
}

/* ==========================================================
   TESTS / SÉRIES
========================================================== */
.test-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.test-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.test-card-body {
    padding: 1.5rem;
}

.series-list {
    max-height: 260px;
    overflow-y: auto;
}

.series-item {
    display: flex;
    justify-content: space-between;
    background: #eef2ff;
    padding: 0.85rem;
    margin-bottom: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.series-item.free {
    background: #dcfce7;
    border-color: #22c55e;
}

.series-item.locked {
    opacity: 0.6;
}

.series-button {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
}

.series-button.free {
    background: #22c55e;
}

/* ==========================================================
   MODAL PREMIUM
========================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.6rem;
    text-align: center;
}

.modal-body {
    padding: 1.6rem;
}

/* ==========================================================
   FOOTER PREMIUM
========================================================== */
.footer {
    background: #020617;
    color: #9ca3af;
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d8d8d8;
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer small {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.2rem;
    }

    .btn {
        width: 100%;
    }
}
