/* WCES Design System - Basé sur CUBE */
:root {
    /* Couleurs Primaires (Forest Green de CUBE) */
    --primary-900: #1a3a2f;
    --primary-800: #234d3e;
    --primary-700: #2d614e;
    --primary-600: #367560;
    --primary-500: #408972;

    /* Couleurs Accent (Jaune/Or) */
    --accent-500: #f5d547;
    --accent-400: #f7dd6a;
    --accent-300: #f9e58d;

    /* Neutrals */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;

    /* Couleurs Sémantiques */
    --success-500: #4caf50;
    --success-100: #e8f5e9;
    --warning-500: #ff9800;
    --warning-100: #fff3e0;
    --error-500: #f44336;
    --error-100: #ffebee;
    --info-500: #2196f3;
    --info-100: #e3f2fd;

    /* Couleurs CUBE Brand */
    --cube-lime: #a4c802;
    --cube-lime-dark: #8aab00;
    --cube-dark-green: #1a3a2f;

    /* Couleurs des Certificats WCES (6 niveaux) */
    /* Bronze ≥10% */
    --bronze: #cd7f32;
    --bronze-bg: #fef3e2;
    /* Argent ≥20% */
    --silver: #a8a8a8;
    --silver-bg: #f5f5f5;
    /* Or ≥30% */
    --gold: #ffd700;
    --gold-bg: #fffde7;
    /* Master >30% */
    --master: #15803d;
    --master-bg: #dcfce7;
    /* Platine (future) */
    --platinum: #E5E4E2;
    --platinum-bg: #f8f8f8;
    /* Diamant (future) */
    --diamond: #B9F2FF;
    --diamond-bg: #e8fbff;

    /* Background */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-sidebar: var(--primary-900);

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Typography Scale — Public Pages */
    --wces-h1-size: 48px;
    --wces-h2-size: 34px;
    --wces-h3-size: 24px;
    --wces-h4-size: 18px;
    --wces-overline-size: 13px;
    --wces-section-lead-size: 16px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--neutral-800);
    background: var(--bg-body);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===========================================
   TYPOGRAPHY SCALE — PUBLIC PAGES
   =========================================== */
.wces-h1 {
    font-size: var(--wces-h1-size);
    line-height: 1.1;
    font-weight: 700;
}

.wces-h2 {
    font-size: var(--wces-h2-size);
    line-height: 1.2;
    font-weight: 700;
}

.wces-h3 {
    font-size: var(--wces-h3-size);
    line-height: 1.3;
    font-weight: 600;
}

.wces-h4 {
    font-size: var(--wces-h4-size);
    line-height: 1.4;
    font-weight: 600;
}

.wces-overline {
    font-size: var(--wces-overline-size);
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wces-section-lead {
    font-size: var(--wces-section-lead-size);
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive typography */
@media (max-width: 768px) {
    :root {
        --wces-h1-size: 36px;
        --wces-h2-size: 28px;
        --wces-h3-size: 20px;
        --wces-h4-size: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --wces-h1-size: 30px;
        --wces-h2-size: 24px;
        --wces-h3-size: 18px;
        --wces-h4-size: 16px;
    }
}

/* ===========================================
   CONTAINER & LAYOUT UTILITIES
   =========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}

/* Full-width sections with internal container */
.section {
    width: 100%;
}

.section-white { background: white; }
.section-gray { background: var(--neutral-50); }
.section-lime { background: var(--cube-lime); }
.section-dark { background: var(--primary-900); color: white; }
.section-dark-green { background: var(--cube-dark-green); color: white; }

.section-padded {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-padded-sm {
    padding-top: 48px;
    padding-bottom: 48px;
}

.text-center { text-align: center; }
.text-white { color: white; }
.text-lime { color: var(--cube-lime); }

/* ===========================================
   NAVIGATION PROTOTYPE
   Style unifié avec wces-overrides.css
   =========================================== */
.proto-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 10004;
    font-size: 12px;
}

.proto-nav-title {
    font-weight: 600;
    color: #a4c802;
    margin-right: 24px;
}

.proto-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proto-nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.proto-nav-links a:hover,
.proto-nav-links a.active {
    color: #a4c802;
}

.proto-nav-spacer {
    height: 56px;
}

/* ===========================================
   PAGE INDEX PROTOTYPE
   =========================================== */
.proto-index {
    padding: 80px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.proto-hero {
    text-align: center;
    padding: 48px 0;
}

.proto-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.proto-hero p {
    color: var(--neutral-600);
    font-size: 18px;
}

.proto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.proto-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

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

.proto-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.proto-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.proto-card p {
    font-size: 14px;
    color: var(--neutral-600);
}

.proto-specs {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.proto-specs h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-900);
}

.proto-specs table {
    width: 100%;
}

.proto-specs td {
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-200);
}

.proto-specs td:first-child {
    font-weight: 500;
    color: var(--neutral-600);
    width: 150px;
}

/* ===========================================
   EN-TÊTE PUBLIC
   =========================================== */
.public-header {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    margin-top: 56px;
}

.public-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   LOGO WCES UNIFIÉ — wces-logo.html.twig
   =========================================
   Dupliqué dans wces-overrides.css (EU).
   Les pages publiques ne chargent que wces-styles.css.
   ========================================= */
.wces-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.wces-logo-img {
    flex-shrink: 0;
    height: auto;
}
/* Taille sm (24px wide → ~29px tall) */
.wces-logo-sm .wces-logo-img { width: 24px; }
/* Taille md (36px wide → ~43px tall) — défaut */
.wces-logo-md .wces-logo-img { width: 36px; }
/* Taille lg (64px wide → ~77px tall) */
.wces-logo-lg .wces-logo-img { width: 64px; }
/* Texte */
.wces-logo-text {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-900, #1a3a2f);
    line-height: 1.2;
    text-align: left;
}
.wces-logo-text span {
    display: block;
    font-weight: 400;
}
/* Variante texte clair (sur fond foncé) */
.wces-logo-text-light {
    color: white;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.public-nav a {
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.public-nav a:hover {
    color: var(--primary-700);
}

.public-nav a.active {
    color: var(--primary-900);
    position: relative;
}

.public-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cube-lime);
    border-radius: 1px;
}

/* Bouton CTA Header - toujours lime sur fond blanc */
.public-nav .btn-cta {
    background: var(--cube-lime);
    color: var(--primary-900);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.public-nav .btn-cta:hover {
    background: var(--cube-lime-dark);
}

/* Burger button - hidden on desktop */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-900);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Proto-nav burger */
.proto-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    padding: 4px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

.proto-nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 1px;
}

