/* ==========================================
   JM MOTO - CUSTOM SUITS PAGE
   ========================================== */

.jm-page,
.jm-page * {
    box-sizing: border-box !important;
}

.jm-page {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.5 !important;
    color: #171717 !important;
}

.jm-page h1,
.jm-page h2,
.jm-page h3,
.jm-page p {
    margin-top: 0 !important;
}

.jm-section {
    padding: 55px 35px !important;
    width: 100% !important;
}

.jm-light {
    background: #f2f2f2 !important;
}

.jm-dark {
    background: #101010 !important;
    color: #fff !important;
}

.jm-dark h2,
.jm-dark h3,
.jm-dark p {
    color: #fff !important;
}

.jm-line {
    display: block !important;
    width: 70px !important;
    height: 5px !important;
    background: #d71920 !important;
    margin: 15px 0 25px !important;
}


/* HERO */

.jm-hero {
    display: block !important;
    background: #0b0b0b !important;
    color: #fff !important;
    padding: 70px 40px !important;
    border-bottom: 7px solid #d71920 !important;
}

.jm-hero h1 {
    color: #fff !important;
    font-size: 52px !important;
    line-height: 1.05 !important;
    margin: 0 0 20px !important;
}

.jm-hero p {
    color: #fff !important;
    font-size: 19px !important;
    max-width: 700px !important;
}

.jm-small-title {
    color: #d71920 !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px !important;
}


/* LANGUAGE BAR */

.jm-language {
    display: block !important;
    background: #d71920 !important;
    color: #fff !important;
    padding: 12px 25px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}


/* OPTION CARDS */

.jm-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
}

.jm-card {
    display: block !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-top: 5px solid #d71920 !important;
    padding: 22px !important;
    min-height: 150px !important;
}

.jm-card h3 {
    color: #111 !important;
    font-size: 19px !important;
    margin: 0 0 8px !important;
}

.jm-card p {
    color: #333 !important;
    margin: 0 !important;
}


/* 8 ORDERING STEPS */

.jm-process {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
}

.jm-step {
    display: block !important;
    background: #202020 !important;
    border: 1px solid #333 !important;
    padding: 22px !important;
    min-height: 230px !important;
}

.jm-number {
    display: block !important;
    color: #d71920 !important;
    font-size: 45px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-bottom: 15px !important;
}

.jm-step h3 {
    color: #fff !important;
    font-size: 19px !important;
    margin: 0 0 10px !important;
}

.jm-step p {
    color: #ddd !important;
    font-size: 15px !important;
}


/* MEASUREMENT WARNINGS */

.jm-warning {
    display: block !important;
    background: #fff !important;
    color: #111 !important;
    border-left: 6px solid #d71920 !important;
    padding: 20px !important;
    margin: 25px 0 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.08) !important;
}

.jm-warning strong {
    color: #d71920 !important;
}

.jm-list {
    margin: 20px 0 !important;
    padding-left: 25px !important;
}

.jm-list li {
    margin-bottom: 9px !important;
}


/* BUTTON */

.jm-button {
    display: inline-block !important;
    background: #d71920 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 24px !important;
    font-weight: 800 !important;
    margin-top: 15px !important;
    border-radius: 3px !important;
}


/* AI SECTION */

.jm-ai {
    display: block !important;
    background: #151515 !important;
    color: #fff !important;
    padding: 30px !important;
    border-left: 7px solid #d71920 !important;
}

.jm-ai h2,
.jm-ai p,
.jm-ai strong {
    color: #fff !important;
}


/* FINAL CTA */

.jm-cta {
    display: block !important;
    background: #d71920 !important;
    color: #fff !important;
    padding: 60px 30px !important;
    text-align: center !important;
}

.jm-cta h2 {
    color: #fff !important;
    font-size: 40px !important;
}

.jm-cta p {
    color: #fff !important;
    font-size: 18px !important;
}

.jm-cta .jm-button {
    background: #000 !important;
}


/* TABLET */

@media (max-width: 850px) {

    .jm-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .jm-process {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }
}


/* PHONE */

@media (max-width: 600px) {

    .jm-page {
        width: 100% !important;
    }

    .jm-section {
        padding: 38px 18px !important;
    }

    .jm-hero {
        padding: 48px 20px !important;
    }

    .jm-hero h1 {
        font-size: 38px !important;
    }

    .jm-hero p {
        font-size: 17px !important;
    }

    .jm-grid,
    .jm-process {
        grid-template-columns: 1fr !important;
    }

    .jm-card,
    .jm-step {
        min-height: 0 !important;
    }

    .jm-cta {
        padding: 45px 20px !important;
    }

    .jm-cta h2 {
        font-size: 32px !important;
    }
}/* ===== PHOTO PRINCIPALE JM MOTO ===== */

