/* Mobile v2 — refonte ≤960 px (PC inchangé ≥961 px) */
@media (max-width: 960px) {
    :root {
        --m-v2-section-y: 32px;
        --m-v2-gap: 16px;
        --m-v2-title: clamp(1.65rem, 7.2vw, 2rem);
        --m-v2-book-title: clamp(1.25rem, 5.2vw, 1.45rem);
    }

    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
        font-size: 16px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding: var(--m-v2-section-y) 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: var(--m-v2-title);
        line-height: 1.12;
        letter-spacing: 0.01em;
        text-transform: none;
        font-family: Montserrat, sans-serif;
        font-weight: 700;
    }

    .section-desc {
        font-size: 0.94rem;
        line-height: 1.5;
        margin-top: 10px;
    }

    .section-tag {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
    }

    /* Bandeau */
    .top-banner {
        min-height: auto;
        padding: 6px 0;
    }

    .banner-text {
        font-size: 12px !important;
        line-height: 1.35;
        white-space: normal !important;
        text-overflow: unset;
        overflow: visible;
    }

    .banner-close {
        min-width: 40px;
        min-height: 40px;
    }

    /* Header */
    .navbar {
        padding: 8px 0;
    }

    .logo-img {
        height: 36px;
    }

    /* Hero */
    .hero {
        padding: 12px 0 16px;
    }

    .hero-content {
        text-align: left;
    }

    .hero h1 {
        font-size: clamp(1.38rem, 6.4vw, 1.72rem) !important;
        line-height: 1.16 !important;
        min-height: 0 !important;
        font-family: Montserrat, sans-serif !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .hero-text {
        text-align: left;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        margin-bottom: 12px !important;
    }

    .hero-ctas .btn-primary {
        width: 100%;
        min-height: 48px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .hero-ctas .btn-outline {
        display: none !important;
    }

    .hero-visual-v6 .hero-book-cover {
        width: min(130px, 36vw) !important;
    }

    .hero-visual-v6 .hero-page-sample img {
        width: min(112px, 31vw) !important;
    }

    .hero-visual-v6 .hero-page-sample {
        position: relative;
        max-width: min(112px, 31vw);
    }

    .hero-visual-v6 .hero-page-label {
        position: absolute;
        top: 4px;
        right: 4px;
        left: auto;
        bottom: auto;
        margin: 0;
        padding: 2px 6px;
        font-size: 12px;
        line-height: 1.15;
        font-weight: 700;
        color: #1a2328;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 999px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
        white-space: nowrap;
        max-width: none;
        letter-spacing: 0;
    }

    .hero-visual.hero-visual-v6 {
        margin-top: 10px;
    }

    /* Prix + livraison (hero, fiches, tomes, packs, panier, ebooks, sticky) */
    .m-price-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin: 0;
        text-align: left;
        max-width: 100%;
    }

    .hero-info-line.m-price-meta {
        margin-top: 10px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .hero-text .m-price-value {
        font-size: 1.05rem;
        font-weight: 700;
        color: #142820;
        line-height: 1.2;
        letter-spacing: 0.01em;
    }

    .m-price-row {
        margin: 0;
    }

    .m-price-ship-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        margin: 0;
        font-size: 0.72rem;
        line-height: 1.35;
        font-weight: 500;
        color: #5c676c;
    }

    .m-price-ship-row .m-price-icon {
        flex: 0 0 auto;
        line-height: 1;
        font-size: 0.9em;
    }

    .m-ship-note {
        color: #7a848a;
        font-weight: 400;
    }

    .pack-shipping.free-shipping.m-price-ship-row,
    .pack-shipping.free-shipping.m-price-ship-row span:not(.m-price-icon) {
        color: #047857;
    }

    .m-price-ebook {
        margin: 0;
        font-size: 0.68rem;
        line-height: 1.3;
        color: #8a9399;
        font-weight: 400;
    }

    .book-purchase .m-price-meta--book {
        gap: 2px;
        width: 100%;
    }

    .book-purchase .m-price-meta--book .price-amount {
        font-size: 1.65rem;
        font-weight: 800;
        color: #142820;
        line-height: 1.1;
    }

    .book-shipping-line.m-price-ship-row,
    .tome-ship-line.m-price-ship-row,
    .pack-shipping.m-price-ship-row {
        color: #5c676c !important;
        margin: 0 !important;
        font-size: 0.68rem;
        line-height: 1.3;
        max-width: 20em;
    }

    .book-shipping-line.m-price-ship-row--compact,
    .m-price-ship-row--compact {
        max-width: none;
        flex-wrap: nowrap;
        white-space: nowrap;
        font-size: 0.72rem;
    }

    .m-ship-compact {
        font-weight: 500;
    }

    .book-shipping-line.m-price-ship-row .m-ship-note,
    .tome-ship-line.m-price-ship-row .m-ship-note,
    .pack-shipping.m-price-ship-row .m-ship-note {
        white-space: nowrap;
    }

    .m-price-meta--tome {
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 2px;
    }

    .m-price-meta--tome .tome-price {
        font-size: 1.05rem;
        font-weight: 800;
        margin: 0;
    }

    .m-price-meta--tome .tome-ship-line {
        justify-content: center;
        font-size: 0.65rem;
        max-width: 11.5em;
    }

    .m-price-meta--pack {
        gap: 6px;
        margin-bottom: 8px;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .pack-card .pack-pricing {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .m-price-meta--pack .pack-new-price {
        font-family: Montserrat, sans-serif !important;
        font-size: 2.35rem !important;
        font-weight: 800 !important;
        line-height: 1.05;
        letter-spacing: -0.02em !important;
        color: #142820;
    }

    .m-price-meta--pack .pack-shipping.m-price-ship-row {
        justify-content: center;
        max-width: none;
    }

    .ebook-price {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px !important;
        margin-bottom: 10px !important;
    }

    .ebook-amount {
        font-size: 1.45rem !important;
        line-height: 1.1;
    }

    .ebook-price-note {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        max-width: 16em;
    }

    .cart-shipping-row {
        align-items: baseline;
        font-size: 0.85rem !important;
    }

    .cart-shipping-amount {
        font-weight: 600;
        text-align: right;
    }

    .cart-be-line {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        color: #6b7580 !important;
        margin-bottom: 8px !important;
    }

    .cart-be-main {
        display: block;
    }

    .cart-be-delai {
        display: block;
        font-size: 0.92em;
        opacity: 0.9;
    }

    /* Preuves */
    .social-proof:has(.proof-items-v6) {
        padding: 14px 0;
    }

    .proof-items-v6 .proof-label,
    .proof-items-v6 .proof-label strong {
        font-size: 12px !important;
        line-height: 1.28;
    }

    /* Dedans */
    .dedans-carousel .dedans-card {
        flex: 0 0 calc(100% / 1.25);
    }

    .dedans-carousel .preview-thumb img {
        aspect-ratio: 400 / 566;
        object-fit: contain;
    }

    /* Guide / quiz inline */
    .guide-grid {
        gap: 12px;
    }

    .guide-card {
        padding: 16px 14px;
    }

    .quiz-q {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    /* Livres — grille tomes */
    .tomes-grid {
        gap: 10px;
        margin-bottom: 16px;
    }

    .tome-card {
        padding: 10px 8px;
    }

    .tome-card img {
        max-width: 72px;
    }

    .livres-hero-shot {
        display: none;
    }

    .book-detail,
    .book-detail.reverse {
        display: grid;
        grid-template-columns: 108px 1fr;
        column-gap: 12px;
        row-gap: 6px;
        padding: 18px 14px;
        margin-bottom: 18px;
        border: 1px solid #e8ecee;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(20, 28, 33, 0.06);
        text-align: left;
    }

    .book-detail::after {
        display: none;
    }

    .book-detail .book-image {
        float: none;
        grid-column: 1;
        grid-row: 1 / 4;
        width: 108px;
        margin: 0;
        position: relative;
        align-self: start;
    }

    .book-detail .book-info {
        display: contents;
    }

    .book-info .book-tag {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .book-info .m-v2-tome-label {
        grid-column: 2;
        grid-row: 2;
    }

    .book-info h3 {
        grid-column: 2;
        grid-row: 3;
    }

    .book-info .book-purchase {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .book-info .m-v2-book-more {
        grid-column: 1 / -1;
        grid-row: 5;
    }

    .book-detail .book-image > img {
        width: 100% !important;
        max-width: none;
        border-radius: 6px;
        display: block;
    }

    .book-detail .book-image > .book-badge {
        display: none;
    }

    .book-detail .book-image > .book-stock {
        display: none;
    }

    .book-info .m-v2-tome-label {
        display: inline-block;
        position: static;
        transform: none;
        margin: 0 0 6px;
        padding: 3px 9px;
        font-size: 0.68rem;
        font-weight: 700;
        box-shadow: none;
    }

    .book-purchase .book-stock-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        line-height: 1.35;
        color: #047857;
        margin: 0;
        white-space: nowrap;
    }

    .book-info h3 {
        font-family: Montserrat, sans-serif !important;
        font-size: var(--m-v2-book-title) !important;
        line-height: 1.18 !important;
        letter-spacing: 0.01em !important;
        text-transform: none !important;
        margin-bottom: 8px;
    }

    .book-info .book-tag {
        margin-bottom: 6px;
        font-size: 0.72rem;
    }

    .book-purchase {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid #eef2f3;
    }

    .book-purchase .book-price {
        margin: 0;
    }

    .book-purchase .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        border-radius: 12px;
        white-space: nowrap;
        font-size: 0.94rem;
        padding-left: 12px;
        padding-right: 12px;
    }

    .price-amount {
        font-size: 1.65rem;
    }

    .m-v2-book-more {
        margin-top: 8px;
        border: 1px solid #e4eaec;
        border-radius: 12px;
        overflow: hidden;
        background: #fafcfd;
    }

    .m-v2-book-more > summary {
        list-style: none;
        cursor: pointer;
        padding: 12px 14px;
        font-size: 0.88rem;
        font-weight: 600;
        color: #0E7C92;
    }

    .m-v2-book-more > summary::-webkit-details-marker {
        display: none;
    }

    .m-v2-book-more > summary::after {
        content: " ▾";
        float: right;
        opacity: 0.7;
    }

    .m-v2-book-more[open] > summary::after {
        content: " ▴";
    }

    .m-v2-book-more .book-description,
    .m-v2-book-more .book-highlights,
    .m-v2-book-more .book-preview {
        padding: 0 14px 14px;
    }

    .book-description {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .book-highlights li {
        display: flex;
        gap: 8px;
        align-items: flex-start;
        font-size: 0.88rem;
        padding: 4px 0;
    }

    .book-highlights li::before {
        position: static;
        flex: 0 0 1em;
    }

    .book-preview-label {
        font-size: 0.72rem;
        margin-bottom: 8px;
        text-transform: none;
        letter-spacing: 0;
    }

    .book-preview-strip,
    .pack-preview .book-preview-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .preview-thumb {
        flex: 0 0 38%;
        width: auto !important;
        height: auto !important;
        min-width: 120px;
        max-width: 150px;
        scroll-snap-align: start;
    }

    .preview-thumb img {
        width: 100%;
        height: auto !important;
        aspect-ratio: 400 / 566;
        object-fit: cover;
    }

    /* Packs carrousel */
    #packs.section {
        padding-bottom: calc(var(--m-v2-section-y) + 72px);
    }

    .packs-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .pack-card {
        flex: 0 0 86%;
        max-width: 86%;
        scroll-snap-align: center;
        max-height: none !important;
        overflow: visible !important;
    }

    .pack-card .add-to-cart {
        white-space: normal !important;
        line-height: 1.25;
        min-height: 48px;
        font-size: 0.92rem;
    }

    .packs .shipping-info-v6 {
        margin-top: 16px;
        margin-bottom: calc(8px + env(safe-area-inset-bottom, 0));
        gap: 8px;
    }

    .shipping-info-v6 .shipping-card {
        padding: 12px 14px;
        text-align: center;
        justify-content: center;
    }

    .shipping-info-v6 .shipping-card strong,
    .shipping-info-v6 .m-packs-ship-banner {
        font-family: Montserrat, sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.35;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 390px) {
        .shipping-info-v6 .m-packs-ship-banner {
            white-space: normal;
            font-size: 0.68rem;
        }
    }

    .shipping-info-v6 .shipping-card p {
        font-size: 0.72rem;
        margin: 0;
    }

    .pack-books {
        margin-bottom: 12px;
    }

    .pack-thumb {
        width: 48px;
    }

    .pack-card.pack-featured .pack-thumb {
        width: 40px;
        margin-left: -8px;
    }

    /* Ebooks, auteure, avis */
    .section-header,
    .section-desc,
    #auteure .section-header,
    #auteure .author-content,
    .author-bio,
    .author-bio h3,
    .author-bio p,
    .author-quote,
    .author-quote p,
    .collection .section-desc,
    .testimonials .section-desc,
    .guide .section-desc,
    .packs .section-desc,
    .dedans .section-desc,
    .livres .section-desc {
        text-align: left !important;
    }

    .section-desc,
    .author-bio p,
    .author-quote p,
    .author-bio h3 {
        max-width: 38em;
        line-height: 1.55;
        margin-left: 0;
        margin-right: auto;
    }

    .author-content {
        text-align: left !important;
    }

    .author-placeholder {
        margin-left: 0;
        margin-right: auto;
    }

    .pack-name {
        font-family: Montserrat, sans-serif !important;
        font-size: 1.12rem !important;
        line-height: 1.15 !important;
        letter-spacing: 0.01em !important;
        text-transform: none !important;
        font-weight: 700 !important;
    }

    .ebooks-grid,
    .testimonials-grid {
        gap: 14px;
    }

    /* Coulisses auteure — carrousel + légendes sous les photos */
    .author-gallery {
        margin-top: 28px;
    }

    .author-gallery-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding: 0 2px 10px;
        -webkit-overflow-scrolling: touch;
    }

    .author-gallery-grid figure {
        flex: 0 0 78%;
        max-width: 78%;
        scroll-snap-align: center;
        margin: 0;
        position: relative;
        aspect-ratio: auto;
        overflow: visible;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(20, 28, 33, 0.1);
        background: #fff;
        display: flex;
        flex-direction: column;
    }

    .author-gallery-grid img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        border-radius: 14px 14px 0 0;
        transition: none;
    }

    .author-gallery-grid figure:hover img {
        transform: none;
    }

    .author-gallery-grid figcaption {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        padding: 10px 10px 12px !important;
        color: #374151 !important;
        background: #fff !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        line-height: 1.35;
        text-align: center;
    }

    .book-stock-mobile {
        display: none;
    }

    .book-purchase .book-stock-mobile {
        display: flex;
    }

    .ebook-card {
        border-radius: 14px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* FAQ */
    .faq-item {
        border-radius: 12px;
    }

    .faq-question {
        font-size: 0.95rem;
        line-height: 1.35;
        padding: 14px 16px;
    }

    .footer {
        padding: 32px 0 24px;
    }

    .footer-grid {
        gap: 20px;
    }

    /* Sticky CTA */
    .sticky-cta {
        max-height: 56px;
        padding: 6px 12px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
    }

    .sticky-cta-btn {
        min-height: 44px;
        font-size: 0.88rem;
        padding: 8px 14px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        line-height: 1.15;
    }

    .sticky-cta-label {
        font-weight: 700;
        font-size: 0.92rem;
    }

    .sticky-cta-sub {
        font-size: 0.72rem;
        font-weight: 500;
        opacity: 0.92;
    }

    body:has(.sticky-cta.visible) {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
    }

    /* Cookies */
    #moiCookie {
        max-height: 64px !important;
        padding: 8px 10px !important;
        left: 8px !important;
        right: 8px !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0)) !important;
    }

    #moiCookie > div:first-child {
        font-size: 11px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #moiCookieAccept,
    #moiCookieRefuse {
        min-height: 40px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    body.cart-open .cart-footer {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
    }

    /* Panier plein écran mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    /* Checkout page */
    .checkout-page .chk-header {
        padding: 12px 16px;
    }

    .checkout-page .chk-main {
        padding: 16px;
    }
}

@media (min-width: 961px) {
    .m-v2-tome-label,
    .book-stock-mobile {
        display: none !important;
    }

    .m-v2-book-more {
        display: contents;
    }

    .m-v2-book-more > summary {
        display: none;
    }

    .book-info .book-purchase {
        order: 20;
    }
}

@media (max-width: 960px) {
    .quiz-page .wrap {
        padding: 18px 16px 72px;
    }

    .quiz-page h1 {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
        line-height: 1.15;
    }

    .quiz-page .opt {
        padding: 14px 12px;
        font-size: 0.92rem;
        line-height: 1.35;
    }
}