/* ===========================================
   BOUTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-900);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-800);
}

.btn-secondary {
    background: white;
    color: var(--neutral-800);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
}

.btn-accent {
    background: var(--accent-500);
    color: var(--primary-900);
}

.btn-accent:hover {
    background: var(--accent-400);
}

.btn-lime {
    background: var(--cube-lime);
    color: var(--primary-900);
}

.btn-lime:hover {
    background: var(--cube-lime-dark);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-900);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===========================================
   SECTION HERO (Landing Page)
   =========================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 47, 0.9) 0%, rgba(45, 97, 78, 0.8) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cube-lime);
    color: var(--primary-900);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    color: white;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--cube-lime);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

/* Hero visual: Stacked certificates showcase */
.hero-certificates-stack {
    position: relative;
    width: 380px;
    height: 420px;
    margin-left: auto;
    transform: scale(1.15);
    transform-origin: center right;
}

.hero-certificate {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 32px;
    text-align: center;
    position: absolute;
    width: 280px;
    transition: transform 0.3s ease;
}

/* Back left - Bronze */
.hero-certificate-back-left {
    top: -10px;
    left: 0;
    transform: rotate(-7deg);
    z-index: 1;
    opacity: 0.9;
}

/* Back right - Argent */
.hero-certificate-back-right {
    top: 100px;
    right: -20px;
    transform: rotate(12deg);
    z-index: 2;
    opacity: 0.95;
}

/* Front center - Or */
.hero-certificate-front {
    top: 60px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    z-index: 3;
}

