/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0B0E14;
    --header-bg: rgba(11, 14, 20, 0.85); /* Fond transparent pour le flou */
    --border-color: rgba(255, 255, 255, 0.1);
    --surface-color: #151A23;
    --text-main: #F8F9FA;
    --text-muted: #A0AEC0;
    --accent-color: #FF5E00;

    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-color: #F8F9FA;
    --header-bg: rgba(248, 249, 250, 0.85);
    --border-color: rgba(0, 0, 0, 0.1);
    --surface-color: #FFFFFF;
    --text-main: #1A202C;
    --text-muted: #4A5568;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; padding: 1rem 2rem;
}
.logo { font-family: var(--font-title); font-size: 2.2rem; letter-spacing: 1px; text-decoration: none; color: var(--text-main); }
.logo span { color: var(--accent-color); }

.desktop-nav ul { list-style: none; display: flex; gap: 2rem; }
.desktop-nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 1rem; transition: color 0.3s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text-main); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.icon-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); transition: transform 0.2s; }
.icon-btn:hover { transform: scale(1.1); }

.burger-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1001; }
.burger-btn span { display: block; position: absolute; height: 2px; width: 100%; background: var(--text-main); border-radius: 9px; transition: .25s ease-in-out; }
.burger-btn span:nth-child(1) { top: 0px; }
.burger-btn span:nth-child(2) { top: 9px; }
.burger-btn span:nth-child(3) { top: 18px; }

.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-color);
    z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: transform 0.4s ease-in-out;
}
.mobile-nav-overlay.active { transform: translateY(0); }
.mobile-links { list-style: none; text-align: center; }
.mobile-links li { margin-bottom: 2rem; }
.mobile-links a { text-decoration: none; color: var(--text-main); font-size: 2rem; font-family: var(--font-title); letter-spacing: 2px; }

/* --- ACCUEIL --- */
.main-content {
    flex: 1; display: flex; justify-content: center; align-items: center; padding: 6rem 2rem 3rem 2rem; position: relative;
}
.background-date {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-title); font-size: 28vw; color: rgba(255, 255, 255, 0.02); z-index: 0; white-space: nowrap;
}
[data-theme="light"] .background-date { color: rgba(0, 0, 0, 0.03); }

.content-wrapper { position: relative; z-index: 1; max-width: 600px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* --- MAIN CONTENT (Ajusté) --- */
/* ... garde le reste ... */

.image-container {
    width: 100%;
    max-width: 450px; /* J'ai agrandi de 350px à 450px pour plus de visibilité */
    margin-bottom: 2rem;
}

.athlete-img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Empêche l'image d'être trop haute sur PC */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    object-fit: cover; /* Recadre proprement si l'image n'a pas le bon ratio */
}

.date-label { color: var(--accent-color); font-weight: 700; text-transform: uppercase; margin-bottom: 0.8rem; }
.anecdote-title { font-family: var(--font-title); font-size: 4rem; line-height: 1; margin-bottom: 1.5rem; }
.anecdote-text { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; margin-bottom: 2rem; }

