/* Muay Thai France — main.css */

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

:root {
    --primary: #c0392b;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --text: #333;
    --font: system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav */
.site-header {
    background: var(--dark);
    padding: .9rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-logo {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0 auto;
}
.nav-menu a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .95rem;
}
.nav-menu a:hover { color: #fff; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: .25s;
}

/* Hero */
.hero {
    background: var(--primary);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; opacity: .9; }

/* Sections */
.section { padding: 4rem 0; }
.section-light { background: var(--light); }

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 1.5rem 0;
    font-size: .875rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Page / single */
.page-content, .single-content { padding: 3rem 0; }
.entry-content h2 { margin: 2rem 0 .75rem; }
.entry-content p { margin-bottom: 1rem; }

/* =============================================
   HERO SMALL
============================================= */
.hero-small {
    padding: 2.5rem 0;
}
.hero-small h1 { font-size: 1.8rem; margin-bottom: .4rem; }
.hero-small p { font-size: 1rem; }

/* =============================================
   ARCHIVE BOXEURS
============================================= */
.archive-boxeur { padding: 2rem 0 4rem; }

/* Filtres */
.boxeur-filters {
    background: var(--light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}
.boxeur-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}
.boxeur-filters input[type="text"] {
    flex: 1 1 200px;
    padding: .55rem .9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    font-family: var(--font);
}
.boxeur-filters select {
    padding: .55rem .9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    font-family: var(--font);
    background: #fff;
    cursor: pointer;
}
.btn-filter {
    padding: .55rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .95rem;
    font-family: var(--font);
    cursor: pointer;
    font-weight: 600;
    transition: background .2s;
}
.btn-filter:hover { background: #a93226; }
.btn-reset {
    color: var(--text);
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Grid */
.boxeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Card */
.boxeur-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
}
.boxeur-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.boxeur-card-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f0f0;
}
.boxeur-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .3s;
}
.boxeur-card:hover .boxeur-card-photo img { transform: scale(1.04); }
.boxeur-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.boxeur-card-placeholder::after {
    content: '?';
    font-size: 3rem;
    color: #aaa;
    font-weight: 700;
}
.boxeur-card-body {
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}
.boxeur-card-body h2 {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.boxeur-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .15rem .5rem;
    border-radius: 4px;
    width: fit-content;
}
.boxeur-badge-professionel { background: #c0392b22; color: #c0392b; }
.boxeur-badge-amateur      { background: #2980b922; color: #1a6fa8; }
.boxeur-badge-semi-professionnel { background: #e67e2222; color: #c45e0a; }
.boxeur-poids {
    font-size: .8rem;
    color: #666;
}
.boxeur-club {
    font-size: .78rem;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.boxeur-record {
    display: flex;
    gap: .5rem;
    margin-top: auto;
    padding-top: .4rem;
    font-size: .8rem;
    font-weight: 700;
}
.boxeur-record .v { color: #27ae60; }
.boxeur-record .d { color: #c0392b; }
.boxeur-record .n { color: #888; }

/* Pagination */
.pagination-nav {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.pagination-nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text);
    font-size: .9rem;
    transition: all .2s;
}
.pagination-nav .page-numbers:hover,
.pagination-nav .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination-nav .page-numbers.dots { border: none; width: auto; }

/* =============================================
   SINGLE BOXEUR
============================================= */
.boxeur-hero {
    background: var(--dark);
    color: #fff;
    padding: 3rem 0;
}
.boxeur-hero-inner {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.boxeur-photo {
    flex-shrink: 0;
    width: 220px;
}
.boxeur-photo img {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    object-position: top center;
    max-height: 300px;
}
.boxeur-photo-placeholder {
    width: 220px;
    height: 280px;
    background: #2a2a2a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.boxeur-photo-placeholder::after {
    content: '?';
    font-size: 4rem;
    color: #444;
    font-weight: 700;
}
.boxeur-info { flex: 1; }
.boxeur-info h1 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .4rem;
    line-height: 1.2;
}
.boxeur-nat {
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    margin-bottom: .5rem;
}
.wiki-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,255,255,.5);
    font-size: .78rem;
    text-decoration: none;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,.2);
    padding: .2rem .65rem;
    border-radius: 20px;
    transition: all .2s;
}
.wiki-link:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.boxeur-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .4rem 1.25rem;
    font-size: .9rem;
}
.boxeur-stats dt {
    color: rgba(255,255,255,.5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .05em;
    align-self: center;
}
.boxeur-stats dd {
    color: rgba(255,255,255,.9);
    align-self: center;
}

/* Body */
.boxeur-body { padding: 2.5rem 0 4rem; }
.boxeur-section { margin-bottom: 2.5rem; }
.boxeur-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: .4rem;
    margin-bottom: 1rem;
}
.boxeur-section p {
    color: #555;
    line-height: 1.7;
}

/* Sous-titre carrière */
.boxeur-subsection {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    margin: 1.25rem 0 .4rem;
    text-transform: none;
    letter-spacing: 0;
}

/* Wiki source */
.wiki-source {
    margin-top: .75rem;
    font-size: .8rem;
    color: #999;
}
.wiki-source a { color: #999; text-decoration: underline; text-underline-offset: 2px; }
.wiki-source a:hover { color: #666; }

/* Record table */
.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.record-table th, .record-table td {
    padding: .65rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.record-table thead th {
    background: var(--light);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666;
}
.record-table td.v { color: #27ae60; font-weight: 700; }
.record-table td.d { color: #c0392b; font-weight: 700; }
.record-table td.n { color: #888; font-weight: 700; }
.record-table tr:hover td { background: #fafafa; }

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    .nav-menu.is-open { display: flex; }
    .site-header { position: relative; }

    .boxeurs-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }

    .boxeur-hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
    .boxeur-photo { width: 160px; }
    .boxeur-photo-placeholder { width: 160px; height: 200px; }
    .boxeur-info h1 { font-size: 1.5rem; }
    .boxeur-stats { grid-template-columns: 1fr 1fr; }
    .boxeur-stats dt { text-align: right; }

    .boxeur-filters form { flex-direction: column; }
    .boxeur-filters input[type="text"],
    .boxeur-filters select { width: 100%; }
}
