/* ============================================================
   RESPONSIVE.CSS — Tablettes & Téléphones
   Ne modifie aucun style desktop, uniquement des media queries.
   ============================================================ */

/* ──────────────────────────────────────────────────────────────
   TABLETTE (768px – 1250px)
   Le breakpoint 1250px bascule déjà en layout mobile (hamburger).
   On ajuste ici les éléments qui restent trop larges ou mal
   espacés entre 768 et 1250.
   ────────────────────────────────────────────────────────────── */

@media (max-width: 1250px) and (min-width: 769px) {

    /* ── Formulaires : champs côte à côte mais plus larges ── */
    .boxPrenom, .boxNom, .boxEmail, .boxTel {
        width: 50%;
    }

    .boxMessage, .boxSumbit, .boxAdresse {
        width: 90%;
    }

    .rowSectionTitle {
        width: 90%;
    }

    .rowDocuments {
        width: 90%;
    }

    .boxMessage input {
        width: 100%;
        height: 40px;
    }

    /* ── Bandeau téléphone / contact (home) ── */
    .rowContactPhone {
        padding: 0 20px;
    }

    .rowLogo-header-phone .boxLeft,
    .rowLogo-header-phone .boxRight {
        margin-bottom: 20px;
    }

    /* ── rowNumTel ── */
    .rowNumTel {
        width: 80%;
        padding: 50px 40px;
    }

    /* ── Footer ── */
    .footer_area {
        padding: 40px 30px;
    }

    /* ── Legal PDF ── */
    .legal-content iframe {
        height: 600px;
    }

    /* ── Depuis 35 ans ── */
    .rowDepuis35ans {
        padding: 60px 20px !important;
    }

    /* ── Avis Google ── */
    .rowAvisGoogle {
        width: 100%;
    }

    /* ── boxQuiSommeNous titre ── */
    .boxQuiSommeNous-left-rouge h2 {
        font-size: 36px;
    }

    /* ── Intro ── */
    #aboutpage .rowIntro h2 {
        font-size: 28px;
    }
}