/* Certificate level colors */
.hero-certificate.bronze .hero-certificate-badge {
    background: linear-gradient(135deg, var(--bronze) 0%, #a66a2a 100%);
}

.hero-certificate.silver .hero-certificate-badge {
    background: linear-gradient(135deg, var(--silver) 0%, #8a8a8a 100%);
}

.hero-certificate.gold .hero-certificate-badge {
    background: linear-gradient(135deg, var(--gold) 0%, #e6c200 100%);
}

.hero-certificate.master .hero-certificate-badge {
    background: linear-gradient(135deg, var(--master) 0%, #0f6b32 100%);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}

.hero-certificate-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-certificate.gold .hero-certificate-badge {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.hero-certificate-badge svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.hero-certificate-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 4px;
}

.hero-certificate-level {
    font-size: 14px;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.hero-certificate-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--success-500);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-certificate-label {
    font-size: 13px;
    color: var(--neutral-600);
}

.hero-map-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Stats (floating cards) */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 48px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: center;
}

.hero-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--cube-lime);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================================
   KPIs SECTION (Landing Page)
   =========================================== */
.kpis-section {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid var(--neutral-200);
}

.kpis-row {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.kpi-item {
    text-align: center;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    background: var(--cube-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.kpi-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-900);
    fill: none;
}

.kpi-icon svg[fill="currentColor"] {
    fill: var(--primary-900);
    stroke: none;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 14px;
    color: var(--neutral-600);
}

/* ===========================================
   SECTION CERTIFICATS (5 niveaux)
   =========================================== */
.certificates-section {
    padding: 80px 0;
    text-align: center;
    background: var(--neutral-50);
}

.certificates-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 16px;
}

.certificates-section .section-subtitle {
    color: var(--neutral-600);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.6;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 2px solid;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

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

.cert-card.bronze {
    background: var(--bronze-bg);
    border-color: var(--bronze);
}

.cert-card.silver {
    background: var(--silver-bg);
    border-color: var(--silver);
}

.cert-card.gold {
    background: var(--gold-bg);
    border-color: var(--gold);
}

.cert-card.master {
    background: var(--master-bg);
    border-color: var(--master);
}

.cert-card.platinum {
    background: var(--platinum-bg);
    border-color: var(--platinum);
}

.cert-card.diamond {
    background: var(--diamond-bg);
    border-color: var(--diamond);
}

.cert-card .cert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-card .cert-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.cert-card.bronze .cert-icon { background: linear-gradient(135deg, var(--bronze) 0%, #a66a2a 100%); }
.cert-card.silver .cert-icon { background: linear-gradient(135deg, var(--silver) 0%, #8a8a8a 100%); }
.cert-card.gold .cert-icon {
    background: linear-gradient(135deg, var(--gold) 0%, #e6c200 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}
.cert-card.master .cert-icon {
    background: linear-gradient(135deg, var(--master) 0%, #0f6b32 100%);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}
.cert-card.platinum .cert-icon { background: linear-gradient(135deg, var(--platinum) 0%, #c8c8c8 100%); }
.cert-card.diamond .cert-icon { background: linear-gradient(135deg, var(--diamond) 0%, #8ae6ff 100%); }

/* Platinum and diamond need darker icon for contrast */
.cert-card.platinum .cert-icon svg,
.cert-card.diamond .cert-icon svg {
    fill: var(--primary-900);
}

.cert-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-900);
}

.cert-card .cert-threshold {
    font-size: 28px;
    font-weight: 700;
    color: var(--success-500);
    margin-bottom: 8px;
}

.cert-card .cert-description {
    color: var(--neutral-600);
    font-size: 14px;
}

/* ===========================================
   HOW IT WORKS SECTION
   =========================================== */
.how-it-works-section {
    background: var(--cube-lime);
    padding: 80px 0;
}

.how-it-works-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 16px;
    text-align: center;
}

.how-it-works-section .section-subtitle {
    color: var(--primary-800);
    margin-bottom: 48px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-900);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 8px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 40px;
    height: 40px;
}

/* Stroke-based icons */
.step-icon svg[fill="none"] {
    stroke: var(--primary-900);
    fill: none;
}

/* Fill-based icons */
.step-icon svg[fill="currentColor"] {
    fill: var(--primary-900);
    stroke: none;
}

.step-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--neutral-600);
    line-height: 1.5;
}

/* ===========================================
   PARTNERS SECTION
   =========================================== */
.partners-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--neutral-200);
}

.partners-section .section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--neutral-500);
    margin-bottom: 32px;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .partners-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.partner-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    color: var(--neutral-600);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.partner-logo:hover {
    background: var(--neutral-200);
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    background: var(--primary-900);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: var(--neutral-900);
    color: white;
    padding: 48px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-brand .footer-logo-text span {
    color: var(--cube-lime);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-column-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul a:hover {
    color: var(--cube-lime);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--cube-lime);
    color: var(--primary-900);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ===========================================
   PAGE LOGIN
   =========================================== */
.login-page {
    min-height: calc(100vh - 56px);
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.login-card {
    background: white;
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 420px;
    text-align: center;
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 32px;
}

.login-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.login-card .subtitle {
    color: var(--neutral-600);
    margin-bottom: 32px;
}

/* ===========================================
   FORMULAIRES
   =========================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: flex;
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--neutral-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px rgba(26, 58, 47, 0.1);
}

.form-input::placeholder {
    color: var(--neutral-400);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--neutral-500);
    margin-top: 4px;
}

/* ---- Form validation (wces-forms.js) ---- */
.form-group {
    position: relative;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--error-500);
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
    border-color: var(--error-500);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

.invalid-feedback {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 11px;
    line-height: 16px;
    font-weight: 400;
    color: var(--error-500);
    background: var(--error-100);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 130px;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-group:hover .invalid-feedback {
    opacity: 1;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.radio-card {
    padding: 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.radio-card:hover {
    border-color: var(--neutral-400);
}

.radio-card.selected {
    border-color: var(--primary-700);
    background: rgba(26, 58, 47, 0.05);
}

.radio-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.radio-card .label {
    font-weight: 500;
    font-size: 13px;
}

/* ===========================================
   STEPPER FORMULAIRE
   =========================================== */
.form-stepper {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: 20px 32px;
}

.stepper {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.stepper-step.pending .stepper-circle {
    background: var(--neutral-200);
    color: var(--neutral-600);
}

.stepper-step.active .stepper-circle {
    background: var(--primary-900);
    color: white;
}

.stepper-step.completed .stepper-circle {
    background: var(--success-500);
    color: white;
}

.stepper-label {
    font-size: 14px;
    color: var(--neutral-600);
}

.stepper-step.active .stepper-label {
    color: var(--primary-900);
    font-weight: 500;
}

/* Stepper Progress Indicator */
.form-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stepper-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-label {
    font-size: 13px;
    color: var(--neutral-600);
}

.progress-bar-container {
    width: 120px;
    height: 8px;
    background: var(--neutral-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-500);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-500);
    min-width: 40px;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.form-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.form-card-subtitle {
    color: var(--neutral-600);
    margin-bottom: 24px;
    font-size: 14px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--neutral-200);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--neutral-200);
    margin-top: 24px;
}

.form-autosave {
    font-size: 12px;
    color: var(--success-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===========================================
   KPI CARDS
   =========================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.kpi-card-label {
    font-size: 13px;
    color: var(--neutral-600);
    margin-bottom: 8px;
}

.kpi-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-900);
}

.kpi-card-value span {
    font-size: 14px;
    font-weight: 400;
    color: var(--neutral-600);
}

/* ===========================================
   BADGES
   =========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.badge-bronze {
    background: var(--bronze-bg);
    color: var(--bronze);
}

.badge-silver {
    background: var(--silver-bg);
    color: var(--neutral-700);
}

.badge-gold {
    background: var(--gold-bg);
    color: #b8860b;
}

.badge-master {
    background: var(--master-bg);
    color: var(--master);
}

/* ===========================================
   THRESHOLDS TABLE — thresholds-table.html.twig
   =========================================== */
.thresholds-table-wrapper {
    margin-top: 32px;
}
.thresholds-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 14px;
}
.thresholds-table thead th {
    background: var(--primary-900);
    color: white;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.thresholds-table thead th:first-child {
    text-align: left;
}
.thresholds-table tbody td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--neutral-200);
    font-weight: 500;
}
.thresholds-table tbody td:first-child {
    text-align: left;
}
.thresholds-table tbody tr:last-child td {
    border-bottom: none;
}
.thresholds-table .level-bronze td { background: var(--bronze-bg); }
.thresholds-table .level-silver td { background: var(--silver-bg); }
.thresholds-table .level-gold td { background: var(--gold-bg); }
.thresholds-table .level-master td { background: var(--master-bg); }
.thresholds-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.thresholds-level-badge.bronze { background: var(--bronze); color: white; }
.thresholds-level-badge.silver { background: var(--silver); color: white; }
.thresholds-level-badge.gold { background: var(--gold); color: #4a3800; }
.thresholds-level-badge.master { background: var(--master); color: white; }
.thresholds-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--neutral-600);
    font-style: italic;
}

/* ===========================================
   LEVELS PRICING — pricing-table style
   =========================================== */
.champ-thresholds-section h3 {
    text-align: center;
}

.levels-pricing {
    max-width: 860px;
    margin: 48px auto 0;
    position: relative;
}

/* 4-column grid: cards/cells only — labels positioned outside */
.levels-pricing-header-row,
.levels-pricing-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* Header row */
.levels-pricing-header-row {
    align-items: end;
    margin-bottom: 0;
    position: relative;
}

.levels-pricing-label-spacer {
    position: absolute;
    right: calc(100% + 16px);
    bottom: 8px;
    white-space: nowrap;
}

.levels-pricing-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 32px 16px 24px;
    text-align: center;
}

.levels-pricing-card + .levels-pricing-card {
    border-left: none;
}

.levels-pricing-card-highlight {
    background: var(--primary-900);
    border-color: var(--primary-900);
    padding-top: 40px;
    padding-bottom: 28px;
    margin-top: -16px;
    box-shadow: var(--shadow-lg);
}

.levels-pricing-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.levels-pricing-badge svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.levels-pricing-card.bronze .levels-pricing-badge {
    background: linear-gradient(135deg, var(--bronze) 0%, #a66a2a 100%);
}
.levels-pricing-card.silver .levels-pricing-badge {
    background: linear-gradient(135deg, var(--silver) 0%, #8a8a8a 100%);
}
.levels-pricing-card.gold .levels-pricing-badge {
    background: linear-gradient(135deg, var(--gold) 0%, #e6c200 100%);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.35);
}
.levels-pricing-card.master .levels-pricing-badge {
    background: linear-gradient(135deg, var(--master) 0%, #0f6b32 100%);
    box-shadow: 0 3px 8px rgba(21, 128, 61, 0.35);
}

.levels-pricing-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-900);
}

.levels-pricing-card-highlight .levels-pricing-name {
    color: white;
}

/* Data body */
.levels-pricing-body {
    overflow: visible;
}

.levels-pricing-row {
    border-bottom: 1px solid var(--neutral-200);
    position: relative;
}

.levels-pricing-row:last-child {
    border-bottom: none;
}

/* "Building type" label — at bottom of spacer cell */
.levels-pricing-row-section {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-500);
}

/* Row labels — positioned to the left of the grid */
.levels-pricing-row-label {
    position: absolute;
    right: calc(100% + 16px);
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-700);
    white-space: nowrap;
}

/* Value cells — bordered zone aligned with cards */
.levels-pricing-cell {
    padding: 14px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-900);
    border-right: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.levels-pricing-cell:last-child {
    border-right: none;
}

/* Border-left on Bronze column (nth-child(2) because row-label is nth-child(1), absolutely positioned) */
.levels-pricing-row .levels-pricing-cell:nth-child(2) {
    border-left: 1px solid var(--neutral-200);
}

.levels-pricing-row:last-child .levels-pricing-cell {
    border-bottom: 1px solid var(--neutral-200);
}

.levels-pricing-row:last-child .levels-pricing-cell:nth-child(2) {
    border-bottom-left-radius: var(--radius-lg);
}

.levels-pricing-row:last-child .levels-pricing-cell:last-child {
    border-bottom-right-radius: var(--radius-lg);
}

/* Right border on last value cell */
.levels-pricing-row .levels-pricing-cell:last-child {
    border-right: 1px solid var(--neutral-200);
}

/* Dual cells: value % + descriptive text below */
.levels-pricing-cell-dual {
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
}

.levels-pricing-cell-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-900);
}

.levels-pricing-cell-desc {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--neutral-500);
}


/* White background on data rows */
.levels-pricing-cell {
    background-color: #fff;
}

.levels-pricing-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--neutral-500);
    font-style: italic;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .levels-pricing-header-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .levels-pricing-label-spacer {
        display: none;
    }
    .levels-pricing-card {
        border-radius: var(--radius-md);
        border-bottom: 1px solid var(--neutral-200);
        padding: 16px 8px 12px;
    }
    .levels-pricing-card-highlight {
        margin-top: 0;
        padding: 16px 8px 12px;
    }
    .levels-pricing-body {
        margin-top: 12px;
    }
    .levels-pricing-row {
        grid-template-columns: 1fr;
    }
    .levels-pricing-row-section {
        display: none;
    }
    .levels-pricing-row-label {
        position: static;
        white-space: normal;
        justify-content: center;
        padding: 14px 16px;
        background: var(--neutral-50);
        border: 1px solid var(--neutral-200);
        border-bottom: none;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .levels-pricing-row .levels-pricing-cell:nth-child(2) { border-left: none; }
    .levels-pricing-row .levels-pricing-cell:last-child { border-right: none; }
    .levels-pricing-row:last-child .levels-pricing-cell { border-bottom: none; }
    .levels-pricing-row:last-child .levels-pricing-cell:nth-child(2) { border-bottom-left-radius: 0; }
    .levels-pricing-row:last-child .levels-pricing-cell:last-child { border-bottom-right-radius: 0; }
    .levels-pricing-badge { width: 40px; height: 40px; }
    .levels-pricing-badge svg { width: 20px; height: 20px; }
    .levels-pricing-name { font-size: 13px; }
}

/* ===========================================
   ANNUAIRE
   =========================================== */
.directory-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.directory-header .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.directory-header .container {
    position: relative;
    z-index: 1;
}

.directory-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.directory-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    background: white;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--neutral-800);
}

.filters-bar {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
}

.filters-bar .container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--neutral-300);
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--neutral-400);
}

