/* ============================================================
   TAKE CARE AFRICA — assets/css/global.css
   Design system complet : variables, reset, composants,
   header pilule, footer, toasts, modals, formulaires
   ============================================================ */

/* ─── VARIABLES (mode clair) ─────────────────────────────── */
:root {
    /* Palette Take Care */
    --tc-blue:        #1EAEE8;
    --tc-blue-dark:   #1590C4;
    --tc-blue-light:  #5ECBF0;
    --tc-green:       #8DC63F;
    --tc-green-dark:  #6FA832;
    --tc-teal:        #1A9E7A;
    --tc-teal-dark:   #147A5E;
    --tc-dark:        #0A1628;
    --tc-dark-80:     rgba(10, 22, 40, 0.80);
    --tc-dark-97:     rgba(10, 22, 40, 0.97);
    --tc-text:        #1C2B3A;
    --tc-muted:       #5A7A8A;
    --tc-bg:          #F0F8FF;
    --tc-border:      rgba(30, 174, 232, 0.15);

    /* Glassmorphisme */
    --glass-bg:       rgba(255, 255, 255, 0.10);
    --glass-bg-hover: rgba(255, 255, 255, 0.16);
    --glass-border:   rgba(255, 255, 255, 0.20);
    --glass-blur:     blur(20px);
    --glass-blur-sm:  blur(12px);

    /* Rayons */
    --radius-pill:    50px;
    --radius-card:    16px;
    --radius-sm:      8px;
    --radius-xs:      4px;

    /* Ombres */
    --shadow-glass:   0 8px 32px rgba(10, 22, 40, 0.18);
    --shadow-card:    0 4px 24px rgba(10, 22, 40, 0.10);
    --shadow-sm:      0 2px 8px  rgba(10, 22, 40, 0.08);
    --shadow-lg:      0 16px 48px rgba(10, 22, 40, 0.24);

    /* Typographie */
    --font-primary:   'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body:      'Inter', system-ui, sans-serif;

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Espacements */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Header */
    --header-height:      72px;
    --header-pill-top:    16px;

    /* Z-index */
    --z-back:     -1;
    --z-base:      1;
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-overlay:  300;
    --z-modal:    400;
    --z-toast:    500;

    /* Mode clair */
    --page-bg:    var(--tc-bg);
    --page-text:  var(--tc-text);
    --card-bg:    rgba(255, 255, 255, 0.80);
    --input-bg:   rgba(255, 255, 255, 0.90);
    --input-border: rgba(10, 22, 40, 0.15);
}

/* ─── VARIABLES (mode sombre) ────────────────────────────── */
[data-theme="dark"] {
    --page-bg:    #070F1A;
    --page-text:  #E8F4FC;
    --tc-muted:   #8AAABB;
    --card-bg:    rgba(255, 255, 255, 0.06);
    --input-bg:   rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.12);
    --glass-bg:       rgba(255, 255, 255, 0.07);
    --glass-bg-hover: rgba(255, 255, 255, 0.11);
    --glass-border:   rgba(255, 255, 255, 0.12);
    --shadow-glass:   0 8px 32px rgba(0, 0, 0, 0.40);
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.30);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page-bg:    #070F1A;
        --page-text:  #E8F4FC;
        --tc-muted:   #8AAABB;
        --card-bg:    rgba(255, 255, 255, 0.06);
        --input-bg:   rgba(255, 255, 255, 0.08);
        --input-border: rgba(255, 255, 255, 0.12);
        --glass-bg:       rgba(255, 255, 255, 0.07);
        --glass-bg-hover: rgba(255, 255, 255, 0.11);
        --glass-border:   rgba(255, 255, 255, 0.12);
        --shadow-glass:   0 8px 32px rgba(0, 0, 0, 0.40);
        --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.30);
    }
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-text);
    background-color: var(--page-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tc-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--tc-blue-dark); }

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-text);
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* Focus visible accessible */
:focus-visible {
    outline: 2px solid var(--tc-blue);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

/* ─── CONTENEUR ──────────────────────────────────────────── */
.tc-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.tc-container--sm  { max-width: 800px; }
.tc-container--md  { max-width: 1024px; }
.tc-container--lg  { max-width: 1440px; }

/* ─── SPACER HEADER ──────────────────────────────────────── */
.tc-header-spacer {
    height: calc(var(--header-height) + var(--header-pill-top) + 16px);
}

/* ═══════════════════════════════════════════════════════════
   HEADER PILULE
═══════════════════════════════════════════════════════════ */
.tc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    display: flex;
    justify-content: center;
    padding: var(--header-pill-top) var(--space-lg);
    pointer-events: none;
}

.tc-header__pill {
    pointer-events: all;
    width: 100%;
    max-width: 1280px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glass);
    transition:
        background var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.tc-header__pill--scrolled {
    background: rgba(10, 22, 40, 0.85);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.tc-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 24px;
    height: var(--header-height);
}

