/**
 * Page hub épreuve CE / CO — design premium responsive
 */

.tcf-layout-with-nav--hub {
    background: #fff;
}

.tcf-layout-with-nav--hub .tcf-layout-with-nav__content {
    padding-bottom: 0;
}

.tcf-epreuve-hub {
    --hub-primary: #2563eb;
    --hub-primary-dark: #1d4ed8;
    --hub-hero-from: #2563eb;
    --hub-hero-via: #1d4ed8;
    --hub-hero-to: #4338ca;
    font-family: "Plus Jakarta Sans", var(--tcf-font);
    color: var(--tcf-text);
    line-height: 1.55;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.tcf-epreuve-hub--cyan,
.tcf-epreuve-hub--oral {
    --hub-primary: #0891b2;
    --hub-primary-dark: #0e7490;
    --hub-hero-from: #0c4a6e;
    --hub-hero-via: #0284c7;
    --hub-hero-to: #06b6d4;
}

.tcf-epreuve-hub--writing {
    --hub-primary: #7c3aed;
    --hub-primary-dark: #6d28d9;
    --hub-hero-from: #4c1d95;
    --hub-hero-via: #7c3aed;
    --hub-hero-to: #a78bfa;
}

.tcf-epreuve-hub--speaking {
    --hub-primary: #db2777;
    --hub-primary-dark: #be185d;
    --hub-hero-from: #831843;
    --hub-hero-via: #db2777;
    --hub-hero-to: #f472b6;
}

.tcf-epreuve-hub__container {
    width: min(100%, 56rem);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__container {
        padding: 0 1.5rem;
    }
}

/* Hero */
.tcf-epreuve-hub__hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 2.25rem;
    color: #fff;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__hero {
        padding: 2.5rem 0 2.75rem;
    }
}

.tcf-epreuve-hub__hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(6, 182, 212, 0.25), transparent 50%),
        linear-gradient(135deg, var(--hub-hero-from) 0%, var(--hub-hero-via) 45%, var(--hub-hero-to) 100%);
}

.tcf-epreuve-hub__hero-inner,
.tcf-epreuve-hub__hero-copy {
    position: relative;
    z-index: 1;
}

.tcf-epreuve-hub__hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 768px) {
    .tcf-epreuve-hub__hero-grid {
        grid-template-columns: 1fr min(16rem, 34%);
        gap: 2rem;
    }
}

.tcf-epreuve-hub__hero-badge {
    display: inline-flex;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

.tcf-epreuve-hub__hero-waves {
    position: absolute;
    inset: auto 0 0 0;
    height: 4rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
    opacity: 0.2;
    pointer-events: none;
}

.tcf-epreuve-hub__hero-waves span {
    display: block;
    width: 4px;
    border-radius: 999px;
    background: #fff;
    animation: tcf-eq-pulse 1.4s ease-in-out infinite;
}

.tcf-epreuve-hub__hero-waves span:nth-child(1) { height: 28%; animation-delay: 0s; }
.tcf-epreuve-hub__hero-waves span:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.tcf-epreuve-hub__hero-waves span:nth-child(3) { height: 80%; animation-delay: 0.3s; }
.tcf-epreuve-hub__hero-waves span:nth-child(4) { height: 50%; animation-delay: 0.45s; }
.tcf-epreuve-hub__hero-waves span:nth-child(5) { height: 35%; animation-delay: 0.6s; }

@keyframes tcf-eq-pulse {
    0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
    50% { transform: scaleY(1); opacity: 1; }
}

.tcf-epreuve-hub__hero-visual {
    display: none;
    justify-content: center;
}

@media (min-width: 768px) {
    .tcf-epreuve-hub__hero-visual {
        display: flex;
    }
}

.tcf-epreuve-hub__player-card {
    width: 100%;
    max-width: 15rem;
    padding: 1.25rem 1rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.tcf-epreuve-hub__player-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tcf-epreuve-hub__player-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    height: 2rem;
    margin-bottom: 0.75rem;
}

.tcf-epreuve-hub__player-eq span {
    display: block;
    width: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    animation: tcf-eq-pulse 1.2s ease-in-out infinite;
}

.tcf-epreuve-hub__player-eq span:nth-child(1) { height: 35%; animation-delay: 0s; }
.tcf-epreuve-hub__player-eq span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.tcf-epreuve-hub__player-eq span:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.tcf-epreuve-hub__player-eq span:nth-child(4) { height: 55%; animation-delay: 0.3s; }
.tcf-epreuve-hub__player-eq span:nth-child(5) { height: 75%; animation-delay: 0.4s; }
.tcf-epreuve-hub__player-eq span:nth-child(6) { height: 45%; animation-delay: 0.5s; }
.tcf-epreuve-hub__player-eq span:nth-child(7) { height: 65%; animation-delay: 0.6s; }

.tcf-epreuve-hub__player-label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.tcf-epreuve-hub__resume-meta {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tcf-text-light);
}

