/* ==========================================================================
   ABRT — Angry Bull Racing Team
   Palette : navy profond, rouge course, ambre "chrono"
   Feuille de style GÉNÉRALE (commune à toutes les pages)
   ========================================================================== */

:root {
    --c-bg:        #0b0f1a;
    --c-surface:   #101a2c;
    --c-surface-2: #16223a;
    --c-border:    #24314d;
    --c-red:       #e94560;
    --c-amber:     #f2a341;
    --c-text:      #f2f4f8;
    --c-text-muted:#8b93a7;

    --font-display: 'Oswald', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'Roboto Mono', monospace;

    --sidebar-w: 260px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--c-amber);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout général
   -------------------------------------------------------------------------- */
.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 48px 40px 32px;
    min-width: 0; /* évite que le contenu force la largeur du flex */
}

.content-wrap {
    max-width: 100vw;
    margin: 0 auto;
}

.site-footer {
    margin-left: var(--sidebar-w);
    padding: 20px 64px 40px;
    color: var(--c-text-muted);
    font-size: 12px;
    letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    line-height: 1.1;
}

.sidebar-brand-line1 { font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.sidebar-brand-line2 { font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.sidebar-brand-line2 em { color: var(--c-red); font-style: normal; }

.sidebar-nav { flex: 1; }

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    border-left: 3px solid transparent;
}

.nav-item + .nav-item { margin-top: 2px; }

.nav-link:hover { background: var(--c-surface-2); }

.nav-link--active {
    background: var(--c-surface-2);
    border-left-color: var(--c-red);
    color: var(--c-red);
    font-weight: 600;
}

.nav-caret {
    font-size: 11px;
    color: var(--c-text-muted);
    transition: transform .2s ease;
}

.nav-item.is-open .nav-caret { transform: rotate(-180deg); color: var(--c-amber); }

.nav-sous {
    max-height: 0;
    overflow: hidden;
    padding-left: 14px;
    border-left: 1px solid var(--c-border);
    margin-left: 14px;
    transition: max-height .25s ease;
}

.nav-item.is-open .nav-sous { max-height: 320px; }

.nav-sous-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--c-text-muted);
}

.nav-sous-link:hover { color: var(--c-text); }
.nav-sous-link--active { color: var(--c-amber); font-weight: 600; }

.sidebar-social {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--c-border);
}

.sidebar-social-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--c-text-muted);
    margin-bottom: 10px;
}

.sidebar-social-icons { display: flex; gap: 10px; }

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface-2);
    border-radius: 6px;
    color: var(--c-text-muted);
    transition: color .15s ease, background .15s ease;
}

.social-icon:hover { color: var(--c-text); background: var(--c-red); }

/* --------------------------------------------------------------------------
   Boutons génériques
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .15s ease, transform .15s ease;
}

.btn--voir-plus {
    background: var(--c-red);
    color: #fff;
}
.btn--voir-plus:hover { background: #c73349; transform: translateY(-1px); }

.btn--resultats {
    background: var(--c-text);
    color: var(--c-bg);
    margin-top: 14px;
}
.btn--resultats:hover { background: var(--c-amber); }

/* --------------------------------------------------------------------------
   Accueil — Hero + bulle de présentation
   -------------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 56px;
}

.hero-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-media--empty::after {
    content: "Ajoute ton image dans /images/equipe.jpg";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--c-text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-amber);
    margin: 0 0 8px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    margin: 0 0 24px;
}

.hero-title span { color: var(--c-red); }

.bubble {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 22px 24px 20px;
    max-width: 480px;
}

.bubble p {
    margin: 0 0 16px;
    color: var(--c-text);
    font-size: 15px;
}

.bubble-tail {
    position: absolute;
    left: 36px;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Module statistiques
   -------------------------------------------------------------------------- */
.section-title {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: .1em;
    color: var(--c-text-muted);
    margin: 0 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-red);
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--c-text);
}

.stat-label {
    font-size: 12px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   Page Pilotes — En-tête (le carrousel lui-même est dans pilotes.css)
   -------------------------------------------------------------------------- */
.pilotes-header { margin-bottom: 36px; max-width: 640px; }

.page-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 12px;
}

.page-lead { color: var(--c-text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Responsive 1460 — général
   -------------------------------------------------------------------------- */
@media (max-width: 1460px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .site-footer { margin-left: 0; }
    .hero { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
