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

body {
    font-family: Arial, sans-serif;
    background: #0b0f14;
    color: #ffffff;
}

/* NAVBAR */

.navbar {
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #11161d;
    border-bottom: 1px solid #232a33;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
}

.logo:visited,
.logo:hover {
    color: #ffffff;
}

.logo span {
    color: #e32636;
    font-size: 22px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #c3ccd7;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-login,
.nav-register {
    display: inline-block;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
}

.nav-login {
    background-color: #1a2028;
    color: #ffffff;
    border: 1px solid #303845;
}

.nav-register {
    background-color: #e32636;
    color: #ffffff;
    border: 1px solid #e32636;
}

.nav-login:visited,
.nav-register:visited {
    color: #ffffff;
}

/* BANNIÈRE À LA UNE */

.featured-banner {
    padding: 22px 8% 0;
    background: #0b0f14;
}

.featured-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #30232a;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(227, 38, 54, 0.13),
            rgba(17, 22, 29, 0.97) 55%
        );
}

.featured-banner-text {
    max-width: 750px;
}

.featured-banner-label {
    display: inline-block;
    margin-bottom: 9px;
    color: #e32636;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.featured-banner h2 {
    margin-bottom: 10px;
    font-size: 27px;
    line-height: 1.15;
}

.featured-banner p {
    color: #9ba8b7;
    font-size: 14px;
    line-height: 1.6;
}

.featured-banner-button {
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 8px;
    background: #e32636;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.featured-banner-button:visited {
    color: #ffffff;
}

/* HERO */

.hero {
    min-height: 500px;
    padding: 80px 8%;
    display: flex;
    align-items: center;
    background: #0b0f14;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    color: #e32636;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 52px;
    line-height: 1.05;
}

.hero p {
    max-width: 650px;
    margin-bottom: 28px;
    color: #9eabb9;
    font-size: 17px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.primary-btn,
.secondary-btn {
    border-radius: 8px;
    padding: 13px 20px;
    font-weight: 700;
    text-decoration: none;
}

.primary-btn {
    background: #e32636;
    color: #ffffff;
}

.secondary-btn {
    background: #151b23;
    color: #ffffff;
    border: 1px solid #303845;
}

.primary-btn:visited,
.secondary-btn:visited {
    color: #ffffff;
}

/* PUBLICATIONS */

.recent-posts {
    padding: 70px 8%;
    background: #0f141b;
    border-top: 1px solid #1d2530;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #e32636;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 30px;
}

.create-post-btn {
    background: #e32636;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.post-card {
    background: #151b23;
    border: 1px solid #252e39;
    border-radius: 12px;
    padding: 22px;
}

.post-type {
    margin-bottom: 14px;
    color: #e32636;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.post-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.post-card p {
    color: #aab4c0;
    line-height: 1.5;
    font-size: 14px;
}

.post-meta {
    display: block;
    margin-top: 18px;
    color: #6f7b89;
    font-size: 12px;
}

/* JOUEURS EN LIGNE */

.online-players {
    padding: 70px 8%;
    background: #0b0f14;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #151b23;
    border: 1px solid #252e39;
    border-radius: 12px;
    padding: 18px;
}

.player-avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1f2630;
    color: #ffffff;
    font-weight: 800;
    overflow: hidden;
}

.player-info {
    flex: 1;
}

.player-info strong {
    display: block;
    margin-bottom: 4px;
}

.player-info span {
    color: #8d99a8;
    font-size: 13px;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
}

/* CONNEXION / INSCRIPTION */

.auth-page {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.auth-logo:visited {
    color: #ffffff;
}

.auth-logo span {
    color: #e32636;
    font-size: 28px;
    font-weight: 900;
}

.auth-card {
    width: 100%;
    padding: 30px;
    background: #121820;
    border: 1px solid #29313c;
    border-radius: 14px;
}

.auth-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #e32636;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.auth-card h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.auth-description {
    margin-bottom: 24px;
    color: #8f9dad;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #303945;
    border-radius: 8px;
    background: #0d1218;
    color: #ffffff;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e32636;
}

.form-group select option {
    background: #11161d;
    color: #ffffff;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #e32636;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    color: #7f8a98;
    font-size: 13px;
}

.auth-switch a {
    color: #e32636;
    text-decoration: none;
    font-weight: 700;
}

/* PROFIL */

.profile-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 60px 24px 90px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 28px;
    background: #11161d;
    border: 1px solid #252e39;
    border-radius: 14px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1d2530;
    border: 2px solid #303945;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    overflow: hidden;
}

.profile-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #e32636;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-header-info h1 {
    margin-bottom: 8px;
    font-size: 32px;
}

.profile-header-info p {
    color: #919dab;
    line-height: 1.5;
}

.profile-card {
    padding: 30px;
    background: #11161d;
    border: 1px solid #252e39;
    border-radius: 14px;
}

.profile-card h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.profile-card form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-card .auth-submit {
    grid-column: 1 / -1;
    max-width: 280px;
}

/* FOOTER */

.site-footer {
    margin-top: 70px;
    background:
        linear-gradient(
            180deg,
            #0d1218 0%,
            #090c10 100%
        );
    border-top: 1px solid #232a33;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 8%;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 800;
}

.footer-logo:visited {
    color: #ffffff;
}

.footer-logo span {
    color: #e32636;
    font-size: 25px;
    font-weight: 900;
}

.footer-brand p {
    color: #8793a1;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links::before {
    content: "Navigation";
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.footer-links a {
    color: #8f9baa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-content::after {
    content: "CUPAZ\A Founder • Créateur de Club Pro Réunion";
    white-space: pre-line;
    display: block;
    padding: 18px;
    border: 1px solid #2b323d;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(227, 38, 54, 0.10),
            #11161d 65%
        );
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 8% 24px;
    border-top: 1px solid #1b222b;
}

