/* ═══════════════════════════════════════════════
   CHAMPIONNAT D1 / D2 — CDTT76
   ═══════════════════════════════════════════════ */

:root {
    --navy:       #0D2A6B;
    --navy-light: #1a3a85;
    --red:        #D4192C;
    --light:      #F4F6FB;
    --border:     #e2e6f0;
    --text:       #1a1a2e;
    --muted:      #6b7280;
    --white:      #ffffff;
    --radius:     12px;
    --shadow:     0 2px 16px rgba(13,42,107,.08);
    --shadow-lg:  0 8px 32px rgba(13,42,107,.14);
    --transition: .22s ease;

    --purple-color: #6a1b9a; --purple-bg: rgba(106,27,154,.08);
    --past-color:   #2e7d32;
    --today-color:  #e65100; --today-bg: rgba(230,81,0,.09);
    --blue-color:   #1565c0; --blue-bg:  rgba(21,101,192,.08);
    --green-color:  #2e7d32; --green-bg: rgba(46,125,50,.08);
    --orange-color: #e65100; --orange-bg:rgba(230,81,0,.08);
}

.page-d1d2 .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ HERO ══════════════════════════════════════ */
.d12-hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 64px 0 56px;
    overflow: hidden;
    text-align: center;
}

.d12-hero__bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 70%, rgba(212,25,44,.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 20%, rgba(106,27,154,.12) 0%, transparent 40%);
    pointer-events: none;
}

.page-d1d2 .section-label {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--red); background: rgba(212,25,44,.15);
    padding: 4px 14px; border-radius: 100px; margin-bottom: 16px;
}

.d12-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900; line-height: 1.1;
    margin: 0 0 14px; color: var(--white);
}
.d12-hero__title span { color: var(--red); }

.d12-hero__sub {
    font-size: .93rem; color: rgba(255,255,255,.65);
    max-width: 500px; margin: 0 auto 28px; line-height: 1.6;
}

/* Barre progression */
.d12-hero__progress-wrap {
    max-width: 480px; margin: 0 auto 24px;
}

.d12-progress {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px; padding: 14px 20px;
}

.d12-progress__header {
    display: flex; justify-content: space-between;
    font-size: .78rem; color: rgba(255,255,255,.65);
    margin-bottom: 10px;
}
.d12-progress__value { font-weight: 700; color: var(--white); }

.d12-progress__bar {
    position: relative; height: 8px;
    background: rgba(255,255,255,.15); border-radius: 100px;
}

