/* ======================================================
   PAGE DÉTAILS ÉDITION — Olympiades de Robotique
   Design "wow" avec animations avancées
   ====================================================== */

/* === KEYFRAMES === */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-40px) scale(1.3);
        opacity: 0.6;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 6px rgba(212, 160, 23, 0.15);
    }
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* === HERO BANNER === */
.detail-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 0;
    padding-top: var(--header-height);
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 15, 30, 0.3) 0%,
            rgba(10, 15, 30, 0.55) 40%,
            rgba(10, 15, 30, 0.88) 100%);
    z-index: 1;
}

/* Floating particles layer */
.detail-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 160, 23, 0.5);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.detail-hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 20px 50px;
    text-align: center;
}

.detail-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 160, 23, 0.15);
    color: var(--golden-light);
    border: 1px solid rgba(212, 160, 23, 0.3);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
    animation: heroFadeUp 0.5s ease-out;
}

.pulse-dot {
    font-size: 0.5rem;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.detail-hero h1 {
    font-family: var(--font-tech);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    animation: heroFadeUp 0.6s ease-out 0.1s both;
    background: linear-gradient(135deg, #ffffff 30%, rgba(212, 160, 23, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-hero-theme {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
    font-style: italic;
    animation: heroFadeUp 0.6s ease-out 0.2s both;
}

.detail-hero-theme i {
    color: var(--golden);
    margin-right: 6px;
}

.detail-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    animation: heroFadeUp 0.6s ease-out 0.3s both;
}

.detail-hero-meta span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.detail-hero-meta i {
    margin-right: 6px;
    color: var(--golden);
}

.meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.detail-hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
    animation: heroFadeUp 0.6s ease-out 0.4s both;
}

.btn-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
}

/* === STATS BAND === */
.detail-stats-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.detail-stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 80px);
    pointer-events: none;
}

.detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.detail-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 30px;
    position: relative;
    transition: background 0.3s ease;
}

.detail-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.detail-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 160, 23, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--golden-light);
    flex-shrink: 0;
}

.detail-stat-info {
    display: flex;
    flex-direction: column;
}

.detail-stat-num {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.detail-stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* === INTRO : Résumé + Description === */
.detail-intro {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.detail-resume {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.detail-resume-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

.detail-resume-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--golden-light);
    margin-bottom: 18px;
}

.detail-resume h3 {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--golden-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-resume p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    z-index: 1;
}

.detail-resume-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.detail-resume-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.detail-resume-tags span i {
    color: var(--golden-light);
    font-size: 0.7rem;
}

.detail-description h2 {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-description h2 i {
    color: var(--golden);
}

.detail-description-body p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 14px;
    text-align: justify;
}

.detail-description-body strong {
    color: var(--primary);
    font-weight: 600;
}

.detail-highlight-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.detail-highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--golden);
    transition: all 0.3s ease;
    cursor: default;
}

.detail-highlight-item:hover {
    background: var(--golden-pale, rgba(212, 160, 23, 0.08));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.highlight-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--golden), var(--golden-light, #e8b825));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.detail-highlight-item div:last-child {
    display: flex;
    flex-direction: column;
}

.detail-highlight-item div:last-child strong {
    font-size: 0.9rem;
    color: var(--text);
}