.jm-main-photo {
    width: 100% !important;
    background: #000 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.jm-main-photo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

@media (min-width: 800px) {
    .jm-main-photo {
        text-align: center !important;
        padding: 35px !important;
    }

    .jm-main-photo img {
        max-width: 650px !important;
    }
}/* ==========================================
   JM MOTO - GALLERY
   ========================================== */

.jm-gallery-section {
    background: #f4f4f4 !important;
}

.jm-gallery-intro {
    max-width: 750px !important;
    margin-bottom: 30px !important;
}

.jm-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}

.jm-gallery-item {
    margin: 0 !important;
    padding: 0 !important;
    background: #111 !important;
    overflow: hidden !important;
    position: relative !important;
}

.jm-gallery-item img {
    display: block !important;
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
}

.jm-gallery-item figcaption {
    background: #111 !important;
    color: #fff !important;
    padding: 13px 15px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-top: 3px solid #d71920 !important;
}

.jm-gallery-large {
    grid-column: span 2 !important;
}

.jm-gallery-large img {
    height: auto !important;
    max-height: 800px !important;
    object-fit: contain !important;
    background: #111 !important;
}


/* MATCHING SUIT + GLOVES */

.jm-matching {
    margin-top: 45px !important;
    padding: 30px !important;
    background: #111 !important;
    color: #fff !important;
    border-top: 6px solid #d71920 !important;
}

.jm-matching h2,
.jm-matching p {
    color: #fff !important;
}

.jm-matching-text {
    max-width: 750px !important;
    margin-bottom: 25px !important;
}

.jm-matching-images {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 15px !important;
    align-items: stretch !important;
}

.jm-matching-images img {
    display: block !important;
    width: 100% !important;
    height: 500px !important;
    object-fit: contain !important;
    background: #fff !important;
    margin: 0 !important;
}


/* MOBILE */

@media (max-width: 600px) {

    .jm-gallery {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .jm-gallery-large {
        grid-column: span 1 !important;
    }

    .jm-gallery-item img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .jm-matching {
        padding: 20px !important;
        margin-top: 30px !important;
    }

    .jm-matching-images {
        grid-template-columns: 1fr !important;
    }

    .jm-matching-images img {
        height: auto !important;
    }
} 
 
    background: #d71920 !important;
}/* ===== JM MOTO LANGUAGE SELECTOR ===== */

.jm-lang-radio {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
}

.jm-lang-selector {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px !important;
    background: #080808 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

.jm-lang-btn {
    flex: 1 !important;
    max-width: 180px !important;
    padding: 11px 15px !important;
    background: #222 !important;
    color: #fff !important;
    border: 2px solid #d71920 !important;
    border-radius: 3px !important;
    text-align: center !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.jm-french-content {
    display: block !important;
}

.jm-english-content {
    display: none !important;
}

.jm-page:has(#jm-fr:checked) .jm-french-content {
    display: block !important;
}

.jm-page:has(#jm-fr:checked) .jm-english-content {
    display: none !important;
}

.jm-page:has(#jm-en:checked) .jm-french-content {
    display: none !important;
}

.jm-page:has(#jm-en:checked) .jm-english-content {
    display: block !important;
}

.jm-page:has(#jm-fr:checked) .jm-fr-button {
    background: #d71920 !important;
}

.jm-page:has(#jm-fr:checked) .jm-en-button {
    background: #222 !important;
}

.jm-page:has(#jm-en:checked) .jm-en-button {
    background: #d71920 !important;
}

.jm-page:has(#jm-en:checked) .jm-fr-button {
    background: #222 !important;
}

@media (max-width: 600px) {
    .jm-lang-btn {
        max-width: none !important;
        padding: 10px 5px !important;
        font-size: 13px !important;
    }
}/* ===== CORRECTION BOUTONS FR / EN COTE A COTE ===== */

.jm-page .jm-lang-selector {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px !important;
    box-sizing: border-box !important;
}

.jm-page .jm-lang-selector .jm-lang-btn {
    display: flex !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 135px !important;
    max-width: 180px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;

    align-items: center !important;
    justify-content: center !important;

    line-height: 1.2 !important;
    text-align: center !important;
}

/* Cache complètement les boutons radio */
.jm-page > .jm-lang-radio {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 600px) {

    .jm-page .jm-lang-selector {
        gap: 8px !important;
        padding: 10px !important;
    }

    .jm-page .jm-lang-selector .jm-lang-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 170px !important;
        padding: 11px 8px !important;
        font-size: 14px !important;
    }
}/* =====================================================
   JM MOTO - CORRECTION RESPONSIVE MOBILE
   ===================================================== */

/* Empêche les éléments de dépasser de l'écran */
.jm-page,
.jm-page * {
    box-sizing: border-box !important;
}

.jm-page {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
}

.jm-page img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* ---------- SÉLECTEUR DE LANGUE ---------- */

.jm-page .jm-lang-selector {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;

    padding: 10px !important;
    margin: 0 !important;

    background: #080808 !important;
}

.jm-page .jm-lang-selector .jm-lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 11px 6px !important;

    text-align: center !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}