.filter-btn.active {
    background: var(--primary-900);
    color: white;
    border-color: var(--primary-900);
}

.building-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.building-grid-wrapper {
    padding: 32px 0;
}

.building-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.building-card-image {
    height: 160px;
    background: var(--neutral-200);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder icon for buildings without photo */
.building-card-image .placeholder-icon {
    color: var(--neutral-400);
}

/* Building with actual photo */
.building-card-image.has-photo {
    background-size: cover;
    background-position: center;
}

.building-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.building-card-flag {
    position: absolute;
    bottom: -16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.building-card-flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Anonymous building indicator */
.building-card.anonymous .building-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-500);
    font-weight: 500;
    font-style: normal;
}

.building-card.anonymous .building-card-name .anon-icon {
    width: 20px;
    height: 20px;
    background: var(--neutral-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.building-card.anonymous .building-card-name .anon-icon svg {
    width: 12px;
    height: 12px;
    color: var(--neutral-500);
}

/* Hide actual location detail for anonymous - only show region/country */
.building-card.anonymous .building-card-location {
    color: var(--neutral-500);
}

.building-card-content {
    padding: 20px;
}

.building-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 4px;
}

.building-card-location {
    font-size: 13px;
    color: var(--neutral-600);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.building-card-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.building-card-stat strong {
    color: var(--success-500);
}

/* ===========================================
   PAGE FICHE IDENTITÉ WCES
   =========================================== */
.identity-page {
    min-height: calc(100vh - 56px);
    margin-top: 56px;
    background: var(--bg-body);
}

.identity-hero {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    overflow: hidden;
}

.identity-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.identity-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 32px 48px;
    color: white;
}

.identity-hero-info {
    flex: 1;
}

.identity-hero-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.identity-hero-location {
    font-size: 16px;
    opacity: 0.9;
}

.performance-badge {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
}

.performance-badge-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.performance-badge-level {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 4px;
}

.performance-badge-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--success-500);
}

.identity-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.identity-main,
.identity-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.identity-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.identity-section-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.identity-section-icon {
    font-size: 20px;
}

.identity-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 0;
}

.identity-section-body {
    padding: 24px;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.performance-metric {
    text-align: center;
    padding: 20px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
}

.performance-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 4px;
}

.performance-metric-value.highlight {
    color: var(--success-500);
}

.performance-metric-label {
    font-size: 12px;
    color: var(--neutral-600);
}

.action-levers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-lever {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
}

.action-lever-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-900);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.action-lever-content h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-900);
}

.action-lever-content p {
    font-size: 13px;
    color: var(--neutral-600);
    line-height: 1.6;
}

.tech-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tech-data-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--neutral-100);
}

.tech-data-label {
    color: var(--neutral-600);
    font-size: 13px;
}

.tech-data-value {
    font-weight: 500;
    color: var(--primary-900);
    font-size: 13px;
}

.period-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.period-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
}

.period-item-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.period-item-dot.reference {
    background: var(--neutral-400);
}

.period-item-dot.monitoring {
    background: var(--success-500);
}

.period-item-label {
    font-size: 12px;
    color: var(--neutral-500);
}

.period-item-value {
    font-weight: 500;
    color: var(--primary-900);
}