.detail-highlight-item div:last-child small {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === SECTION ÉPREUVES (nouveau design) === */
.detail-epreuves-section {
    margin-top: 32px;
}

.detail-epreuves-title {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-epreuves-title i {
    color: var(--golden);
}

.detail-epreuves-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-epreuve-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.detail-epreuve-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.epreuve-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.epreuve-card-content {
    flex: 1;
    min-width: 0;
}

.epreuve-card-content h4 {
    font-family: var(--font-tech);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
}

.epreuve-card-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.epreuve-card-number {
    position: absolute;
    top: 8px;
    right: 14px;
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(27, 58, 107, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* === ÉQUIPES === */
.equipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.equipe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    position: relative;
}

.equipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Photo d'équipe (remplace l'ancien accent + avatar) */
.equipe-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.equipe-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.equipe-card:hover .equipe-card-photo img {
    transform: scale(1.06);
}

.equipe-card-photo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.equipe-card-name-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.equipe-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    margin: -20px auto 12px;
    position: relative;
    z-index: 2;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.equipe-card-inner {
    padding: 10px 24px 24px;
    text-align: center;
}

.equipe-card h4 {
    font-family: var(--font-tech);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.equipe-slogan {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
    min-height: 36px;
    line-height: 1.5;
}

.equipe-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.btn-equipe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-voir-equipe {
    background: transparent;
    border: 2px solid;
}

.btn-voir-equipe:hover {
    background: currentColor;
    transform: translateY(-2px);
}

.btn-voir-equipe:hover i,
.btn-voir-equipe:hover {
    color: #fff !important;
}

.btn-doc {
    background: var(--gray-100, #f3f4f6);
    color: var(--text-muted);
    border: none;
}

.btn-doc:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Vote button (colored with text) */
.btn-vote-equipe {
    color: #fff;
    border: none;
}

.btn-vote-equipe:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === PODIUM === */
.detail-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    padding-top: 20px;
}

.detail-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-align: center;
}

.podium-card {
    padding: 22px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.detail-podium-medal {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.podium-gold .detail-podium-medal {
    color: #D4A017;
    filter: drop-shadow(0 2px 8px rgba(212, 160, 23, 0.5));
}

.podium-silver .detail-podium-medal {
    color: #A0A0A0;
}

.podium-bronze .detail-podium-medal {
    color: #CD7F32;
}

.detail-podium-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gray-300);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podium-gold .detail-podium-avatar {
    border-color: #D4A017;
    box-shadow: 0 0 25px rgba(212, 160, 23, 0.3);
}

.podium-silver .detail-podium-avatar {
    border-color: #C0C0C0;
}

.podium-bronze .detail-podium-avatar {
    border-color: #CD7F32;
}

.detail-podium-item:hover .detail-podium-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.25);
}

.detail-podium-avatar i {
    font-size: 1.5rem;
    color: var(--primary);
}

.detail-podium-rank {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.podium-gold .detail-podium-rank {
    color: #D4A017;
    font-size: 1rem;
}

.detail-podium-item h4 {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.detail-podium-pts {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--golden);
    background: linear-gradient(90deg, var(--golden), #e8b825);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.detail-podium-stats {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.detail-podium-bar {
    width: 100%;
    border-radius: 12px 12px 0 0;
    min-height: 30px;
    transform-origin: bottom;
    animation: barGrow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.podium-gold .detail-podium-bar {
    background: linear-gradient(to top, #D4A017, #F5D565);
}

.podium-silver .detail-podium-bar {
    background: linear-gradient(to top, #C0C0C0, #E8E8E8);
}

.podium-bronze .detail-podium-bar {
    background: linear-gradient(to top, #CD7F32, #E8A862);
}

/* === GALLERY SLIDER === */
.gallery-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-slider {
    overflow: hidden;
    flex: 1;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-slide {
    flex-shrink: 0;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-title {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.gallery-card-num {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Gallery nav buttons */
.gallery-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.3);
}

/* Gallery dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot.active {
    background: var(--golden);
    border-color: var(--golden);
    transform: scale(1.2);
}

.gallery-dot:hover:not(.active) {
    background: rgba(27, 58, 107, 0.2);
}

/* === TITLE ACCENT (doré) === */
.title-accent {
    color: var(--golden);
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--golden), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* === STAGGERED REVEAL for equipe cards === */
.equipe-card.animated {
    animation: cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.equipe-card:nth-child(1).animated {
    animation-delay: 0.05s;
}

.equipe-card:nth-child(2).animated {
    animation-delay: 0.12s;
}

.equipe-card:nth-child(3).animated {
    animation-delay: 0.19s;
}

.equipe-card:nth-child(4).animated {
    animation-delay: 0.26s;
}

.equipe-card:nth-child(5).animated {
    animation-delay: 0.33s;
}

.equipe-card:nth-child(6).animated {
    animation-delay: 0.40s;
}

/* === RESPONSIVE — TABLET (≤ 1024px) === */
@media (max-width: 1024px) {
    .detail-hero {
        min-height: 400px;
        background-attachment: scroll;
    }

    .detail-hero h1 {
        font-size: 2rem;
    }

    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-stat-item:nth-child(2)::after {
        display: none;
    }

    .detail-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .equipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .detail-podium {
        gap: 16px;
    }

    .detail-podium-item {
        width: 160px;
    }
}

/* === RESPONSIVE — MOBILE (≤ 768px) === */
@media (max-width: 768px) {
    .detail-hero {
        min-height: 360px;
    }

    .detail-hero-content {
        padding: 40px 16px 40px;
    }

    .detail-hero h1 {
        font-size: 1.6rem;
    }

    .detail-hero-theme {
        font-size: 0.95rem;
    }

    .detail-hero-meta {
        gap: 10px;
    }

    .meta-dot {
        display: none;
    }

    .detail-hero-meta span {
        font-size: 0.82rem;
    }

    .detail-hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-stat-item {
        padding: 20px 16px;
    }

    .detail-stat-item:nth-child(odd)::after,
    .detail-stat-item:nth-child(even)::after {
        display: none;
    }

    .detail-stat-num {
        font-size: 1.4rem;
    }

    .detail-highlight-box {
        grid-template-columns: 1fr;
    }

    .detail-epreuves-grid {
        grid-template-columns: 1fr;
    }

    .equipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .equipe-card-inner {
        padding: 10px 14px 20px;
    }

    .equipe-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin-top: -18px;
    }

    .equipe-slogan {
        font-size: 0.8rem;
        min-height: 30px;
    }

    .btn-voir-equipe {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .detail-podium {
        gap: 10px;
    }

    .detail-podium-item {
        width: 110px;
    }

    .detail-podium-avatar {
        width: 54px;
        height: 54px;
    }

    .detail-podium-avatar i {
        font-size: 1.2rem;
    }

    .detail-podium-medal {
        font-size: 1.3rem;
    }

    .detail-podium-item h4 {
        font-size: 0.85rem;
    }

    .detail-podium-pts {
        font-size: 0.82rem;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* === RESPONSIVE — SMALL MOBILE (≤ 480px) === */
@media (max-width: 480px) {
    .detail-hero {
        min-height: 320px;
    }

    .detail-hero h1 {
        font-size: 1.35rem;
    }

    .detail-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .detail-stat-item {
        padding: 16px 12px;
        gap: 10px;
    }

    .detail-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .detail-stat-num {
        font-size: 1.2rem;
    }

    .equipes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detail-podium-item {
        width: 95px;
    }

    .gallery-nav {
        display: none;
    }

    .gallery-slider-wrapper {
        gap: 0;
    }
}