/* ---------- SECTIONS ---------- */

.jm-page .jm-section {
    width: 100% !important;
    max-width: 100% !important;
}


/* ---------- TEXTES ---------- */

.jm-page h1,
.jm-page h2,
.jm-page h3,
.jm-page p,
.jm-page li {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}


/* ---------- GALERIE ---------- */

.jm-page .jm-gallery {
    width: 100% !important;
}

.jm-page .jm-gallery-item {
    min-width: 0 !important;
}

.jm-page .jm-gallery img,
.jm-page .jm-matching-images img,
.jm-page .jm-main-photo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}


/* =====================================================
   TÉLÉPHONES
   ===================================================== */

@media screen and (max-width: 767px) {

    .jm-page {
        width: 100% !important;
        max-width: 100% !important;
    }

    .jm-page .jm-section {
        padding: 30px 18px !important;
    }

    .jm-page .jm-hero {
        padding: 40px 18px !important;
    }

    .jm-page .jm-hero h1 {
        font-size: clamp(30px, 9vw, 42px) !important;
        line-height: 1.05 !important;
    }

    .jm-page h2 {
        font-size: clamp(24px, 7vw, 32px) !important;
        line-height: 1.1 !important;
    }

    .jm-page h3 {
        line-height: 1.2 !important;
    }


    /* Une colonne sur téléphone */

    .jm-page .jm-grid,
    .jm-page .jm-process {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .jm-page .jm-card,
    .jm-page .jm-step {
        width: 100% !important;
        min-width: 0 !important;
    }


    /* Galerie */

    .jm-page .jm-gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .jm-page .jm-gallery-item,
    .jm-page .jm-gallery-large {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: auto !important;
    }


    /* Combinaison + gants */

    .jm-page .jm-matching {
        display: block !important;
    }

    .jm-page .jm-matching-images {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }


    /* Boutons */

    .jm-page .jm-button {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
    }


    /* FR / EN */

    .jm-page .jm-lang-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 8px !important;
    }

    .jm-page .jm-lang-selector .jm-lang-btn {
        font-size: clamp(12px, 3.5vw, 15px) !important;
        padding: 11px 3px !important;
    }
}


/* =====================================================
   TRÈS PETITS TÉLÉPHONES
   ===================================================== */

@media screen and (max-width: 380px) {

    .jm-page .jm-section {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .jm-page .jm-hero {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .jm-page .jm-lang-selector {
        gap: 5px !important;
        padding: 6px !important;
    }

    .jm-page .jm-lang-selector .jm-lang-btn {
        font-size: 12px !important;
        padding: 10px 2px !important;
    }
}/* ======================================================
   GALERIE HORIZONTALE - JM MOTO
====================================================== */

.jm-gallery-section {
    width: 100% !important;
    overflow: hidden !important;
}

.jm-photo-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;

    width: 100% !important;
    max-width: 100% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;

    -webkit-overflow-scrolling: touch !important;

    padding: 15px 0 25px 0 !important;
}

.jm-photo-scroll img {
    display: block !important;

    flex: 0 0 320px !important;

    width: 320px !important;
    height: 430px !important;

    object-fit: cover !important;
    object-position: center !important;

    scroll-snap-align: start !important;

    border-radius: 5px !important;
}


/* ===== MOBILE ===== */

@media screen and (max-width: 767px) {

    .jm-photo-scroll {
        gap: 10px !important;
        padding-bottom: 18px !important;
    }

    .jm-photo-scroll img {
        flex: 0 0 82vw !important;

        width: 82vw !important;
        max-width: 330px !important;

        height: 440px !important;
    }
}


/* ===== PETITS TÉLÉPHONES ===== */

@media screen and (max-width: 380px) {

    .jm-photo-scroll img {
        flex-basis: 85vw !important;
        width: 85vw !important;
        height: 410px !important;
    }
}/* ===== JM MOTO SIZE CHART ===== */

.jm-size-chart {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 15px auto;
    text-align: center;
}

.jm-size-chart img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

.jm-size-chart a {
    display: block;
}

.jm-chart-note {
    text-align: center;
    font-size: 14px;
    margin-top: 10px !important;
    opacity: 0.75;
}