.reliability-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--success-100);
    border-radius: var(--radius-md);
}

.reliability-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--success-500);
}

.reliability-info h4 {
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 2px;
}

.reliability-info p {
    font-size: 12px;
    color: var(--neutral-600);
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===========================================
   ALERTES
   =========================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-info {
    background: var(--info-100);
    color: var(--info-500);
}

/* ===========================================
   CERT GRID CARDS (4 certificates side by side)
   =========================================== */
.cert-grid-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.cert-grid-cards .hero-certificate {
    position: static;
    transform: none;
    width: 240px;
    flex-shrink: 0;
}

.cert-grid-cards .hero-certificate-front {
    position: static;
    transform: none;
}

.cert-grid-cards .hero-certificate:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   TITRES UNIFORMISES
   - H1 : Titre principal (hero)
   - H2 : Titre de section avec trait
   - H3 : Sous-titre / Titre de carte
   =========================================== */

/* H1 - Titre principal (hero) */
h1, .title-h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1.1;
    margin-bottom: 16px;
}

h1 span, .title-h1 span {
    display: block;
}

/* H1 sur fond sombre */
.hero h1,
.section-dark h1 {
    color: white;
}

/* H2 - Titre de section */
h2, .title-h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 span, .title-h2 span {
    color: var(--cube-lime-dark);
}

/* Trait sous H2 */
.title-bar {
    width: 60px;
    height: 6px;
    background: var(--cube-lime);
    border-radius: 3px;
    margin-bottom: 32px;
}

/* Trait centré */
.title-bar.centered,
.text-center .title-bar,
.text-center + .title-bar {
    margin-left: auto;
    margin-right: auto;
}

/* H2 et trait sur fond sombre (texte blanc) */
.section-dark h2,
.cta-section h2 {
    color: white;
}

.section-dark .title-bar,
.cta-section .title-bar {
    background: white;
}

/* H2 et trait sur fond lime (texte sombre pour contraste) */
.section-lime h2,
.how-it-works-section h2 {
    color: var(--primary-900);
}

.section-lime .title-bar,
.how-it-works-section .title-bar {
    background: var(--primary-900);
}

/* H3 - Sous-titre / Titre de carte */
h3, .title-h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 8px;
}

/* H4 - Titre petit (steps, etc.) */
h4, .title-h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-900);
    margin-bottom: 8px;
}

/* Section subtitle */
.section-subtitle {
    font-size: 16px;
    color: var(--neutral-600);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.section-subtitle.text-center,
.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Subtitles sur fond sombre (texte blanc) */
.section-dark .section-subtitle,
.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Subtitles sur fond lime (texte sombre pour contraste) */
.section-lime .section-subtitle,
.how-it-works-section .section-subtitle {
    color: var(--primary-800);
}

/* Section title (centré par défaut) */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-900);
    text-align: center;
    margin-bottom: 16px;
}

