/*
 * M&M Renov 2026 — design system & base styling.
 *
 * Loaded AFTER all SIMPLE2015 stylesheets so it can override the legacy
 * look without modifying the inherited templates' CSS files.
 *
 * Conventions:
 *   --mm-*  : design tokens (palette, typo, spacing, shadows…)
 *   .mm-*   : component classes added by mmrenov2026 templates
 *   plain selectors (header, nav, button…) : overrides of SIMPLE2015 output
 */

/* ---------- Web fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
    /* Brand palette */
    --mm-blue-900: #0B1F4D;
    --mm-blue-800: #102B66;
    --mm-blue-700: #1A2E7C;
    --mm-blue-500: #2454AC;
    --mm-blue-300: #6F8DCB;
    --mm-blue-100: #E8EEF8;
    --mm-blue-050: #F4F6FB;

    --mm-red:       #D9272E;
    --mm-red-dark:  #B11E24;
    --mm-red-soft:  #FBE7E8;

    --mm-ink:       #1A1A1F;
    --mm-ink-soft:  #5A5F6B;
    --mm-ink-mute:  #9098A4;

    --mm-paper:        #FFFFFF;
    --mm-paper-soft:   #F4F6FB;
    --mm-paper-tint:   #E8EEF8;
    --mm-border:       #DCE3F0;

    --mm-success:   #2E8540;
    --mm-warning:   #F4A100;

    /* Typography */
    --mm-font-heading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    --mm-font-script:  'Caveat', 'Brush Script MT', cursive;
    --mm-font-body:    'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Type scale (fluid) */
    --mm-fs-display: clamp(2.4rem, 5vw + 1rem, 4.5rem);
    --mm-fs-h1:      clamp(2rem, 3vw + 1rem, 3rem);
    --mm-fs-h2:      clamp(1.6rem, 2vw + 0.8rem, 2.25rem);
    --mm-fs-h3:      clamp(1.25rem, 1vw + 0.8rem, 1.5rem);
    --mm-fs-lead:    clamp(1.05rem, 0.5vw + 0.9rem, 1.25rem);
    --mm-fs-body:    1rem;
    --mm-fs-small:   0.875rem;

    --mm-lh-tight: 1.15;
    --mm-lh-snug:  1.35;
    --mm-lh-body:  1.6;

    /* Spacing scale */
    --mm-space-1: 4px;
    --mm-space-2: 8px;
    --mm-space-3: 12px;
    --mm-space-4: 16px;
    --mm-space-5: 24px;
    --mm-space-6: 32px;
    --mm-space-7: 48px;
    --mm-space-8: 64px;
    --mm-space-9: 96px;

    /* Section rhythm */
    --mm-section-y: clamp(56px, 7vw, 110px);

    /* Container */
    --mm-container: 1240px;
    --mm-gutter:    clamp(16px, 3vw, 32px);

    /* Radii & shadows */
    --mm-radius-sm: 6px;
    --mm-radius-md: 12px;
    --mm-radius-lg: 20px;
    --mm-radius-pill: 999px;

    --mm-shadow-sm: 0 2px 6px rgba(11, 31, 77, 0.06);
    --mm-shadow-md: 0 6px 20px rgba(11, 31, 77, 0.08);
    --mm-shadow-lg: 0 16px 40px rgba(11, 31, 77, 0.12);

    /* Motion */
    --mm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --mm-dur:  220ms;
}

/* ---------- Reset / base ---------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body.mm-theme,
body[class*="theme-mmrenov"],
body {
    font-family: var(--mm-font-body);
    font-size: var(--mm-fs-body);
    line-height: var(--mm-lh-body);
    color: var(--mm-ink);
    background: var(--mm-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--mm-blue-700);
    text-decoration: none;
    transition: color var(--mm-dur) var(--mm-ease);
}
a:hover { color: var(--mm-red); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.mm-h1, .mm-h2, .mm-h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    line-height: var(--mm-lh-tight);
    color: var(--mm-blue-900);
    margin: 0 0 var(--mm-space-4);
    letter-spacing: 0.5px;
}

h1, .mm-h1 { font-size: var(--mm-fs-h1); }
h2, .mm-h2 { font-size: var(--mm-fs-h2); }
h3, .mm-h3 { font-size: var(--mm-fs-h3); }

.mm-display {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: var(--mm-fs-display);
    line-height: var(--mm-lh-tight);
    color: var(--mm-blue-900);
    letter-spacing: 0.5px;
    margin: 0;
}

.mm-script {
    font-family: var(--mm-font-script);
    font-weight: 700;
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.4rem);
    color: var(--mm-blue-700);
    line-height: 1;
    display: inline-block;
    transform: rotate(-2deg);
}

.mm-eyebrow {
    display: inline-block;
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mm-red);
    margin-bottom: var(--mm-space-3);
}

.mm-lead {
    font-size: var(--mm-fs-lead);
    line-height: var(--mm-lh-snug);
    color: var(--mm-ink-soft);
    margin: 0 0 var(--mm-space-5);
    max-width: 60ch;
}

/* ---------- Layout primitives ---------- */
.mm-container {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding-left: var(--mm-gutter);
    padding-right: var(--mm-gutter);
}

.mm-section {
    padding-top: var(--mm-section-y);
    padding-bottom: var(--mm-section-y);
}
.mm-section--soft { background: var(--mm-paper-soft); }
.mm-section--tint { background: var(--mm-paper-tint); }
.mm-section--dark { background: var(--mm-blue-900); color: var(--mm-paper); }
.mm-section--dark h1,
.mm-section--dark h2,
.mm-section--dark h3 { color: var(--mm-paper); }
.mm-section--dark .mm-lead { color: rgba(255,255,255,0.85); }

.mm-grid {
    display: grid;
    gap: var(--mm-space-6);
}
.mm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .mm-grid--3, .mm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mm-grid--2, .mm-grid--3, .mm-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mm-space-2);
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--mm-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--mm-dur) var(--mm-ease);
    text-decoration: none;
    line-height: 1;
}

.mm-btn--primary {
    background: var(--mm-red);
    color: var(--mm-paper);
    box-shadow: 0 4px 14px rgba(217, 39, 46, 0.35);
}
.mm-btn--primary:hover {
    background: var(--mm-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 39, 46, 0.45);
    color: var(--mm-paper);
}

.mm-btn--secondary {
    background: var(--mm-blue-900);
    color: var(--mm-paper);
}
.mm-btn--secondary:hover {
    background: var(--mm-blue-700);
    color: var(--mm-paper);
}

.mm-btn--outline {
    background: transparent;
    color: var(--mm-blue-900);
    border-color: var(--mm-blue-900);
}
.mm-btn--outline:hover {
    background: var(--mm-blue-900);
    color: var(--mm-paper);
}

.mm-btn--ghost {
    background: transparent;
    color: var(--mm-blue-700);
    padding: 10px 16px;
}
.mm-btn--ghost:hover {
    background: var(--mm-blue-100);
    color: var(--mm-blue-900);
}

.mm-btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.mm-btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Badges ---------- */
.mm-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--mm-space-2);
    padding: 6px 14px;
    border-radius: var(--mm-radius-pill);
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mm-badge--blue { background: var(--mm-blue-100); color: var(--mm-blue-900); }
.mm-badge--red  { background: var(--mm-red-soft); color: var(--mm-red); }
.mm-badge--success { background: rgba(46, 133, 64, 0.12); color: var(--mm-success); }
.mm-badge--ghost { background: rgba(255,255,255,0.18); color: var(--mm-paper); }

/* ---------- Cards ---------- */
.mm-card {
    background: var(--mm-paper);
    border-radius: var(--mm-radius-md);
    box-shadow: var(--mm-shadow-md);
    overflow: hidden;
    transition: transform var(--mm-dur) var(--mm-ease),
                box-shadow var(--mm-dur) var(--mm-ease);
}
.mm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-lg);
}
.mm-card__body { padding: var(--mm-space-5); }
.mm-card__title {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    margin: 0 0 var(--mm-space-3);
}

