/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Carter One", system-ui;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    background-color: #1a1a2e;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================
   GLOBAL 
   ================================ */
#global {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================================
   HEADER / NAV
   ================================ */
header {
    background-color: #0f3460;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.4rem;
    color: #e94560;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

nav a:hover {
    background-color: #e94560;
    transform: translateY(-2px);
}

nav a i {
    margin-right: 5px;
}

/* ================================
   HERO / ACCUEIL
   ================================ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #e94560;
}

.hero-content h1 i {
    margin-right: 10px;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.btn-hero {
    display: inline-block;
    background-color: #e94560;
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-hero:hover {
    background-color: #c73651;
    transform: translateY(-3px);
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ================================
   SECTIONS COMMON
   ================================ */
.section-inner {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #e94560;
}

section h2 i {
    margin-right: 10px;
}

/* ================================
   HISTOIRE
   ================================ */
.section-histoire {
    background-color: #16213e;
}

.histoire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.histoire-texte p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #ddd;
}

.histoire-texte a {
    color: #e94560;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.histoire-texte a:hover {
    color: #ff6b81;
}

.histoire-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ================================
   RÈGLES
   ================================ */
.section-regles {
    background-color: #1a1a2e;
}

.regles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.regle-card {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.regle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.2);
}

.regle-card i {
    font-size: 2.5rem;
    color: #e94560;
    margin-bottom: 15px;
}

.regle-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.regle-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #bbb;
}

.regles-source {
    text-align: center;
}

.regles-source a {
    color: #e94560;
    font-size: 0.9rem;
}

.regles-source a:hover {
    color: #ff6b81;
}

/* ================================
   JOUEURS
   ================================ */
.section-joueurs {
    background-color: #16213e;
}

.joueurs-intro {
    text-align: center;
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.joueurs-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn-joueur {
    background-color: #0f3460;
    color: #fff;
    border: 2px solid #e94560;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Carter One", system-ui;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-joueur:hover,
.btn-joueur.active {
    background-color: #e94560;
    color: #fff;
    transform: translateY(-2px);
}

.btn-joueur i {
    margin-right: 6px;
}

.joueur-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.joueur-image img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: opacity 0.4s ease;
}

.joueur-info h3 {
    font-size: 1.8rem;
    color: #e94560;
    margin-bottom: 15px;
}

.joueur-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 12px;
}

.joueur-info a {
    color: #e94560;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.joueur-info a:hover {
    color: #ff6b81;
}

#joueur-stats strong {
    color: #e94560;
}

/* ================================
   FOOTER
   ================================ */
footer {
    background-color: #0f3460;
    padding: 30px 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e94560;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 1.4rem;
    color: #ccc;
    transition: color 0.3s, transform 0.2s;
}

.footer-social a:hover {
    color: #e94560;
    transform: translateY(-3px);
}

footer p {
    color: #999;
    font-size: 0.85rem;
}

/* ================================
   Adaptatif
   ================================ */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 25px;
        min-height: auto;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .histoire-grid {
        grid-template-columns: 1fr;
    }

    .histoire-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .regles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .joueur-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .joueur-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .section-inner {
        padding: 40px 20px;
    }

    .hero-section {
        padding: 30px 20px;
    }

    .regles-grid {
        grid-template-columns: 1fr;
    }

    nav {
        justify-content: center;
    }

    .header-content {
        justify-content: center;
        text-align: center;
    }

    .joueurs-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-joueur {
        width: 100%;
        max-width: 250px;
    }
}