.section-title + .title-bar {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   FOOTER SIMPLE (reduced version)
   =========================================== */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-brand-simple .logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer-brand-simple .logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Logo WCES dans le footer : texte en blanc pour contraste sur fond foncé */
.site-footer .wces-logo-text {
    color: white;
}

.footer-nav-simple {
    display: flex;
    gap: 32px;
}

.footer-nav-simple a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav-simple a:hover {
    color: var(--cube-lime);
}

/* Footer Partners (compact) */
.footer-partners {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-partners-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.footer-partners-logos {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-partners-logos span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

/* ===========================================
   WHY JOIN SECTION
   =========================================== */
.why-join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-join-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-join-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.why-join-feature p {
    color: var(--neutral-700);
    font-size: 15px;
    line-height: 1.5;
}

.why-join-icon {
    width: 48px;
    height: 48px;
    background: #ecf4d0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-join-image {
    border-radius: 16px;
    overflow: hidden;
    height: 480px;
}

.why-join-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1200px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .hero-certificates-stack {
        width: 320px;
        height: 380px;
        transform: scale(1);
    }

    .hero-certificate {
        width: 240px;
        padding: 24px;
    }

    .why-join-grid {
        gap: 40px;
    }

    .why-join-image {
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .kpis-row {
        flex-wrap: wrap;
        gap: 48px;
    }

    .cert-grid-cards {
        gap: 24px;
    }

    .cert-grid-cards .hero-certificate {
        width: 200px;
        padding: 20px;
    }

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

    .identity-content {
        grid-template-columns: 1fr;
    }

    .performance-metrics {
        grid-template-columns: 1fr;
    }

    .why-join-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-join-image {
        height: 360px;
    }

    /* Proto-nav scrollable */
    .proto-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .proto-nav-links {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .building-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

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

    .radio-cards {
        grid-template-columns: 1fr;
    }

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

    .cert-grid-cards {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-simple {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-nav-simple {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-partners {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-partners-logos {
        justify-content: center;
    }

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

    .kpis-row {
        flex-direction: column;
        gap: 24px;
    }

    .hero {
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

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

    .certificates-section,
    .how-it-works-section,
    .section-padded {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .cta-section {
        padding: 48px 0;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .section-title,
    .certificates-section .section-title,
    .how-it-works-section .section-title {
        font-size: 28px;
    }

    .why-join-image {
        height: 280px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Header burger menu */
    .public-header-inner {
        padding: 12px 20px;
        position: relative;
    }

    .burger-btn {
        display: flex;
    }

    .public-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        border-top: 1px solid var(--neutral-200);
        box-shadow: var(--shadow-md);
        padding: 16px 20px;
        gap: 4px;
        z-index: 100;
    }

    .public-nav.open {
        display: flex;
    }

    .public-nav a {
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }

    .public-nav a:hover {
        background: var(--neutral-50);
    }

    .public-nav a.active::after {
        display: none;
    }

    .public-nav a.active {
        background: var(--neutral-50);
        color: var(--primary-900);
        font-weight: 600;
    }

    .public-nav .btn-cta {
        margin-top: 8px;
        text-align: center;
    }

    /* Proto-nav burger menu */
    .proto-nav {
        height: 40px;
        font-size: 11px;
        padding: 0 12px;
    }

    .proto-nav-spacer {
        height: 40px;
    }

    .proto-nav-burger {
        display: flex;
    }

    .proto-nav-links {
        display: none;
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        background: #1a1a2e;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 10003;
    }

    .proto-nav-links.open {
        display: flex;
    }

    .proto-nav-links > span {
        padding: 8px 16px 4px;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .proto-nav-links a {
        padding: 8px 16px;
        font-size: 13px;
        border-left: 3px solid transparent;
    }

    .proto-nav-links a:hover {
        background: rgba(255,255,255,0.05);
        border-left-color: rgba(255,255,255,0.2);
    }

    .proto-nav-links a.active {
        background: rgba(164,200,2,0.1);
        border-left-color: #a4c802;
    }

    .proto-nav-title {
        font-size: 11px;
        margin-right: 12px;
    }

    /* Ajuster les margins-top après proto-nav réduite */
    .public-header {
        margin-top: 0;
    }

    .directory-header {
        padding: 48px 0;
    }

    .directory-header h1 {
        font-size: 32px;
    }

    .identity-hero-content {
        padding: 24px 20px;
    }

    .identity-hero-info h1 {
        font-size: 24px;
    }

    .performance-badge {
        padding: 16px 20px;
        min-width: auto;
    }

    .hero-certificate-value {
        font-size: 36px;
    }

    .hero-certificate-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .why-join-image {
        height: 220px;
    }

    .kpis-section {
        padding: 32px 0;
    }

    .kpi-value {
        font-size: 28px;
    }

    .login-card {
        padding: 24px;
        width: 100%;
    }

    .page-hero-compact {
        padding: 80px 0;
    }

    .stub-card {
        padding: 32px 24px;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
    }

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

/* =================================================================
   PAGE HERO — Reusable hero section for public pages
   ================================================================= */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    padding: 120px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.page-hero-compact {
    padding: 80px 0 60px;
}

.page-hero .hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 47, 0.85) 0%, rgba(45, 97, 78, 0.75) 100%);
}

.page-hero--league .hero-bg {
    opacity: 1;
}

.page-hero--league .hero-overlay {
    background: linear-gradient(135deg, rgba(26, 58, 47, 0.55) 0%, rgba(45, 97, 78, 0.45) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cube-lime);
    color: var(--primary-900);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-hero h1 {
    font-size: var(--wces-h1-size);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: white;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .hero-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =================================================================
   STUB CONTENT — Placeholder for pages not yet implemented
   ================================================================= */
.stub-content {
    padding: 80px 0;
    background: var(--neutral-50);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.stub-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-sm);
}

.stub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--primary-900);
    color: var(--cube-lime);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.stub-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 16px;
}

.stub-description {
    font-size: 16px;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.stub-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--info-100);
    color: var(--info-500);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

/* =================================================================
   SECTION HEADING — Title with decorative accent bar
   ================================================================= */
.section-heading {
    margin-bottom: 40px;
}

.section-heading-centered {
    text-align: center;
}

.section-heading h2 {
    font-size: var(--wces-h2-size);
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-heading-bar {
    width: 48px;
    height: 4px;
    background: var(--cube-lime);
    border-radius: 2px;
}

.section-heading-centered .section-heading-bar {
    margin: 0 auto;
}

.section-heading p {
    font-size: 16px;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 640px;
}

.section-heading-centered p {
    margin-left: auto;
    margin-right: auto;
}

/* Light variant (for dark backgrounds) */
.section-heading-light h2 {
    color: #fff;
}

.section-heading-light p {
    color: rgba(255, 255, 255, 0.7);
}

/* =================================================================
   NAV DROPDOWN — Navigation dropdown items
   ================================================================= */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-900);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background-color 0.15s;
    cursor: pointer;
}

.nav-dropdown-trigger:hover {
    background: var(--neutral-100);
}

.nav-dropdown-trigger.active {
    color: var(--cube-lime-dark);
}

.nav-dropdown-arrow {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--neutral-200);
    padding: 8px 0;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--neutral-700);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
    background: var(--neutral-50);
    color: var(--primary-900);
}

/* =================================================================
   FOOTER GRID — Multi-column footer layout
   ================================================================= */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    padding: 48px 0;
}

.footer-column-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--cube-lime);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-column a:hover {
    color: white;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 280px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal a:hover {
    color: var(--cube-lime);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0;
    }

    .footer-brand-desc {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ======================================================================
   CHAMPIONSHIP PAGE
   ====================================================================== */

/* --- Section layout --- */
.champ-section {
    padding: 96px 0;
}

.champ-section-white {
    background: #fff;
}

.champ-section-alt {
    background: var(--neutral-50);
}

.champ-section-dark {
    background: var(--primary-900);
    color: #fff;
}

/* --- Hero CTAs (below hero overlay) --- */
.champ-hero-ctas {
    background: var(--primary-900);
    padding: 24px 0;
    text-align: center;
}

.champ-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.champ-cta-centered {
    margin-top: 48px;
    justify-content: center;
}

/* --- Content blocks --- */
.champ-content-block {
    margin-bottom: 40px;
}

.champ-content-block:last-child {
    margin-bottom: 0;
}

.champ-content-block h3 {
    font-size: var(--wces-h3-size);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-900);
    margin-bottom: 16px;
}

.champ-section-dark .champ-content-block h3 {
    color: #fff;
}

.champ-content-block p,
.champ-content-block ul,
.champ-content-block ol {
    font-size: 16px;
    line-height: 1.75;
    color: var(--neutral-600);
    max-width: 900px;
    text-wrap: balance;
}

.champ-content-block ul,
.champ-content-block ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.champ-content-block ul {
    list-style: disc;
}

.champ-content-block ol {
    list-style: decimal;
}

.champ-content-block li {
    margin-bottom: 4px;
}

.champ-section-dark .champ-content-block p,
.champ-section-dark .champ-content-block ul,
.champ-section-dark .champ-content-block ol,
.champ-section-dark .champ-content-block li {
    color: rgba(255, 255, 255, 0.8);
}

/* Centered variant */
.champ-content-block--centered {
    text-align: center;
}

.champ-content-block--centered h3 {
    text-align: center;
}

.champ-content-block--centered p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Intro variant — large centered text for opening paragraph */
.champ-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 64px;
    padding: 0 20px;
}

.champ-intro p {
    font-size: 20px;
    line-height: 1.85;
    color: var(--neutral-600);
    max-width: none;
    margin: 0;
}

.champ-section-dark .champ-intro p {
    color: rgba(255, 255, 255, 0.8);
}

.champ-intro .champ-note {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    margin-top: 20px;
}

/* --- Grid layouts --- */
.champ-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.champ-grid:last-child {
    margin-bottom: 0;
}

.champ-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-inline: auto;
}

.champ-grid-2 > .champ-card {
    text-align: center;
}

.champ-grid-2 > .champ-card .champ-card-icon-header {
    justify-content: center;
}

.champ-grid-2 > .champ-card .champ-list {
    display: inline-block;
    text-align: left;
}

.champ-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.champ-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .champ-grid-3,
    .champ-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .champ-grid-2,
    .champ-grid-3,
    .champ-grid-4 {
        grid-template-columns: 1fr;
    }

    .champ-section {
        padding: 56px 0;
    }
}

/* --- Cards --- */
.champ-card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg, 12px);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-align: left;
    color: var(--neutral-700);
}

