/* Responsive Design - GALSENCHAMPIONSHIP */

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* ===== DESKTOP (1200px - 1399px) ===== */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== TABLET LARGE (992px - 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-logo .logo-text {
        font-size: 0.96rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 25px;
    }
    
    :root {
        --section-padding: 60px 0;
    }
    
    /* —— Navigation mobile drawer —— */
    .navbar,
    .navbar.nav-hidden,
    .navbar.nav-hidden:not(.nav-shown),
    .navbar.nav-shown {
        top: 0 !important;
        transform: none !important;
    }

    .navbar .nav-container {
        height: 64px;
        padding: 0 16px;
        gap: 0.75rem;
    }

    .navbar.menu-open {
        background: #fff !important;
        box-shadow: 0 8px 28px rgba(11, 26, 18, 0.12);
    }

    .navbar.menu-open.nav-hidden {
        transform: translateY(0) !important;
    }

    body.nav-drawer-open {
        overflow: hidden;
    }

    body.nav-drawer-open .nav-menu {
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100dvh - 64px);
        height: calc(100vh - 64px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0.75rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        gap: 0.15rem;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
        box-shadow: inset 0 1px 0 rgba(11, 26, 18, 0.06);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(11, 26, 18, 0.06);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
        margin-top: 0.85rem;
        padding-top: 0.35rem;
    }

    .nav-menu > li > .nav-link,
    .nav-menu > li > button.nav-link {
        width: 100%;
        min-height: 52px;
        justify-content: space-between;
        align-items: center;
        padding: 0.95rem 0.65rem;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 10px;
    }

    .nav-menu > li > .nav-link::after {
        display: none;
    }

    /* Sous-menu Championnat : flux vertical (pas le dropdown desktop centré) */
    .nav-item-dropdown > .nav-dropdown,
    .nav-item-dropdown:hover > .nav-dropdown,
    .nav-item-dropdown.open > .nav-dropdown {
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--accent-color) !important;
        border-radius: 0 0 10px 10px !important;
        margin: 0 0 0.65rem 0.5rem !important;
        padding: 0.15rem 0 0.35rem !important;
        background: rgba(0, 122, 61, 0.04) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        overflow: visible !important;
        z-index: auto !important;
        pointer-events: auto !important;
    }

    .nav-item-dropdown > .nav-dropdown {
        display: none !important;
    }

    .nav-item-dropdown.open > .nav-dropdown {
        display: block !important;
    }

    .nav-item-dropdown > .nav-dropdown::before {
        display: none !important;
    }

    .nav-item-dropdown.open > .nav-link .nav-caret,
    .nav-item-dropdown.open > button.nav-link .nav-caret {
        transform: rotate(180deg);
    }

    .nav-dropdown a,
    .nav-item-dropdown.open > .nav-dropdown a,
    .nav-item-dropdown:hover > .nav-dropdown a {
        display: flex !important;
        padding: 0.55rem 0.85rem !important;
        min-height: 40px;
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0s !important;
        font-size: 0.92rem;
        pointer-events: auto !important;
    }

    .nav-menu > li > .cta-btn,
    .cta-btn {
        display: flex !important;
        width: 100% !important;
        margin: 0.35rem 0 0 !important;
        padding: 0.55rem 0.9rem !important;
        min-height: 40px;
        text-align: center;
        justify-content: center;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
        letter-spacing: 0.03em;
        animation: none !important;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 12px;
        border: 1px solid rgba(11, 26, 18, 0.1);
        background: rgba(0, 122, 61, 0.04);
        gap: 5px;
        padding: 0;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle .bar {
        width: 20px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--dark-color);
        transition: transform 0.3s ease, opacity 0.25s ease;
    }

    .nav-toggle.active {
        background: rgba(225, 29, 46, 0.08);
        border-color: rgba(225, 29, 46, 0.25);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* —— Boutons mobile —— */
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .hero-buttons,
    .promoteur-cta-row,
    .cta-strip .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .legal-toolbar-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
    }

    .hero-buttons .btn,
    .promoteur-cta-row .btn,
    .cta-strip .btn,
    .join-band .btn,
    .section .btn.btn-primary,
    .section .btn.btn-secondary {
        width: 100%;
        max-width: none;
        min-height: 40px;
        padding: 0.5rem 0.9rem;
        font-size: 0.88rem;
        border-radius: 10px;
        justify-content: center;
    }

    .legal-toolbar-actions .btn {
        flex: 1 1 8.5rem;
        width: auto;
        min-height: 38px;
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 10px;
        justify-content: center;
    }

    .btn {
        min-height: 40px;
        padding: 0.5rem 0.9rem;
        font-size: 0.88rem;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active {
        transform: scale(0.98);
    }
    
    /* Typography */
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        text-align: center;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card.featured {
        grid-row: span 1;
    }
    
    /* Schedule Tables */
    .schedule-tabs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Registration */
    .registration-info .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-selection {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Partners */
    .partners-categories {
        gap: 3rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-section {
        order: 2;
    }
    
    .map-section {
        order: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        text-align: left;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer-logo,
    .social-links {
        justify-content: flex-start;
    }
}

/* ===== MOBILE LARGE (576px - 767px) ===== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    :root {
        --section-padding: 50px 0;
    }
    
    /* Navigation */
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        padding: 0 16px;
        height: 64px;
    }
    
    .nav-menu {
        top: 64px;
        height: calc(100vh - 64px);
        padding: 1rem 1.25rem 2rem;
    }
    
    .nav-logo .logo-text {
        font-size: 0.95rem;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logo-img,
    .nav-logo img {
        width: 38px;
        height: 38px;
    }
    
    .nav-menu > li > .nav-link {
        font-size: 1rem;
        padding: 0.9rem 0.35rem;
        width: 100%;
        text-align: left;
    }
    
    /* Hero Section */
    .hero {
        padding: 0;
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-brand {
        font-size: clamp(2.6rem, 14vw, 3.6rem);
    }

    .hero-headline {
        font-size: 1.15rem;
        max-width: none;
    }

    .hero-lead {
        font-size: 0.98rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Categories */
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.5rem;
    }
    
    /* About */
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    /* News */
    .news-card {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 70px 0 35px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Schedule */
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.4rem;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    /* Registration */
    .registration-info .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .countdown {
        flex-direction: column;
        gap: 1rem;
    }
    
    .countdown-item {
        width: 100%;
        max-width: 80px;
    }
    
    .categories-selection {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-option {
        padding: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        text-align: center;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .payment-card {
        padding: 1.5rem;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-card {
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    .become-partner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .social-card {
        padding: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-logo,
    .social-links {
        justify-content: flex-start;
    }
}

/* ===== MOBILE (320px - 575px) ===== */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    :root {
        --section-padding: 40px 0;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo .logo-text {
        font-size: 0.72rem;
    }
    
    .nav-logo .logo-img {
        width: 35px;
        height: 35px;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0 40px;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Categories */
    .category-card {
        padding: 1.2rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    /* About */
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    /* News */
    .news-card {
        padding: 1.2rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 60px 0 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    /* Schedule */
    .schedule-table {
        font-size: 0.75rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.3rem;
    }
    
    .team-name {
        font-size: 0.75rem;
    }
    
    .match-info {
        font-size: 0.7rem;
    }
    
    /* Registration */
    .info-card {
        padding: 1.2rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .countdown {
        gap: 0.8rem;
    }
    
    .countdown-item {
        max-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .category-option {
        padding: 1.2rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-features ul {
        font-size: 0.9rem;
    }
    
    .payment-card {
        padding: 1.2rem;
    }
    
    .payment-card h3 {
        font-size: 1.2rem;
    }
    
    /* Partners */
    .partner-card {
        padding: 1.2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .benefit-card {
        padding: 1.2rem;
    }
    
    .package-card {
        padding: 1.2rem;
    }
    
    .package-header h3 {
        font-size: 1.5rem;
    }
    
    .package-price {
        font-size: 1.8rem;
    }
    
    .become-partner-form {
        padding: 1.5rem;
    }
    
    .become-partner-form h3 {
        font-size: 1.3rem;
    }
    
    /* Contact */
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .map-container {
        height: 200px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-card {
        padding: 1rem;
    }
    
    /* Footer */
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ===== EXTRA SMALL MOBILE (320px and below) ===== */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo .logo-text {
        font-size: 0.64rem;
    }
    
    .nav-logo .logo-img {
        width: 30px;
        height: 30px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Cards */
    .category-card,
    .news-card,
    .info-card,
    .payment-card,
    .partner-card,
    .benefit-card,
    .package-card,
    .contact-card {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 50px 0 25px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Tables */
    .schedule-table {
        font-size: 0.7rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.2rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .nav-menu {
        height: calc(100vh - 64px);
        top: 64px;
    }

    .hero-brand {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-scroll {
        display: none;
    }
    
    :root {
        --section-padding: 30px 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn,
    .nav-toggle,
    .skip-button {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        background: none !important;
    }
    
    .hero-title,
    .section-title {
        color: #000 !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .news-card,
    .category-card,
    .stat-card {
        page-break-inside: avoid;
    }
}

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

/* Dark-scheme override disabled — brand site stays light */

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: currentColor;
    }
    
    .news-card,
    .category-card,
    .stat-card {
        border: 1px solid var(--border-color);
    }
}

/* ===== FOCUS STYLES FOR KEYBOARD NAVIGATION ===== */
@media (any-hover: none) and (any-pointer: coarse) {
    .btn:focus,
    .nav-link:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* ===== PLATFORM RESPONSIVE FIXES (2026) ===== */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .navbar .nav-container {
        height: 64px;
    }

    .page-header {
        padding: 110px 0 48px;
        text-align: left;
    }

    .page-header h1 {
        font-size: clamp(2.1rem, 8vw, 3rem);
    }

    .page-header p {
        font-size: 1rem;
    }

    .split-media,
    .metric-row,
    .finale-story .finale-grid,
    .awards-list,
    .tier-grid,
    .pipeline {
        grid-template-columns: 1fr !important;
    }

    .score-cards-2 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer .contact-info a,
    .footer .contact-info p {
        justify-content: flex-start;
    }

    .charte-doc,
    .candidature-form {
        max-width: 100%;
    }

    /* Route vers la finale : swipe horizontal, cartes toujours visibles */
    .path-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    .path-step,
    .path-step.reveal,
    .path-step.vibe-flow,
    .path-step.vibe-prep {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .news-feature-main {
        min-height: 320px;
    }

    .zone-panel {
        min-height: 320px;
    }

    .comp-visual {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-section:first-child {
        grid-column: auto;
    }

    .pulse-metrics {
        grid-template-columns: 1fr !important;
    }

    .gallery-strip {
        grid-template-columns: 1fr 1fr !important;
    }

    .score-card .match {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .score-card .result {
        font-size: 1.5rem;
    }

    .finale-photo,
    .finale-photo img {
        min-height: 240px;
    }

    .btn {
        max-width: 100%;
    }

    .section-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .nav-logo .logo-text {
        display: none;
    }

    .partner-logo-orb {
        width: 81px;
        height: 81px;
        min-width: 81px;
        min-height: 81px;
    }

    .partners-marquee-group {
        gap: 1.5rem;
        padding-right: 1.5rem;
    }

    .dedication h3 {
        font-size: 1.35rem;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 380px) {
    .gallery-strip {
        grid-template-columns: 1fr !important;
    }

    .news-side a {
        grid-template-columns: 72px 1fr;
    }
}

/* =========================================================
   RESPONSIVE — TOUTES PAGES & COMPOSANTS (2026 audit)
   ========================================================= */

/* Anti débordement horizontal global */
html {
    overflow-x: clip;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

.table-wrapper,
.classement-wrap,
.legal-sheet,
.awards-list,
.match-board {
    max-width: 100%;
}

/* —— Tablette large : composants partagés —— */
@media (max-width: 1100px) {
    .media-live-inner {
        grid-template-columns: 1fr 1fr;
        justify-items: start;
    }

    .media-live-cta {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        text-align: center;
    }

    .join-band-inner,
    .join-band .container > div {
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    /* Home */
    .media-live-inner {
        grid-template-columns: 1fr !important;
        text-align: center;
        justify-items: center;
        gap: 1.15rem;
    }

    .media-live-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .media-live-cta {
        width: 100%;
        max-width: 320px;
        white-space: normal;
    }

    .pulse-grid,
    .zones-split,
    .comp-pulse-inner,
    .news-feature,
    .join-band .container {
        grid-template-columns: 1fr !important;
    }

    .partners-marquee-track {
        animation-duration: 18s;
    }

    /* Classements (categories) */
    .pool-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .cat-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .zone-carousel,
    .zone-carousel-slide img {
        min-height: 280px;
    }

    .soft-tabs {
        gap: 0.5rem;
    }

    .soft-tab {
        flex: 1 1 auto;
        text-align: center;
        min-width: calc(50% - 0.5rem);
        padding: 0.65rem 0.9rem;
        font-size: 0.85rem;
    }

    /* Schedule match rows */
    .match-row {
        grid-template-columns: 110px 1fr !important;
        gap: 0.75rem 1rem;
    }

    .match-row .score {
        grid-column: 1 / -1;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        text-align: left !important;
        min-width: 0;
        width: 100%;
        padding-top: 0.35rem;
        border-top: 1px dashed var(--border-color);
    }

    .filter-bar {
        width: 100%;
    }

    .filter-bar select {
        flex: 1 1 140px;
        min-width: 0;
    }

    /* Rewards */
    .awards-list {
        grid-template-columns: 1fr !important;
    }

    .award-item,
    .award-item.award-featured {
        grid-template-columns: 1fr !important;
    }

    .award-media,
    .award-featured .award-media {
        min-height: 180px !important;
    }

    /* Legal docs — toolbar seul ici ; sommaire sticky reste jusqu'à 960px */
    .legal-toolbar {
        top: 64px;
    }

    .legal-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-toolbar-actions {
        width: 100%;
    }

    .legal-toolbar-actions .btn {
        flex: 1 1 auto;
    }

    /* Promoteur */
    .promoteur-hero .hero-grid,
    .bio-grid,
    .ybs-grid,
    .promo-cards,
    .valeurs-grid,
    .invest-grid,
    .quotes-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .promoteur-hero .hero-grid,
    .bio-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-portrait {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Partners tiers */
    .tier-grid {
        grid-template-columns: 1fr !important;
    }

    /* Registration form */
    .candidature-form .form-row,
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Footer watermark */
    .footer::after {
        font-size: clamp(1.8rem, 7vw, 3.5rem);
        bottom: 8%;
        width: 94%;
        white-space: normal;
        line-height: 1.05;
    }

    /* CTA / bands */
    .cta-strip,
    .promoteur-band,
    .ceremony-band {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-buttons {
        flex-wrap: wrap;
        height: auto;
        align-self: flex-start;
    }

    .hero-buttons .btn,
    .join-band .btn,
    .cta-strip .btn,
    .promoteur-cta-row .btn {
        flex: 0 0 auto;
        height: auto;
        min-height: 40px;
    }
}

/* —— Mobile —— */
@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header-content {
        max-width: 100%;
    }

    .breadcrumb {
        flex-wrap: wrap;
        row-gap: 0.25rem;
        font-size: 0.72rem;
    }

    .soft-tabs {
        flex-wrap: wrap;
        overflow: visible;
    }

    .soft-tab {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }

    .promoteur-hero {
        margin-top: -1.25rem;
    }

    .hero-intro {
        padding: 1.25rem !important;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
    }

    .ybs-grid,
    .promo-cards,
    .valeurs-grid,
    .invest-grid,
    .quotes-grid,
    .stats-grid,
    .pool-grid {
        grid-template-columns: 1fr !important;
    }

    .legal-cover h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        max-width: none;
    }

    .legal-cover-meta {
        gap: 0.4rem;
    }

    .legal-chip {
        font-size: 0.68rem;
        padding: 0.32rem 0.55rem;
    }

    .legal-body {
        padding: 1.25rem 1.1rem 1.75rem !important;
    }

    .legal-article-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .legal-article h2 {
        font-size: 1.3rem;
    }

    .classement-table {
        min-width: 0;
        width: 100%;
        font-size: 0.75rem;
    }

    .classement-table .club-cell span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stats-list li {
        grid-template-columns: 24px 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem 0.2rem;
    }

    .stats-player-name {
        font-size: 0.85rem;
    }

    .stats-value {
        font-size: 1.25rem;
    }

    .match-row {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }

    .match-row .when {
        font-size: 0.78rem;
    }

    .match-row .teams {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .match-row .meta {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .filter-bar select {
        width: 100%;
        flex: 1 1 100%;
    }

    .super-banner {
        padding: 1.35rem !important;
    }

    .super-banner h3 {
        font-size: 1.6rem !important;
    }

    .award-body,
    .award-featured .award-body {
        padding: 1.1rem 1.15rem 1.25rem !important;
    }

    .award-item h3 {
        font-size: 1.55rem !important;
    }

    .dedication {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .zone-carousel-nav {
        width: 34px;
        height: 34px;
    }

    .zone-carousel-nav.prev { left: 8px; }
    .zone-carousel-nav.next { right: 8px; }

    .partners-home .section-header,
    .section-header {
        margin-bottom: 2.25rem;
    }

    .btn {
        width: auto;
        min-height: 44px;
    }

    .promoteur-cta-row .btn,
    .hero-cta .btn,
    .legal-cta .btn,
    .charte-cta .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* —— Petit mobile —— */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    :root {
        --section-padding: 44px 0;
        --container-padding: 0 14px;
    }

    .navbar .nav-container {
        padding: 0 12px;
        height: 58px;
    }

    .nav-menu {
        top: 58px;
        height: calc(100dvh - 58px);
        height: calc(100vh - 58px);
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .nav-menu > li > .nav-link,
    .nav-menu > li > button.nav-link {
        min-height: 50px;
        font-size: 1.02rem;
        padding: 0.85rem 0.55rem;
    }

    .btn,
    .hero-buttons .btn,
    .cta-strip .btn,
    .legal-toolbar-actions .btn {
        min-height: 38px;
        font-size: 0.84rem;
        padding: 0.45rem 0.75rem;
    }

    .legal-toolbar {
        top: 58px;
    }

    .page-header {
        padding: 90px 0 36px;
    }

    .page-header h1 {
        font-size: clamp(1.9rem, 10vw, 2.5rem);
        line-height: 1;
    }

    .hero-brand {
        font-size: clamp(2.3rem, 13vw, 3.2rem);
    }

    .hero-content {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 8vh;
    }

    .media-live-logo {
        width: min(160px, 62vw);
    }

    .media-live-copy h2 {
        font-size: 1.55rem;
    }

    .pool-block,
    .stats-board {
        padding: 0.95rem 0.85rem !important;
    }

    .classement-table {
        min-width: 0;
        width: 100%;
    }

    .classement-table thead th {
        font-size: 0.62rem;
        padding: 0.35rem 0.2rem;
    }

    .classement-table tbody td {
        padding: 0.45rem 0.2rem;
    }

    .club-logo {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    .match-legend {
        gap: 0.4rem;
    }

    .match-legend span {
        font-size: 0.72rem;
        padding: 0.28rem 0.55rem;
    }

    .legal-toc nav {
        grid-template-columns: 1fr !important;
    }

    .footer::after {
        font-size: 1.55rem;
        letter-spacing: 0.04em;
    }

    .path-num {
        font-size: 1.5rem;
    }
}

/* —— Très petit / fold —— */
@media (max-width: 360px) {
    .nav-logo .logo-text {
        display: none;
    }

    .soft-tab {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    .hero-buttons .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .classement-table {
        min-width: 0;
        font-size: 0.7rem;
    }
}

/* Touch : zones cliquables confortables */
@media (any-hover: none) and (any-pointer: coarse) {
    .soft-tab,
    .nav-menu > li > .nav-link,
    .filter-bar select,
    .zone-carousel-nav,
    .zone-carousel-dots button {
        min-height: 44px;
    }

    .zone-carousel-dots button {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .zone-carousel-dots button::after {
        content: '';
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: inherit;
    }

    .btn {
        min-height: 40px;
    }

    .path-step:hover,
    .cup-pillar:hover,
    .match-row:hover {
        transform: none;
    }
}

/* =========================================================
   PETITS ÉCRANS — polish final (≤640 / ≤480)
   ========================================================= */
@media (max-width: 640px) {
    .soft-tabs {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        gap: 0.5rem;
        margin: 0 0 1rem;
        padding: 0;
    }

    .soft-tab {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .filter-bar select {
        width: 100%;
        min-height: 44px;
    }

    .hero-buttons {
        width: 100%;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-lead {
        font-size: 1rem;
        max-width: 36ch;
    }

    .media-live-banner .media-live-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.35rem 1.1rem;
    }

    .media-live-cta {
        width: 100%;
        justify-content: center;
    }

    .pulse-grid {
        gap: 1.75rem;
    }

    .pulse-title {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .zones-split {
        gap: 1rem;
    }

    .zone-meta {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .zone-meta span {
        font-size: 0.75rem;
    }

    .comp-pulse-inner {
        grid-template-columns: 1fr !important;
    }

    .comp-copy {
        padding: 1.75rem 1.15rem 2.5rem !important;
    }

    .cta-strip h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .cta-strip .hero-buttons,
    .cta-strip .promoteur-cta-row {
        flex-direction: column;
        width: 100%;
    }

    .cta-strip .btn {
        width: 100%;
        justify-content: center;
    }

    .match-row {
        grid-template-columns: 1fr !important;
        gap: 0.45rem;
        padding: 0.95rem 0.85rem;
    }

    .match-row .score {
        justify-content: flex-start;
    }

    .super-banner {
        padding: 1.25rem 1rem !important;
    }

    .super-banner h3 {
        font-size: 1.4rem !important;
    }

    .awards-list,
    .promo-cards,
    .ybs-grid,
    .valeurs-grid,
    .invest-grid,
    .quotes-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-stats,
    .promoteur-hero .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 0.65rem;
    }

    .promoteur-hero .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .split-media {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .split-media img {
        width: 100%;
        max-height: 260px;
        object-fit: cover;
    }

    .metric-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem;
    }

    .check-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .table-scroll {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pool-block {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
    }

    .hero-brand {
        font-size: clamp(2.15rem, 12vw, 2.9rem) !important;
        letter-spacing: 0.03em;
    }

    .hero-headline {
        font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    }

    .page-header {
        padding: 84px 0 32px;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .nav-logo {
        gap: 8px;
        max-width: calc(100% - 56px);
    }

    .nav-logo .logo-text {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-section h4 {
        margin-bottom: 0.65rem;
    }

    .footer-links li {
        margin-bottom: 0.35rem;
    }

    .metric-row {
        grid-template-columns: 1fr !important;
    }

    .score-cards,
    .score-cards-2 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }

    .legal-article {
        padding-left: 0 !important;
    }

    .candidature-form fieldset,
    .form-group {
        min-width: 0;
    }

    input,
    select,
    textarea {
        font-size: 16px !important; /* évite zoom iOS */
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .path-step {
        flex-basis: 78vw !important;
    }

    .cup-hero-brand {
        font-size: 2.45rem !important;
    }

    .pulse-metric strong {
        font-size: 2.2rem;
    }
}