/* Logo */
.tc-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.tc-header__logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Navigation desktop */
.tc-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tc-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.tc-nav__item { position: relative; }

.tc-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    /* Couleur adaptative : sombre sur fond clair, clair sur fond sombre */
    color: var(--tc-dark);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    white-space: nowrap;
    background: transparent;
}

/* Une fois scrollé (pill sombre) → texte blanc */
.tc-header__pill--scrolled .tc-nav__link {
    color: rgba(255, 255, 255, 0.85);
}

.tc-nav__link:hover {
    color: var(--tc-blue);
    background: rgba(30, 174, 232, 0.08);
}

.tc-header__pill--scrolled .tc-nav__link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.tc-nav__link.active {
    background: rgba(30, 174, 232, 0.12);
    color: var(--tc-blue);
}

.tc-header__pill--scrolled .tc-nav__link.active {
    background: rgba(30, 174, 232, 0.20);
    color: var(--tc-blue-light);
}

.tc-nav__chevron {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
    color: var(--tc-muted);
}

.tc-header__pill--scrolled .tc-nav__chevron {
    color: rgba(255, 255, 255, 0.55);
}

.tc-nav__link--dropdown[aria-expanded="true"] .tc-nav__chevron {
    transform: rotate(180deg);
}

/* Dropdown glassmorphisme */
.tc-nav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        visibility var(--transition-fast);
    transform: translateX(-50%) translateY(-8px);
    z-index: var(--z-dropdown);
}

.tc-nav__item--dropdown:hover .tc-nav__dropdown,
.tc-nav__dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.tc-dropdown__glass {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: var(--space-sm);
}

.tc-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.80);
    transition: all var(--transition-fast);
}

.tc-dropdown__item:hover {
    background: rgba(30, 174, 232, 0.15);
    color: #ffffff;
}

.tc-dropdown__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 174, 232, 0.15);
    border-radius: var(--radius-sm);
    color: var(--tc-blue-light);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.tc-dropdown__item:hover .tc-dropdown__icon {
    background: rgba(30, 174, 232, 0.30);
}

.tc-dropdown__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-dropdown__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.tc-dropdown__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.2;
}

/* Boutons CTA header */
.tc-header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Toggle thème + burger */
.tc-header__theme-toggle,
.tc-header__burger {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Adaptatif : sombre sur fond clair */
    color: var(--tc-dark);
    background: rgba(10, 22, 40, 0.07);
    border: 1px solid rgba(10, 22, 40, 0.12);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

/* Sur fond sombre (scrollé) */
.tc-header__pill--scrolled .tc-header__theme-toggle,
.tc-header__pill--scrolled .tc-header__burger {
    color: rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.tc-header__theme-toggle:hover,
.tc-header__burger:hover {
    background: rgba(10, 22, 40, 0.13);
    color: var(--tc-dark);
}

.tc-header__pill--scrolled .tc-header__theme-toggle:hover,
.tc-header__pill--scrolled .tc-header__burger:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* Burger toujours à droite, poussé par margin-left auto */
.tc-header__burger {
    display: none;
    margin-left: auto;
}

/* Bouton Pro visible uniquement sur mobile (entre logo et burger) */
.tc-header__mobile-pro {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   MENU MOBILE OFF-CANVAS
═══════════════════════════════════════════════════════════ */
.tc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tc-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tc-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--tc-dark-97);
    z-index: calc(var(--z-overlay) + 1);
    transform: translateX(100%);
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tc-mobile-menu.open {
    transform: translateX(0);
}

.tc-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-mobile-menu__logo img {
    height: 32px;
    width: auto;
}

.tc-mobile-menu__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.70);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.tc-mobile-menu__close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.tc-mobile-menu__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.tc-mobile-nav { display: flex; flex-direction: column; gap: 4px; }

.tc-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.80);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
}

.tc-mobile-nav__link:hover,
.tc-mobile-nav__link.active {
    background: rgba(30, 174, 232, 0.15);
    color: #ffffff;
}

.tc-mobile-nav__link i { width: 20px; text-align: center; }

.tc-mobile-nav__accordion-btn {
    justify-content: flex-start;
    width: 100%;
}

.tc-mobile-nav__chevron {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.tc-mobile-nav__accordion-btn[aria-expanded="true"] .tc-mobile-nav__chevron {
    transform: rotate(180deg);
}

.tc-mobile-nav__sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: var(--space-lg);
    margin-top: 4px;
}

.tc-mobile-nav__sub.open { display: flex; }

.tc-mobile-nav__sub-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tc-mobile-nav__sub-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.tc-mobile-menu__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tc-mobile-menu__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.60);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: all var(--transition-fast);
}

.tc-social-icon:hover {
    background: rgba(30, 174, 232, 0.20);
    color: var(--tc-blue-light);
    border-color: rgba(30, 174, 232, 0.30);
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════════════════ */
.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-fast);
}

.tc-btn:hover::before { background: rgba(255, 255, 255, 0.08); }

