/* ===================== */
/* BASE */
/* ===================== */

/* ========================= */
/* RESET & BASE */
/* ========================= */

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #e30413;
    text-decoration: none;
}

/* ========================= */
/* HEADER / NAV / FOOTER */
/* ========================= */

header {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 12px;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 12px;
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 12px;
    color: #e30413;
}

nav a {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

nav a:hover {
    background-color: rgb(227, 4, 19);
    color: #000;
}

/* ========================= */
/* CONTENT & CONTAINER */
/* ========================= */

.content {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========================= */
/* LOGO */
/* ========================= */

.logo {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

/* ========================= */
/* BOX */
/* ========================= */

.box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================= */
/* PROGRESS BAR */
/* ========================= */

.progress-bar {
    width: 100%;
    max-width: 320px;
    height: 18px;
    margin: 12px auto;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background-color: rgb(227, 4, 19);
    transition: width 0.4s ease;
}

.progress-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

/* ========================= */
/* SOCIAL LINKS */
/* ========================= */

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.social-links img {
    width: 36px;
    height: 36px;
}

/* ========================= */
/* TABLE DESKTOP */
/* ========================= */

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.custom-table th,
.custom-table td {
    border: 1px solid rgb(227, 4, 19);
    padding: 10px;
    text-align: left;
}

.custom-table th {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ========================= */
/* TABLE MOBILE (375px OK) */
/* ========================= */

@media (max-width: 768px) {

    .custom-table,
    .custom-table tbody,
    .custom-table tr,
    .custom-table td {
        display: block;
        width: 100%;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table tr {
        background-color: rgba(0, 0, 0, 0.6);
        margin-bottom: 12px;
        padding: 10px;
        border-radius: 10px;
    }

    .custom-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 6px 0;
        font-size: 13px;
    }

    .custom-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: rgb(227, 4, 19);
        padding-right: 10px;
    }
}

/* ========================= */
/* MICRO AJUSTEMENTS 375px */
/* ========================= */

@media (max-width: 375px) {

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 13px;
    }

    nav a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .logo {
        max-width: 230px;
    }
}

/* ========================= */
/* SPOTIFY PLAYER CLEAN */
/* ========================= */

.spotify-player {
    width: 100%;
    max-width: 420px;
    margin: 24px auto;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.spotify-player iframe {
    width: 100%;
    height: 80px; /* 🔥 CLÉ DU PROBLÈME */
    border: 0;
    display: block;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container,
.content,
.box {
    max-width: 100%;
    overflow-x: hidden;
}

iframe {
    max-width: 100%;
    display: block;
}

.custom-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.custom-table td,
.custom-table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
