/* Tek.media — Identité visuelle (distincte de Brut) */

:root {
    --blue: #003D8F;
    --blue-light: #1a5fbf;
    --blue-dark: #001a40;
    --yellow: #F9C80E;
    --yellow-soft: #ffe566;
    --cyan: #00c4b4;
    --surface: #f4f6fb;
    --surface-elevated: #eef1f8;
    --surface-card: #ffffff;
    --text: #141824;
    --text-muted: #8b95a5;
    --text-soft: #5a6474;
    --border: rgba(0, 61, 143, 0.08);
    --border-strong: rgba(0, 61, 143, 0.15);
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-card: 0 4px 24px rgba(0, 61, 143, 0.07);
    --shadow-card-hover: 0 12px 40px rgba(0, 61, 143, 0.14);
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: light;
}

html[data-theme="dark"] {
    --surface: #0b1220;
    --surface-elevated: #121a2b;
    --surface-card: #151e30;
    --text: #eef2f8;
    --text-muted: #8b96ab;
    --text-soft: #a8b2c4;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
    --blue-light: #3d7dd6;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ─── Sidebar sombre Tek ─── */
.sidebar {
    background: linear-gradient(195deg, var(--blue-dark) 0%, #002d6b 55%, var(--blue) 100%);
    border-right: none;
    box-shadow: 4px 0 32px rgba(0, 26, 64, 0.35);
}

.sidebar .brand-name { color: #fff; }
.sidebar .brand-dot { color: var(--yellow); text-shadow: none; }

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: var(--yellow);
    color: var(--blue-dark);
    box-shadow: 0 4px 20px rgba(249, 200, 14, 0.35);
}

.sidebar .nav-link.active .nav-icon { stroke: var(--blue-dark); }

.sidebar .nav-divider { border-color: rgba(255, 255, 255, 0.12); }

.sidebar-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar .footer-link { color: rgba(255, 255, 255, 0.55); }
.sidebar .footer-link:hover { color: var(--yellow); }
.sidebar .footer-link.active {
    color: var(--yellow);
    font-weight: 600;
}

.sidebar .sidebar-tagline {
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
}


.sidebar .lang-switcher {
    background: rgba(0, 0, 0, 0.25);
}

.sidebar .lang-btn { color: rgba(255, 255, 255, 0.6); }
.sidebar .lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--yellow);
    box-shadow: none;
}

.mobile-header {
    background: color-mix(in srgb, var(--surface-card) 92%, transparent);
    border-bottom: 2px solid var(--yellow);
    backdrop-filter: blur(10px);
}

.main-content {
    max-width: 1140px;
    background: transparent;
    padding: 24px 20px 48px;
}

/* ─── Boutons & chips ─── */
.tek-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tek-btn-primary {
    background: var(--yellow);
    color: var(--blue-dark);
    box-shadow: 0 4px 20px rgba(249, 200, 14, 0.4);
}

.tek-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 200, 14, 0.5);
    color: var(--blue-dark);
}

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

.tek-btn-outline:hover {
    background: var(--blue);
    color: #fff;
}

.tek-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(0, 61, 143, 0.1);
    color: var(--blue);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tek-chip-glow {
    background: rgba(249, 200, 14, 0.2);
    color: var(--yellow-soft);
    border: 1px solid rgba(249, 200, 14, 0.35);
}

/* ─── Homepage ─── */
.tek-home { display: flex; flex-direction: column; gap: 8px; }

.tek-hero {
    position: relative;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #004aad 100%);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 40px;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-card-hover);
}

.tek-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 80%, var(--yellow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--cyan) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px);
    pointer-events: none;
}