/* Primary */
.tc-btn--primary {
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(30, 174, 232, 0.35);
}

.tc-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(30, 174, 232, 0.50);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Secondary */
.tc-btn--secondary {
    background: linear-gradient(135deg, var(--tc-green), var(--tc-teal));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(141, 198, 63, 0.30);
}

.tc-btn--secondary:hover {
    box-shadow: 0 6px 24px rgba(141, 198, 63, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Ghost */
.tc-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.90);
    border-color: rgba(255, 255, 255, 0.20);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
}

.tc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.30);
}

/* Outline */
.tc-btn--outline {
    background: transparent;
    color: var(--tc-blue);
    border-color: var(--tc-blue);
}

.tc-btn--outline:hover {
    background: rgba(30, 174, 232, 0.08);
    color: var(--tc-blue);
}

/* Tailles */
.tc-btn--sm  { padding: 8px 16px; font-size: 0.8125rem; }
.tc-btn--lg  { padding: 16px 36px; font-size: 1.0625rem; }
.tc-btn--xl  { padding: 20px 48px; font-size: 1.125rem; }
.tc-btn--full { width: 100%; }

/* Disabled */
.tc-btn:disabled,
.tc-btn--disabled {
    opacity: 0.50;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading */
.tc-btn--loading {
    pointer-events: none;
    opacity: 0.80;
}

.tc-btn--loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tc-spin 0.7s linear infinite;
    margin-left: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════
   CARDS GLASSMORPHISME
═══════════════════════════════════════════════════════════ */
.tc-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-glass);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.30),
        transparent);
}

.tc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--glass-bg-hover);
}

.tc-card--dark {
    background: rgba(10, 22, 40, 0.60);
    border-color: rgba(255, 255, 255, 0.08);
}

.tc-card--light {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(30, 174, 232, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ─── Icône card ─────────────────────────────────────────── */
.tc-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-card);
    font-size: 1.4rem;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(30, 174, 232, 0.30);
}

.tc-card__icon--green {
    background: linear-gradient(135deg, var(--tc-green), var(--tc-teal));
    box-shadow: 0 4px 16px rgba(141, 198, 63, 0.30);
}

.tc-card__title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--page-text);
}

.tc-card__text {
    font-size: 0.9375rem;
    color: var(--tc-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════ */
.tc-section {
    padding: var(--space-3xl) 0;
}

.tc-section--sm { padding: var(--space-2xl) 0; }
.tc-section--lg { padding: calc(var(--space-3xl) * 1.5) 0; }

.tc-section--dark {
    background: var(--tc-dark);
    color: rgba(255, 255, 255, 0.90);
}

.tc-section--dark .tc-card__title { color: #ffffff; }
.tc-section--dark .tc-card__text  { color: rgba(255, 255, 255, 0.65); }

.tc-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.tc-section__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tc-blue);
    background: rgba(30, 174, 232, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(30, 174, 232, 0.20);
    margin-bottom: var(--space-md);
}

.tc-section__label--green {
    color: var(--tc-green);
    background: rgba(141, 198, 63, 0.12);
    border-color: rgba(141, 198, 63, 0.20);
}

.tc-section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.tc-section__subtitle {
    font-size: 1.0625rem;
    color: var(--tc-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grilles */
.tc-grid {
    display: grid;
    gap: var(--space-lg);
}

.tc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tc-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.tc-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--tc-dark);
}

.tc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-back);
}

/* Particules CSS légères */
.tc-hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tc-hero__particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: tc-float linear infinite;
}

.tc-hero__particle:nth-child(1)  { width:  6px; height:  6px; background: var(--tc-blue);  left: 10%; animation-duration: 8s;  animation-delay: 0s;   top: 80%; }
.tc-hero__particle:nth-child(2)  { width:  4px; height:  4px; background: var(--tc-green); left: 20%; animation-duration: 12s; animation-delay: -3s;  top: 90%; }
.tc-hero__particle:nth-child(3)  { width:  8px; height:  8px; background: var(--tc-teal);  left: 30%; animation-duration: 10s; animation-delay: -5s;  top: 70%; }
.tc-hero__particle:nth-child(4)  { width:  3px; height:  3px; background: var(--tc-blue);  left: 40%; animation-duration: 14s; animation-delay: -2s;  top: 85%; }
.tc-hero__particle:nth-child(5)  { width:  5px; height:  5px; background: var(--tc-green); left: 50%; animation-duration: 9s;  animation-delay: -7s;  top: 75%; }
.tc-hero__particle:nth-child(6)  { width:  7px; height:  7px; background: var(--tc-blue);  left: 60%; animation-duration: 11s; animation-delay: -1s;  top: 88%; }
.tc-hero__particle:nth-child(7)  { width:  4px; height:  4px; background: var(--tc-teal);  left: 70%; animation-duration: 13s; animation-delay: -4s;  top: 72%; }
.tc-hero__particle:nth-child(8)  { width:  6px; height:  6px; background: var(--tc-green); left: 80%; animation-duration: 7s;  animation-delay: -6s;  top: 82%; }
.tc-hero__particle:nth-child(9)  { width:  5px; height:  5px; background: var(--tc-blue);  left: 90%; animation-duration: 15s; animation-delay: -2s;  top: 68%; }
.tc-hero__particle:nth-child(10) { width:  3px; height:  3px; background: var(--tc-teal);  left:  5%; animation-duration: 10s; animation-delay: -8s;  top: 95%; }