/* ---------- Sweep / curve decorations (mirror flyer) ---------- */
.mm-sweep {
    position: relative;
    overflow: hidden;
}
.mm-sweep::before,
.mm-sweep::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.mm-sweep--blue::before {
    width: 140%;
    height: 140%;
    top: -85%;
    left: -20%;
    background: radial-gradient(circle at center, var(--mm-blue-900) 60%, transparent 61%);
    opacity: 0.08;
}
.mm-sweep--red::after {
    width: 60%;
    height: 60%;
    bottom: -40%;
    right: -15%;
    background: radial-gradient(circle at center, var(--mm-red) 60%, transparent 61%);
    opacity: 0.10;
}
.mm-sweep > * { position: relative; z-index: 1; }

/* House silhouette motif (logo derivative) */
.mm-house-motif {
    position: absolute;
    inset: auto;
    opacity: 0.06;
    pointer-events: none;
}

/* ---------- AVANT / PENDANT / APRES gallery component ---------- */
.mm-beforeafter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mm-space-4);
}
@media (max-width: 720px) {
    .mm-beforeafter { grid-template-columns: 1fr; }
}
.mm-beforeafter__item {
    position: relative;
    border-radius: var(--mm-radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--mm-shadow-md);
}
.mm-beforeafter__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mm-beforeafter__label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--mm-radius-pill);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mm-paper);
    background: var(--mm-blue-900);
}
.mm-beforeafter__label--during { background: var(--mm-blue-500); }
.mm-beforeafter__label--after  { background: var(--mm-red); }

/* ---------- Phone CTA component ---------- */
.mm-phone-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--mm-space-3);
    font-family: var(--mm-font-heading);
    font-weight: 600;
    color: var(--mm-blue-900);
    text-decoration: none;
    transition: color var(--mm-dur) var(--mm-ease);
}
.mm-phone-cta:hover { color: var(--mm-red); }
.mm-phone-cta__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--mm-red);
    color: var(--mm-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.mm-phone-cta__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mm-ink-soft);
    line-height: 1;
    margin-bottom: 2px;
}
.mm-phone-cta__number {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    line-height: 1;
    display: block;
}

/* ---------- Header (overrides SIMPLE2015) ---------- */
header {
    background: var(--mm-paper);
    box-shadow: var(--mm-shadow-sm);
    position: relative;
    z-index: 50;
}
.bandeau_telephone,
#header_top {
    display: none;
}
.conteneur_header_box {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: var(--mm-space-4) var(--mm-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mm-space-5);
}
.conteneur_header_box::after { display: none; } /* SIMPLE2015 clear hack */

#logo_site img {
    max-height: 72px;
    width: auto;
}

.menu_horizontal {
    background: var(--mm-paper);
    border-top: 1px solid var(--mm-border);
}
.menu_horizontal .menu {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--mm-space-2);
    list-style: none;
}
.menu_horizontal .menu li {
    list-style: none;
    margin: 0;
}
.menu_horizontal .menu a {
    display: inline-block;
    padding: 16px var(--mm-space-4);
    font-family: var(--mm-font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--mm-blue-900);
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}
.menu_horizontal .menu a:hover,
.menu_horizontal .menu .current-menu-item > a {
    color: var(--mm-red);
    border-bottom-color: var(--mm-red);
}
.menu_horizontal .menu .sub-menu {
    background: var(--mm-paper);
    box-shadow: var(--mm-shadow-md);
    border-radius: var(--mm-radius-sm);
    padding: var(--mm-space-2) 0;
}
.menu_horizontal .menu .sub-menu a {
    padding: 10px var(--mm-space-4);
    border-bottom: none;
}

/* Header right cluster (added via header.php) */
.mm-header__right {
    display: flex;
    align-items: center;
    gap: var(--mm-space-5);
}
@media (max-width: 720px) {
    .mm-header__right .mm-phone-cta__label { display: none; }
    .mm-header__right .mm-btn { display: none; }
}

/* ---------- Hero ---------- */
.mm-hero {
    position: relative;
    background: linear-gradient(135deg, var(--mm-blue-900) 0%, var(--mm-blue-700) 100%);
    color: var(--mm-paper);
    overflow: hidden;
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(80px, 8vw, 140px);
}
.mm-hero__inner {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--mm-space-6);
    align-items: center;
    min-height: clamp(420px, 55vw, 620px);
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .mm-hero__inner { grid-template-columns: 1fr; }
}
.mm-hero__content { padding: var(--mm-space-5) 0; }
.mm-hero__script {
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--mm-space-3);
    display: block;
}
.mm-hero__title {
    color: var(--mm-paper);
    font-size: var(--mm-fs-display);
    line-height: var(--mm-lh-tight);
    margin: 0 0 var(--mm-space-5);
}
.mm-hero__title em {
    font-style: normal;
    color: var(--mm-red);
}
.mm-hero__sub {
    font-size: var(--mm-fs-lead);
    color: rgba(255,255,255,0.85);
    margin: 0 0 var(--mm-space-6);
    max-width: 36ch;
}
.mm-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mm-space-3);
    margin-bottom: var(--mm-space-6);
}
.mm-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mm-space-3);
}
.mm-hero__mascotte {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: start;
    margin-top: calc(var(--mm-space-7) * -1);
}
.mm-hero__mascotte img {
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
}
@media (max-width: 900px) {
    .mm-hero__mascotte {
        justify-content: center;
        margin-top: 0;
    }
    .mm-hero__mascotte img { max-width: 360px; margin: 0 auto; }
}

/* Decorative sweep on hero bottom */
.mm-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--mm-paper);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

/* ---------- Footer (overrides SIMPLE2015) ---------- */
footer,
.footer {
    background: var(--mm-blue-900);
    color: rgba(255,255,255,0.85);
    padding: var(--mm-space-8) 0 var(--mm-space-5);
    margin-top: var(--mm-section-y);
}
footer a,
.footer a {
    color: rgba(255,255,255,0.85);
}
footer a:hover,
.footer a:hover {
    color: var(--mm-paper);
}

/* ---------- Misc legacy overrides for SIMPLE2015 page layouts ---------- */
#conteneur {
    background: var(--mm-paper);
}
.menu_principal {
    /* Mobile drawer styling kept simple */
    background: var(--mm-blue-900);
}
.menu_principal a {
    color: var(--mm-paper);
}

/* Strip slogan bar (was unstyled in legacy) */
.header_bottom { display: none; }

/* ---------- M&M header (new clean structure) ---------- */
.mm-header { background: var(--mm-paper); }
.mm-header__bar {
    border-bottom: 1px solid var(--mm-border);
    box-shadow: var(--mm-shadow-sm);
}
.mm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mm-space-5);
    padding-top: var(--mm-space-3);
    padding-bottom: var(--mm-space-3);
}
.mm-header__logo {
    display: inline-block;
    flex-shrink: 0;
    line-height: 0;
}
.mm-header__logo img {
    height: 78px;
    width: auto;
    max-width: 240px;
}
.mm-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.mm-header__right {
    display: flex;
    align-items: center;
    gap: var(--mm-space-4);
    flex-shrink: 0;
}

.mm-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.mm-nav li { list-style: none; margin: 0; padding: 0; position: relative; }
.mm-nav a {
    display: inline-block;
    padding: 14px 18px;
    font-family: var(--mm-font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--mm-blue-900);
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    line-height: 1;
}
.mm-nav a:hover,
.mm-nav .current-menu-item > a,
.mm-nav .current-menu-ancestor > a {
    color: var(--mm-red);
    border-bottom-color: var(--mm-red);
}

/* Submenus */
.mm-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--mm-paper);
    box-shadow: var(--mm-shadow-md);
    border-radius: 0 0 var(--mm-radius-md) var(--mm-radius-md);
    padding: var(--mm-space-2) 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--mm-dur) var(--mm-ease),
                transform var(--mm-dur) var(--mm-ease);
    z-index: 100;
}
.mm-nav li:hover > .sub-menu,
.mm-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mm-nav .sub-menu a {
    display: block;
    padding: 10px 18px;
    border-bottom: none;
    text-transform: none;
    font-size: 0.92rem;
    color: var(--mm-ink);
}
.mm-nav .sub-menu a:hover { color: var(--mm-red); background: var(--mm-paper-soft); }