/* Reset inherited dark-section styles inside white cards */
.champ-card .champ-list li {
    color: var(--neutral-600);
}

.champ-card .champ-list li::before {
    background: var(--neutral-300);
}

.champ-card .champ-list-check li::before {
    background: var(--cube-lime);
}

.champ-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

.champ-card h4 {
    font-size: var(--wces-h4-size);
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-900);
    margin-bottom: 12px;
}

/* Card with centered layout (governance) — icon + title centered, lists stay left */
.champ-card--centered .champ-card-icon {
    margin-left: auto;
    margin-right: auto;
}

.champ-card--centered h4,
.champ-card--centered h3 {
    text-align: center;
}

.champ-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-900);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--cube-lime);
}

.champ-card-icon svg {
    width: 28px;
    height: 28px;
}

/* --- Not / Is comparison cards --- */
.champ-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--primary-900);
}

.champ-card-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.champ-card-badge-not {
    background: var(--error-100);
    color: var(--error-500);
}

.champ-card-badge-is {
    background: var(--success-100);
    color: var(--success-500);
}

.champ-card-not {
    border-left: 4px solid var(--error-400);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.01));
    padding: 24px;
}

.champ-card-is {
    border-left: 4px solid var(--success-400);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04), rgba(34, 197, 94, 0.01));
    padding: 24px;
}

/* --- Audience cards --- */
.champ-audience-card {
    text-align: center;
    padding: 36px 20px 32px;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg, 12px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.champ-audience-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    transform: translateY(-3px);
}

.champ-audience-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary-900);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cube-lime);
}

.champ-audience-icon svg {
    width: 36px;
    height: 36px;
}

.champ-audience-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-900);
    display: block;
    line-height: 1.4;
}

/* --- Statistics --- */
.champ-stat {
    text-align: center;
    padding: 36px 24px;
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.champ-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cube-lime);
}

.champ-stat-value {
    display: block;
    font-size: 52px;
    font-weight: 800;
    color: var(--primary-900);
    line-height: 1.1;
    margin-bottom: 12px;
}

.champ-stat-label {
    display: block;
    font-size: 14px;
    color: var(--neutral-500);
    line-height: 1.5;
}

/* --- Highlight box --- */
.champ-highlight-box {
    background: linear-gradient(135deg, rgba(164, 200, 2, 0.12), rgba(164, 200, 2, 0.04));
    border: 1px solid rgba(164, 200, 2, 0.25);
    color: #fff;
    border-radius: var(--radius-lg, 12px);
    padding: 48px 56px 48px 80px;
    margin-bottom: 64px;
    position: relative;
}

.champ-highlight-box::before {
    content: "\201C";
    position: absolute;
    top: 12px;
    left: 24px;
    font-size: 96px;
    font-family: Georgia, serif;
    color: var(--cube-lime);
    line-height: 1;
    opacity: 0.5;
}

.champ-highlight-box p {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: none;
    position: relative;
}

/* --- Lists --- */
.champ-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.champ-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.6;
}

.champ-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-300);
}

.champ-list-check li::before {
    background: var(--cube-lime);
    box-shadow: 0 0 0 3px rgba(164, 200, 2, 0.15);
}

.champ-section-dark .champ-list li {
    color: rgba(255, 255, 255, 0.8);
}

.champ-section-dark .champ-list li::before {
    background: var(--cube-lime);
}

/* Cards inside dark sections keep dark text on white bg */
.champ-section-dark .champ-card .champ-list li {
    color: var(--neutral-600);
}

.champ-section-dark .champ-card h4,
.champ-section-dark .champ-card h3 {
    color: var(--primary-900);
}

/* Centered list (max-width + auto margin) */
.champ-list--centered {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Panel (subtle card wrapper for content sections) --- */
.champ-panel {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg, 12px);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
    text-align: left;
}

.champ-panel h3 {
    margin-top: 0;
}

.champ-panel .champ-list--centered {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Panels inside dark sections: restore dark text on white bg */
.champ-section-dark .champ-panel {
    color: var(--neutral-700);
}

.champ-section-dark .champ-panel .champ-pillar-label {
    color: var(--primary-900);
}

.champ-section-dark .champ-panel p {
    color: var(--neutral-600);
}

.champ-section-dark .champ-panel .champ-list li {
    color: var(--neutral-600);
}

/* Icon card header (for cards with top icon + title) */
.champ-card-icon-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.champ-card-icon-header .champ-card-icon-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-900);
    color: var(--cube-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.champ-card-icon-header .champ-card-icon-sm svg {
    width: 22px;
    height: 22px;
}

.champ-card-icon-header h4,
.champ-card-icon-header h3 {
    margin: 0;
}

/* --- Note text --- */
.champ-note {
    margin-top: 20px;
    padding: 16px 20px 16px 44px;
    background: var(--neutral-100);
    border-radius: var(--radius-md, 8px);
    font-size: 16px;
    line-height: 1.75;
    color: var(--neutral-600);
    max-width: 900px;
    font-style: italic;
    line-height: 1.6;
    position: relative;
}

.champ-note::before {
    content: "\2139";
    position: absolute;
    left: 18px;
    top: 16px;
    font-style: normal;
    font-size: 16px;
    color: var(--neutral-400);
}

/* --- Pillars (horizontal tags) --- */
.champ-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.champ-pillar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.champ-pillar {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--primary-900);
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.champ-pillar:hover {
    background: var(--primary-800);
}

/* --- Timeline --- */
.champ-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.champ-timeline-vertical {
    flex-direction: column;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Connecting line for vertical timeline */
.champ-timeline-vertical::before {
    content: "";
    position: absolute;
    left: 38px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--neutral-200);
    z-index: 0;
}

.champ-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md, 8px);
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.2s ease;
}

.champ-timeline-item:hover {
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.champ-timeline-vertical .champ-timeline-item {
    flex: none;
    width: 100%;
}

.champ-timeline-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cube-lime);
    color: var(--primary-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.champ-timeline-content {
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.6;
    padding-top: 10px;
}

/* Timeline connecting line color for lime numbers */
.champ-timeline-vertical::before {
    background: var(--cube-lime) !important;
    opacity: 0.3;
}

/* Horizontal process steps */
.champ-process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 40px;
    counter-reset: step;
}

