/* ============================================================
   global.css — Reset & Styles de base (BADEL)
   ============================================================ */

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

/* ── Base ── */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: clip;
}

/* ── Typographie ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
}

input,
select,
textarea {
    font-family: var(--font-primary);
}

/* ── Utility : visually hidden ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Utility : text truncate ── */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Spinner / Loading ── */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ── BADEL Match Banner ── */
.match-banner {
    background: linear-gradient(135deg, var(--accent-green, #00c46a), var(--primary-color, #1a1a2e));
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 196, 106, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 196, 106, 0.4);
}

.match-banner-content h2 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.match-banner-content p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.match-banner-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}