.footer-bottom p {
    color: #66717f;
    font-size: 12px;
}

/* ========================================================= */
/* SÉLECTEUR EMOJI GLOBAL - CLUB PRO RÉUNION                */
/* ========================================================= */

.cpr-emoji-picker {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    flex-shrink: 0;
}

.cpr-emoji-trigger {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #29313c;
    border-radius: 8px;
    background: #0d1218;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.cpr-emoji-trigger:hover {
    border-color: #4a5665;
    background: #151b23;
}

.cpr-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 1000;
    display: none;
    width: min(420px, calc(100vw - 32px));
    max-height: 390px;
    overflow: hidden;
    border: 1px solid #303946;
    border-radius: 13px;
    background: #11161d;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cpr-emoji-panel.visible {
    display: block;
}

.cpr-emoji-tabs {
    display: flex;
    gap: 7px;
    padding: 11px;
    overflow-x: auto;
    border-bottom: 1px solid #252e39;
    scrollbar-width: thin;
}

.cpr-emoji-tab {
    flex-shrink: 0;
    padding: 8px 10px;
    border: 1px solid #29313c;
    border-radius: 8px;
    background: #0d1218;
    color: #9ca8b6;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.cpr-emoji-tab:hover,
.cpr-emoji-tab.active {
    border-color: rgba(227, 38, 54, 0.65);
    background: rgba(227, 38, 54, 0.13);
    color: #ffffff;
}

.cpr-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    max-height: 305px;
    padding: 12px;
    overflow-y: auto;
}

.cpr-emoji-choice {
    min-width: 0;
    padding: 8px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.cpr-emoji-choice:hover {
    background: #1b222c;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .navbar {
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .featured-banner {
        padding: 18px 20px 0;
    }

    .featured-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .featured-banner-button {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .recent-posts,
    .online-players {
        padding: 50px 20px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .posts-grid,
    .players-grid {
        grid-template-columns: 1fr;
    }

    .profile-card form {
        grid-template-columns: 1fr;
    }

    .profile-card .auth-submit {
        grid-column: auto;
        max-width: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

@media (max-width: 620px) {
    .cpr-emoji-panel {
        width: min(340px, calc(100vw - 24px));
    }

    .cpr-emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* ========================================================= */
/* MOBILE 600px                                              */
/* Correction navbar : aucun bouton ne dépasse de l'écran    */
/* ========================================================= */

@media (max-width: 600px) {
    .navbar {
        gap: 12px;
        padding: 14px 16px;
    }

    .logo {
        width: 100%;
        font-size: 16px;
    }

    .logo span {
        font-size: 21px;
    }

    .nav-actions {
        width: 100%;
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-actions #username-text {
        width: 100%;
        flex: 0 0 100%;
        font-size: 13px;
        line-height: 1.25;
    }

    .nav-actions a {
        flex: 1 1 0;
        min-width: 0;
        padding: 9px 8px;
        text-align: center;
        font-size: 12px;
        white-space: nowrap;
    }

    .featured-banner h2 {
        font-size: 23px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .profile-page {
        padding: 30px 18px 60px;
    }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .profile-header-info h1 {
        font-size: 27px;
    }

    .profile-card {
        padding: 22px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-card h1 {
        font-size: 26px;
    }

    .footer-content {
        gap: 26px;
    }
}
/* ============================= */
/* FAQ - STYLE CLUB PRO RÉUNION */
/* ============================= */

.cpr-faq-section {
    padding: 70px 0;
    background: #0b0e13;
}

.cpr-faq-section .cpr-faq-header {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 24px;
}

.cpr-faq-section .cpr-faq-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff2638;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cpr-faq-section .cpr-faq-header h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
}

.cpr-faq-section .cpr-faq-header p {
    margin: 0;
    color: #8f9aaa;
    font-size: 14px;
}

.cpr-faq-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cpr-faq-item {
    background: #151a22;
    border: 1px solid #252c36;
    border-radius: 12px;
    overflow: hidden;
}

.cpr-faq-item summary {
    padding: 20px 22px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpr-faq-item summary::-webkit-details-marker {
    display: none;
}

.cpr-faq-item summary::after {
    content: "+";
    color: #ff2638;
    font-size: 22px;
    font-weight: 700;
}

.cpr-faq-item[open] summary::after {
    content: "−";
}

.cpr-faq-answer {
    padding: 0 22px 20px;
    color: #9ba5b3;
    font-size: 14px;
    line-height: 1.6;
}

.cpr-faq-empty {
    padding: 20px;
    background: #151a22;
    border: 1px solid #252c36;
    border-radius: 12px;
    color: #8f9aaa;
}
/* ============================= */
/* FAQ ADMIN - STYLE CLUB PRO    */
/* ============================= */

#faq-admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

#faq-admin-form input,
#faq-admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #29313d;
    border-radius: 8px;
    background: #0f141b;
    color: #ffffff;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#faq-admin-form input {
    height: 44px;
}

#faq-admin-form textarea {
    min-height: 110px;
    resize: vertical;
}

#faq-admin-form input:focus,
#faq-admin-form textarea:focus {
    border-color: #ff2638;
    box-shadow: 0 0 0 2px rgba(255, 38, 56, 0.12);
}

#faq-admin-form input::placeholder,
#faq-admin-form textarea::placeholder {
    color: #667180;
}

#faq-admin-form button {
    align-self: flex-start;
    margin-top: 4px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: #ff2638;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

#faq-admin-form button:hover {
    background: #e91f32;
    transform: translateY(-1px);
}

#faq-admin-form button:active {
    transform: translateY(0);
}