.tek-hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.tek-hero-video-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.tek-hero-ring {
    position: absolute;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border-radius: 24px;
    border: 2px solid rgba(249, 200, 14, 0.35);
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.tek-hero-player {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.tek-hero-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tek-hero-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tek-hero-play {
    width: 56px;
    height: 56px;
    background: var(--yellow);
    color: var(--blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tek-hero-live {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.tek-hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.tek-hero-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 640px;
}

.tek-hero-title a { color: #fff; }
.tek-hero-title a:hover { color: var(--yellow-soft); }

.tek-hero-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
}

/* Sections */
.tek-block { margin-bottom: 48px; }

.tek-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.tek-section-head-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.tek-section-num {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 2rem;
    color: var(--yellow);
    line-height: 1;
    opacity: 0.9;
}

.tek-section-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    letter-spacing: -0.02em;
    margin: 0;
}

.tek-section-title a {
    color: var(--text);
    transition: color var(--transition);
}

.tek-section-title a:hover { color: var(--blue); }

.tek-section-link {
    flex-shrink: 0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--blue);
    padding: 8px 16px;
    background: color-mix(in srgb, var(--blue) 8%, transparent);
    border-radius: var(--radius-pill);
    transition: background var(--transition), color var(--transition);
}

.tek-section-link:hover {
    background: var(--blue);
    color: #fff;
}

/* Video rail */
.tek-rail-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 12px;
    scrollbar-width: none;
}

.tek-rail-track::-webkit-scrollbar { display: none; }

.tek-vcard {
    flex: 0 0 160px;
    width: 160px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.tek-vcard-media {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background-color: var(--blue-dark);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.tek-vcard:hover .tek-vcard-media {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.tek-vcard-placeholder {
    background: linear-gradient(160deg, var(--blue-dark), var(--blue-light));
}

.tek-vcard-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 26, 64, 0.75) 0%, transparent 45%);
    opacity: 0;
    transition: opacity var(--transition);
}

.tek-vcard:hover .tek-vcard-shade { opacity: 1; }

.tek-vcard-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tek-vcard-play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--transition), transform var(--transition);
}

.tek-vcard:hover .tek-vcard-play {
    opacity: 1;
    transform: scale(1);
}