/* ──────────────────────────────────────────────────────────────
   TÉLÉPHONE (≤ 768px)
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

    /* ── Contenu global ── */
    .content {
        overflow-x: hidden;
    }

    /* ── Hero (home page) ── */
    .rowHome {
        height: auto;
    }

    .rowHome img[alt="Image de présentation"] {
        margin-top: -50px;
        margin-bottom: -50px;
        animation: none;
    }

    /* ── headerHomePage (navbar sur hero) ── */
    .headerHomePage {
        display: none;
    }

    /* ── Intro ── */
    .rowIntro {
        padding: 30px 15px 50px 15px;
    }

    .rowIntro h2 {
        font-size: 18px !important;
        letter-spacing: 1px;
    }

    .rowIntro h6 {
        font-size: 10px !important;
    }

    #aboutpage .rowIntro {
        padding: 25px 15px 25px 15px !important;
    }

    #aboutpage .rowIntro h2 {
        font-size: 22px !important;
    }

    .rowDepuis35ans {
        padding: 50px 15px !important;
    }

    .rowDepuis35ans h6 {
        font-size: 1rem !important;
    }

    /* ── Bandeau contact mobile (home) ── */
    .rowContactPhone {
        padding: 0 10px;
    }

    .rowLogo-header-phone {
        padding: 10px 0;
    }

    .rowLogo-header-phone .boxLeft,
    .rowLogo-header-phone .boxRight {
        flex-direction: column;
        margin-bottom: 15px;
        font-size: 13px;
    }

    .rowLogo-header-phone .boxLeft span,
    .rowLogo-header-phone .boxRight span {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* ── Sections boxR / boxL ── */
    .boxR .left,
    .boxL .right {
        padding: 30px 20px !important;
    }

    .boxR .left *,
    .boxL .right * {
        font-size: 14px;
        line-height: 24px;
    }

    .boxNosService .left {
        padding: 30px 20px !important;
    }

    .boxNosService .left .rowTxt .titre {
        font-size: 22px;
    }

    .boxNosService .left .rowTxt .desc {
        font-size: 14px;
    }

    /* ── Qui sommes-nous ── */
    .boxQuiSommeNous-left-rouge {
        padding: 35px 15px;
    }

    .boxQuiSommeNous-left-rouge h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .boxQuiSommeNous .right {
        padding: 30px 20px !important;
    }

    .boxQuiSommeNous .right * {
        font-size: 14px;
        line-height: 24px;
    }

    /* ── Prépacode (complète le breakpoint existant) ── */
    .prepacode-section {
        width: 100%;
        padding: 30px 15px;
    }

    .prepacode-desc,
    .prepacode-contact,
    .prepacode-subtitle {
        font-size: 14px;
        line-height: 24px;
    }

    /* ── Formulaires : tout en colonne ── */
    .rowInfo,
    .rowEmail {
        flex-direction: column;
        align-items: center;
        margin: 5px 0;
    }

    .boxPrenom, .boxNom, .boxEmail, .boxTel {
        width: 90% !important;
        padding: 8px 15px;
    }

    .boxMessage {
        width: 90% !important;
        padding: 8px 15px;
    }

    .boxAdresse {
        width: 90% !important;
        padding: 8px 15px;
    }

    .boxMessage input {
        width: 100%;
        height: 40px;
    }

    .boxMessage textarea {
        min-height: 150px;
    }

    .boxSumbit {
        width: 90%;
        padding: 10px 15px;
        justify-content: center;
    }

    .boxSumbit button {
        width: 100% !important;
        max-width: 320px;
        height: 48px;
        font-size: 14px;
    }

    .rowSectionTitle {
        width: 90%;
        padding: 10px 15px 0 15px;
    }

    .rowSectionTitle h5 {
        font-size: 14px;
    }

    /* ── Sélects (inscription) ── */
    .rowNousContacter select {
        font-size: 13px;
    }

    /* ── Description / erreurs / rdv ── */
    .rowRdvDesc {
        padding: 0 15px;
        font-size: 14px;
        line-height: 22px;
    }

    .errorMsg {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* ── Téléphone ── */
    .rowNumTel {
        width: 90%;
        padding: 40px 20px;
    }

    .rowNumTel h2 {
        font-size: 22px;
    }

    .rowNumTel h5 {
        font-size: 18px;
    }

    /* ── Documents (inscription) ── */
    .rowDocuments {
        width: 95%;
        padding: 30px 15px 40px 15px;
    }

    .rowDocuments h3 {
        font-size: 18px;
    }

    .rowDocuments h4 {
        font-size: 15px;
    }

    .docsInscription summary {
        padding: 14px 16px;
        font-size: .95rem;
    }

    .docsInscriptionBody {
        padding: 16px 18px;
    }

    .documentsRichText h1 {
        font-size: 1.5rem;
    }

    .documentsRichText h2 {
        font-size: 1.25rem;
    }

    .documentsRichText h3 {
        font-size: 1.05rem;
    }

    .rowDocuments p,
    .rowDocuments ul li {
        font-size: 13px;
    }

    /* ── Carte (où nous trouver) ── */
    .rowOuNousTrouver .rowTitre {
        font-size: 22px !important;
        padding: 30px 15px 20px 15px !important;
        text-align: center;
    }

    .rowOuNousTrouver .iframe iframe {
        height: 300px;
    }

    /* ── Legal page PDF ── */
    .legal-content {
        padding: 20px 10px 40px;
    }

    .legal-content iframe {
        height: 500px;
    }

    /* ── Avis Google ── */
    .rowAvisGoogle {
        padding: 30px 10px;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .rowAccueilAvisGoogle {
        width: 100%;
        margin-bottom: 30px;
    }

    .rowAccueilAvisGoogle .avis-carousel-wrapper {
        padding: 0 15px;
    }

    .rowAvisGoogle .avis-header .rowTitre {
        font-size: 22px;
        letter-spacing: 2px;
        padding: 0 0 24px 30px;
    }

    .avis-cta {
        margin-top: 25px;
    }

    .btn-avis-google,
    .btn-avis-social {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* ── Footer ── */
    .footer_area {
        padding: 30px 20px;
    }

    .footer_area .row {
        margin-left: 0;
        margin-right: 0;
        gap: 0;
    }

    .footer_area .row .col,
    .footer_area .row .col-12,
    .footer_area .row .col-sm-6,
    .footer_area .row .col-lg,
    .footer_area .row .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }

    .single-footer-widget {
        margin-bottom: 15px;
    }

    .single-footer-widget .widget-title {
        margin-bottom: 1rem;
        font-size: 16px;
    }

    .footer-contact-block p {
        font-size: 14px;
    }

    .single-footer-widget .footer_menu li a {
        font-size: 14px;
        margin-bottom: 0.6rem;
    }

    .rowCopyright {
        font-size: 13px;
        padding-bottom: 20px;
    }

    /* ── Bandeau rendez-vous ── */
    .rowRdvBanner {
        padding: 30px 12px;
    }

    .rdvBannerTitle {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .rdvBannerSubtitle {
        font-size: 14px;
    }

    .btnRdv {
        font-size: 13px;
        padding: 10px 22px;
    }

    /* ── Formations grid (inline styles override) ── */
    .formationsPage .formationsTitle h1,
    .formationsPage .formationsTitle h2 {
        font-size: 1.6rem;
    }

    .formationsPage .formationsTitle p {
        font-size: 0.95rem;
    }

    /* ── Formation show page ── */
    .formationShowPage .formationMainTitle {
        font-size: 1.4rem !important;
    }

    .formationContent {
        font-size: 0.95rem;
    }

    .formationContent h1 {
        font-size: 1.5rem;
    }

    .formationContent h2 {
        font-size: 1.2rem;
    }

    .formationActions .btnAction {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* ── Tarifs ── */
    .pricingForfait .forfaitAmount {
        font-size: 38px;
    }

    .pricingItem {
        padding: 12px 14px;
    }

    .pricingItem .itemLabel {
        font-size: 13px;
    }

    .pricingItem .itemPrice {
        font-size: 14px;
    }

    .tarifsTabBtn {
        font-size: 12px;
        padding: 10px 8px;
    }

    .tarifCtaBtn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* ── Side menu ── */
    .sideMenuContent .rowLink * {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* ── Nous contacter add ── */
    .rowNousContacterAdd {
        flex-direction: column;
        padding: 30px 15px;
    }

    .rowNousContacterAdd .boxBtn {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .rowNousContacterAdd .rowTitre {
        font-size: 22px;
    }

    .rowNousContacterAdd .rowDesc {
        font-size: 14px;
    }
}

/* ──────────────────────────────────────────────────────────────
   TRÈS PETIT ÉCRAN (≤ 400px)
   ────────────────────────────────────────────────────────────── */

@media (max-width: 400px) {

    .rowIntro h2 {
        font-size: 16px !important;
    }

    #aboutpage .rowIntro h2 {
        font-size: 18px !important;
    }

    .boxQuiSommeNous-left-rouge h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .rowOuNousTrouver .rowTitre {
        font-size: 18px !important;
    }

    .rowAccueilAvisGoogle .avis-carousel-wrapper {
        padding: 0 12px;
    }

    .rowAvisGoogle .avis-header .rowTitre {
        font-size: 18px;
        padding: 0 0 20px 20px;
    }

    .formationsPage .formationsTitle h1 {
        font-size: 1.4rem;
    }

    .formationShowPage .formationMainTitle {
        font-size: 1.2rem !important;
    }

    .rowDocuments h3 {
        font-size: 16px;
    }

    .prepacode-title {
        font-size: 22px;
    }
}

/* ============================================================
   2026 responsive overhaul
   Navigation mobile/tablette + harmonisation des rythmes
   ============================================================ */

@media (max-width: 1250px) {
    :root {
        --page-gutter: clamp(18px, 4vw, 36px);
    }

    .rowOuNousTrouverMobile {
        display: none;
    }

    body {
        padding-top: 74px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .overlay {
        inset: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        background: rgba(8, 12, 19, 0.5);
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1040;
    }

    .overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .headerPhone {
        position: fixed;
        inset: 0 0 auto 0;
        display: block;
        z-index: 1050;
        background: #ffffff;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .rowHeader {
        height: 74px;
        justify-content: space-between;
        padding: 0 18px;
    }

    .headerPhoneLogo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    .rowHeader img {
        position: static;
        width: 100%;
        max-width: 128px;
        max-height: 54px;
        height: auto;
        object-fit: contain;
    }

    .menuButton,
    .closeButton {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
    }

    .menuButton svg,
    .closeButton svg {
        width: 22px;
        fill: #111111;
    }

    .sideMenuTop .closeButton {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #dddddf;
        background: #f7f7f8;
    }

    .sideMenuTop .closeButton svg {
        width: 16px;
        height: 16px;
        display: block;
        fill: #111111;
    }

    .sideMenu {
        inset: 0 0 0 auto;
        width: min(100vw, 420px);
        min-height: 100vh;
        min-height: 100svh;
        height: 100dvh;
        transform: translateX(100%);
        background: #ffffff;
        box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
        transition: transform 0.3s ease;
        z-index: 1051;
    }

    .sideMenu.is-open {
        transform: translateX(0);
    }

    .sideMenuContent {
        height: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 16px;
        box-sizing: border-box;
        padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px));
        overscroll-behavior: contain;
        overflow-y: auto;
    }

    .sideMenuTop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 14px;
        margin-bottom: 2px;
        border-bottom: 1px solid #ececec;
    }

    .sideMenuBrand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        color: #111111;
        text-decoration: none;
        font-family: 'Poppins';
    }

    .sideMenuBrand img {
        width: 64px;
        height: 48px;
        object-fit: contain;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .sideMenuBrandText {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .sideMenuBrandText small {
        color: #7f7f88;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .sideMenuBrandText strong {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.02em;
    }

    .sideMenuQuickActions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sideMenuQuickAction {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 16px;
        border-radius: 999px;
        font-family: 'Poppins';
        font-size: 0.92rem;
        font-weight: 600;
        text-decoration: none;
    }

    .sideMenuQuickActionPrimary {
        background: var(--section-title-color);
        color: #ffffff !important;
    }

    .sideMenuQuickActionSecondary {
        background: #111111;
        color: #ffffff !important;
    }

    .sideMenuPanel {
        padding: 18px 18px 16px;
        border: 1px solid #ececf0;
        border-radius: 22px;
        background: #fafafb;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    }

    .sideMenuPanelNav {
        background: #ffffff;
    }

    .sideMenuSectionTitle {
        margin: 0 0 12px;
        color: var(--section-title-color);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .sideMenuContact {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sideMenuContact p {
        margin: 0;
        color: #111111;
        font-family: 'Poppins';
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .sideMenuContact p:first-child {
        color: var(--section-title-color);
        font-weight: 700;
    }

    .sideMenuContact a {
        align-self: flex-start;
        color: var(--section-title-color) !important;
        font-family: 'Poppins';
        font-size: 0.92rem;
        font-weight: 600;
        text-decoration: none;
    }

    .sideMenuContent .rowLink {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .sideMenuContent .rowLink > a,
    .sideMenuContent .rowLink > details,
    .sideMenuContent .rowLink > details summary,
    .sideMenuContent .rowLink > details .sideMenuSubLinks,
    .sideMenuContent .rowLink > details .sideMenuSubLinks a {
        margin-bottom: 0;
    }

    .sideMenuContent .rowLink > a,
    .sideMenuContent .rowLink .sideMenuDropdown summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 2px;
        margin: 0;
        color: #111111 !important;
        font-family: 'Poppins';
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.4;
        text-decoration: none;
        border-bottom: 1px solid #ececec;
    }

    .sideMenuDropdown {
        margin: 0;
        padding: 0;
        border-bottom: none;
    }

    .sideMenuDropdown summary {
        list-style: none;
        cursor: pointer;
        font-weight: 700;
    }

    .sideMenuDropdown summary::-webkit-details-marker {
        display: none;
    }

    .sideMenuDropdown summary::after {
        content: '+';
        color: var(--section-title-color);
        font-size: 1.3rem;
        line-height: 1;
    }

    .sideMenuDropdown[open] summary::after {
        content: '−';
    }

    .sideMenuDropdown:not([open]) .sideMenuSubLinks {
        display: none;
    }

    .sideMenuDropdown[open] .sideMenuSubLinks {
        display: flex;
    }

    .sideMenuSubLinks {
        flex-direction: column;
        padding: 6px 0 12px 14px;
        border-bottom: 1px solid #ececec;
    }

    .sideMenuSubLinks a {
        margin: 0 !important;
        padding: 9px 0;
        color: #3b3b3b !important;
        font-family: 'Poppins';
        font-size: 0.95rem !important;
        font-weight: 500;
        line-height: 1.45;
        text-decoration: none;
    }

    #aboutpage {
        padding-inline: var(--page-gutter);
    }

    .formationsPage,
    .actualitePage {
        padding-inline: var(--page-gutter);
        box-sizing: border-box;
    }

    .rowInfo,
    .rowEmail,
    .rowMessage {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .rowHome {
        height: clamp(260px, 46vw, 420px);
    }

    .rowHome img[alt="Image de présentation"] {
        margin-top: 0;
        margin-bottom: 0;
        animation: none;
        object-position: center 28%;
    }

    .rowIntro {
        width: min(92%, 760px);
        margin: 0 auto;
        padding: 36px 20px 56px;
    }

    .rowIntro h6 {
        font-size: 12px !important;
        line-height: 1.6;
        letter-spacing: 0.24em;
        text-transform: uppercase;
    }

    .rowIntro h2 {
        max-width: 18ch;
        margin: 0 auto;
        font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
        line-height: 1.18;
        letter-spacing: 0.08em;
    }

    #aboutpage .rowIntro {
        width: min(92%, 860px);
        margin: 0 auto;
        padding: 16px 20px 40px !important;
    }

    #aboutpage .rowIntro h2 {
        font-size: clamp(1.9rem, 3.5vw, 2.6rem) !important;
        line-height: 1.2;
    }

    .rowContactPhone {
        width: min(92%, 960px);
        margin: 0 auto 48px;
        padding: 0;
    }

    .rowLogo-header-phone {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 0;
        background: transparent;
    }

    .rowLogo-header-phone .boxLeft,
    .rowLogo-header-phone .boxRight {
        min-width: 0;
        margin: 0;
    }

    .rowLogo-header-phone .boxLeft span,
    .rowLogo-header-phone .boxRight span {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-height: 100%;
        padding: 20px 22px;
        background: #f7f7f7;
        border-radius: 20px;
        text-align: left;
    }

    .rowLogo-header-phone .boxLeft svg,
    .rowLogo-header-phone .boxRight svg {
        fill: var(--section-title-color);
    }

    .rowLogo-header-phone .boxLeft p,
    .rowLogo-header-phone .boxRight p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.5;
    }

    .rowLogo-header-phone .boxLeft a,
    .rowLogo-header-phone .boxRight a {
        color: var(--section-title-color);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .boxR,
    .boxL {
        margin-bottom: 56px;
    }

    .boxNosService,
    .boxQuiSommeNous,
    .prepacode-section {
        width: min(92%, 1080px);
    }

    .boxNosService .left,
    .boxL .right,
    .boxQuiSommeNous .right {
        padding: 40px 42px !important;
    }

    .boxNosService .left .rowTxt .titre {
        font-size: clamp(1.9rem, 4vw, 3rem);
        line-height: 1.1;
    }

    .boxQuiSommeNous-left-rouge h2 {
        font-size: clamp(2rem, 3vw, 2.25rem);
        line-height: 1.1;
        letter-spacing: 0.08em;
    }

    .boxR .left *,
    .boxL .right *,
    .prepacode-subtitle,
    .prepacode-desc,
    .prepacode-contact {
        font-size: 1rem;
        line-height: 1.8;
        letter-spacing: 0.01em;
    }

    .prepacode-section {
        padding: 44px 42px;
        margin-bottom: 64px;
    }

    .prepacode-inner {
        gap: 32px;
        align-items: center;
    }

    .prepacode-logo img {
        width: 170px;
    }

    .prepacode-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .rowDepuis35ans {
        width: min(92%, 900px);
        margin: 0 auto;
        padding: 0 0 72px !important;
    }

    .rowDepuis35ans h6 {
        font-size: 1.2rem !important;
        line-height: 1.7;
    }

    .rowOuNousTrouver {
        width: min(92%, 1100px);
        margin: 0 auto 64px;
    }

    .rowOuNousTrouver .rowTitre {
        padding: 0 20px 28px !important;
        font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
        line-height: 1.1;
        letter-spacing: 0.12em;
    }

    .rowOuNousTrouver .iframe {
        width: 100%;
        overflow: hidden;
        border-radius: 24px;
        box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
    }

    .rowOuNousTrouver .iframe iframe {
        display: block;
        min-height: 360px;
    }

    .rowNousContacter {
        width: min(100%, 1100px);
        padding-bottom: 64px;
    }

    .rowNousContacter input,
    .rowNousContacter textarea,
    .rowNousContacter select {
        font-size: 1rem;
    }

    .rowSectionTitle h5 {
        font-size: 1.05rem;
    }

    .boxSumbit {
        width: min(100%, 780px);
        padding: 18px 15px 0;
        justify-content: center;
    }

    .boxSumbit button {
        min-width: 260px;
        height: 52px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .rowDocuments {
        width: min(90%, 900px);
        padding-top: 24px;
    }

    .docsInscription summary {
        padding: 18px 22px;
        font-size: 1.02rem;
    }

    .docsInscriptionBody {
        font-size: 1rem;
        line-height: 1.75;
    }
}

@media (max-width: 1024px) {
    .prepacode-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --page-gutter: clamp(14px, 4.8vw, 22px);
    }

    .rowOuNousTrouverMobile {
        display: block;
    }

    .rowOuNousTrouverDesktop {
        display: none;
    }

    body {
        padding-top: 68px;
    }

    .rowHeader {
        height: 68px;
        padding: 0 14px;
    }

    .rowHeader img {
        max-width: 104px;
        max-height: 46px;
    }

    .sideMenu {
        width: 100vw;
    }

    .sideMenuContent {
        gap: 14px;
        padding: 20px 18px 24px;
    }

    .sideMenuBrand img {
        width: 56px;
        height: 42px;
    }

    .sideMenuBrandText strong {
        font-size: 0.9rem;
    }

    .sideMenuBrandText small {
        font-size: 0.64rem;
    }

    .closeButton {
        width: 42px;
        height: 42px;
        background: #f3f4f6;
        border: 1px solid #e6e7ea;
    }

    .sideMenuTop .closeButton {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .sideMenuTop .closeButton svg {
        width: 15px;
        height: 15px;
    }

    .rowHome {
        height: 220px;
    }

    .rowHome img[alt="Image de présentation"] {
        object-position: center 24%;
    }

    .rowIntro {
        padding: 28px 18px 44px;
    }

    .rowIntro h6 {
        font-size: 11px !important;
    }

    .rowIntro h2 {
        font-size: clamp(1.45rem, 7vw, 1.95rem) !important;
        letter-spacing: 0.06em;
    }

    .rowContactPhone {
        display: none;
    }

    .boxNosService .left,
    .boxL .right,
    .boxQuiSommeNous .right {
        padding: 28px 22px !important;
    }

    .boxNosService .left .rowTxt .titre {
        margin-bottom: 16px;
        font-size: 1.6rem;
    }

    .boxQuiSommeNous-left-rouge {
        padding: 34px 20px;
    }

    .boxQuiSommeNous-left-rouge h2 {
        font-size: 1.8rem;
        letter-spacing: 0.06em;
    }

    .boxR .left *,
    .boxL .right *,
    .prepacode-subtitle,
    .prepacode-desc,
    .prepacode-contact {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .prepacode-section {
        padding: 30px 22px;
    }

    .prepacode-inner {
        align-items: center;
        text-align: center;
    }

    .prepacode-title {
        font-size: 1.85rem;
    }

    .rowDepuis35ans {
        padding: 0 0 56px !important;
    }

    .rowDepuis35ans h6 {
        font-size: 1.05rem !important;
    }

    .rowOuNousTrouver {
        margin-bottom: 48px;
    }

    #maps + .rowOuNousTrouver {
        padding-top: 30px !important;
    }

    .rowOuNousTrouver .rowTitre {
        padding: 0 16px 20px !important;
        font-size: 1.35rem !important;
    }

    .rowOuNousTrouver .iframe iframe {
        min-height: 280px;
        height: 280px;
    }

    .formationsPage,
    .actualitePage {
        padding: 36px 0 56px;
    }

    .formationsPage .formationsTitle,
    .actualitePage .actualiteTitle {
        margin-bottom: 30px;
        padding: 0 18px;
    }

    .actualiteEmpty {
        padding: 32px 20px 16px;
    }

    .rowNousContacter {
        padding-bottom: 52px;
    }

    .boxPrenom,
    .boxNom,
    .boxEmail,
    .boxTel,
    .boxMessage,
    .boxAdresse {
        width: min(100%, 620px) !important;
        padding: 8px 0;
    }

    .rowSectionTitle {
        width: min(100%, 620px);
        padding: 16px 0 0;
    }

    .rowSectionTitle h5 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .boxMessage textarea {
        min-height: 170px;
    }

    .boxSumbit {
        width: min(100%, 620px);
        padding: 16px 0 0;
    }

    .boxSumbit button {
        width: 100% !important;
        max-width: none;
    }

    .rowDocuments {
        width: min(100%, 620px);
        padding: 18px 0 36px;
    }

    .docsInscription summary {
        font-size: 0.95rem;
        padding: 16px 18px;
    }
}

@media (max-width: 480px) {
    .sideMenuQuickActions {
        grid-template-columns: 1fr;
    }

    .sideMenuPanel {
        padding: 16px 16px 14px;
        border-radius: 20px;
    }

    .sideMenuContent .rowLink > a,
    .sideMenuDropdown summary {
        font-size: 0.96rem;
    }

    .formationsPage .formationsTitle h1,
    .actualitePage .actualiteTitle h1 {
        font-size: 2rem !important;
    }

    .rowDocuments p,
    .rowDocuments ul li,
    .footer-contact-block p,
    .single-footer-widget .footer_menu li a {
        font-size: 0.95rem;
    }
}

/* ── Formations clairement séparées dans le menu mobile/tablette ── */
@media (max-width: 1250px) {
    .sideMenuDropdown[open] .sideMenuSubLinks {
        gap: 12px;
        padding: 12px 0 16px;
    }

    .sideMenuContent .rowLink .sideMenuAllFormations {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 10px 14px;
        border: 0;
        border-radius: 12px;
        background: var(--section-title-color);
        color: #ffffff !important;
        font-size: 0.86rem !important;
        font-weight: 700;
    }

    .sideMenuFormationGroups {
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

    .sideMenuFormationGroup {
        padding: 12px;
        border: 1px solid #e9e3e4;
        border-radius: 14px;
        background: #f9f7f7;
    }

    .sideMenuFormationGroupTitle {
        margin: 0 0 9px !important;
        color: var(--section-title-color) !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.13em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .sideMenuFormationButtons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sideMenuContent .rowLink .sideMenuFormationButton {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 44px;
        margin: 0 !important;
        padding: 9px 10px;
        border: 1px solid #e3dcdd;
        border-radius: 10px;
        background: #ffffff;
        color: #242424 !important;
        font-size: 0.86rem !important;
        font-weight: 650;
        line-height: 1.3;
        box-shadow: 0 3px 10px rgba(32, 20, 22, 0.04);
    }

    .sideMenuContent .rowLink .sideMenuFormationButton::after {
        content: "›";
        margin-left: auto;
        padding-left: 6px;
        color: var(--section-title-color);
        font-size: 1rem;
        font-weight: 800;
    }

    .sideMenuFormationEmpty {
        margin: 0 !important;
        padding: 12px;
        color: #666666 !important;
        font-size: 0.85rem !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sideMenuFormationButtons {
        grid-template-columns: 1fr;
    }
}