/* Glow orbes d'arrière-plan */
.tc-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.20;
    animation: tc-pulse 6s ease-in-out infinite alternate;
}

.tc-hero__orb--blue {
    width: 500px;
    height: 500px;
    background: var(--tc-blue);
    top: -100px;
    right: -100px;
}

.tc-hero__orb--green {
    width: 400px;
    height: 400px;
    background: var(--tc-green);
    bottom: -80px;
    left: -80px;
    animation-delay: -3s;
}

.tc-hero__content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    color: #ffffff;
}

.tc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(30, 174, 232, 0.15);
    border: 1px solid rgba(30, 174, 232, 0.30);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tc-blue-light);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
}

.tc-hero__title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    color: #ffffff;
}

.tc-hero__title-gradient {
    background: linear-gradient(135deg, var(--tc-blue-light), var(--tc-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tc-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.70);
    max-width: 580px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.tc-hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FORMULAIRES
═══════════════════════════════════════════════════════════ */
.tc-form { display: flex; flex-direction: column; gap: var(--space-md); }

.tc-form__group { display: flex; flex-direction: column; gap: var(--space-sm); }

.tc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.tc-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--page-text);
}

.tc-form__label--required::after {
    content: ' *';
    color: #E53E3E;
}

.tc-form__input,
.tc-form__select,
.tc-form__textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--page-text);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.tc-form__input:focus,
.tc-form__select:focus,
.tc-form__textarea:focus {
    outline: none;
    border-color: var(--tc-blue);
    box-shadow: 0 0 0 3px rgba(30, 174, 232, 0.15);
    background: var(--input-bg);
}

.tc-form__input::placeholder { color: var(--tc-muted); opacity: 0.70; }

.tc-form__input--icon { padding-left: 44px; }

.tc-form__input-wrap {
    position: relative;
}

.tc-form__input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tc-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.tc-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.tc-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.tc-form__error {
    font-size: 0.8125rem;
    color: #E53E3E;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tc-form__hint {
    font-size: 0.8125rem;
    color: var(--tc-muted);
}

/* Checkbox / Radio */
.tc-form__check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.tc-form__check input[type="checkbox"],
.tc-form__check input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-xs);
    background: var(--input-bg);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    margin-top: 2px;
}

.tc-form__check input[type="radio"] { border-radius: 50%; }

.tc-form__check input[type="checkbox"]:checked,
.tc-form__check input[type="radio"]:checked {
    background: var(--tc-blue);
    border-color: var(--tc-blue);
}

.tc-form__check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.tc-form__check input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #ffffff;
    border-radius: 50%;
}

.tc-form__check-label {
    font-size: 0.9rem;
    color: var(--page-text);
    line-height: 1.5;
    user-select: none;
}

/* Honeypot — caché via CSS uniquement, jamais type="hidden" */
.tc-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
    height: 0;
    overflow: hidden;
}

/* Mention reCAPTCHA */
.tc-form__recaptcha-notice {
    font-size: 0.75rem;
    color: var(--tc-muted);
    text-align: center;
    line-height: 1.5;
}

.tc-form__recaptcha-notice a {
    color: var(--tc-blue);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   TOAST SYSTEM
═══════════════════════════════════════════════════════════ */
.tc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.tc-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: 16px 20px;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    pointer-events: all;
    animation: tc-toast-in 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
}

.tc-toast.tc-toast--out {
    animation: tc-toast-out 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Barre de progression */
.tc-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.40;
    animation: tc-toast-progress 4s linear forwards;
    border-radius: 0 0 0 var(--radius-card);
}

.tc-toast__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tc-toast__body { flex: 1; min-width: 0; }

.tc-toast__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.tc-toast__message {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.4;
    margin-bottom: 0;
}

.tc-toast__close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.50);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
    transition: color var(--transition-fast);
    font-size: 0.75rem;
}

