/* =====================================================
   SAP 2025 RECAP — STYLES PLEINE LARGEUR
   Design moderne, focus sur l'événement et les athlètes
   Responsive et lisible sur mobile
   ===================================================== */

/* ==================== VARIABLES ==================== */
:root {
    --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-title: 'Poppins', 'Segoe UI', Arial, sans-serif;

    --bg: #fafbfc;
    --bg-alt: #f4f6fb;
    --bg-white: #ffffff;
    --text: #111;
    --text-muted: #555;
    --border: #e5e7eb;

    --accent: #e94560;
    --accent-dark: #c9344e;
    --accent-light: #ff5c7c;
    --accent-glow: rgba(233, 69, 96, 0.15);

    --gradient-accent: linear-gradient(135deg, #e94560 0%, #c9344e 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);

    --success: #10b981;
    --warning: #f59e0b;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-base);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ==================== SYSTÈME BILINGUE ==================== */
html:not(.lang-en) [lang="en"] { display: none !important; }
html.lang-en [lang="fr"] { display: none !important; }
html.lang-fr [lang="fr"],
html.lang-en [lang="en"] { display: inline !important; }

/* Masquer les paragraphes dans la mauvaise langue */
html:not(.lang-en) p[lang="en"] { display: none !important; }
html.lang-en p[lang="fr"] { display: none !important; }

/* ==================== CONTAINERS PLEINE LARGEUR ==================== */
.section-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section-inner-full {
    width: 100%;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ==================== SECTIONS ==================== */
.recap-section {
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== HERO PLEINE LARGEUR ==================== */
.sap25-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sap25-hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.sap25-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem clamp(1rem, 3vw, 2rem);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* ==================== MASQUER HEADER WORDPRESS ==================== */
.actu-detail__hero,
.actu-detail-hero,
.actu-hero,
.entry-header,
.post-header,
.article-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Container parent pleine largeur */
.sap25-hero,
.sap25-hero > * {
    max-width: none !important;
}

.sap25-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.25rem;
}

.sap25-hero__title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
}

.sap25-hero__lead {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.hero-stat__num {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: white;
    line-height: 1;
}

.hero-stat__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

/* ==================== SECTION INTRODUCTION ==================== */
.recap-intro {
    background: var(--bg-white);
}

.intro-content {
    max-width: 100%;
}

.intro-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* ==================== SECTION INTERNATIONALE ==================== */
.recap-intl {
    background: var(--bg);
}

.intl-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intl-text p {
    margin-bottom: 1rem;
}

.nations-flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.nation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-width: 80px;
}

.nation-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.nation-item img {
    width: 36px;
    height: 27px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.nation-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nation-item strong {
    font-size: 1rem;
    color: var(--accent);
}

/* ==================== CARROUSEL PHOTOS ==================== */
.recap-carousel-section {
    background: var(--bg-white);
    padding: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
    color: white;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn--prev { left: 1.5rem; }
.carousel-btn--next { right: 1.5rem; }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active,
.carousel-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* ==================== POINTS FORTS ==================== */
.recap-highlights {
    background: var(--bg-alt);
}

.highlights-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    width: 100%;
}

/* Responsive: 2x2 sur écran moyen */
@media (max-width: 1200px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.highlight-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.highlight-card__img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.highlight-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-card__img img {
    transform: scale(1.1);
}

.highlight-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.highlight-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== JOURNAL TIMELINE ==================== */
.recap-journal {
    background: var(--bg-white);
}

.journal-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.journal-day {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.journal-day__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-accent);
    color: white;
}

.day-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.day-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.day-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

.journal-day__content {
    padding: 1.5rem;
}

.journal-day__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.journal-day__photos img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.journal-day__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.journal-day__text p {
    margin-bottom: 0.75rem;
}

.journal-day__text p:last-child {
    margin-bottom: 0;
}

/* ==================== MOSAÏQUE DE PHOTOS ==================== */
.recap-mosaic {
    background: var(--bg-alt);
    padding-bottom: 60px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.5rem;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item--tall {
    grid-row: span 2;
}

.mosaic-item--wide {
    grid-column: span 2;
}

.mosaic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-item:hover .mosaic-caption {
    opacity: 1;
}

/* ==================== MENTION SOULEYMAN (ENCADRÉ DISCRET) ==================== */
.recap-souleyman {
    background: var(--bg-white);
    padding: 30px 0;
}

.souleyman-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.03) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
}

.souleyman-badge {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
}

.souleyman-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.souleyman-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.souleyman-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ==================== REMERCIEMENTS ==================== */
.recap-thanks {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.thanks-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    width: 100%;
}

/* Responsive: 2x2 sur écran moyen */
@media (max-width: 1200px) {
    .thanks-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.thanks-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.thanks-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.thanks-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.thanks-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.thanks-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.thanks-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.thanks-stats span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.thanks-stats strong {
    color: var(--accent);
}

.thanks-highlight {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* ==================== GRILLE ATHLÈTES DÉTAILLÉE ==================== */
.recap-profiles {
    background: var(--bg-white);
}

.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Carte athlete */
.athlete-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.athlete-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.athlete-card--featured {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.02) 0%, var(--bg) 100%);
}

/* Header athlete */
.athlete-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.athlete-flag {
    font-size: 1.75rem;
    line-height: 1;
}

.athlete-info {
    flex: 1;
    min-width: 120px;
}

.athlete-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.athlete-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.athlete-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge--olympic {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #000;
}

.badge--europe {
    background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
    color: white;
}

.badge--world {
    background: linear-gradient(135deg, #e94560 0%, #c9344e 100%);
    color: white;
}

.badge--africa {
    background: linear-gradient(135deg, #009739 0%, #00c04b 100%);
    color: white;
}

.badge--rising {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    color: white;
}

.badge--gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #000;
}

/* Résultats */
.athlete-results {
    padding: 1.25rem;
}

.athlete-results h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.result {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.result:last-child {
    border-bottom: none;
}

.result-medal {
    font-size: 1rem;
    flex-shrink: 0;
}

.result-event {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}

.result-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.athlete-highlight {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(233, 69, 96, 0.08);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    margin: 0;
    line-height: 1.4;
}

/* ==================== PARTENAIRES ==================== */
.recap-partners {
    background: var(--bg-alt);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.partners-logos img {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-thanks {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== CLÔTURE ==================== */
.recap-closing {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.closing-card {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.closing-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.closing-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.closing-social p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    transition: var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link--facebook {
    background: #1877f2;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== BOUTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-icon {
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.25);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.75rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox__close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox__prev svg,
.lightbox__next svg {
    width: 20px;
    height: 20px;
}

.lightbox__counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

/* ==================== ANIMATIONS ==================== */
.reveal-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== FORCE PLEINE LARGEUR ==================== */
.sap25-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.sap25-hero__inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(1rem, 5vw, 3rem);
    padding-right: clamp(1rem, 5vw, 3rem);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mosaic-item--large {
        grid-column: span 2;
    }
    
    .journal-day__photos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 0.5rem;
    }

    .hero-stat {
        min-width: 60px;
        padding: 0.6rem 0.9rem;
    }
    
    .hero-stat__num {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn--prev { left: 0.5rem; }
    .carousel-btn--next { right: 0.5rem; }

    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .mosaic-item--large,
    .mosaic-item--wide {
        grid-column: span 2;
    }

    .mosaic-item--tall {
        grid-row: span 1;
    }

    .souleyman-card {
        flex-direction: column;
        text-align: center;
    }

    .souleyman-badge {
        align-self: center;
    }

    .thanks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .athletes-grid {
        grid-template-columns: 1fr;
    }

    .journal-day__photos {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .journal-day__content {
        padding: 1rem;
    }

    .lightbox__prev { left: 0.5rem; }
    .lightbox__next { right: 0.5rem; }

    .lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-inner {
        padding: 0 1rem;
    }

    .sap25-hero__title {
        font-size: 2rem;
    }

    .hero-stat__num {
        font-size: 1.35rem;
    }

    .nations-flags {
        gap: 0.4rem;
    }

    .nation-item {
        min-width: 65px;
        padding: 0.6rem;
    }

    .nation-item img {
        width: 28px;
        height: 21px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .thanks-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
    }
    
    .journal-day__photos {
        grid-template-columns: 1fr 1fr;
    }
    
    .journal-day__photos img:nth-child(3) {
        display: none;
    }

    .athlete-header {
        flex-direction: column;
    }

    .athlete-badges {
        margin-top: 0.35rem;
    }
    
    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .sap25-hero__bg {
        animation: none;
        transform: scale(1);
    }
}