/* Burger (mobile) */
.mm-header__burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}
.mm-header__burger span {
    display: block;
    height: 3px;
    background: var(--mm-blue-900);
    border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .mm-header__inner { flex-wrap: wrap; }
    .mm-header__nav { display: none; }
    .mm-header__burger { display: flex; }
}
@media (max-width: 720px) {
    .mm-header__logo img { height: 56px; }
    .mm-header__right .mm-phone-cta__text { display: none; }
    .mm-header__right .mm-btn { display: none; }
}

/* ============================================================
   M&M Renov 2026 — part 2: footer, ACF flexible content, mobile menu fix
   Appended after the design-system CSS to preserve override order.
   ============================================================ */

/* ---------- Kill legacy left drawer entirely ---------- */
.menu_principal,
#bouton_menu_telephone,
.bouton_menu,
.fermer_menu_principal {
    display: none !important;
}

/* ---------- Mobile horizontal nav as a "classic" dropdown ---------- */
@media (max-width: 960px) {
    .mm-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: var(--mm-paper);
        box-shadow: var(--mm-shadow-md);
        border-top: 1px solid var(--mm-border);
        padding: var(--mm-space-3) 0;
        z-index: 99;
    }
    .mm-header__bar { position: relative; }
    .mm-header.is-open .mm-header__nav { display: block; }
    .mm-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0 var(--mm-gutter);
    }
    .mm-nav a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid var(--mm-border);
    }
    .mm-nav .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: var(--mm-space-4);
    }
    .mm-header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mm-header__burger.is-active span:nth-child(2) { opacity: 0; }
    .mm-header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mm-header__burger span { transition: transform 200ms var(--mm-ease), opacity 200ms var(--mm-ease); transform-origin: center; }
}

/* ---------- Footer (full redesign) ---------- */
.footer,
footer { margin-top: 0; }

footer #footer_top,
footer #footer_bottom,
footer .footer_cache { all: unset; }

footer {
    background: var(--mm-blue-900);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--mm-space-9) 0 0;
    position: relative;
}
footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 60px;
    background: var(--mm-paper);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}
.mm-footer__top {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: var(--mm-space-7);
    position: relative;
    z-index: 1;
    padding-top: var(--mm-space-7);
}
@media (max-width: 900px) {
    .mm-footer__top { grid-template-columns: repeat(2, 1fr); gap: var(--mm-space-6); }
}
@media (max-width: 600px) {
    .mm-footer__top { grid-template-columns: 1fr; }
}
.mm-footer__col h3,
.mm-footer__col .mm-footer__heading {
    font-family: var(--mm-font-heading);
    font-weight: 600;
    color: var(--mm-paper);
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 var(--mm-space-4);
    padding-bottom: var(--mm-space-3);
    border-bottom: 2px solid var(--mm-red);
    display: inline-block;
}
.mm-footer__col p,
.mm-footer__col li,
.mm-footer__col a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.65;
    text-decoration: none;
}
.mm-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mm-footer__col li { margin-bottom: var(--mm-space-2); }
.mm-footer__col a:hover { color: var(--mm-paper); text-decoration: underline; }

.mm-footer__logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: var(--mm-space-4);
    opacity: 0.95;
}

.mm-footer__certs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mm-space-3);
    margin-top: var(--mm-space-4);
}
.mm-footer__certs .mm-badge {
    background: rgba(255, 255, 255, 0.10);
    color: var(--mm-paper);
}

.mm-footer__contact-line {
    display: flex;
    align-items: center;
    gap: var(--mm-space-3);
    margin-bottom: var(--mm-space-3);
}
.mm-footer__contact-line .icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mm-red);
    color: var(--mm-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.mm-footer__bottom {
    margin-top: var(--mm-space-8);
    padding: var(--mm-space-5) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.18);
}
.mm-footer__bottom-inner {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mm-space-4);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}
.mm-footer__bottom-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--mm-space-4);
}
.mm-footer__bottom-inner a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.mm-footer__bottom-inner a:hover { color: var(--mm-paper); }

.retour_haut {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mm-red);
    color: var(--mm-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mm-shadow-md);
    cursor: pointer;
    z-index: 90;
}

/* ---------- ACF flexible content layout overrides ---------- */
.sous_wrappeur_general {
    background: transparent;
}

/* Generic sections injected by ACF flexible content */
.sous_wrappeur_general > .module_titre_introduction,
.sous_wrappeur_general > .module_image_contenu,
.sous_wrappeur_general > .module_repeteur_push,
.sous_wrappeur_general > .module_separateur {
    padding-top: var(--mm-section-y);
    padding-bottom: var(--mm-section-y);
}

/* Titre + intro module */
.module_titre_introduction .titre,
.module_titre_introduction h1,
.module_titre_introduction h2 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    margin: 0 auto var(--mm-space-4);
    text-align: center;
    max-width: 900px;
    line-height: var(--mm-lh-tight);
}
.module_titre_introduction .sous_titre {
    font-family: var(--mm-font-script);
    color: var(--mm-red);
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.8rem);
    text-align: center;
    margin-bottom: var(--mm-space-4);
}
.module_titre_introduction .introduction {
    font-size: var(--mm-fs-lead);
    color: var(--mm-ink-soft);
    text-align: center;
    max-width: 60ch;
    margin: 0 auto;
    line-height: var(--mm-lh-snug);
}

/* Image + contenu module (alternating side-by-side) */
.module_image_contenu {
    background: var(--mm-paper);
}
.module_image_contenu .wrappeur_image_contenu,
.module_image_contenu > .wrappeur_module {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mm-space-7);
    align-items: center;
}
@media (max-width: 900px) {
    .module_image_contenu .wrappeur_image_contenu,
    .module_image_contenu > .wrappeur_module {
        grid-template-columns: 1fr;
    }
}
.module_image_contenu img {
    width: 100%;
    border-radius: var(--mm-radius-md);
    box-shadow: var(--mm-shadow-md);
}
.module_image_contenu .contenu p,
.module_image_contenu .contenu {
    color: var(--mm-ink);
    font-size: 1.05rem;
    line-height: var(--mm-lh-body);
}
.module_image_contenu .contenu h2,
.module_image_contenu .contenu h3 {
    font-family: var(--mm-font-heading);
    color: var(--mm-blue-900);
    margin-top: 0;
}

/* Buttons in ACF layouts */
.lien_bouton_1,
.lien_bouton_2,
.module_image_contenu a.bouton,
.sous_wrappeur_general a[class*="lien_bouton"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mm-space-2);
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--mm-radius-pill);
    background: var(--mm-red);
    color: var(--mm-paper);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(217, 39, 46, 0.35);
    transition: all var(--mm-dur) var(--mm-ease);
    margin-top: var(--mm-space-4);
}
.lien_bouton_1:hover,
.lien_bouton_2:hover,
.module_image_contenu a.bouton:hover {
    background: var(--mm-red-dark);
    transform: translateY(-2px);
    color: var(--mm-paper);
}
.lien_bouton_2 {
    background: transparent;
    color: var(--mm-blue-900);
    border: 2px solid var(--mm-blue-900);
    box-shadow: none;
}
.lien_bouton_2:hover {
    background: var(--mm-blue-900);
    color: var(--mm-paper);
}

/* Push cards repeater (key service highlights) */
.module_repeteur_push .titre,
.module_repeteur_push h2 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    text-align: center;
    margin-bottom: var(--mm-space-5);
}
.module_repeteur_push .sous_titre {
    font-family: var(--mm-font-script);
    color: var(--mm-red);
    text-align: center;
    margin-bottom: var(--mm-space-3);
}
.module_repeteur_push .repeteur_push,
.module_repeteur_push > .wrappeur_module > div {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: var(--mm-space-5) var(--mm-gutter) 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mm-space-5);
}
@media (max-width: 900px) { .module_repeteur_push .repeteur_push { grid-template-columns: 1fr; } }
.module_repeteur_push .push {
    background: var(--mm-paper);
    border-radius: var(--mm-radius-md);
    box-shadow: var(--mm-shadow-md);
    overflow: hidden;
    transition: transform var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease);
}
.module_repeteur_push .push:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-lg);
}
.module_repeteur_push .push img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.module_repeteur_push .push .titre,
.module_repeteur_push .push h3 {
    font-family: var(--mm-font-heading);
    color: var(--mm-blue-900);
    padding: var(--mm-space-4) var(--mm-space-5) 0;
    margin: 0;
    text-align: left;
}
.module_repeteur_push .push .contenu,
.module_repeteur_push .push p {
    padding: var(--mm-space-3) var(--mm-space-5) var(--mm-space-5);
    margin: 0;
    color: var(--mm-ink-soft);
    line-height: var(--mm-lh-body);
}