.tc-toast__close:hover { color: #ffffff; }

/* Types */
.tc-toast--success { border-left: 3px solid #48BB78; }
.tc-toast--success .tc-toast__icon { background: rgba(72, 187, 120, 0.15); color: #48BB78; }

.tc-toast--error { border-left: 3px solid #FC8181; }
.tc-toast--error .tc-toast__icon { background: rgba(252, 129, 129, 0.15); color: #FC8181; }

.tc-toast--warning { border-left: 3px solid #F6C90E; }
.tc-toast--warning .tc-toast__icon { background: rgba(246, 201, 14, 0.15); color: #F6C90E; }

.tc-toast--info { border-left: 3px solid var(--tc-blue); }
.tc-toast--info .tc-toast__icon { background: rgba(30, 174, 232, 0.15); color: var(--tc-blue-light); }

/* ═══════════════════════════════════════════════════════════
   MODAL SYSTEM
═══════════════════════════════════════════════════════════ */
.tc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.tc-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.tc-modal {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-base);
    color: #ffffff;
}

.tc-modal-backdrop.open .tc-modal {
    transform: scale(1) translateY(0);
}

.tc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

/* Header en forme de pilule */
.tc-modal__title-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(30, 174, 232, 0.15);
    border: 1px solid rgba(30, 174, 232, 0.25);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
}

.tc-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.60);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.tc-modal__close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.tc-modal__body { padding: var(--space-lg) 24px var(--space-xl); }

.tc-modal__footer {
    padding: 0 24px var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* Scrollbar modal */
.tc-modal::-webkit-scrollbar { width: 4px; }
.tc-modal::-webkit-scrollbar-track { background: transparent; }
.tc-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════ */
.tc-tabs { width: 100%; }

.tc-tabs__nav {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 4px;
    margin-bottom: var(--space-xl);
}

.tc-tabs__btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tc-muted);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    text-align: center;
}

.tc-tabs__btn:hover { color: var(--page-text); background: rgba(255, 255, 255, 0.06); }

.tc-tabs__btn.active {
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 174, 232, 0.30);
}

.tc-tabs__panel { display: none; }
.tc-tabs__panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   ACCORDION
═══════════════════════════════════════════════════════════ */
.tc-accordion { display: flex; flex-direction: column; gap: var(--space-sm); }

.tc-accordion__item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.tc-accordion__item.open {
    border-color: rgba(30, 174, 232, 0.30);
}

.tc-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--page-text);
    text-align: left;
    gap: var(--space-md);
    transition: all var(--transition-fast);
}

.tc-accordion__trigger:hover { color: var(--tc-blue); }

.tc-accordion__icon {
    font-size: 0.75rem;
    color: var(--tc-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.tc-accordion__item.open .tc-accordion__icon { transform: rotate(180deg); color: var(--tc-blue); }

.tc-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-accordion__item.open .tc-accordion__body { max-height: 600px; }

.tc-accordion__content {
    padding: 0 24px 24px;
    color: var(--tc-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   STEPPER
═══════════════════════════════════════════════════════════ */
.tc-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.tc-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(20px + 2px);
    right: calc(20px + 2px);
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
}

.tc-stepper__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.tc-stepper__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.50);
    transition: all var(--transition-base);
}

.tc-stepper__step.active .tc-stepper__number {
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(30, 174, 232, 0.40);
}

.tc-stepper__step.done .tc-stepper__number {
    background: var(--tc-green);
    border-color: transparent;
    color: #ffffff;
}

.tc-stepper__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.50);
    text-align: center;
    line-height: 1.3;
}

.tc-stepper__step.active .tc-stepper__label { color: var(--tc-blue-light); }
.tc-stepper__step.done .tc-stepper__label  { color: var(--tc-green); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.tc-footer {
    background: var(--tc-dark);
    padding-top: var(--space-3xl);
    margin-top: auto;
}

.tc-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-2xl);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: var(--space-xl);
}

.tc-footer__logo {
    display: inline-block;
    margin-bottom: var(--space-md);
    width: 200px;
}

.tc-footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.tc-footer__social {
    display: flex;
    gap: var(--space-sm);
}

.tc-footer__social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.tc-footer__social-link:hover {
    background: rgba(30, 174, 232, 0.20);
    color: var(--tc-blue-light);
    border-color: rgba(30, 174, 232, 0.30);
}

.tc-footer__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: var(--space-md);
}

.tc-footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }

.tc-footer__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.60);
    transition: color var(--transition-fast);
    padding: 2px 0;
}

.tc-footer__link i { width: 16px; font-size: 0.8rem; color: var(--tc-blue); opacity: 0.70; }

.tc-footer__link:hover { color: #ffffff; }
.tc-footer__link:hover i { opacity: 1; }

.tc-footer__contact { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }

.tc-footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

.tc-footer__contact-item i { color: var(--tc-green); width: 16px; }
.tc-footer__contact-item:hover { color: #ffffff; }

.tc-footer__newsletter { margin-top: var(--space-lg); }
.tc-footer__newsletter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tc-footer__newsletter-label i { color: var(--tc-blue-light); }

/* Bas de footer */
.tc-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-lg);
}

.tc-footer__bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.tc-footer__copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: 0;
}

.tc-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
}

.tc-footer__bottom-link {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition-fast);
}

