/* ============================================================
   SprintElite - style.css
   ============================================================ */

:root {
    --noir:       #3f6134;
    --gris-fond:  #141414;
    --gris-carte: #582a1d;
    --gris-bord:  #2e2e2e;
    --jaune:      #5ef518;
    --jaune-h:    #10d43a;
    --rouge:      #9a3131;
    --rouge-h:    #ff0000;
    --blanc:      #efefef;
    --gris-txt:   #feffb7;
    --r:          8px;
    --t:          0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--noir);
    color: var(--blanc);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--jaune); text-decoration: none; }
a:hover { color: var(--jaune-h); }
img { display: block; max-width: 100%; }

/* --- HEADER --- */
header {
    background: var(--gris-fond);
    border-bottom: 3px solid var(--jaune);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: var(--jaune);
    letter-spacing: 3px;
    line-height: 1;
}
nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
nav a {
    color: var(--blanc);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--t);
}
nav a:hover { color: var(--jaune); }
.nav-cta {
    background: var(--jaune);
    color: var(--noir) !important;
    padding: 6px 14px;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 0.85rem;
}
.nav-cta:hover { background: var(--jaune-h); color: var(--noir) !important; }
.nav-badge {
    background: var(--gris-bord);
    color: var(--jaune);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    border: 1px solid var(--jaune);
}
.nav-slogan { color: var(--gris-txt); font-size: 0.82rem; font-style: italic; }

/* --- MAIN --- */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 2rem;
}
.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--jaune);
    letter-spacing: 4px;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 5px solid var(--jaune);
}
.retour {
    display: inline-block;
    color: var(--gris-txt);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    transition: color var(--t);
    text-decoration: none;
}
.retour:hover { color: var(--jaune); }
.vide { color: var(--gris-txt); font-style: italic; }
.vide a { color: var(--jaune); }

/* --- CARDS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--gris-carte);
    border: 1px solid var(--gris-bord);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-5px); border-color: var(--jaune); }
.card-photo { width: 100%; height: 210px; overflow: hidden; background: var(--gris-bord); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-photo img { transform: scale(1.05); }
.card-body { padding: 1rem 1.2rem; }
.card-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}
.card-record { color: var(--jaune); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.9rem; }
.card-body .btn { margin-right: 0.4rem; margin-top: 0.3rem; }

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    background: var(--jaune);
    color: var(--noir);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: background var(--t), transform var(--t);
    font-family: 'Barlow', sans-serif;
}
.btn:hover { background: var(--jaune-h); color: var(--noir); transform: scale(1.03); }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-danger:hover { background: var(--rouge-h); color: #fff; transform: scale(1.03); }

/* --- DETAIL --- */
.detail-card {
    display: flex;
    gap: 2.5rem;
    background: var(--gris-carte);
    border: 1px solid var(--gris-bord);
    border-radius: var(--r);
    overflow: hidden;
    max-width: 820px;
}
.detail-photo { width: 290px; flex-shrink: 0; background: var(--gris-bord); }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-infos { padding: 2rem; flex: 1; }
.detail-infos h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    color: var(--jaune);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1;
}
.table-infos { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.table-infos th,
.table-infos td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gris-bord); font-size: 0.95rem; }
.table-infos th { color: var(--gris-txt); font-weight: 600; width: 45%; }
.table-infos td { color: var(--blanc); }

/* --- FORMULAIRE --- */
.formulaire {
    background: var(--gris-carte);
    border: 1px solid var(--gris-bord);
    border-radius: var(--r);
    padding: 2rem;
    max-width: 520px;
}
.form-ligne { margin-bottom: 1.3rem; }
.form-ligne label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-txt);
    margin-bottom: 0.4rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.form-ligne input {
    width: 100%;
    padding: 10px 14px;
    background: var(--gris-fond);
    border: 1px solid var(--gris-bord);
    border-radius: var(--r);
    color: var(--blanc);
    font-size: 0.95rem;
    font-family: 'Barlow', sans-serif;
    transition: border-color var(--t);
}
.form-ligne input:focus { outline: none; border-color: var(--jaune); }
.form-ligne small { display: block; color: var(--gris-txt); font-size: 0.78rem; margin-top: 0.4rem; }

/* Messages */
.msg { padding: 0.9rem 1.2rem; border-radius: var(--r); margin-bottom: 1.5rem; font-weight: 600; font-size: 0.95rem; }
.msg-erreur { background: #2d0f0f; color: var(--rouge); border: 1px solid var(--rouge); }
.msg-succes { background: #0d2e18; color: #5cba7d; border: 1px solid #5cba7d; }
.msg-succes a { color: #5cba7d; text-decoration: underline; }

/* --- FOOTER --- */
footer {
    background: var(--gris-fond);
    border-top: 3px solid var(--jaune);
    padding: 1.2rem 2rem;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; color: var(--jaune); letter-spacing: 2px; }
.footer-desc { color: var(--gris-txt); font-size: 0.82rem; }
.footer-link { color: var(--jaune); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: color var(--t); }
.footer-link:hover { color: var(--blanc); }

/* --- RESPONSIVE --- */
@media (max-width: 720px) {
    .header-inner { flex-direction: column; height: auto; padding: 0.8rem 1rem; gap: 0.5rem; }
    nav { gap: 0.8rem; justify-content: center; }
    .nav-slogan { display: none; }
    .detail-card { flex-direction: column; }
    .detail-photo { width: 100%; height: 260px; }
    .footer-inner { flex-direction: column; text-align: center; }
    main { padding: 0 1rem; }
}
