/* =====================================================================
   BurgerShot — feuille de style (theme GTA : jaune / rouge / enseigne US)
   ===================================================================== */

:root {
    --jaune:      #FFC72C;
    --jaune-fonce:#F4A300;
    --rouge:      #E4002B;
    --rouge-fonce:#B4001F;
    --noir:       #17140f;
    --noir-doux:  #221d16;
    --creme:      #FFF8E7;
    --creme-2:    #F7ECCF;
    --gris:       #6b6357;
    --vert:       #17b978;

    --ombre: 0 10px 30px rgba(0,0,0,.18);
    --radius: 14px;
    --police-titre: "Anton", "Arial Narrow", Impact, sans-serif;
    --police-texte: "Poppins", "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--police-texte);
    color: var(--noir);
    background: var(--creme);
    line-height: 1.55;
}

h1, h2, h3, .titre {
    font-family: var(--police-titre);
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 .4em;
}

a { color: inherit; }

.contenu { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ------------------------------ NAVBAR ------------------------------ */

.nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--rouge);
    border-bottom: 4px solid var(--jaune);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 10px 22px;
    display: flex; align-items: center; gap: 18px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--police-titre); font-size: 1.5rem;
    color: #fff; text-decoration: none; text-transform: uppercase;
    letter-spacing: 1px; white-space: nowrap;
}
.logo .burger { font-size: 1.6rem; }
.logo b { color: var(--jaune); }
.nav-links {
    display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; align-items: center;
}
.nav-links a {
    color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
    padding: 8px 14px; border-radius: 999px; transition: .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.15); }