.tcf-epreuve-hub__hero-inner {
    position: relative;
    z-index: 1;
}

.tcf-epreuve-hub__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.625rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.tcf-epreuve-hub__lead {
    margin: 0 0 1.5rem;
    max-width: 36rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.tcf-epreuve-hub__hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

.tcf-epreuve-hub__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s var(--tcf-transition), box-shadow 0.2s var(--tcf-transition), background 0.2s;
    white-space: nowrap;
}

.tcf-epreuve-hub__btn:active {
    transform: scale(0.98);
}

.tcf-epreuve-hub__btn--primary {
    background: #fff;
    color: var(--hub-primary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.tcf-epreuve-hub__btn--primary:hover {
    background: #eff6ff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.tcf-epreuve-hub--oral .tcf-epreuve-hub__btn--primary:hover {
    background: #ecfeff;
}

.tcf-epreuve-hub__btn--solid {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.tcf-epreuve-hub__btn--solid:hover {
    background: rgba(255, 255, 255, 0.28);
}

.tcf-epreuve-hub__btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.tcf-epreuve-hub__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 639px) {
    .tcf-epreuve-hub__hero-actions .tcf-epreuve-hub__btn {
        width: 100%;
    }
}

/* Reprendre */
.tcf-epreuve-hub__resume {
    padding: 1.25rem 0 1.75rem;
    background: #fff;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__resume {
        padding: 1.75rem 0 2rem;
    }
}

.tcf-epreuve-hub__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tcf-epreuve-hub__section-head h2 {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 800;
    color: var(--tcf-dark);
}

.tcf-epreuve-hub__link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--hub-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.tcf-epreuve-hub__link-more:hover {
    color: var(--hub-primary-dark);
}

.tcf-epreuve-hub--oral .tcf-epreuve-hub__link-more {
    color: var(--hub-primary);
}

/* Carousel */
.tcf-epreuve-hub__carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tcf-epreuve-hub__carousel-track {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0 0.5rem;
}

.tcf-epreuve-hub__carousel-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__carousel-track {
        gap: 0.75rem;
        padding-right: 0.25rem;
    }
}

.tcf-epreuve-hub__carousel-btn {
    display: none;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tcf-border);
    border-radius: 999px;
    background: #fff;
    color: var(--tcf-text);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.tcf-epreuve-hub__carousel-btn:hover:not(:disabled) {
    background: var(--tcf-bg-alt);
}

.tcf-epreuve-hub__carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__carousel {
        gap: 0.625rem;
    }

    .tcf-epreuve-hub__carousel-btn {
        display: flex;
    }
}

.tcf-epreuve-hub__chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 min(100%, 18rem);
    scroll-snap-align: start;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--tcf-border);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__chip {
        flex-basis: 17.5rem;
    }
}

.tcf-epreuve-hub__chip:hover:not(.tcf-epreuve-hub__chip--locked) {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.tcf-epreuve-hub__chip--done {
    border-color: #fcd34d;
}

.tcf-epreuve-hub__chip--done:hover {
    border-color: #f59e0b;
}

.tcf-epreuve-hub__chip--locked {
    background: var(--tcf-bg-alt);
    border-color: var(--tcf-border);
}

.tcf-epreuve-hub__chip--locked:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: none;
}

.tcf-epreuve-hub__chip--soon {
    background: var(--tcf-bg-alt);
    border-style: dashed;
    cursor: default;
    opacity: 0.92;
}

.tcf-epreuve-hub__chip--soon .tcf-epreuve-hub__chip-icon {
    background: #64748b;
}

.tcf-epreuve-hub__chip-progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--chip-progress, 0%);
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.08));
    pointer-events: none;
}

.tcf-epreuve-hub__chip-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--hub-primary);
    color: #fff;
}

.tcf-epreuve-hub__chip--done .tcf-epreuve-hub__chip-icon {
    background: #f59e0b;
}

.tcf-epreuve-hub__chip--locked .tcf-epreuve-hub__chip-icon {
    background: #94a3b8;
    color: #f8fafc;
}

.tcf-epreuve-hub__chip-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}

.tcf-epreuve-hub__chip-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tcf-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcf-epreuve-hub__chip--locked .tcf-epreuve-hub__chip-title {
    color: var(--tcf-text-light);
}

.tcf-epreuve-hub__chip-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tcf-text-light);
    margin-top: 0.125rem;
}

