/* File: css/formations.css */

/* ===== HERO (reuse from about.css pattern) ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-backdrop {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(34, 211, 238, 0.05) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    border-radius: inherit;
    z-index: -1;
}

html[data-theme="dark"] .hero-backdrop {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hero-backdrop::before {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(34, 211, 238, 0.08) 50%,
        rgba(59, 130, 246, 0.15) 100%
    );
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="dark"] .hero-subtitle {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== CREDIBILITY SECTION ===== */
.credibility-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.credibility-container {
    max-width: 1200px;
    margin: 0 auto;
}

.credibility-container h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
}

.credibility-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.credibility-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 360px;
}

.credibility-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.credibility-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.credibility-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.credibility-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* ===== PARCOURS SECTION ===== */
.parcours-section {
    padding-top: 4rem;
}

.parcours-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
}

.parcours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Track Column */
.track-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.track-header {
    background: var(--card-color);
    border: 2px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.track-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.track-ia .track-header::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-turquoise));
}

.track-auto .track-header::before {
    background: linear-gradient(90deg, var(--accent-salmon), var(--accent-yellow));
}

.track-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.track-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.track-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

/* Level Cards */
.track-levels {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.level-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .level-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.level-card:last-child {
    border-radius: 0 0 20px 20px;
}

.level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
    z-index: 2;
}

[data-theme="light"] .level-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Level Connector (arrow between levels) */
.level-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    position: relative;
    z-index: 1;
}

.level-connector::before {
    content: '';
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-turquoise));
    position: absolute;
}

.level-connector-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

.track-auto .level-connector::before {
    background: linear-gradient(180deg, var(--accent-salmon), var(--accent-yellow));
}

.track-auto .level-connector-arrow {
    background: linear-gradient(135deg, var(--accent-salmon), var(--accent-yellow));
}

/* Level Header */
.level-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.level-number {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.track-ia .level-number {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.track-auto .level-number {
    background: rgba(251, 113, 133, 0.12);
    color: var(--accent-salmon);
    border: 1px solid rgba(251, 113, 133, 0.3);
}

.level-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

/* Level Audience & Promise */
.level-audience {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.level-promise {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(37, 99, 235, 0.06);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.track-auto .level-promise {
    color: var(--accent-salmon);
    background: rgba(251, 113, 133, 0.06);
    border-left-color: var(--accent-salmon);
}

/* Level Points */
.level-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.level-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.level-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.track-ia .level-points li::before {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
}

.track-auto .level-points li::before {
    background: linear-gradient(135deg, var(--accent-salmon), var(--accent-yellow));
}

/* Level Highlight (fait marquant / metriques) */
.level-highlight {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
}

.level-highlight strong {
    color: var(--accent-blue);
}

.track-auto .level-highlight {
    background: rgba(251, 113, 133, 0.08);
    border-color: rgba(251, 113, 133, 0.2);
}

.track-auto .level-highlight strong {
    color: var(--accent-salmon);
}

/* ===== TRANSVERSAL MODULES ===== */
.transversal-section {
    padding-top: 4rem;
}

.transversal-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
}

.transversal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.transversal-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .transversal-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.transversal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-salmon), var(--accent-blue), var(--accent-turquoise));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

.transversal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .transversal-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.transversal-card > div:last-child {
    margin-top: auto;
}

.transversal-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.transversal-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.transversal-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.transversal-audience {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.transversal-promise {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(37, 99, 235, 0.06);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.transversal-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.transversal-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.transversal-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-salmon), var(--accent-blue));
}

.transversal-highlight {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
}

.transversal-highlight strong {
    color: var(--accent-blue);
}

/* ===== MODULES SECTION (kept for backward compat) ===== */
.modules-section {
    padding-top: 4rem;
}

.modules-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

/* Module Card - Glassmorphism */
.module-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .module-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .module-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Module Header */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.module-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.module-audience-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
}

.badge-tech {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-turquoise);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.badge-nontech {
    background: rgba(251, 113, 133, 0.15);
    color: var(--accent-salmon);
    border: 1px solid rgba(251, 113, 133, 0.3);
}

/* Module Content */
.module-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.module-public {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.module-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.module-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
}

/* Module Deliverable */
.module-deliverable {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    flex-grow: 1;
}

.module-deliverable strong {
    color: var(--accent-blue);
}

/* Module CTA */
.module-cta {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== PEDAGOGY SECTION ===== */
.pedagogy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pedagogy-container h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pedagogy-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pedagogy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    border-radius: 20px 20px 0 0;
}

.pedagogy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.pedagogy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pedagogy-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.pedagogy-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Progression Steps */
.progression-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progression-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Ratio Bar */
.ratio-bar {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    height: 40px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.ratio-theory {
    width: 25%;
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px 0 0 12px;
}

.ratio-practice {
    width: 75%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Principles List */
.principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.principles-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.principles-list li:last-child {
    border-bottom: none;
}

.principles-list li strong {
    color: var(--text-color);
}

/* ===== OF SECTION (Organismes de formation) ===== */
.of-section {
    padding: 4rem 2rem;
}

.of-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.of-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-salmon), var(--accent-blue), var(--accent-turquoise));
    border-radius: 24px 24px 0 0;
}