.tek-vcard-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.tek-vcard-meta {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tek-rail-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.tek-rail-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.tek-rail-btn:hover {
    background: var(--blue-light);
    transform: scale(1.05);
}

.tek-rail-bar {
    flex: 1;
    height: 3px;
    background: rgba(0, 61, 143, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.tek-rail-progress {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 3px;
    transition: width 0.15s ease;
}

/* Spotlight article */
.tek-spotlight {
    margin-bottom: 48px;
}

.tek-spotlight-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 61, 143, 0.06);
}

.tek-spotlight-visual {
    display: block;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tek-spotlight-placeholder {
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    min-height: 220px;
}

.tek-spotlight-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.tek-spotlight-content {
    padding: 0 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.tek-spotlight-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tek-spotlight-title a { color: var(--text); }
.tek-spotlight-title a:hover { color: var(--blue); }

.tek-spotlight-excerpt {
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.95rem;
}

.tek-spotlight-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Article grid */
.tek-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tek-acard {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

.tek-acard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.tek-acard-media {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tek-acard-placeholder {
    background: linear-gradient(135deg, var(--surface-elevated), color-mix(in srgb, var(--blue) 18%, var(--surface-elevated)));
}

.tek-acard-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.tek-acard-body {
    padding: 16px 18px 20px;
}

.tek-acard-body h3 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.tek-acard-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Tek TV pills */
.tek-tv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tek-tv-pill {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    border: 1.5px solid rgba(0, 61, 143, 0.15);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    transition: all var(--transition);
}

.tek-tv-pill:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.tek-block-tv {
    background: linear-gradient(180deg, rgba(0, 61, 143, 0.04) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
}

/* Rubriques côte à côte */
.tek-rubrics {
    display: grid;
    gap: 32px;
}

.tek-rubric {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
}

.tek-rubric-pratik { border-top: 4px solid var(--cyan); }
.tek-rubric-business { border-top: 4px solid var(--blue); }
.tek-rubric-impact { border-top: 4px solid var(--yellow); }

/* Newsletter */
.newsletter-block {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.newsletter-label {
    color: var(--yellow) !important;
}

/* Footer Tek */
.site-footer {
    background: linear-gradient(180deg, #0a0f18 0%, #000 100%);
    border-top: 4px solid var(--yellow);
}

.site-footer .brand-name { color: #fff; }

/* Related articles — style Tek */
.related-subject-title {
    font-family: var(--font-title);
    color: var(--text);
}

.related-subject-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.related-card-thumb {
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.related-card:hover .related-card-thumb {
    border-color: var(--yellow);
}

.related-card-brand {
    background: var(--blue);
    color: var(--yellow);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    top: 8px;
    right: 8px;
    text-shadow: none;
}

/* Video detail */
.video-detail-brut {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.video-tag-pill {
    border-color: var(--blue);
    color: var(--blue);
    border-radius: var(--radius-pill);
}

.video-up-next-label {
    background: var(--cyan);
}

/* Desktop */
@media (min-width: 768px) {
    .main-content { padding: 32px 40px 56px; }

    .tek-hero { padding: 40px 48px; }

    .tek-hero-grid {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        text-align: left;
    }

    .tek-hero-video-wrap { flex: 0 0 280px; }

    .tek-hero-player { max-width: 260px; }

    .tek-hero-copy {
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }

    .tek-vcard { flex: 0 0 185px; width: 185px; }

    .tek-spotlight-inner {
        flex-direction: row;
        align-items: stretch;
    }

    .tek-spotlight-visual {
        flex: 0 0 52%;
        min-height: 320px;
    }

    .tek-spotlight-content {
        flex: 1;
        padding: 36px 36px 36px 0;
        justify-content: center;
    }

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

    .tek-rubrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .tek-rubric .tek-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tek-rubric .tek-acard-media {
        aspect-ratio: 16 / 10;
    }

    .tek-rubric .tek-acard-body {
        padding: 12px 14px 14px;
    }

    .tek-rubric .tek-acard-body h3 {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

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

/* ─── Barre d'alerte défilante ─── */
.tek-alert-bar {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: #fff;
    border-bottom: 3px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 200;
}

.tek-alert-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    max-width: 100%;
}

.tek-alert-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 6px;
}

.tek-alert-badge-inline {
    margin-bottom: 0;
}

.tek-alert-pulse {
    width: 8px;
    height: 8px;
    background: #e63946;
    border-radius: 50%;
    animation: tek-alert-blink 1.2s ease-in-out infinite;
}

@keyframes tek-alert-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.tek-alert-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.tek-alert-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: tek-alert-scroll 35s linear infinite;
}

.tek-alert-bar:hover .tek-alert-track {
    animation-play-state: paused;
}

@keyframes tek-alert-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tek-alert-item {
    color: #fff;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: color var(--transition);
}

.tek-alert-item:hover {
    color: var(--yellow-soft);
}

.tek-alert-sep {
    color: rgba(249, 200, 14, 0.5);
    font-size: 0.55rem;
}

.tek-alert-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.tek-alert-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tek-alert-bar.is-hidden {
    display: none;
}

/* Bandeau sur page article alerte */
.tek-article-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(249, 200, 14, 0.12) 100%);
    border: 1.5px solid rgba(249, 200, 14, 0.45);
    border-left: 4px solid #e63946;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 28px;
}

.tek-article-alert-banner p {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--blue-dark);
}

@media (min-width: 768px) {
    .tek-alert-inner {
        padding: 10px 32px;
    }

    .tek-alert-item {
        font-size: 0.92rem;
    }
}

/* ─── Page Contact ─── */
.contact-page {
    max-width: 1060px;
    margin: 0 auto;
}

.contact-hero {
    margin-bottom: 36px;
}

.contact-hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text);
    margin: 12px 0 10px;
    line-height: 1.15;
}

.contact-hero-lead {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.55;
}

.contact-layout {
    display: grid;
    gap: 24px;
}

.contact-panel {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.contact-panel-info {
    background: linear-gradient(155deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 40px rgba(0, 61, 143, 0.22);
}

.contact-panel-info h2 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 10px;
}

.contact-panel-intro {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.75);
}

.contact-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.contact-topic {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.contact-topic:hover,
.contact-topic.is-active {
    background: var(--yellow);
    color: var(--blue-dark);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.contact-topic-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.contact-email-card {
    display: block;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
    transition: var(--transition);
}

.contact-email-card:hover {
    background: rgba(0, 0, 0, 0.32);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.contact-email-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 4px;
}

.contact-email-value {
    display: block;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.contact-email-hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.contact-social-block h3 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 14px;
}

.contact-panel-info .social-links a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.contact-panel-info .social-links a:hover {
    background: var(--yellow);
    color: var(--blue-dark);
}

.contact-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.contact-panel-form {
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.contact-panel-form h2 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface-elevated);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--surface-card);
    box-shadow: 0 0 0 3px rgba(0, 61, 143, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form-row {
    display: grid;
    gap: 18px;
}

.contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    margin-right: -4px;
    padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dash-brand .brand-name { color: var(--dash-blue); }
.dash-brand .brand-dot { color: var(--dash-yellow); }

/* Événements Tek */
.events-page { max-width: 900px; margin: 0 auto; }

.events-month { margin-bottom: 40px; }

.events-month-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--yellow);
    display: inline-block;
}

.events-list { display: flex; flex-direction: column; gap: 16px; }

.event-card {
    display: flex;
    gap: 20px;
    background: var(--surface-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.event-date {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    border-radius: 12px;
    padding: 10px 8px;
    line-height: 1.1;
}

.event-date-day {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
}

.event-date-month {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.event-body h3 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text);
}

.event-location {
    font-size: 0.88rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.event-desc {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 12px;
}

.event-link { font-size: 0.88rem; padding: 8px 16px; }

@media (max-width: 600px) {
    .event-card { flex-direction: column; }
    .event-date { width: auto; display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; }
    .event-date-day, .event-date-month { display: inline; font-size: 1rem; }
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 1.15fr;
        gap: 28px;
        align-items: start;
    }

    .contact-panel {
        padding: 32px 28px;
    }

    .contact-form-row {
        grid-template-columns: 1fr 1fr;
    }

    .contact-submit {
        width: auto;
    }
}

/* ─── Theme toggle ─── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(249, 200, 14, 0.45);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.theme-toggle-mobile {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface-elevated);
    color: var(--text);
}

.theme-toggle-mobile .theme-toggle-label { display: none; }

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

/* ─── Dark mode refinements ─── */
html[data-theme="dark"] .tek-section-title a:hover,
html[data-theme="dark"] .tek-spotlight-title a:hover {
    color: var(--yellow);
}

html[data-theme="dark"] .tek-section-link {
    color: var(--yellow);
    background: rgba(249, 200, 14, 0.12);
}

html[data-theme="dark"] .tek-section-link:hover {
    background: var(--yellow);
    color: #141824;
}

html[data-theme="dark"] .tek-block-tv {
    background: linear-gradient(180deg, rgba(0, 61, 143, 0.18) 0%, transparent 100%);
}

html[data-theme="dark"] .related-subject-title,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .prose h2 {
    color: var(--text);
}

html[data-theme="dark"] .contact-form-label,
html[data-theme="dark"] .contact-label {
    color: var(--text-muted);
}

html[data-theme="dark"] .article-card-placeholder,
html[data-theme="dark"] .tek-acard-placeholder {
    background: linear-gradient(135deg, #1a2740, #243556);
}

html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .tag {
    border-color: var(--border-strong);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color-scheme: dark;
}