.d12-progress__fill {
    position: absolute; left: 0; top: 0; height: 100%;
    background: linear-gradient(90deg, var(--red), #ff6b35);
    border-radius: 100px; transition: width .6s ease;
}

/* Stats */
.d12-hero__stats {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 100px; padding: 10px 24px;
}
.d12-stat { display: flex; align-items: center; gap: 8px; }
.d12-stat__num   { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.d12-stat__label { font-size: .75rem; color: rgba(255,255,255,.65); }
.d12-stat__sep   { width: 1px; height: 26px; background: rgba(255,255,255,.2); margin: 0 16px; }

/* ═══ SECTION HEADERS ════════════════════════════ */
.d12-section-header { margin-bottom: 24px; }
.d12-section-title  {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900; color: var(--navy); margin: 8px 0 0;
}

/* ═══ CALENDRIER ═════════════════════════════════ */
.d12-cal-section {
    background: var(--white);
    padding: 52px 0 48px;
}

.d12-cal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.d12-phases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.d12-phase-col { }
.d12-phase-col:first-child { border-right: 1px solid var(--border); }

.d12-phase-col__header {
    font-size: .72rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--navy); background: var(--light);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
}

.d12-journees {
    padding: 8px 12px;
    display: flex; flex-direction: column; gap: 2px;
}

.d12-journee {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 7px;
    transition: background var(--transition);
}
.d12-journee:hover { background: var(--light); }

.d12-journee--past   { opacity: .6; }
.d12-journee--today  { background: var(--today-bg) !important; }
.d12-journee--future {}

.d12-journee__num {
    font-size: .7rem; font-weight: 800;
    color: var(--navy); min-width: 22px;
}

.d12-journee__date {
    font-size: .82rem; color: var(--text); flex: 1;
}

.d12-journee--past  .d12-journee__date { color: var(--muted); }
.d12-journee--today .d12-journee__date { font-weight: 700; color: var(--today-color); }

.d12-journee__check { color: var(--past-color); flex-shrink: 0; }

.d12-journee__now {
    font-size: .62rem; font-weight: 800;
    color: var(--today-color); background: rgba(230,81,0,.12);
    padding: 2px 7px; border-radius: 4px;
}

.d12-no-data {
    font-size: .78rem; color: var(--muted);
    font-style: italic; padding: 12px 20px; margin: 0;
}

/* ═══ DIVISIONS ══════════════════════════════════ */
.d12-divs-section {
    background: var(--white);
    padding: 52px 0 48px;
}

.d12-div-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.d12-div-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.d12-div-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.d12-div-card__header {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.d12-div-badge {
    display: inline-block;
    font-size: 1.2rem; font-weight: 900;
    color: var(--white); padding: 4px 18px;
    border-radius: 7px; width: fit-content;
}

.d12-div-card--navy   .d12-div-card__header { background: rgba(13,42,107,.06); }
.d12-div-card--navy   .d12-div-badge         { background: var(--navy); }
.d12-div-card--purple .d12-div-card__header { background: var(--purple-bg); }
.d12-div-card--purple .d12-div-badge         { background: var(--purple-color); }

.d12-div-desc {
    font-size: .75rem; color: var(--muted);
}

.d12-phase-docs {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.d12-phase-docs:last-child { border-bottom: none; }

.d12-phase-docs__label {
    font-size: .65rem; font-weight: 800;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px;
}

.d12-phase-docs__links {
    display: flex; flex-wrap: wrap; gap: 6px;
}

.d12-doc-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .76rem; font-weight: 600;
    padding: 5px 10px; border-radius: 6px;
    text-decoration: none; transition: all var(--transition);
    border: 1.5px solid transparent; white-space: nowrap;
}

.d12-doc-btn--poules { background: rgba(13,42,107,.06);  color: var(--navy);          border-color: rgba(13,42,107,.15); }
.d12-doc-btn--cal    { background: var(--blue-bg);        color: var(--blue-color);    border-color: rgba(21,101,192,.2); }
.d12-doc-btn--res    { background: var(--green-bg);       color: var(--green-color);   border-color: rgba(46,125,50,.2); }
.d12-doc-btn--cls    { background: var(--orange-bg);      color: var(--orange-color);  border-color: rgba(230,81,0,.2); }

.d12-doc-btn--poules:hover { background: var(--navy);         color: var(--white); }
.d12-doc-btn--cal:hover    { background: var(--blue-color);   color: var(--white); }
.d12-doc-btn--res:hover    { background: var(--green-color);  color: var(--white); }
.d12-doc-btn--cls:hover    { background: var(--orange-color); color: var(--white); }

/* ═══ RÈGLEMENT & INSCRIPTION ════════════════════ */
.d12-global-docs {
    background: var(--white);
    padding: 52px 0 72px;
    border-top: 1px solid var(--border);
}

.d12-global-docs__list {
    display: flex; flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 520px;
}

.d12-doc-row {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px; text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.d12-doc-row:last-child { border-bottom: none; }
.d12-doc-row:hover { background: var(--light); }

.d12-doc-row__icon {
    width: 40px; height: 40px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); flex-shrink: 0;
}
.d12-doc-row--navy .d12-doc-row__icon { background: var(--navy); }
.d12-doc-row--red  .d12-doc-row__icon { background: var(--red); }

.d12-doc-row__label { font-size: .95rem; font-weight: 700; color: var(--navy); flex: 1; }

.d12-doc-row__ext {
    font-size: .65rem; font-weight: 800; letter-spacing: .06em;
    color: var(--muted); background: var(--light);
    padding: 2px 8px; border-radius: 4px;
}

.d12-doc-row__arrow {
    color: var(--muted); opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}
.d12-doc-row:hover .d12-doc-row__arrow { opacity: 1; transform: translateX(3px); }

.d12-global-docs__empty {
    text-align: center; color: var(--muted);
    font-size: .9rem; padding: 28px 0; margin: 0;
}

/* ═══ RESPONSIVE ═════════════════════════════════ */
@media (max-width: 768px) {
    .d12-phases-grid { grid-template-columns: 1fr; }
    .d12-phase-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .d12-div-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .d12-hero { padding: 48px 0 44px; }
    .d12-hero__stats { flex-direction: column; gap: 8px; padding: 14px 22px; border-radius: 14px; }
    .d12-stat__sep { width: 36px; height: 1px; margin: 0; }
}