.of-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.of-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.of-container p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.of-highlights {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.of-highlight {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* ===== DARK MODE OVERRIDES ===== */

/* Level cards - fond sombre en dark mode */
html[data-theme="dark"] .level-card {
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .level-card:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

/* Level promise (blockquote) - lisible en dark mode */
html[data-theme="dark"] .level-promise {
    background: rgba(37, 99, 235, 0.18);
    color: #a8ccff;
    border-left-color: #3b82f6;
}

html[data-theme="dark"] .track-auto .level-promise {
    background: rgba(251, 113, 133, 0.18);
    color: #fdb8c4;
    border-left-color: #fb7185;
}

/* Level highlight (Fait marquant / Resultats mesures) */
html[data-theme="dark"] .level-highlight {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #e0e0e0;
}

html[data-theme="dark"] .level-highlight strong {
    color: #a8ccff;
}

html[data-theme="dark"] .track-auto .level-highlight {
    background: rgba(251, 113, 133, 0.15);
    border-color: rgba(251, 113, 133, 0.4);
}

html[data-theme="dark"] .track-auto .level-highlight strong {
    color: #fdb8c4;
}

/* Level number badges - meilleur contraste en dark */
html[data-theme="dark"] .track-ia .level-number {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
}

html[data-theme="dark"] .track-auto .level-number {
    background: rgba(251, 113, 133, 0.2);
    border-color: rgba(251, 113, 133, 0.4);
}

/* Level points - texte BIEN visible en dark mode */
html[data-theme="dark"] .level-points li,
html[data-theme="dark"] .level-card li {
    color: #d4d4d4 !important;
}

/* Level audience (public cible) - lisible en dark mode */
html[data-theme="dark"] .level-audience {
    color: #a0a0a0;
    font-style: italic;
}

/* Level titles - blanc en dark mode */
html[data-theme="dark"] .level-card h4 {
    color: #ffffff;
}

/* Track header */
html[data-theme="dark"] .track-header {
    background: var(--card-color);
    border-color: var(--border-color);
}

/* Transversal cards - fond sombre en dark mode */
html[data-theme="dark"] .transversal-card {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid var(--border-color);
}

html[data-theme="dark"] .transversal-card:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

/* Transversal promise */
html[data-theme="dark"] .transversal-promise {
    background: rgba(37, 99, 235, 0.12);
    color: #93bbfd;
}

/* Transversal points */
html[data-theme="dark"] .transversal-points li {
    color: var(--text-secondary);
}

/* Transversal highlight */
html[data-theme="dark"] .transversal-highlight {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--text-color);
}

/* Credibility badges */
html[data-theme="dark"] .credibility-badge {
    background: var(--card-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .credibility-badge:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .parcours-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .transversal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-backdrop {
        padding: 3rem 2rem;
        border-radius: 24px;
        margin: 0 1rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .credibility-badges {
        flex-direction: column;
        align-items: center;
    }

    .credibility-badge {
        max-width: 100%;
    }

    .pedagogy-grid {
        grid-template-columns: 1fr;
    }

    .of-container {
        padding: 2rem 1.5rem;
    }

    .of-container h2 {
        font-size: 1.5rem;
    }

    .of-highlights {
        flex-direction: column;
        align-items: center;
    }

    .level-card {
        padding: 1.5rem;
    }

    .track-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    /* Grilles inline 2 colonnes → 1 colonne sur mobile */
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr auto 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* VS horizontal sur mobile */
    [style*="grid-template-columns: 1fr auto 1fr"] > div:nth-child(2) {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-backdrop {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .module-card {
        padding: 1.5rem;
    }

    .module-number {
        font-size: 2rem;
    }

    .credibility-container h2 {
        font-size: 1.2rem;
    }

    .of-container {
        padding: 1.5rem 1rem;
    }

    .level-card {
        padding: 1.25rem;
    }

    .level-card h4 {
        font-size: 1.05rem;
    }

    .track-header h3 {
        font-size: 1.2rem;
    }

    .transversal-grid {
        grid-template-columns: 1fr;
    }

    .transversal-card {
        padding: 1.5rem;
    }
}

/* ===== CTA SECTION OVERRIDE (style identique a index.html) ===== */
.cta-section {
    background: var(--bg-color) !important;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-section .cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .cta-section .cta-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    font-size: 2.5rem !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    text-align: center;
}

.cta-section p {
    font-size: 1.2rem !important;
    color: var(--text-color) !important;
    opacity: 1 !important;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: center;
}

.cta-section .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .cta-button.primary {
    background: linear-gradient(135deg, #3B82F6, #22D3EE) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(34, 211, 238, 0.2);
    border: none !important;
    padding: 1rem 2rem;
    min-width: 180px;
    font-size: 1rem;
    width: 100%;
}

.cta-section .cta-button.secondary {
    border: 2px solid #3B82F6 !important;
    background: transparent !important;
    color: #3B82F6 !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    padding: 1rem 2rem;
    min-width: 180px;
    font-size: 1rem;
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4), 0 8px 20px rgba(34, 211, 238, 0.3);
}

.cta-section .cta-button.secondary:hover {
    color: white !important;
    border-color: var(--accent-turquoise) !important;
    background: var(--accent-turquoise) !important;
}

@media (max-width: 768px) {
    .cta-section .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-section .cta-button {
        width: 100%;
    }
    .cta-section h2 {
        font-size: 2rem !important;
    }
}