/* Slider header on home (legacy .slider) */
.module_slider,
.slider {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}
.module_slider img,
.slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Separator */
.module_separateur {
    padding: 0;
    height: 0;
}

/* Breadcrumb */
.breadcrumbs {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: var(--mm-space-4) var(--mm-gutter);
    font-size: 0.85rem;
    color: var(--mm-ink-soft);
}
.breadcrumbs a { color: var(--mm-blue-700); }

/* Generic content tweaks for inner pages */
.sous_wrappeur_general h1,
.sous_wrappeur_general h2,
.sous_wrappeur_general h3 { color: var(--mm-blue-900); }
.sous_wrappeur_general p { line-height: var(--mm-lh-body); }

/* ============================================================
   M&M Renov 2026 — part 3: modernised slider + "wow" block effects
   Appended after part 2. Focus on motion, depth and hover feedback.
   ============================================================ */

/* ---------- Modern slider ---------- */
.slider,
#slider_1,
.module_slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--mm-blue-900) !important;
    box-shadow: inset 0 -60px 80px -40px rgba(0, 0, 0, 0.45);
    margin: 0;
    max-height: 70vh;
    min-height: 360px;
}
.slider .item_slider,
.module_slider .item_slider {
    position: absolute; top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.slider img,
.module_slider img,
.item_slider img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 70vh;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Ken-Burns slow zoom for a premium feel */
    animation: mmKenBurns 16s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes mmKenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.08) translate(-1.5%, -1.5%); }
}

/* Dark gradient overlay for legibility + accent vignette */
.slider::before,
.module_slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 31, 77, 0.05) 0%, rgba(11, 31, 77, 0.55) 100%),
        radial-gradient(120% 80% at 20% 30%, rgba(217, 39, 46, 0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}
.slider::after,
.module_slider::after {
    /* Decorative diagonal red sweep at the bottom */
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--mm-paper);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 3;
}

/* Slide caption overlay */
.slider .item_slider .caption,
.module_slider .item_slider .caption,
.slider .item_slider h2,
.slider .item_slider h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(60px, 8vw, 110px);
    z-index: 4;
    text-align: center;
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem);
    letter-spacing: 0.5px;
    line-height: var(--mm-lh-tight);
    padding: 0 var(--mm-gutter);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    animation: mmSlideUp 800ms var(--mm-ease) both;
}
@keyframes mmSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Slider arrows (legacy SIMPLE2015 markup uses .icon-chevron-*) */
.slider .icon-chevron-left,
.slider .icon-chevron-right,
.module_slider .icon-chevron-left,
.module_slider .icon-chevron-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: var(--mm-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 5;
    transition: all var(--mm-dur) var(--mm-ease);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.slider .icon-chevron-left  { left: var(--mm-space-5); }
.slider .icon-chevron-right { right: var(--mm-space-5); }
.slider .icon-chevron-left:hover,
.slider .icon-chevron-right:hover {
    background: var(--mm-red);
    transform: translateY(-50%) scale(1.08);
    border-color: var(--mm-red);
}

/* Slider dots / pagination if present */
.slider .pagination,
.slider .flex-control-nav,
.module_slider .pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.slider .pagination li,
.slider .flex-control-nav li,
.module_slider .pagination li {
    list-style: none;
    margin: 0;
}
.slider .pagination a,
.slider .flex-control-paging a,
.slider .pagination li {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    text-indent: -9999px;
    cursor: pointer;
    transition: all var(--mm-dur) var(--mm-ease);
}
.slider .pagination .active a,
.slider .flex-control-paging .flex-active,
.slider .pagination li.active {
    background: var(--mm-red);
    width: 28px;
    border-radius: var(--mm-radius-pill);
}

/* ---------- "Wow" hover on push cards ---------- */
.module_repeteur_push .push {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.module_repeteur_push .push::after {
    /* Subtle gradient accent that animates in on hover */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mm-red) 0%, var(--mm-blue-700) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 350ms var(--mm-ease);
    z-index: 2;
}
.module_repeteur_push .push:hover::after { transform: scaleX(1); }

.module_repeteur_push .push .wrappeur_image,
.module_repeteur_push .push picture,
.module_repeteur_push .push .image {
    overflow: hidden;
    position: relative;
}
.module_repeteur_push .push img {
    transition: transform 600ms var(--mm-ease), filter 350ms var(--mm-ease);
    will-change: transform;
}
.module_repeteur_push .push:hover img {
    transform: scale(1.06);
    filter: saturate(1.1) brightness(0.97);
}

/* Animated underline on the card title */
.module_repeteur_push .push .titre,
.module_repeteur_push .push h3 {
    position: relative;
    padding-bottom: var(--mm-space-3) !important;
}
.module_repeteur_push .push .titre::after,
.module_repeteur_push .push h3::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: var(--mm-red);
    border-radius: 2px;
    margin-top: 10px;
    transition: width 350ms var(--mm-ease);
}
.module_repeteur_push .push:hover .titre::after,
.module_repeteur_push .push:hover h3::after { width: 64px; }

/* ---------- Image + contenu module ---------- */
.module_image_contenu {
    position: relative;
}
.module_image_contenu .wrappeur_image,
.module_image_contenu img {
    overflow: hidden;
    position: relative;
}
.module_image_contenu img {
    transition: transform 700ms var(--mm-ease);
}
.module_image_contenu:hover img {
    transform: scale(1.04);
}
/* Decorative red square behind the image on alternate sections */
.module_image_contenu .wrappeur_image::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--mm-red);
    top: -16px;
    left: -16px;
    border-radius: var(--mm-radius-sm);
    opacity: 0.18;
    z-index: -1;
}

/* ---------- Section titles: animated underline ---------- */
.module_titre_introduction .titre,
.module_titre_introduction h1,
.module_titre_introduction h2,
.module_repeteur_push h2,
.module_repeteur_push .titre {
    position: relative;
    display: inline-block;
}
.module_titre_introduction h1,
.module_titre_introduction h2,
.module_titre_introduction .titre,
.module_repeteur_push h2,
.module_repeteur_push .titre {
    display: block;
    text-align: center;
}
.module_titre_introduction .titre::after,
.module_titre_introduction h2::after,
.module_repeteur_push h2::after,
.module_repeteur_push .titre::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--mm-red);
    border-radius: 2px;
    margin: var(--mm-space-4) auto 0;
}

/* ---------- Scroll-reveal animation (driven by IntersectionObserver JS) ---------- */
.mm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--mm-ease), transform 700ms var(--mm-ease);
    will-change: opacity, transform;
}
.mm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.mm-reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 600ms var(--mm-ease), transform 600ms var(--mm-ease);
}
.mm-reveal-stagger.is-visible > *:nth-child(1) { transition-delay:   0ms; opacity: 1; transform: translateY(0); }
.mm-reveal-stagger.is-visible > *:nth-child(2) { transition-delay:  80ms; opacity: 1; transform: translateY(0); }
.mm-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.mm-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.mm-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.mm-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ---------- Hero polish: subtle floating bubble decoration ---------- */
.mm-hero {
    isolation: isolate;
}
.mm-hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto auto;
    width: 55%;
    height: 80%;
    background: radial-gradient(circle, rgba(217, 39, 46, 0.22) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.mm-hero__inner > * { position: relative; z-index: 1; }

/* House silhouette behind the hero (uses CSS to draw a tilted rectangle) */
.mm-hero__content::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    top: -100px;
    left: -120px;
    border-radius: 24px;
    z-index: -1;
}