.tc-footer__bottom-link:hover { color: #ffffff; }

.tc-footer__recaptcha-notice {
    width: 100%;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-bottom: 0;
}

.tc-footer__recaptcha-notice a {
    color: rgba(30, 174, 232, 0.60);
}

.tc-footer__recaptcha-notice a:hover { color: var(--tc-blue-light); }

/* reCAPTCHA badge masqué */
.grecaptcha-badge { visibility: hidden !important; }

/* ═══════════════════════════════════════════════════════════
   BOUTON RETOUR EN HAUT
═══════════════════════════════════════════════════════════ */
.tc-back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(30, 174, 232, 0.40);
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
    font-size: 0.875rem;
}

.tc-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tc-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 174, 232, 0.55);
}

/* ═══════════════════════════════════════════════════════════
   UTILITAIRES
═══════════════════════════════════════════════════════════ */
.tc-text-center { text-align: center; }
.tc-text-left   { text-align: left; }
.tc-text-right  { text-align: right; }

.tc-text-blue   { color: var(--tc-blue); }
.tc-text-green  { color: var(--tc-green); }
.tc-text-teal   { color: var(--tc-teal); }
.tc-text-muted  { color: var(--tc-muted); }
.tc-text-white  { color: #ffffff; }

.tc-fw-400 { font-weight: 400; }
.tc-fw-600 { font-weight: 600; }
.tc-fw-700 { font-weight: 700; }
.tc-fw-800 { font-weight: 800; }

.tc-mb-0  { margin-bottom: 0; }
.tc-mb-sm { margin-bottom: var(--space-sm); }
.tc-mb-md { margin-bottom: var(--space-md); }
.tc-mb-lg { margin-bottom: var(--space-lg); }
.tc-mb-xl { margin-bottom: var(--space-xl); }

.tc-mt-xl  { margin-top: var(--space-xl); }
.tc-mt-2xl { margin-top: var(--space-2xl); }

.tc-d-flex   { display: flex; }
.tc-flex-center { display: flex; align-items: center; justify-content: center; }
.tc-gap-sm   { gap: var(--space-sm); }
.tc-gap-md   { gap: var(--space-md); }
.tc-gap-lg   { gap: var(--space-lg); }

.tc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Badge "Coming soon" */
.tc-badge-soon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 32px;
    background: rgba(30, 174, 232, 0.12);
    border: 1px solid rgba(30, 174, 232, 0.25);
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tc-blue-light);
}

/* Divider */
.tc-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(30, 174, 232, 0.30),
        transparent);
    border: none;
    margin: var(--space-xl) 0;
}

/* Gradient text */
.tc-gradient-text {
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Liste checkmark */
.tc-check-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.tc-check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--page-text);
    line-height: 1.5;
}

.tc-check-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55%;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes tc-float {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 0.15; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

@keyframes tc-pulse {
    0%   { transform: scale(1);    opacity: 0.15; }
    100% { transform: scale(1.15); opacity: 0.25; }
}

@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

@keyframes tc-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes tc-toast-out {
    from { opacity: 1; transform: translateX(0);    max-height: 120px; margin-bottom: var(--space-sm); }
    to   { opacity: 0; transform: translateX(40px); max-height: 0;     margin-bottom: 0; }
}

@keyframes tc-toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

@keyframes tc-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Classe utilitaire animation */
.tc-animate-fade-in {
    animation: tc-fade-in 0.5s ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Tablette large */
@media (max-width: 1100px) {
    .tc-header__inner { padding: 10px 18px; }
    .tc-nav__link { padding: 8px 10px; font-size: 0.8125rem; }
    .tc-header__cta .tc-btn span { display: none; }
    .tc-header__cta .tc-btn { padding: 8px 12px; }
    .tc-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--space-lg); }
}

/* Tablette */
@media (max-width: 900px) {
    .tc-header__nav { display: none; }
    .tc-header__cta { display: none; }
    .tc-header__theme-toggle { display: none; }

    /* Burger affiché et poussé à droite */
    .tc-header__burger {
        display: flex;
        margin-left: auto;
    }

    /* Bouton Pro visible entre logo et burger */
    .tc-header__mobile-pro {
        display: inline-flex;
    }

    .tc-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .tc-grid--3 { grid-template-columns: repeat(2, 1fr); }

    .tc-stepper { gap: 0; }
    .tc-stepper__label { font-size: 0.6875rem; }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-xl:  28px;
        --space-2xl: 48px;
        --space-3xl: 72px;
    }

    .tc-header { padding: 12px var(--space-md); }
    .tc-header__inner { padding: 8px 16px; height: 60px; }
    .tc-header__logo img { height: 35px; }
    .tc-header-spacer { height: 84px; }

    .tc-mobile-menu { width: min(300px, 90vw); }

    .tc-grid--2 { grid-template-columns: 1fr; }
    .tc-grid--3 { grid-template-columns: 1fr; }
    .tc-grid--4 { grid-template-columns: repeat(2, 1fr); }

    .tc-tabs__nav { flex-direction: column; border-radius: var(--radius-card); }

    .tc-hero__cta { flex-direction: column; align-items: stretch; }

    .tc-form__row { grid-template-columns: 1fr; }

    .tc-footer__inner { grid-template-columns: 1fr; }
    .tc-footer__bottom-inner { flex-direction: column; text-align: center; }

    .tc-toast-container { bottom: 16px; right: 16px; left: 16px; width: auto; max-width: none; }

    .tc-stepper { flex-direction: column; gap: var(--space-sm); }
    .tc-stepper::before { display: none; }
    .tc-stepper__step { flex-direction: row; align-items: center; gap: var(--space-md); }
    .tc-stepper__label { text-align: left; }
}

