/* ============================================
   RESPONSIVE - Mobile & Tablette
   Charge APRES pages.css pour tout overrider
   ============================================ */

/* ===== TABLETTE (max-width: 1024px) ===== */
@media (max-width: 1024px) {

    section#promote {
        gap: 40px;
        padding: 50px 40px;
    }

    section#promote .title {
        font-size: 2em;
    }

    .accordion .title {
        font-size: 1.5em;
    }

    .accordion .cross {
        font-size: 2.8em;
    }

    section#content-prog > .title {
        font-size: 2em;
    }

    .cta-signup {
        width: calc(100% - 80px);
        font-size: 26px;
    }

    .accordion-panel img {
        max-width: 100%;
        width: auto;
        height: auto;
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* ---- POPUP masquée sur mobile ---- */
    #popup,
    #popup .popup {
        display: none !important;
    }

    /* ---- HEADER MOBILE ---- */
    header {
        height: 70px;
        padding: 0;
    }

    body {
        padding-top: 70px;
    }

    .menu-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        padding: 0;
    }

    .menu-mobile .button-mobile {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 32px;
        padding: 8px;
        background-color: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        z-index: 10;
    }

    .menu-mobile .button-mobile span {
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 2px;
    }

    .menu-mobile img.logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 40px;
        width: auto;
    }

    /* ---- MENU OUVERT ---- */
    header.header-mobile-toggle {
        height: 100vh;
    }

    nav.nav-mobile-toggle {
        display: flex;
        width: 100%;
        height: auto;
        padding: 0 20px;
        margin: 0;
        position: absolute;
        top: 70px;
        left: 0;
    }

    nav.nav-mobile-toggle ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav.nav-mobile-toggle .group-nav-items {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav.nav-mobile-toggle .menu-item {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    nav.nav-mobile-toggle .menu-item:last-child {
        border-bottom: none;
    }

    nav.nav-mobile-toggle .menu-item a {
        font-size: 1.1em;
        max-width: 100%;
    }

    nav ul > a,
    nav ul > a img {
        display: none !important;
    }

    /* ---- RESET COVER-TOP (section vide sur programme.html) ---- */
    section#cover-top {
        height: auto;
        min-height: 0;
        padding: 0;
        display: none;
    }

    /* ---- HERO ---- */
    .rikers-hero-section {
        height: 200px;
    }

    .rikers-hero-content {
        padding: 0 20px;
    }

    .rikers-hero-title {
        font-size: 20px;
        line-height: 1.3;
        letter-spacing: 0;
        margin-bottom: 0;
    }

    .rikers-hero-title br {
        display: none;
    }

    /* ---- RIKERS SECTIONS ---- */
    .rikers-section-wrapper {
        padding: 25px 0;
    }

    .rikers-section-container {
        width: 90%;
    }

    .rikers-section-title {
        font-size: 18px;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .page-home .rikers-section-title {
        text-align: center;
    }

    .rikers-section-text {
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
        word-spacing: normal;
    }

    /* ---- RIKERS FLEX (index.html) ---- */
    .rikers-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .rikers-left {
        text-align: center;
    }

    .page-home .rikers-section-text {
        margin-left: auto;
        margin-right: auto;
    }

    .rikers-right {
        width: 100%;
        gap: 12px;
    }

    .rikers-right img {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
        display: block;
        border-radius: 10px;
    }

    /* ---- ACCORDIONS ---- */
    .accordion {
        padding: 12px 6px;
        gap: 6px;
    }

    .accordion .title {
        font-size: 1em;
        line-height: 1.3;
    }

    .accordion .cross {
        font-size: 1.6em;
        min-width: 25px;
        text-align: center;
        flex-shrink: 0;
    }

    .accordion-panel {
        padding: 5px 6px 15px;
        font-size: 0.9em;
    }

    .accordion-panel p {
        font-size: 0.92em;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .accordion-panel img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* ---- CONTENT PROGRAMME ---- */
    section#content-prog {
        padding: 20px 15px;
        max-width: 100%;
    }

    section#content-prog > .title {
        font-size: 1.25em;
        text-align: center;
        line-height: 1.3;
        margin: 15px 0;
    }

    /* ---- PROMOTE ---- */
    section#promote {
        gap: 12px;
        padding: 30px 20px;
        flex-direction: column;
    }

    section#promote .title {
        font-size: 1.35em;
        line-height: 1.3;
    }

    section#promote .desc {
        font-size: 14px;
        line-height: 1.55;
    }

    /* ---- CTA SIGNUP ---- */
    .cta-signup {
        width: calc(100% - 30px);
        font-size: 18px;
        padding: 16px 12px;
        border-radius: 10px;
        margin: 20px auto 0 auto;
    }

    /* ---- FOOTER ---- */
    footer {
        padding: 30px 20px;
        gap: 12px;
    }

    footer img {
        max-width: 160px;
        width: auto;
    }

    footer .disclaimer {
        max-width: 260px;
        font-size: 0.85em;
        padding: 8px;
    }

    footer a {
        font-size: 0.95em;
        flex-wrap: wrap;
        justify-content: center;
    }

    footer .copy {
        font-size: 0.75em;
    }
}

/* ===== PETIT MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {

    .rikers-hero-section {
        height: 160px;
    }

    .rikers-hero-title {
        font-size: 17px;
    }

    .rikers-section-title {
        font-size: 16px;
    }

    .rikers-section-text {
        font-size: 12px;
    }

    .rikers-right img {
        max-width: 90%;
    }

    .accordion .title {
        font-size: 0.88em;
    }

    .accordion .cross {
        font-size: 1.4em;
    }

    .accordion-panel {
        font-size: 0.85em;
    }

    section#content-prog > .title {
        font-size: 1.1em;
    }

    section#promote .title {
        font-size: 1.15em;
    }

    section#promote .desc {
        font-size: 13px;
    }

    footer img {
        max-width: 130px;
    }

    .cta-signup {
        font-size: 15px;
    }
}

/* ===== TRES PETIT (max-width: 360px) ===== */
@media (max-width: 360px) {

    .rikers-hero-section {
        height: 130px;
    }

    .rikers-hero-title {
        font-size: 15px;
    }

    .rikers-section-title {
        font-size: 14px;
    }

    .rikers-section-text {
        font-size: 11px;
    }

    .accordion .title {
        font-size: 0.8em;
    }

    section#content-prog > .title {
        font-size: 0.95em;
    }

    section#promote .title {
        font-size: 1em;
    }
}