/* ---------- Buttons hover polish ---------- */
.mm-btn--primary {
    position: relative;
    overflow: hidden;
}
.mm-btn--primary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 500ms var(--mm-ease), height 500ms var(--mm-ease);
    pointer-events: none;
}
.mm-btn--primary:hover::after {
    width: 320px;
    height: 320px;
}
.mm-btn--primary > * { position: relative; z-index: 1; }

/* ---------- "AVANT / PENDANT / APRES" gallery (manual class) ---------- */
.mm-beforeafter {
    margin-top: var(--mm-space-6);
}
.mm-beforeafter__item {
    transition: transform 350ms var(--mm-ease), box-shadow 350ms var(--mm-ease);
}
.mm-beforeafter__item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--mm-shadow-lg);
}
.mm-beforeafter__item img {
    transition: transform 700ms var(--mm-ease);
}
.mm-beforeafter__item:hover img {
    transform: scale(1.06);
}

/* ---------- Honour reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .mm-reveal, .mm-reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* ============================================================
   M&M Renov 2026 — part 5: refined block design (no bling-bling).
   Focus on layout/structure, not effects.
   - Slider: full-width image, sober overlay title with red accent rule
   - Image + contenu: asymmetric 55/45 with image breakout
   - Push cards: clean, generous, arrow-link
   Removes the gimmicky bits from part 3/4 where they conflict.
   ============================================================ */

/* ---------- Slider: refined editorial style ---------- */
.slider,
.module_slider,
#slider_1 {
    position: relative;
    background: var(--mm-blue-900) !important;
    min-height: 420px;
    max-height: 78vh;
    overflow: hidden;
    margin: 0 0 0 0;
    box-shadow: none;
}
.slider img,
.module_slider img,
.item_slider img {
    width: 100%;
    min-height: 420px;
    max-height: 78vh;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Kill the Ken Burns auto-zoom; keep things calm */
    animation: none !important;
    transform: none !important;
    transition: none;
}

/* Single dark gradient at the bottom for caption legibility */
.slider::before,
.module_slider::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 77, 0.0) 30%, rgba(11, 31, 77, 0.75) 100%);
    pointer-events: none;
    z-index: 2;
}
/* Remove the white diagonal cut from earlier */
.slider::after,
.module_slider::after {
    content: none !important;
}

/* Slider caption: bottom-left, single red accent rule above */
.slider .caption,
.module_slider .caption,
.item_slider .caption,
.slider .item_slider h1,
.slider .item_slider h2,
.slider .item_slider h3 {
    position: absolute;
    bottom: clamp(48px, 6vw, 90px);
    left: clamp(24px, 5vw, 64px);
    right: clamp(24px, 5vw, 64px);
    max-width: 720px;
    z-index: 4;
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-align: left;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    padding: 0;
    animation: none;
    text-transform: none;
}
.slider .caption::before,
.module_slider .caption::before,
.slider .item_slider h1::before,
.slider .item_slider h2::before,
.slider .item_slider h3::before {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--mm-red);
    border-radius: 2px;
    margin-bottom: var(--mm-space-4);
}

/* Slider arrows: tighter, discreet */
.slider .icon-chevron-left,
.slider .icon-chevron-right,
.module_slider .icon-chevron-left,
.module_slider .icon-chevron-right {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(8px);
    color: var(--mm-paper);
    transition: background 220ms var(--mm-ease), border-color 220ms var(--mm-ease);
}
.slider .icon-chevron-left:hover,
.slider .icon-chevron-right:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-50%) !important; /* keep flat — no scale */
}

/* Slider dots: smaller, subtle */
.slider .pagination,
.module_slider .pagination,
.slider .flex-control-nav {
    bottom: 18px;
}
.slider .pagination li,
.slider .pagination a,
.module_slider .pagination li,
.slider .flex-control-paging a {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.50);
}
.slider .pagination .active a,
.slider .pagination li.active,
.slider .flex-control-paging .flex-active {
    width: 30px;
    background: var(--mm-paper);
}

/* ---------- Image + contenu: asymmetric 55/45 with breakout ---------- */
.module_image_contenu {
    padding: clamp(60px, 7vw, 110px) 0;
    background: var(--mm-paper);
    overflow: visible;
}
.module_image_contenu:nth-of-type(even) {
    background: var(--mm-paper-soft);
}
.module_image_contenu .wrappeur_image_contenu,
.module_image_contenu > .wrappeur_module {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: grid;
    grid-template-columns: 55% 45%;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
@media (max-width: 900px) {
    .module_image_contenu .wrappeur_image_contenu,
    .module_image_contenu > .wrappeur_module {
        grid-template-columns: 1fr;
        gap: var(--mm-space-5);
    }
}

/* Alternate side: even sections image right, odd image left */
.module_image_contenu:nth-of-type(even) .wrappeur_image_contenu > :first-child,
.module_image_contenu:nth-of-type(even) > .wrappeur_module > :first-child {
    order: 2;
}

/* Image breakout — pushes slightly outside the gutter on the outer edge */
.module_image_contenu .wrappeur_image {
    position: relative;
    margin-left: calc(var(--mm-gutter) * -0.5);
}
.module_image_contenu:nth-of-type(even) .wrappeur_image {
    margin-left: 0;
    margin-right: calc(var(--mm-gutter) * -0.5);
}
@media (max-width: 900px) {
    .module_image_contenu .wrappeur_image,
    .module_image_contenu:nth-of-type(even) .wrappeur_image {
        margin-left: 0; margin-right: 0;
    }
}

/* Image styling — keep it simple */
.module_image_contenu .wrappeur_image::before {
    content: none !important; /* drop the red square decoration */
}
.module_image_contenu .wrappeur_image img,
.module_image_contenu img {
    width: 100%;
    height: auto;
    border-radius: var(--mm-radius-md);
    box-shadow: 0 20px 50px rgba(11, 31, 77, 0.10);
    display: block;
    transition: transform 500ms var(--mm-ease);
}
.module_image_contenu:hover img,
.module_image_contenu img:hover {
    transform: translateY(-4px);
}

/* Content side: small eyebrow + big title + body + CTA */
.module_image_contenu .contenu,
.module_image_contenu > .wrappeur_module > :nth-child(2) {
    padding: 0;
}
.module_image_contenu .contenu .sous_titre,
.module_image_contenu .contenu > .eyebrow {
    display: inline-block;
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mm-red);
    margin-bottom: var(--mm-space-3);
}
.module_image_contenu .contenu .titre,
.module_image_contenu .contenu h2,
.module_image_contenu .contenu h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
    line-height: 1.15;
    margin: 0 0 var(--mm-space-4);
    padding-bottom: 0;
}
.module_image_contenu .contenu .titre::after,
.module_image_contenu .contenu h2::after { content: none; }
.module_image_contenu .contenu p,
.module_image_contenu .contenu {
    color: var(--mm-ink);
    font-size: 1.05rem;
    line-height: var(--mm-lh-body);
}

/* ---------- Push cards: clean classic + arrow link ---------- */
.module_repeteur_push {
    padding: clamp(60px, 7vw, 110px) 0;
}
.module_repeteur_push .repeteur_push,
.module_repeteur_push > .wrappeur_module > div {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: var(--mm-space-6) var(--mm-gutter) 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mm-space-6);
}
@media (max-width: 900px) {
    .module_repeteur_push .repeteur_push { grid-template-columns: 1fr; gap: var(--mm-space-5); }
}

.module_repeteur_push .push {
    background: var(--mm-paper);
    border-radius: var(--mm-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(11, 31, 77, 0.06);
    border: 1px solid var(--mm-border);
    transition: transform 300ms var(--mm-ease), box-shadow 300ms var(--mm-ease), border-color 300ms var(--mm-ease);
    /* Wipe out the gimmicky leftovers */
    perspective: none;
    transform-style: flat;
    cursor: pointer;
    position: relative;
}
.module_repeteur_push .push:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 40px rgba(11, 31, 77, 0.12);
    border-color: rgba(217, 39, 46, 0.35);
}
.module_repeteur_push .push::before,
.module_repeteur_push .push::after { content: none !important; }
.module_repeteur_push .push .wrappeur_image::after,
.module_repeteur_push .push picture::after { content: none !important; }
.module_repeteur_push .push img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 600ms var(--mm-ease);
}
.module_repeteur_push .push:hover img {
    transform: scale(1.03);
    filter: none;
}