/* Print */
@media print {
    .tc-header,
    .tc-footer,
    .tc-back-to-top,
    .tc-toast-container { display: none !important; }
    .tc-header-spacer { height: 0; }
    body { color: #000; background: #fff; }
}

/* ============================================================
   CORRECTIFS HEADER — anomalies visuelles (patch v1.1)
   ============================================================ */

/* ─── Fix overflow header : ne pas masquer les boutons CTA ── */
.tc-header__inner {
    overflow: visible;
}

/* ─── Fix bouton "Créer un compte" sur fond clair ──────────── */
/* Le ghost sur fond clair doit avoir un texte lisible sombre */
.tc-header__cta .tc-btn--ghost {
    background: rgba(10, 22, 40, 0.08);
    color: var(--tc-dark);
    border: 1px solid rgba(10, 22, 40, 0.22);
}

.tc-header__cta .tc-btn--ghost:hover {
    background: rgba(10, 22, 40, 0.15);
    color: var(--tc-dark);
    border-color: rgba(10, 22, 40, 0.35);
}

/* ─── Fix boutons CTA sur fond sombre (header scrollé) ─────── */
.tc-header__pill--scrolled .tc-header__cta .tc-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tc-header__pill--scrolled .tc-header__cta .tc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.40);
}

/* ─── Fix liens nav sur fond sombre (texte noir → blanc) ───── */
.tc-header__pill--scrolled .tc-nav__link {
    color: rgba(255, 255, 255, 0.90) !important;
}

.tc-header__pill--scrolled .tc-nav__link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.tc-header__pill--scrolled .tc-nav__link.active {
    color: var(--tc-blue-light) !important;
    background: rgba(30, 174, 232, 0.22);
}

/* ─── Fix pilule : flex sans troncature, wrapping interdit ─── */
.tc-header__pill {
    min-width: 0;
    overflow: visible;
}

.tc-header__inner {
    flex-wrap: nowrap;
    min-width: 0;
}

/* ─── Fix CTA desktop : empêcher la compression des boutons ── */
.tc-header__cta {
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 8px;
}

.tc-header__cta .tc-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ─── Fix responsive 1100px : garder le texte des boutons CTA */
@media (max-width: 1100px) {
    /* Annule le masquage du span introduit précédemment */
    .tc-header__cta .tc-btn span {
        display: inline;
    }
    /* Réduit légèrement la taille pour tenir dans la pilule */
    .tc-header__cta .tc-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
    }
    .tc-nav__link {
        padding: 8px 8px;
        font-size: 0.80rem;
    }
}

/* ─── Fix mobile : bouton Pro ne déborde pas du header ─────── */
.tc-header__mobile-pro {
    flex-shrink: 0;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.80rem;
    padding: 8px 14px;
}

/* ─── Fix burger toujours visible et en dernier ─────────────── */
@media (max-width: 900px) {
    .tc-header__inner {
        gap: 8px;
    }
    .tc-header__burger {
        margin-left: 0;
        flex-shrink: 0;
        order: 99;
    }
    .tc-header__mobile-pro {
        order: 98;
    }
}

@media (max-width: 640px) {
    .tc-header__mobile-pro {
        font-size: 0.75rem;
        padding: 7px 11px;
        max-width: 140px;
    }
    /* Forcer ordre logo → pro → burger */
    .tc-header__logo   { order: 1; }
    .tc-header__mobile-pro { order: 2; }
    .tc-header__burger { order: 3; }
}

/* ============================================================
   CORRECTIFS HEADER v1.2
   ============================================================ */

/* ─── Pilule plus large et hauteur légèrement augmentée ────── */
.tc-header {
    padding: var(--header-pill-top) var(--space-md);
}

.tc-header__pill {
    max-width: 1380px;
    overflow: visible;
    min-width: 0;
}

.tc-header__inner {
    overflow: visible;
    flex-wrap: nowrap;
    min-width: 0;
    padding: 10px 28px;
    height: 76px;
    gap: 6px;
}

/* ─── Fix double bouton : masquer mobile-pro sur desktop ────── */
.tc-header__mobile-pro {
    display: none !important;
}

/* ─── Ré-afficher mobile-pro uniquement sous 900px ──────────── */
@media (max-width: 900px) {
    .tc-header__mobile-pro {
        display: inline-flex !important;
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.80rem;
        padding: 8px 14px;
        max-width: 170px;
        order: 98;
    }
}