.nav-links a.actif { background: var(--jaune); color: var(--noir); }
.nav-links a.cta {
    background: var(--jaune); color: var(--noir); font-weight: 700;
}
.nav-links a.cta:hover { background: #fff; }

/* ------------------------------ HERO ------------------------------- */

.hero {
    position: relative;
    background:
        radial-gradient(circle at 50% -10%, rgba(255,199,44,.35), transparent 55%),
        repeating-linear-gradient(45deg, var(--rouge) 0 40px, var(--rouge-fonce) 40px 80px);
    color: #fff; text-align: center;
    padding: 80px 22px 90px;
    border-bottom: 6px solid var(--jaune);
    overflow: hidden;
}
.hero .badge-etoile {
    display: inline-block; background: var(--jaune); color: var(--noir);
    font-weight: 700; padding: 6px 16px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    text-shadow: 4px 4px 0 var(--noir), 0 0 30px rgba(0,0,0,.3);
    margin-bottom: .2em;
}
.hero h1 .jaune { color: var(--jaune); }
.hero p.slogan {
    font-size: clamp(1rem, 2.4vw, 1.3rem); max-width: 620px; margin: 0 auto 26px;
    opacity: .95;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ BOUTONS ---------------------------- */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--police-titre); letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none; cursor: pointer; border: none;
    padding: 14px 26px; border-radius: 999px; font-size: 1rem;
    transition: transform .1s, box-shadow .15s, background .15s;
    box-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn-jaune { background: var(--jaune); color: var(--noir); }
.btn-jaune:hover { background: #ffd456; }
.btn-blanc { background: #fff; color: var(--rouge); }
.btn-rouge { background: var(--rouge); color: #fff; box-shadow: 0 6px 0 var(--rouge-fonce); }
.btn-rouge:hover { background: #ff1f45; }
.btn-ligne { background: transparent; color: #fff; box-shadow: none; border: 2px solid #fff; }

/* ------------------------------ SECTIONS --------------------------- */

.section { padding: 64px 0; }
.section.creme2 { background: var(--creme-2); }
.section-titre { text-align: center; margin-bottom: 8px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section .trait {
    width: 80px; height: 6px; background: var(--jaune); border-radius: 6px;
    margin: 6px auto 34px;
}
.sous { text-align: center; color: var(--gris); max-width: 640px; margin: -20px auto 34px; }

/* ------------------------------ CARTES ----------------------------- */

.grille { display: grid; gap: 22px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.carte {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--ombre); padding: 26px; border: 2px solid #00000010;
    transition: transform .15s;
}
.carte:hover { transform: translateY(-4px); }
.carte .ico { font-size: 2.4rem; }
.carte h3 { margin-top: 10px; font-size: 1.3rem; }
.carte p { color: var(--gris); margin: 0; }

/* --------------------------- CARTE / MENU -------------------------- */

.menu-item {
    display: flex; align-items: center; gap: 18px;
    background: #fff; border-radius: var(--radius); padding: 18px 22px;
    box-shadow: var(--ombre); border-left: 6px solid var(--jaune);
}
.menu-item .emoji { font-size: 2.6rem; }
.menu-item .infos { flex: 1; }
.menu-item h3 { margin: 0; font-size: 1.35rem; }
.menu-item p { margin: 2px 0 0; color: var(--gris); }
.menu-item .prix {
    font-family: var(--police-titre); font-size: 1.7rem; color: var(--rouge);
    background: var(--jaune); padding: 6px 16px; border-radius: 10px; white-space: nowrap;
}

/* ------------------------------ GRADES ----------------------------- */

.grade-carte {
    background: #fff; border-radius: var(--radius); box-shadow: var(--ombre);
    padding: 22px; text-align: center; border-top: 6px solid var(--rouge);
}
.grade-carte .emoji { font-size: 2.6rem; }
.grade-carte h3 { margin: 8px 0 2px; font-size: 1.15rem; }
.grade-carte .rang { color: var(--gris); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

.badge-grade {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--noir); color: var(--jaune);
    padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    white-space: nowrap;
}

/* ------------------------------ AVIS ------------------------------- */

.note-hero { text-align: center; margin-bottom: 30px; }
.note-hero .grosse-note {
    font-family: var(--police-titre); font-size: 4rem; color: var(--rouge); line-height: 1;
}
.etoiles { color: var(--jaune-fonce); letter-spacing: 2px; }
.etoiles.grand { font-size: 1.8rem; }

.avis-carte {
    background: #fff; border-radius: var(--radius); box-shadow: var(--ombre);
    padding: 22px; border-bottom: 5px solid var(--jaune);
}
.avis-carte .tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.avis-carte .pseudo { font-weight: 700; }
.avis-carte .com { margin: 12px 0 0; color: #333; font-style: italic; }
.avis-carte .date { color: var(--gris); font-size: .82rem; }

/* ------------------------------ FOOTER ----------------------------- */

.footer {
    background: var(--noir); color: #cfc7b8; margin-top: 40px;
    padding: 40px 22px; text-align: center;
}
.footer .logo { justify-content: center; margin-bottom: 12px; }
.footer a { color: var(--jaune); text-decoration: none; }
.footer .petit { font-size: .82rem; color: #8a8172; margin-top: 14px; }

/* =====================================================================
   PANEL DE GESTION (theme sombre)
   ===================================================================== */

body.gestion { background: #14100b; color: #ece4d3; }
body.gestion .nav { background: #0e0b07; border-bottom-color: var(--jaune); }

.g-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 22px 60px; }

.g-tete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.g-tete h1 { color: var(--jaune); font-size: 2rem; margin: 0; }
.g-tete .sous { color: #b3a98f; margin: 0; text-align: left; }

.g-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.g-onglets a {
    text-decoration: none; color: #d8cfb9; background: #221c13;
    padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    border: 1px solid #ffffff10; transition: .15s;
}
.g-onglets a:hover { background: #2e2617; }
.g-onglets a.actif { background: var(--jaune); color: var(--noir); border-color: var(--jaune); }

/* Tuiles KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi {
    background: linear-gradient(160deg, #241d12, #1b160e);
    border: 1px solid #ffffff12; border-radius: var(--radius); padding: 20px;
    border-left: 5px solid var(--jaune);
}
.kpi .lib { color: #b3a98f; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.kpi .val { font-family: var(--police-titre); font-size: 2rem; color: #fff; margin-top: 4px; }
.kpi .val.jaune { color: var(--jaune); }
.kpi .val.vert { color: var(--vert); }
.kpi .val.rouge { color: #ff6b81; }
.kpi.rouge { border-left-color: var(--rouge); }
.kpi.vert { border-left-color: var(--vert); }

.panneau {
    background: #1b160e; border: 1px solid #ffffff10; border-radius: var(--radius);
    padding: 22px; margin-bottom: 22px;
}
.panneau h2 { color: var(--jaune); font-size: 1.2rem; margin: 0 0 16px; }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { padding: 12px 14px; text-align: left; }
.tableau thead th {
    color: #b3a98f; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 2px solid #ffffff18;
}
.tableau tbody tr { border-bottom: 1px solid #ffffff0d; }
.tableau tbody tr:hover { background: #ffffff08; }
.tableau td.num, .tableau th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tableau .paye { color: var(--jaune); font-weight: 700; }
.rang-pastille {
    display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
    background: #2e2617; color: #fff; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.rang-pastille.or   { background: #FFD34E; color: #3a2c00; }
.rang-pastille.argent { background: #d6d6d6; color: #333; }
.rang-pastille.bronze { background: #d98c4a; color: #3a1c00; }

.pt-live {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--vert); font-weight: 700; font-size: .85rem;
}
.pt-live .point {
    width: 9px; height: 9px; border-radius: 50%; background: var(--vert);
    box-shadow: 0 0 0 0 rgba(23,185,120,.6); animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(23,185,120,.6); }
    70% { box-shadow: 0 0 0 10px rgba(23,185,120,0); }
    100% { box-shadow: 0 0 0 0 rgba(23,185,120,0); }
}

.puce-statut { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.puce-statut.ouvert { background: #14361f; color: #47e08a; }
.puce-statut.ferme  { background: #3a1a1f; color: #ff8ea0; }
.puce-statut.claim  { background: #33290f; color: var(--jaune); }

.avatar {
    width: 30px; height: 30px; border-radius: 50%; vertical-align: middle;
    margin-right: 8px; background: #2e2617; object-fit: cover;
}
.avatar-ph {
    display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
    background: var(--jaune); color: var(--noir); align-items: center; justify-content: center;
    font-weight: 700; margin-right: 8px; vertical-align: middle; font-size: .85rem;
}

.vide { text-align: center; padding: 40px 20px; color: #9a917c; }
.vide .ico { font-size: 3rem; display: block; margin-bottom: 10px; }

.avert {
    background: #33290f; border: 1px solid var(--jaune-fonce); color: #ffe6a1;
    padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 22px;
}

/* Connexion */
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-carte {
    background: #1b160e; border: 1px solid #ffffff12; border-radius: 18px;
    padding: 40px; width: 100%; max-width: 400px; text-align: center;
}
.login-carte .burger { font-size: 3rem; }
.login-carte h1 { color: var(--jaune); margin: 10px 0 4px; }
.login-carte p { color: #b3a98f; margin: 0 0 22px; }
.login-carte input {
    width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid #ffffff20;
    background: #14100b; color: #fff; font-size: 1rem; margin-bottom: 14px; text-align: center;
}
.login-carte input:focus { outline: 2px solid var(--jaune); }
.login-carte .btn { width: 100%; justify-content: center; }
.login-erreur { background: #3a1a1f; color: #ff8ea0; padding: 10px; border-radius: 8px; margin-bottom: 14px; }

.erreur-page { text-align: center; padding: 90px 22px; }
.erreur-page .code { font-family: var(--police-titre); font-size: 6rem; color: var(--jaune); }

/* ------------------------------ RESPONSIVE ------------------------- */

@media (max-width: 900px) {
    .g-3, .g-4, .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .g-2, .g-3, .g-4, .kpis { grid-template-columns: 1fr; }
    .nav-links { gap: 2px; }
    .nav-links a { padding: 7px 10px; font-size: .85rem; }
    .tableau { font-size: .85rem; }
    .tableau th, .tableau td { padding: 9px 8px; }
    .cacher-mobile { display: none; }
}