.module_repeteur_push .push .titre,
.module_repeteur_push .push h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--mm-blue-900);
    margin: 0;
    padding: var(--mm-space-5) var(--mm-space-5) var(--mm-space-2);
    line-height: 1.25;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}
.module_repeteur_push .push .titre::after,
.module_repeteur_push .push h3::after { content: none; }

.module_repeteur_push .push .contenu,
.module_repeteur_push .push p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mm-ink-soft);
    margin: 0;
    padding: 0 var(--mm-space-5) var(--mm-space-4);
}

/* "En savoir plus →" auto-appended via CSS */
.module_repeteur_push .push::after {
    content: "En savoir plus →" !important;
    display: block !important;
    position: static !important;
    transform: none !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 var(--mm-space-5) var(--mm-space-5) !important;
    font-family: var(--mm-font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--mm-red) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: padding-left 220ms var(--mm-ease) !important;
}
.module_repeteur_push .push:hover::after {
    padding-left: calc(var(--mm-space-5) + 8px) !important;
}
/* ============================================================
   M&M Renov 2026 — part 6: flyer-inspired visual identity.
   - Curved blue & red "sweep" shapes as section backgrounds
   - Photos with thin colored border (avant/après style)
   - AVANT / PENDANT / APRÈS gallery component
   - Service list with [ red brackets ]
   - Phone CTA on red curve banner
   - "+ de 500" big-number callout
   No new animations beyond what already exists.
   ============================================================ */

/* ---------- Reusable curved color sweeps (flyer signature) ---------- */
.mm-sweep-blue,
.mm-sweep-red {
    position: relative;
    overflow: hidden;
}
.mm-sweep-blue::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -10%;
    width: 70%;
    aspect-ratio: 1 / 1;
    background: var(--mm-blue-900);
    border-radius: 50%;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}
.mm-sweep-red::after {
    content: "";
    position: absolute;
    bottom: -35%;
    right: -10%;
    width: 60%;
    aspect-ratio: 1 / 1;
    background: var(--mm-red);
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.mm-sweep-blue > *,
.mm-sweep-red  > * { position: relative; z-index: 1; }

/* Auto-apply sweeps to alternating sections so they read as on the flyer */
.module_image_contenu:nth-of-type(odd) { /* inherits .mm-sweep-blue style */
    position: relative;
    overflow: hidden;
}
.module_image_contenu:nth-of-type(odd)::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -15%;
    width: 60%;
    aspect-ratio: 1 / 1;
    background: var(--mm-blue-900);
    border-radius: 50%;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}
.module_image_contenu:nth-of-type(even) {
    position: relative;
    overflow: hidden;
}
.module_image_contenu:nth-of-type(even)::after {
    content: "";
    position: absolute;
    bottom: -45%;
    right: -10%;
    width: 55%;
    aspect-ratio: 1 / 1;
    background: var(--mm-red);
    border-radius: 50%;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}
.module_image_contenu > * { position: relative; z-index: 1; }

/* ---------- Photo style à la flyer: thin colored border + rounded square ---------- */
.module_image_contenu img,
.module_repeteur_push .push img,
.mm-photo-card img {
    border-radius: var(--mm-radius-md);
}
.mm-photo-card {
    position: relative;
    border-radius: var(--mm-radius-md);
    overflow: hidden;
    /* Inner padding so the border doesn't crop the image */
    padding: 6px;
    background: var(--mm-paper);
    box-shadow: 0 8px 24px rgba(11, 31, 77, 0.12);
}
.mm-photo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--mm-blue-900);
    border-radius: var(--mm-radius-md);
    pointer-events: none;
}
.mm-photo-card--red::before { border-color: var(--mm-red); }
.mm-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--mm-radius-md) - 6px);
    display: block;
}

/* ---------- AVANT / PENDANT / APRÈS triptych ---------- */
.mm-beforeafter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mm-space-5);
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
}
@media (max-width: 720px) {
    .mm-beforeafter { grid-template-columns: 1fr; gap: var(--mm-space-4); }
}
.mm-beforeafter__item {
    position: relative;
    border-radius: var(--mm-radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 12px 32px rgba(11, 31, 77, 0.14);
}
.mm-beforeafter__item::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--mm-blue-900);
    border-radius: var(--mm-radius-md);
    pointer-events: none;
    z-index: 2;
}
.mm-beforeafter__item--after::before { border-color: var(--mm-red); }
.mm-beforeafter__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mm-beforeafter__label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 7px 18px;
    border-radius: var(--mm-radius-pill);
    background: var(--mm-blue-900);
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}
.mm-beforeafter__label--during { background: var(--mm-blue-500); }
.mm-beforeafter__label--after  { background: var(--mm-red); }

/* ---------- Service list with [ red brackets ] (flyer-style) ---------- */
.mm-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--mm-space-4);
}
.mm-services-list li {
    position: relative;
    padding: var(--mm-space-3) var(--mm-space-6);
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: clamp(1.05rem, 1vw + 0.7rem, 1.35rem);
    color: var(--mm-blue-900);
    letter-spacing: 0.5px;
}
.mm-services-list li::before,
.mm-services-list li::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
    border-color: var(--mm-red);
    border-style: solid;
    border-width: 3px 0;
}
.mm-services-list li::before {
    left: 0;
    border-left-width: 3px;
}
.mm-services-list li::after {
    right: 0;
    border-right-width: 3px;
}
.mm-services-list em {
    display: block;
    font-style: normal;
    font-weight: 400;
    font-size: 0.85em;
    color: var(--mm-ink-soft);
    margin-top: 4px;
    letter-spacing: 0;
}

/* ---------- Phone CTA banner on red curve ---------- */
.mm-phone-banner {
    background: var(--mm-red);
    color: var(--mm-paper);
    padding: clamp(48px, 6vw, 80px) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.mm-phone-banner::before {
    content: "";
    position: absolute;
    width: 140%;
    aspect-ratio: 1 / 1;
    background: var(--mm-red-dark);
    border-radius: 50%;
    top: -100%;
    left: -20%;
    opacity: 0.30;
    z-index: 0;
}
.mm-phone-banner__inner {
    position: relative;
    z-index: 1;
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 var(--mm-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--mm-space-6);
}
.mm-phone-banner__title {
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
    color: var(--mm-paper);
    margin: 0;
    line-height: 1.2;
}
.mm-phone-banner__title small {
    display: block;
    font-family: var(--mm-font-script);
    font-weight: 600;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0;
    margin-bottom: 8px;
}
.mm-phone-banner__number {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw + 0.5rem, 3.6rem);
    color: var(--mm-paper);
    text-decoration: none;
    letter-spacing: 2px;
    line-height: 1;
    transition: opacity 200ms var(--mm-ease);
}
.mm-phone-banner__number:hover { opacity: 0.85; color: var(--mm-paper); }

/* ---------- Big "500+ références" callout block ---------- */
.mm-bignumber {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 12px 24px;
    background: var(--mm-red);
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    border-radius: var(--mm-radius-pill);
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(217, 39, 46, 0.30);
    transform: rotate(-2deg);
}
.mm-bignumber strong { font-weight: 700; }
/* ============================================================
   M&M Renov 2026 — part 7b: "color skin only" pass on inner pages.
   STRICT RULES:
     - Never set display:grid/flex/block on existing containers
     - Never set widths or grid-template-columns on existing wrappers
     - Only restyle: colors, typography, borders, shadows, radius,
       padding INSIDE small elements (inputs, buttons, table cells)
   The legacy SIMPLE2015 layout stays intact; we only re-paint.
   ============================================================ */