.tcf-epreuve-hub__chip-meta--done {
    color: #b45309;
}

.tcf-epreuve-hub__chip-meta--muted {
    color: #94a3b8;
}

.tcf-epreuve-hub__chip-badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
}

.tcf-epreuve-hub--oral .tcf-epreuve-hub__chip-icon {
    background: var(--hub-primary);
}

.tcf-epreuve-hub--oral .tcf-epreuve-hub__chip--done .tcf-epreuve-hub__chip-icon {
    background: #0891b2;
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__chip-icon {
    background: var(--hub-primary);
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__chip--done .tcf-epreuve-hub__chip-icon {
    background: #7c3aed;
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__btn--primary:hover {
    background: #f5f3ff;
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__link-more {
    color: var(--hub-primary);
}

.tcf-epreuve-hub__doc-card {
    width: 100%;
    max-width: 15rem;
    padding: 1.25rem 1rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.tcf-epreuve-hub__doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tcf-epreuve-hub__doc-lines {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.tcf-epreuve-hub__doc-lines span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.tcf-epreuve-hub__doc-lines span:nth-child(1) { width: 92%; margin: 0 auto; }
.tcf-epreuve-hub__doc-lines span:nth-child(2) { width: 78%; margin: 0 auto; }
.tcf-epreuve-hub__doc-lines span:nth-child(3) { width: 86%; margin: 0 auto; }
.tcf-epreuve-hub__doc-lines span:nth-child(4) { width: 64%; margin: 0 auto; }

.tcf-epreuve-hub__panel--correction {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.tcf-epreuve-hub__correction-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.375rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.08);
}

.tcf-epreuve-hub__correction-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.tcf-epreuve-hub__section-title--inline {
    margin-bottom: 0.5rem;
}

.tcf-epreuve-hub__section-desc--left {
    text-align: left;
    margin-left: 0;
}

.tcf-epreuve-hub__correction-note,
.tcf-epreuve-hub__correction-status {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.tcf-epreuve-hub__correction-note {
    color: #6d28d9;
    font-weight: 600;
}

.tcf-epreuve-hub__correction-status {
    color: var(--tcf-text-light);
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__panel--formats {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__format-card {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__format-icon {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__tip-card {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: rgba(124, 58, 237, 0.18);
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__tip-num {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.tcf-epreuve-hub--writing .tcf-epreuve-hub__exam-note {
    background: #f5f3ff;
    border-color: rgba(124, 58, 237, 0.2);
    color: #6d28d9;
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__chip-icon {
    background: var(--hub-primary);
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__btn--primary:hover {
    background: #fdf2f8;
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__link-more {
    color: var(--hub-primary);
}

.tcf-epreuve-hub__mic-card {
    width: 100%;
    max-width: 15rem;
    padding: 1.25rem 1rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.tcf-epreuve-hub__mic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tcf-epreuve-hub__mic-pulse {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    height: 1.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.tcf-epreuve-hub__mic-pulse span {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    animation: tcf-mic-pulse 1.2s ease-in-out infinite;
}

.tcf-epreuve-hub__mic-pulse span:nth-child(2) { animation-delay: 0.15s; }
.tcf-epreuve-hub__mic-pulse span:nth-child(3) { animation-delay: 0.3s; }

@keyframes tcf-mic-pulse {
    0%, 100% { transform: scale(0.7); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.tcf-epreuve-hub__panel--live {
    background: linear-gradient(180deg, #fdf2f8 0%, #fff 100%);
}

.tcf-epreuve-hub__live-card {
    border-color: rgba(219, 39, 119, 0.18);
    box-shadow: 0 8px 28px rgba(219, 39, 119, 0.08);
}

.tcf-epreuve-hub__live-icon {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.tcf-epreuve-hub__live-quota {
    margin: 0.75rem 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #be185d;
}

.tcf-epreuve-hub__btn--inline {
    display: inline-flex;
    margin-top: 0.5rem;
    background: #fff;
    color: var(--hub-primary);
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__panel--formats,
.tcf-epreuve-hub--speaking .tcf-epreuve-hub__format-card {
    border-color: rgba(219, 39, 119, 0.15);
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__format-icon {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #db2777;
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__tip-card {
    background: linear-gradient(145deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: rgba(219, 39, 119, 0.18);
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__tip-num {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.tcf-epreuve-hub--speaking .tcf-epreuve-hub__exam-note {
    background: #fdf2f8;
    border-color: rgba(219, 39, 119, 0.2);
    color: #be185d;
}

.tcf-epreuve-hub__series-grid .tcf-btn + .tcf-btn {
    margin-top: 0.5rem;
}

/* Formats audio (CO) */
.tcf-epreuve-hub__panel--formats {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.tcf-epreuve-hub__formats {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__formats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 960px) {
    .tcf-epreuve-hub__formats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tcf-epreuve-hub__format-card {
    padding: 1rem 1.125rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(8, 145, 178, 0.15);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.06);
    transition: transform 0.2s var(--tcf-transition), box-shadow 0.2s;
}

.tcf-epreuve-hub__format-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(8, 145, 178, 0.12);
}

.tcf-epreuve-hub__format-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.625rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0891b2;
}

.tcf-epreuve-hub__format-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--tcf-dark);
}

.tcf-epreuve-hub__format-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--tcf-text-light);
    line-height: 1.5;
}

/* Astuces d'écoute */
.tcf-epreuve-hub__tips {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .tcf-epreuve-hub__tips {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.tcf-epreuve-hub__tip-card {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.125rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #f0fdfa 0%, #ecfeff 100%);
    border: 1px solid rgba(8, 145, 178, 0.18);
}

.tcf-epreuve-hub__tip-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
}

.tcf-epreuve-hub__tip-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--tcf-dark);
}

.tcf-epreuve-hub__tip-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--tcf-text-light);
    line-height: 1.55;
}

.tcf-epreuve-hub__exam-note {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    max-width: 32rem;
    margin: 1.25rem auto 0;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: #ecfeff;
    border: 1px solid rgba(8, 145, 178, 0.2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0e7490;
    line-height: 1.55;
    text-align: left;
}

.tcf-epreuve-hub__exam-note svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Panels */
.tcf-epreuve-hub__panel {
    padding: 1.75rem 0 2rem;
    background: #fff;
}

.tcf-epreuve-hub__panel--alt {
    background: var(--tcf-bg-alt);
}

.tcf-epreuve-hub__section-title {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: clamp(1.125rem, 3.5vw, 1.5rem);
    font-weight: 800;
    color: #1e3a8a;
}

.tcf-epreuve-hub__section-desc {
    margin: -0.75rem 0 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--tcf-text-light);
}

.tcf-epreuve-hub__learn-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__learn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.tcf-epreuve-hub__learn-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    background: #fff;
    border: 1px solid var(--tcf-border);
    border-radius: var(--tcf-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tcf-epreuve-hub__panel--alt .tcf-epreuve-hub__learn-card {
    background: #fff;
}

.tcf-epreuve-hub__check {
    flex-shrink: 0;
    color: var(--hub-primary);
    margin-top: 0.125rem;
}

.tcf-epreuve-hub__learn-card h3 {
    margin: 0 0 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tcf-dark);
}

.tcf-epreuve-hub__learn-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--tcf-text-light);
    line-height: 1.55;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__learn-card h3 {
        font-size: 1rem;
    }

    .tcf-epreuve-hub__learn-card p {
        font-size: 0.875rem;
    }
}

.tcf-epreuve-hub__structure-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__structure-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.tcf-epreuve-hub__structure-card {
    padding: 1.125rem 1.25rem;
    border-radius: var(--tcf-radius);
    background: linear-gradient(145deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.tcf-epreuve-hub__structure-card h3 {
    margin: 0 0 0.375rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--tcf-dark);
}

.tcf-epreuve-hub__structure-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--tcf-text-light);
    line-height: 1.55;
}

.tcf-epreuve-hub__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 24rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__stats {
        gap: 0.75rem;
        max-width: 28rem;
    }
}

.tcf-epreuve-hub__stat {
    padding: 0.875rem 0.5rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--tcf-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tcf-epreuve-hub__stat strong {
    display: block;
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--hub-primary);
    line-height: 1.2;
}

.tcf-epreuve-hub__stat span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tcf-text-light);
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__stat span {
        font-size: 0.75rem;
    }
}

/* Series grid in hub */
.tcf-epreuve-hub__series-grid {
    padding: 0;
}

.tcf-epreuve-hub__series-score {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b45309;
}

/* CTA */
.tcf-epreuve-hub__cta {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(135deg, var(--hub-hero-from), var(--hub-hero-to));
    color: #fff;
}

@media (min-width: 640px) {
    .tcf-epreuve-hub__cta {
        padding: 2.5rem 0 3rem;
    }
}

.tcf-epreuve-hub__cta-inner {
    text-align: center;
}

.tcf-epreuve-hub__cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 800;
}

.tcf-epreuve-hub__cta p {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.tcf-epreuve-hub__btn--cta {
    min-width: min(100%, 16rem);
}

@media (max-width: 639px) {
    .tcf-epreuve-hub__btn--cta {
        width: 100%;
    }
}

/* Safe area mobile */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tcf-epreuve-hub__cta {
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    }
}