.champ-process-step {
    text-align: center;
    padding: 32px 16px 28px;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg, 12px);
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.champ-process-step:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    transform: translateY(-3px);
}

.champ-process-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-900);
    color: var(--cube-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.champ-process-step-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
    line-height: 1.5;
}

/* Arrow between process steps */
.champ-process-step + .champ-process-step::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid var(--cube-lime);
}

@media (max-width: 640px) {
    .champ-timeline {
        flex-direction: column;
    }

    .champ-process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .champ-process-step + .champ-process-step::before {
        display: none;
    }

    .champ-timeline-vertical::before {
        display: none;
    }
}

/* --- Championship: card footer --- */
.champ-card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-style: italic;
    font-size: 13px;
    opacity: 0.85;
}

.champ-section-white .champ-card-footer,
.champ-section-alt .champ-card-footer {
    border-top-color: var(--neutral-200);
}

/* --- Championship: tagline --- */
.champ-tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-800);
    text-align: center;
    max-width: 800px;
    margin: 24px auto 0;
    line-height: 1.6;
}

.champ-section-dark .champ-tagline {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Championship: intro text (centered paragraph below heading) --- */
.champ-intro-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--neutral-600);
    text-align: center;
    max-width: 900px;
    margin: -16px auto 40px;
}

/* Subsection title (h3 above card grids) */
.champ-subsection-title {
    text-align: center;
    color: var(--primary-900);
    margin-bottom: 24px;
}

.champ-section-dark .champ-subsection-title {
    color: #fff;
}

/* --- Championship: momentum block --- */
.champ-momentum-block {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--cube-lime);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 32px 40px;
    margin-top: 32px;
    text-align: center;
}

.champ-momentum-block p {
    font-size: 18px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
}

.champ-momentum-block p:last-child {
    margin-top: 16px;
    font-size: 16px;
    color: var(--cube-lime);
}

/* ================================================================ */
/* Process Phases Diagram — 5-column layout                         */
/* ================================================================ */

.process-phases {
    margin-top: 40px;
}

.process-phases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: start;
}

.process-phases-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

/* Arrow between columns */
.process-phases-col + .process-phases-col::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 32px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid var(--cube-lime);
}

.process-phases-header {
    text-align: center;
}

.process-phases-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-900);
    color: var(--cube-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 8px;
}

.process-phases-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-900);
    text-align: center;
    margin: 0;
}

.process-phases-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-phases-card {
    background: #f5f5e8;
    border-radius: var(--radius-md, 8px);
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--neutral-700);
    text-align: center;
    min-height: 80px;
}

.process-phases-desc {
    margin: 0;
}

.process-phases-result {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--primary-900);
}

.process-phases-result strong {
    font-weight: 700;
}

/* Info boxes (Basic / Advanced) */
.process-phases-info {
    border-radius: var(--radius-md, 8px);
    padding: 12px;
    text-align: center;
    margin-top: 4px;
}

.process-phases-info--basic {
    background: var(--primary-900);
    color: #fff;
}

.process-phases-info--advanced {
    background: var(--primary-900);
    color: #fff;
}

.process-phases-info-badge {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.process-phases-info-sub {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.process-phases-info-text {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .process-phases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .process-phases-col + .process-phases-col::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .process-phases-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ================================================================ */
/* Timeline to COP — CSS Grid approach (no absolute positioning)    */
/* ================================================================ */

.tlcop {
    margin: 40px 0 20px;
}

/* Rows: 6-column grid */
.tlcop-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.tlcop-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--neutral-600);
}

.tlcop-cell strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-900);
}

/* Top row: events above the line */
.tlcop-row--top .tlcop-cell {
    justify-content: flex-end;
    min-height: 70px;
}

/* Bottom row: events below the line */
.tlcop-row--bottom .tlcop-cell {
    justify-content: flex-start;
    min-height: 50px;
}

/* Phase labels row */
.tlcop-row--phases .tlcop-cell {
    padding: 4px 6px;
}

.tlcop-phase {
    font-size: 11px;
    font-weight: 600;
    color: var(--cube-lime-dark, #7a9600);
}

.tlcop-period {
    font-size: 11px;
    font-weight: 600;
    color: var(--neutral-500);
}

.tlcop-optional {
    font-size: 11px;
    font-weight: 600;
    color: var(--neutral-500);
    font-style: italic;
}

.tlcop-we-are-here {
    font-size: 12px;
    font-weight: 700;
    color: var(--cube-lime-dark, #7a9600);
    font-style: italic;
}

/* Track bar */
.tlcop-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    height: 36px;
}

.tlcop-track-bar {
    position: absolute;
    left: 0;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    background: linear-gradient(90deg, var(--cube-lime) 0%, var(--primary-900) 100%);
    border-radius: 6px;
    z-index: 0;
}

.tlcop-track-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Nodes on the track */
.tlcop-track-nodes {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    z-index: 2;
}

.tlcop-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--neutral-300);
    justify-self: center;
}

.tlcop-node--start {
    border-color: var(--cube-lime);
    justify-self: start;
    margin-left: -1px;
}

.tlcop-node--end {
    border-color: var(--primary-900);
    justify-self: end;
    margin-right: 16px;
}

.tlcop-node--marker {
    width: 32px;
    height: 32px;
    background: var(--cube-lime);
    border: 3px solid var(--primary-900);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tlcop-node--marker svg {
    stroke: var(--primary-900);
}

.tlcop-node--dot {
    width: 8px;
    height: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
}

/* Dashed vertical connectors from events to the track */
.tlcop-cell--dashed {
    position: relative;
}

.tlcop-row--top .tlcop-cell--dashed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 8px;
    border-left: 2px dashed var(--neutral-300);
}

.tlcop-row--bottom .tlcop-cell--dashed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 8px;
    border-left: 2px dashed var(--neutral-300);
}

.tlcop-row--phases .tlcop-cell--dashed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 6px;
    border-left: 2px dashed var(--neutral-300);
}

/* Responsive: scroll on small screens */
@media (max-width: 768px) {
    .tlcop {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tlcop-row,
    .tlcop-track,
    .tlcop-track-nodes {
        min-width: 700px;
    }
    .tlcop-track {
        min-width: 700px;
    }
}

/* ================================================================ */
/* Championship: grid-5 (for 5 principles)                          */
/* ================================================================ */
.champ-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .champ-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .champ-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