/* ---------- titre_sous_titre_2 (typography only) ---------- */
.titre_sous_titre_2 h1,
.titre_sous_titre_2 h2,
.titre_sous_titre_2 h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    letter-spacing: 0.3px;
    line-height: 1.15;
    margin: 0 0 var(--mm-space-3);
}
.titre_sous_titre_2 .sous_titre {
    font-family: var(--mm-font-script);
    color: var(--mm-red);
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.7rem);
    line-height: 1.2;
    margin: 0 0 var(--mm-space-3);
}
.titre_sous_titre_2 .bordure {
    display: inline-block;
    width: 80px;
    height: 4px;
    background: var(--mm-red);
    border-radius: 2px;
    margin: var(--mm-space-3) 0;
}
.titre_sous_titre_2 .contenu {
    color: var(--mm-ink-soft);
    line-height: var(--mm-lh-snug);
}

/* ---------- titre_sous_titre (the smaller heading variant) ---------- */
.titre_sous_titre h1,
.titre_sous_titre h2,
.titre_sous_titre h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    letter-spacing: 0.3px;
}
.titre_sous_titre .sous_titre {
    color: var(--mm-ink-soft);
    font-style: italic;
}

/* ---------- Tables inside .contact and .horaire ---------- */
.bloc_contact table,
.contact table,
.horaire table {
    border-collapse: collapse;
    width: 100%;
}
.bloc_contact table caption,
.contact table caption,
.horaire table caption {
    text-align: left;
    margin-bottom: var(--mm-space-3);
}
.bloc_contact caption h3,
.contact caption h3,
.horaire caption h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin: 0 0 var(--mm-space-3);
    padding-bottom: var(--mm-space-2);
    border-bottom: 3px solid var(--mm-red);
    display: inline-block;
}
.bloc_contact td,
.contact td,
.horaire td {
    padding: var(--mm-space-2) var(--mm-space-3) var(--mm-space-2) 0;
    vertical-align: top;
    line-height: 1.45;
}
.bloc_contact tr td:first-child,
.contact tr td:first-child,
.horaire tr td:first-child {
    font-family: var(--mm-font-heading);
    font-weight: 600;
    color: var(--mm-blue-900);
    white-space: nowrap;
    padding-right: var(--mm-space-4);
}

/* ---------- .lien_simple (existing link class) ---------- */
.lien_simple {
    color: var(--mm-blue-700);
    text-decoration: none;
    transition: color var(--mm-dur) var(--mm-ease);
}
.lien_simple:hover { color: var(--mm-red); }

.lien_localiser .icon-location { margin-right: 6px; color: var(--mm-red); }

/* ---------- Address paragraph ---------- */
.adresse_paragraphe h6,
.adresse h6 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 var(--mm-space-2);
    padding-bottom: var(--mm-space-2);
    border-bottom: 3px solid var(--mm-red);
    display: inline-block;
}
.adresse_paragraphe .contenu,
.adresse p { line-height: 1.55; color: var(--mm-ink); }

/* ---------- Form inputs (typography + colors only, no layout) ---------- */
.formulaire_contact h3 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    color: var(--mm-blue-900);
    letter-spacing: 0.3px;
}
.formulaire_contact .label,
.formulaire_contact .label_lst_objet,
.formulaire_contact .label_zt_corps {
    font-family: var(--mm-font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mm-blue-900);
    margin-top: var(--mm-space-3);
    margin-bottom: 6px;
}
.formulaire_contact input[type="text"],
.formulaire_contact input[type="email"],
.formulaire_contact input[type="tel"],
.formulaire_contact select,
.formulaire_contact textarea {
    padding: 12px var(--mm-space-3);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    font-family: var(--mm-font-body);
    font-size: 1rem;
    color: var(--mm-ink);
    background: var(--mm-paper);
    transition: border-color 200ms var(--mm-ease), box-shadow 200ms var(--mm-ease);
}
.formulaire_contact input[type="text"]:focus,
.formulaire_contact input[type="email"]:focus,
.formulaire_contact select:focus,
.formulaire_contact textarea:focus {
    outline: none;
    border-color: var(--mm-blue-500);
    box-shadow: 0 0 0 3px rgba(36, 84, 172, 0.15);
}
.formulaire_contact textarea { min-height: 120px; }

#valider_formmulaire_contact,
.formulaire_contact .lien_bouton_1,
.formulaire_contact .lien_bouton_2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mm-space-2);
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--mm-radius-pill);
    background: var(--mm-red);
    color: var(--mm-paper);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 39, 46, 0.30);
    transition: background var(--mm-dur) var(--mm-ease), transform var(--mm-dur) var(--mm-ease);
    text-decoration: none;
    margin-top: var(--mm-space-3);
}
#valider_formmulaire_contact:hover,
.formulaire_contact .lien_bouton_1:hover {
    background: var(--mm-red-dark);
    transform: translateY(-2px);
    color: var(--mm-paper);
}

#supprimer_piece_jointe {
    font-size: 0.85rem;
    color: var(--mm-red);
    text-decoration: underline;
    cursor: pointer;
    margin-left: var(--mm-space-2);
}

/* ---------- image_seul (just polish, no layout change) ---------- */
.image_seul img {
    border-radius: var(--mm-radius-md);
    box-shadow: 0 8px 24px rgba(11, 31, 77, 0.08);
}

/* ---------- Lists (light skin) ---------- */
.sous_wrappeur_general .liste {
    list-style: none;
    padding-left: 0;
}
.sous_wrappeur_general .liste li {
    position: relative;
    padding: 6px 0 6px 22px;
    line-height: 1.55;
}
.sous_wrappeur_general .liste li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--mm-red);
    border-radius: 2px;
    rotate: 45deg;
}

/* ---------- bandeau (color-skin only, keep existing layout) ---------- */
.bandeau {
    background: var(--mm-blue-900);
    color: var(--mm-paper);
}
.bandeau .titre,
.bandeau h2,
.bandeau h3 {
    color: var(--mm-paper) !important;
}
.bandeau .sous_titre {
    color: var(--mm-red) !important;
    font-family: var(--mm-font-script) !important;
}
.bandeau .bordure {
    background: var(--mm-red) !important;
}
.bandeau .contenu,
.bandeau p {
    color: rgba(255, 255, 255, 0.85);
}
.bandeau .lien_bouton_1,
.bandeau .lien_bouton_2 {
    box-shadow: 0 4px 14px rgba(217, 39, 46, 0.35);
}

/* ---------- google_map placeholder (hide cleanly until OSM replacement) ---------- */
#google_map {
    display: none !important;
}

/* ---------- bloc_contact: light spacing inside cards, no layout override ---------- */
.bloc_contact .image img {
    max-height: 120px;
    width: auto;
}

/* ---------- General sous_wrappeur_general typography polish ---------- */
.sous_wrappeur_general h1,
.sous_wrappeur_general h2,
.sous_wrappeur_general h3,
.sous_wrappeur_general h4,
.sous_wrappeur_general h5,
.sous_wrappeur_general h6 {
    font-family: var(--mm-font-heading);
    color: var(--mm-blue-900);
}
.sous_wrappeur_general p {
    line-height: var(--mm-lh-body);
    color: var(--mm-ink);
}
.sous_wrappeur_general a:not(.lien_bouton_1):not(.lien_bouton_2):not(.mm-btn) {
    color: var(--mm-blue-700);
    transition: color var(--mm-dur) var(--mm-ease);
}
.sous_wrappeur_general a:not(.lien_bouton_1):not(.lien_bouton_2):not(.mm-btn):hover {
    color: var(--mm-red);
}

/* ============================================================
   M&M Renov 2026 — header nav single-line fit
   9 menu items + right cluster were wrapping. Tighten the nav.
   ============================================================ */

/* Slightly smaller logo to free room */
.mm-header__logo img { height: 64px; max-width: 200px; }

