/* =====================================================================
   Snooker Club — Design System partagé (2026)
   Ambiance « broadcast pro » : tapis vert, charcoal, laiton,
   couleurs des billes en accents.
   ===================================================================== */

:root {
    /* Tapis (baize) */
    --felt:        #0f6b48;
    --felt-deep:   #0a4a32;
    --felt-bright: #18a06a;

    /* Fonds charcoal verdâtre */
    --bg:    #08110d;
    --bg-2:  #0c1813;
    --bg-3:  #102019;

    /* Verre / surfaces */
    --glass:       rgba(255, 255, 255, .045);
    --glass-2:     rgba(255, 255, 255, .07);
    --line:        rgba(232, 241, 236, .12);
    --line-2:      rgba(232, 241, 236, .07);

    /* Texte */
    --ink:      #eaf2ed;
    --ink-soft: #a6bcb1;
    --ink-dim:  #6f8579;

    /* Laiton / queue (accent chaud) */
    --brass:      #e3b15e;
    --brass-deep: #c08a2e;

    /* Couleurs des billes (accents fonctionnels) */
    --ball-red:    #e23b2e;
    --ball-yellow: #f4c531;
    --ball-green:  #1f9d57;
    --ball-brown:  #9a6432;
    --ball-blue:   #2f74d6;
    --ball-pink:   #ec7ba6;
    --ball-black:  #161b18;
    --ball-white:  #f1f3ee;

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 18px 44px -20px rgba(0, 0, 0, .8);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .9);
    --ease:      cubic-bezier(.22, 1, .36, 1);

    --font-display: "Unbounded", system-ui, sans-serif;
    --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1100px 720px at 78% -12%, rgba(24, 160, 106, .18), transparent 60%),
        radial-gradient(900px 600px at 10% 4%, rgba(227, 177, 94, .10), transparent 55%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%, var(--bg) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Texture grain globale */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: var(--brass); text-decoration: none; }

/* --------------------------- Marque / titres --------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}
.brand__ball {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #ff6b5e, var(--ball-red) 55%, #8c1f17);
    box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 4px 10px rgba(0,0,0,.5);
    flex: none;
}
.brand__sub {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .62em;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brass);
    align-self: flex-start;
    margin-top: .15em;
}

/* Pages applicatives : pied de page collé en bas */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.04;
    margin: 0;
}
.eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--brass);
}

/* ------------------------------- Verre -------------------------------- */
.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: var(--shadow);
}

/* ------------------------------ Boutons ------------------------------- */
.btn {
    --b: var(--felt-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    padding: .85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    color: #06140d;
    background: linear-gradient(135deg, var(--felt-bright), var(--felt));
    box-shadow: 0 12px 26px -12px rgba(24, 160, 106, .7);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(24, 160, 106, .8); }
.btn:active { transform: translateY(0); }

.btn--brass { color: #1a1206; background: linear-gradient(135deg, var(--brass), var(--brass-deep)); box-shadow: 0 12px 26px -12px rgba(227, 177, 94, .6); }
.btn--ghost { color: var(--ink); background: var(--glass); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--brass); background: var(--glass-2); }
.btn--danger { color: #fff; background: linear-gradient(135deg, #ef5a4e, var(--ball-red)); box-shadow: 0 12px 26px -12px rgba(226, 59, 46, .6); }
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }

/* ------------------------------- Chips -------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--glass);
    border: 1px solid var(--line);
}
.chip strong { color: var(--ink); }

/* ------------------------------ Topbar -------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(8, 17, 13, .7);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.topbar .brand { font-size: 1.3rem; }
.topbar__right { display: flex; align-items: center; gap: .7rem; }

/* ------------------------------ Footer -------------------------------- */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    color: var(--ink-dim);
    font-size: .82rem;
    border-top: 1px solid var(--line-2);
}
.site-footer .copyrights { font-size: .82rem; color: var(--ink-dim); letter-spacing: .02em; }

/* ------------------------- Boutons flottants -------------------------- */
.fab {
    position: fixed;
    bottom: clamp(1rem, 3vw, 1.6rem);
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    background: rgba(8, 17, 13, .65);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.fab:hover { transform: translateY(-2px); border-color: var(--brass); background: rgba(12, 24, 19, .8); }
.fab--back { right: clamp(1rem, 3vw, 1.6rem); }
.fab--home { left: clamp(1rem, 3vw, 1.6rem); }

/* ------------------------------ Anims --------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop  { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