.play-btn { background: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-bottom: 1.5rem; }
.play-btn:hover { background: var(--accent-color); color: #fff; }

/* === NOUVEAU BLOC AJOUTÉ POUR CENTRER LE BOUTON === */
.actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
/* ================================================= */

.primary-btn { background: var(--accent-color); color: #fff; border: none; padding: 1.2rem 2.5rem; font-size: 1.1rem; font-weight: 700; border-radius: 50px; cursor: pointer; width: 100%; max-width: 300px; position: relative; z-index: 2; transition: 0.2s;}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 94, 0, 0.4); }

/* --- ARCHIVES --- */
.archives-main { padding: 8rem 2rem 4rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.archives-header { text-align: center; margin-bottom: 4rem; }
.archives-title { font-family: var(--font-title); font-size: 3.5rem; color: var(--text-main); letter-spacing: 1px; margin-bottom: 1rem; }
.archives-subtitle { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem auto; }

.search-container { max-width: 500px; margin: 0 auto; }
.search-input { width: 100%; padding: 1rem 1.5rem; font-family: var(--font-body); font-size: 1.1rem; border: 2px solid var(--border-color); border-radius: 50px; background-color: transparent; color: var(--text-main); transition: all 0.3s ease; }
.search-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 15px rgba(255, 94, 0, 0.2); }

.archives-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.archive-card { background-color: var(--surface-color); border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color); text-decoration: none; display: flex; flex-direction: column; }
.archive-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-color: var(--accent-color); }
.archive-img-container { width: 100%; height: 200px; overflow: hidden; }
.archive-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.archive-card:hover .archive-img-container img { transform: scale(1.05); }
.archive-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.archive-date { color: var(--accent-color); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.archive-title { font-family: var(--font-title); font-size: 1.8rem; color: var(--text-main); margin-bottom: 1rem; line-height: 1.1; }
.archive-excerpt { color: var(--text-muted); font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sport-tag { display: inline-block; background-color: rgba(255, 94, 0, 0.15); color: var(--accent-color); padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 0.5rem; width: fit-content; }

/* --- PAGE DÉTAIL ANECDOTE (anecdote.html) --- */
.detail-main { padding: 8rem 2rem 4rem 2rem; max-width: 800px; margin: 0 auto; width: 100%; }
.back-link { display: inline-block; color: var(--text-muted); text-decoration: none; font-weight: 600; margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: var(--accent-color); }
.detail-header { margin-bottom: 2rem; text-align: center; }
.detail-date { display: block; color: var(--text-muted); font-size: 1.1rem; margin-top: 1rem; text-transform: uppercase; font-weight: bold; }
.detail-title { font-family: var(--font-title); font-size: 4rem; line-height: 1.1; color: var(--text-main); margin-top: 1rem; }
.detail-image-box { width: 100%; margin-bottom: 2rem; border-radius: 16px; overflow: hidden; }
.detail-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.detail-text { font-size: 1.25rem; line-height: 1.8; color: var(--text-main); margin-bottom: 3rem; }
.detail-actions { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); }

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .desktop-nav { display: none; }
    .burger-btn { display: block; }
    .anecdote-title, .detail-title { font-size: 3rem; }
}

/* =========================================
   PAGE PODCAST (podcast.html)
   ========================================= */

.podcast-main {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 900px; /* Plus étroit pour un look premium */
    margin: 0 auto;
    width: 100%;
}

.podcast-header {
    text-align: center;
    margin-bottom: 4rem;
}

.podcast-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.podcast-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.podcast-card {
    display: flex;
    background-color: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: var(--accent-color);
}

.podcast-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0; /* Empêche l'image de s'écraser */
}

.podcast-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.podcast-meta {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.podcast-ep-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.podcast-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.audio-element {
    width: 100%;
    outline: none;
    border-radius: 50px; /* Arrondi pour s'intégrer au design */
}

/* Version Mobile du Podcast */
@media screen and (max-width: 600px) {
    .podcast-card {
        flex-direction: column;
    }
    .podcast-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; /* Garde l'image carrée */
    }
    .podcast-content {
        padding: 1.5rem;
    }
}
/* =========================================
   PAGE NOS RÉSEAUX (reseaux.html)
   ========================================= */

.social-main {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.social-header {
    text-align: center;
    margin-bottom: 4rem;
}

.social-title {
    font-family: var(--font-title);
    font-size: 4rem;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1;
}

.social-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.social-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Les effets de survol avec les couleurs des marques */
.social-card.tiktok-card:hover {
    transform: translateY(-10px);
    border-color: #00f2fe; /* Bleu TikTok */
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

.social-card.x-card:hover {
    transform: translateY(-10px);
    border-color: #ffffff; /* Blanc pour X */
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.social-card.yt-card:hover {
    transform: translateY(-10px);
    border-color: #FF0000; /* Rouge YouTube */
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15);
}

.social-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.social-name {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.social-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.social-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

/* Couleurs des boutons au survol */
.social-card.tiktok-card:hover .social-btn { background-color: #00f2fe; color: #000; border-color: #00f2fe; }
.social-card.x-card:hover .social-btn { background-color: #ffffff; color: #000; border-color: #ffffff; }
.social-card.yt-card:hover .social-btn { background-color: #FF0000; color: #fff; border-color: #FF0000; }