/* Tighter nav items */
.mm-nav a {
    padding: 14px 10px !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Allow the nav row to stay inline without wrapping */
.mm-nav {
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

/* Right cluster: shrink phone CTA + drop the devis button on mid-large screens
   to leave even more room for the menu */
@media (max-width: 1200px) {
    .mm-header__right .mm-btn { display: none; }
    .mm-phone-cta__icon { width: 32px; height: 32px; font-size: 0.95rem; }
    .mm-phone-cta__number { font-size: 1.05rem; }
    .mm-phone-cta__label { font-size: 0.7rem; }
}

/* On a tighter desktop width, shrink padding further before the burger kicks in */
@media (max-width: 1100px) {
    .mm-nav a {
        padding: 14px 7px !important;
        font-size: 0.8rem !important;
    }
    .mm-header__logo img { height: 56px; }
}

/* Force the burger fallback a bit earlier so the menu never looks crammed */
@media (max-width: 1000px) {
    .mm-header__nav { display: none; }
    .mm-header__burger { display: flex; }
}
@media (max-width: 1000px) {
    .mm-header.is-open .mm-header__nav { display: block; }
    .mm-header.is-open .mm-nav a { padding: 12px 4px !important; font-size: 0.95rem !important; }
}

/* ============================================================
   M&M Renov 2026 — custom slider behaviour
   .mm-slider is added by mmrenov-slider.js on top of legacy .slider.
   ============================================================ */
.mm-slider {
    position: relative;
    overflow: hidden;
}
.mm-slider__slide {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms var(--mm-ease), visibility 0ms 600ms;
}
.mm-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 600ms var(--mm-ease), visibility 0ms 0ms;
    z-index: 1;
}
.mm-slider .item_slider:first-child:last-child { position: relative !important; }

/* Slide ratio so the container has height even when items are absolute */
.mm-slider {
    min-height: clamp(360px, 50vw, 560px);
}
.mm-slider .image_cropper,
.mm-slider .image_cropper img,
.mm-slider .item_slider img.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mm-slider .image_cropper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Caption title on slide */
.mm-slider .titre {
    position: absolute;
    left: clamp(24px, 5vw, 64px);
    right: clamp(24px, 5vw, 64px);
    bottom: clamp(80px, 10vw, 130px);
    z-index: 3;
    max-width: 720px;
}
.mm-slider .titre h1,
.mm-slider .titre h2,
.mm-slider .titre h3,
.mm-slider .titre h4,
.mm-slider .titre h5,
.mm-slider .titre h6 {
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.6rem);
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.mm-slider .titre h5::before {
    content: ;
    display: block;
    width: 80px;
    height: 4px;
    background: var(--mm-red);
    border-radius: 2px;
    margin-bottom: var(--mm-space-3);
}

/* The Voir le projet CTA button: red pill, visible on image */
.mm-slider .lien_bouton {
    position: absolute;
    left: clamp(24px, 5vw, 64px);
    bottom: clamp(28px, 4vw, 50px);
    z-index: 4;
}
.mm-slider .lien_bouton .lien_bouton_1 {
    display: inline-flex;
    align-items: center;
    gap: var(--mm-space-2);
    padding: 14px 28px;
    border-radius: var(--mm-radius-pill);
    background: var(--mm-red);
    color: var(--mm-paper) !important;
    font-family: var(--mm-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(217, 39, 46, 0.45);
    transition: background var(--mm-dur) var(--mm-ease), transform var(--mm-dur) var(--mm-ease);
    visibility: visible !important;
}
.mm-slider .lien_bouton .lien_bouton_1::after {
    content: →;
    font-size: 1.1em;
    line-height: 1;
}
.mm-slider .lien_bouton .lien_bouton_1:hover {
    background: var(--mm-red-dark);
    transform: translateY(-2px);
}

/* Prev / Next arrows */
.mm-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-weight: 700;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--mm-dur) var(--mm-ease),
                border-color var(--mm-dur) var(--mm-ease),
                transform var(--mm-dur) var(--mm-ease);
}
.mm-slider__nav span { font-size: 2rem; line-height: 1; margin-top: -4px; }
.mm-slider__nav--prev { left: clamp(12px, 2vw, 24px); }
.mm-slider__nav--next { right: clamp(12px, 2vw, 24px); }
.mm-slider__nav:hover {
    background: var(--mm-red);
    border-color: var(--mm-red);
    transform: translateY(-50%) scale(1.05);
}

/* Dots */
.mm-slider__dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 20px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.mm-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: width var(--mm-dur) var(--mm-ease),
                background var(--mm-dur) var(--mm-ease);
}
.mm-slider__dot.is-active {
    width: 28px;
    border-radius: var(--mm-radius-pill);
    background: var(--mm-paper);
}
.mm-slider__dot:hover { background: var(--mm-paper); }

/* Bottom gradient for caption legibility */
.mm-slider::before {
    content: ;
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 77, 0.65) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Drop any earlier diagonal cut */
.slider::after,
.module_slider::after { content: none !important; }

/* ============================================================
   M&M Renov 2026 — gallery grid + modern lightbox
   Targets the legacy .galerie_image markup without changing the DOM.
   ============================================================ */

/* Gallery thumbnails — clean responsive grid */
.galerie_image,
.galerie_image_cliquable {
    max-width: 1480px;
    margin: 0 auto;
    padding: var(--mm-space-5) var(--mm-gutter);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mm-space-5);
    background: transparent !important;
}
@media (max-width: 960px) {
    .galerie_image, .galerie_image_cliquable {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mm-space-4);
    }
}
@media (max-width: 560px) {
    .galerie_image, .galerie_image_cliquable {
        grid-template-columns: 1fr;
        gap: var(--mm-space-3);
    }
}

.galerie_image .wrappeur_image,
.galerie_image_cliquable .wrappeur_image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--mm-radius-md);
    box-shadow: 0 8px 24px rgba(11, 31, 77, 0.12);
    cursor: zoom-in;
    background: var(--mm-paper-soft);
    width: 100%;
    height: auto !important;
    line-height: 0 !important;
    transition: transform 250ms var(--mm-ease), box-shadow 250ms var(--mm-ease);
}
.galerie_image .wrappeur_image:hover,
.galerie_image_cliquable .wrappeur_image:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(11, 31, 77, 0.20);
}
.galerie_image .wrappeur_image img,
.galerie_image_cliquable .wrappeur_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms var(--mm-ease);
}
.galerie_image .wrappeur_image:hover img,
.galerie_image_cliquable .wrappeur_image:hover img {
    transform: scale(1.06);
}

/* Add a discreet magnifier hint icon on hover */
.galerie_image .wrappeur_image::after {
    content: ⤢;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 31, 77, 0.75);
    color: var(--mm-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 220ms var(--mm-ease), transform 220ms var(--mm-ease);
    pointer-events: none;
}
.galerie_image .wrappeur_image:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Hide legacy main image (we use the new lightbox now) */
.wrappeur_image_principal { display: none !important; }

/* ---------- Modern lightbox (.mm-lb injected by mmrenov-lightbox.js) ---------- */
.mm-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(11, 31, 77, 0.94);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms var(--mm-ease), visibility 0ms 280ms;
}
.mm-lb.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms var(--mm-ease), visibility 0ms 0ms;
}
.mm-lb__figure {
    margin: 0;
    max-width: 92vw;
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 280ms var(--mm-ease);
}
.mm-lb__img {
    max-width: 92vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--mm-radius-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #000;
}
.mm-lb__close,
.mm-lb__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: var(--mm-paper);
    font-family: var(--mm-font-heading);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 200ms var(--mm-ease), border-color 200ms var(--mm-ease), transform 200ms var(--mm-ease);
    backdrop-filter: blur(6px);
}
.mm-lb__close {
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mm-lb__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mm-lb__nav--prev { left: clamp(12px, 3vw, 36px); }
.mm-lb__nav--next { right: clamp(12px, 3vw, 36px); }
.mm-lb__close:hover,
.mm-lb__nav:hover {
    background: var(--mm-red);
    border-color: var(--mm-red);
}
.mm-lb__nav:hover { transform: translateY(-50%) scale(1.05); }

.mm-lb__counter {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--mm-font-heading);
    letter-spacing: 2px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .mm-lb__nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .mm-lb__close { width: 40px; height: 40px; top: 12px; right: 12px; font-size: 1.4rem; }
}

/* Fix slider (2026-09-16) : les flèches doivent s être centrées sur le .slider,
   pas sur .controle_bouton (qui les collait en haut, sur le bandeau rouge). */
.slider .controle_bouton,
.module_slider .controle_bouton {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
}
.slider .controle_bouton .clear { display: none !important; }