/* ─── Fix burger invisible sur fond sombre ──────────────────── */
.tc-header__burger {
    color: var(--tc-text);
    background: rgba(10, 22, 40, 0.08);
    border: 1px solid rgba(10, 22, 40, 0.18);
}

/* Etat scrollé (fond sombre) → forcer blanc */
.tc-header__pill--scrolled .tc-header__burger {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
}

.tc-header__pill--scrolled .tc-header__burger:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    color: #ffffff !important;
}

/* ─── Fix liens nav invisibles sur fond sombre ──────────────── */
.tc-header__pill--scrolled .tc-nav__link {
    color: rgba(255, 255, 255, 0.88) !important;
}

.tc-header__pill--scrolled .tc-nav__link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.tc-header__pill--scrolled .tc-nav__link.active {
    color: var(--tc-blue-light) !important;
    background: rgba(30, 174, 232, 0.22);
}

/* ─── Fix bouton ghost lisible sur fond clair ────────────────── */
.tc-header__cta .tc-btn--ghost {
    background: rgba(10, 22, 40, 0.08);
    color: var(--tc-dark);
    border: 1px solid rgba(10, 22, 40, 0.22);
}

.tc-header__cta .tc-btn--ghost:hover {
    background: rgba(10, 22, 40, 0.15);
    color: var(--tc-dark);
}

/* Fond sombre scrollé */
.tc-header__pill--scrolled .tc-header__cta .tc-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tc-header__pill--scrolled .tc-header__cta .tc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ─── CTA : ne jamais compresser les boutons ─────────────────── */
.tc-header__cta {
    flex-shrink: 0;
    gap: 8px;
    margin-left: auto;
}

.tc-header__cta .tc-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ─── Theme toggle : forcer blanc sur fond sombre ───────────── */
.tc-header__pill--scrolled .tc-header__theme-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.tc-header__pill--scrolled .tc-header__theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

/* ─── Responsive 1200px : réduire taille police nav ─────────── */
@media (max-width: 1200px) {
    .tc-nav__link {
        padding: 8px 9px;
        font-size: 0.8125rem;
    }
    .tc-header__cta .tc-btn {
        padding: 8px 14px;
        font-size: 0.80rem;
    }
}

/* ─── Mobile 900px : ordre logo → pro → burger ──────────────── */
@media (max-width: 900px) {
    .tc-header__inner {
        height: 66px;
        padding: 8px 20px;
        gap: 8px;
    }
    .tc-header__logo   { order: 1; }
    .tc-header__mobile-pro { order: 2; }
    .tc-header__burger { order: 3; margin-left: 0; }
}

@media (max-width: 640px) {
    .tc-header__inner {
        height: 60px;
        padding: 8px 16px;
    }
    .tc-header__mobile-pro {
        font-size: 0.75rem !important;
        padding: 7px 11px !important;
        max-width: 145px !important;
    }
}

/* ============================================================
   CORRECTIF v1.3 — état initial dark mode (avant scroll)
   ============================================================ */

/* Sur fond sombre au chargement (hero dark, page dark),
   les éléments du header doivent être blancs dès le départ,
   AVANT que la classe --scrolled soit ajoutée par le JS */

/* Burger toujours visible quelle que soit la situation */
.tc-header__burger {
    color: var(--tc-text) !important;
}

/* Quand data-theme=dark est posé sur <html> dès le chargement */
[data-theme="dark"] .tc-header__burger,
[data-theme="dark"] .tc-header__theme-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] .tc-nav__link {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .tc-nav__link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .tc-header__cta .tc-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .tc-header__cta .tc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Héros sombre = header sur fond sombre même sans scroll.
   Classe .tc-hero--dark à ajouter sur les pages hero dark */
.tc-hero--dark ~ * .tc-header__burger,
body.page-dark-hero .tc-header__burger {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* ---- Patch z-index toast > modals ---- */
.tc-toast-container {
    z-index: 99999 !important;
}

/* ============================================================
   CORRECTIF v1.4 — Mobile : retrait "Mon compte Pro" + thème
   ============================================================ */

/* Masquer le bouton "Mon compte Pro" sur mobile */
@media (max-width: 900px) {
    .tc-header__cta {
        display: none !important;
    }

    /* Ré-afficher le sélecteur de thème sur mobile */
    .tc-header__theme-toggle {
        display: flex !important;
        order: 98;
        margin-left: auto;
    }

    /* Burger en dernier */
    .tc-header__burger {
        display: flex !important;
        order: 99;
        margin-left: 0;
    }

    /* Ordre final : logo (order par défaut) → thème → burger */
    .tc-header__inner {
        gap: 6px;
        padding: 8px 16px;
    }
}

@media (max-width: 640px) {
    .tc-header__theme-toggle {
        width: 34px;
        height: 34px;
    }
    .tc-header__burger {
        width: 34px;
        height: 34px;
    }
}