/* ═══════════════════════════════════════════════════════════════════════════════
   LMDM Theme — Global CSS
   Source unique de vérité pour les styles globaux (hors design tokens theme.json)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Reset minimal ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
html,
body {
    overflow-x: clip; /* clip ne crée pas de contexte de formatage, le breakout 100vw fonctionne sur mobile */
}

/* ─── Pages de contenu (vie privée, CGV, etc.) ───────────────────────────── */
.page .wp-block-post-content {
    padding: 0 max(5vw, calc((100vw - 2000px) / 2));
    max-width: 100%;
}

.page .wp-block-post-content h1,
.page .wp-block-post-content h2,
.page .wp-block-post-content h3 {
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page .wp-block-post-content h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0;
}

.page .wp-block-post-content p,
.page .wp-block-post-content li {
    font-family: var(--wp--preset--font-family--body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--wp--preset--color--primary);
}

/* Supprime le block-gap WordPress entre header et main */
.wp-site-blocks > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.wp-block-post-content {
    margin-block-start: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--text);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Typographie globale ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 400;
    color: var(--wp--preset--color--primary);
    margin-top: 0;
}

h1 {
    font-size: 3.15rem;
    line-height: 3.45rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 2rem;
    line-height: 2.45rem;
}

h4 {
    font-size: 1.2rem;
    line-height: 1.4;
}

p {
    margin-top: 0;
    font-size: 1.15rem;
    line-height: 1.7;
}

a {
    color: var(--wp--preset--color--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--wp--preset--color--primary);
}

/* ─── Gap 20px entre tous les éléments des sections LMDM ────────────────────── */
.wp-block-lmdm-sublimer > *,
.wp-block-lmdm-hero > *,
.wp-block-lmdm-pricing-table > *,
.wp-block-lmdm-process-steps > *,
.wp-block-lmdm-fabric-showcase > *,
.wp-block-lmdm-testimonial-card > *,
.wp-block-lmdm-cta-appointment > *,
.wp-block-lmdm-product-features > *,
.wp-block-lmdm-comparison-table > * {
    margin-top: 0;
    margin-bottom: 0;
}

.wp-block-lmdm-sublimer > *:last-child,
.wp-block-lmdm-hero > *:last-child,
.wp-block-lmdm-pricing-table > *:last-child,
.wp-block-lmdm-process-steps > *:last-child,
.wp-block-lmdm-fabric-showcase > *:last-child,
.wp-block-lmdm-testimonial-card > *:last-child,
.wp-block-lmdm-cta-appointment > *:last-child,
.wp-block-lmdm-product-features > *:last-child,
.wp-block-lmdm-comparison-table > *:last-child {
    margin-bottom: 0;
}

/* ─── Sections LMDM — plein écran obligatoire ────────────────────────────────── */
.wp-block-lmdm-sublimer,
.wp-block-lmdm-hero,
.wp-block-lmdm-pricing-table,
.wp-block-lmdm-process-steps,
.wp-block-lmdm-fabric-showcase,
.wp-block-lmdm-testimonial-card,
.wp-block-lmdm-cta-appointment,
.wp-block-lmdm-product-features,
.wp-block-lmdm-comparison-table,
.wp-block-lmdm-video-hero,
.wp-block-lmdm-section-cta,
.wp-block-lmdm-hero-section,
.lmdm-section {
    /* Breakout fiable sur mobile : calc() sans position relative */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

/* Padding 75px uniquement pour les sections avec contenu — pas pour video-hero */
.wp-block-lmdm-sublimer,
.wp-block-lmdm-hero,
.wp-block-lmdm-pricing-table,
.wp-block-lmdm-process-steps,
.wp-block-lmdm-fabric-showcase,
.wp-block-lmdm-testimonial-card,
.wp-block-lmdm-cta-appointment,
.wp-block-lmdm-product-features,
.wp-block-lmdm-comparison-table,
.wp-block-lmdm-section-cta,
.lmdm-section {
    padding-top: 75px !important;
    padding-bottom: 75px !important;
    padding-left: max(5vw, calc((100vw - 2000px) / 2)) !important;
    padding-right: max(5vw, calc((100vw - 2000px) / 2)) !important;
}

/* ─── Boutons globaux ────────────────────────────────────────────────────────── */
.lmdm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    line-height: 1;
}

.lmdm-btn--gold {
    background-color: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--gold);
}

.lmdm-btn--gold:hover {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--gold);
}

.lmdm-btn--outline {
    background-color: transparent;
    color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
}

.lmdm-btn--outline:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.lmdm-btn--outline-light {
    background-color: transparent;
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
}

.lmdm-btn--outline-light:hover {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--primary);
}

/* ─── WP block button styles personnalisés ───────────────────────────────────── */
.wp-block-button.is-style-lmdm-primary .wp-block-button__link {
    background-color: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    border: 2px solid var(--wp--preset--color--gold);
    border-radius: 0;
    padding: 0.85rem 2rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.wp-block-button.is-style-lmdm-primary .wp-block-button__link:hover {
    background-color: transparent;
    color: var(--wp--preset--color--gold);
}

.wp-block-button.is-style-lmdm-gold .wp-block-button__link {
    background-color: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    border: 2px solid var(--wp--preset--color--gold);
    border-radius: 0;
    padding: 1rem 2.5rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.wp-block-button.is-style-lmdm-gold .wp-block-button__link:hover {
    background-color: transparent;
    color: var(--wp--preset--color--gold);
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.lmdm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--wp--preset--color--white);
    padding: 20px max(5vw, calc((100vw - 2000px) / 2));
    border-bottom: 1px solid var(--wp--preset--color--background);
}

/* Compenser la hauteur du header fixe */
body {
    padding-top: var(--lmdm-header-height, 72px);
}

html {
    scroll-padding-top: 150px;
}

/* ─── Animation fade-up réutilisable (scroll-driven, zéro JS) ────────────── */

@keyframes lmdm-fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lmdm-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: lmdm-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
}

@supports not (animation-timeline: view()) {
    .lmdm-fade-up {
        opacity: 1;
        transform: none;
    }
}

.lmdm-header__left {
    gap: 1.5rem !important;
}

.lmdm-header__logo img {
    height: 48px;
    width: auto;
}

.lmdm-header__right {
    gap: 1.5rem !important;
}

.lmdm-header__lang {
    display: none;
}

.lmdm-header__lang .lmdm-lang-switcher__list,
.lmdm-header__lang ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lmdm-header__lang a,
.lmdm-header__lang .lmdm-lang-switcher__current {
    color: #000 !important;
    text-decoration: none !important;
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lmdm-header__lang a:hover,
.lmdm-header__lang a:focus,
.lmdm-header__lang a:active {
    color: var(--wp--preset--color--gold) !important;
}

/* ── Avis Google / TrustIndex ────────────────────────────────────────────── */
.lmdm-header__reviews {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
}

.lmdm-header__reviews-logo {
    font-family: var(--wp--preset--font-family--body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
}

.lmdm-header__reviews-stars {
    color: var(--wp--preset--color--gold);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.lmdm-header__reviews-count {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary);
}

/* ── Réseaux sociaux header ──────────────────────────────────────────────── */
/* ── Bouton header : pas d'uppercase ──────────────────────────────────────── */
.lmdm-header .wp-block-button__link {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.lmdm-header__socials .wp-block-social-link {
    background: none !important;
}

.lmdm-header__socials .wp-block-social-link a {
    color: var(--wp--preset--color--gold) !important;
}

.lmdm-header__socials .wp-block-social-link a svg {
    fill: var(--wp--preset--color--gold) !important;
}

.lmdm-header__socials .wp-block-social-link a:hover svg {
    fill: var(--wp--preset--color--primary) !important;
}

/* ─── Navigation desktop ─────────────────────────────────────────────────────── */

.lmdm-header .wp-block-navigation a {
    font-family: var(--wp--preset--font-family--body);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lmdm-header .wp-block-navigation a:hover {
    color: var(--wp--preset--color--gold);
}

/* ─── Menu hamburger mobile ──────────────────────────────────────────────────── */

/* Bouton hamburger */
.lmdm-header .wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--primary);
}

/* Bouton fermer */
.lmdm-header .wp-block-navigation__responsive-container-close {
    color: var(--wp--preset--color--primary);
}

/* Overlay du menu mobile ouvert */
.lmdm-header .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--wp--preset--color--white);
    padding: 2rem 5vw;
}

/* Liens dans le menu mobile */
.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--wp--preset--color--primary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wp--preset--color--background);
    display: block;
}

.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--gold);
}

/* Sous-menus mobile : masqués par défaut, ouverts au clic */
.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] + .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: initial !important;
    padding-left: 1.5rem !important;
    padding-top: 0.5rem !important;
    margin: 0 !important;
}

/* Bouton toggle des sous-menus */
.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--gold);
    padding: 0.5rem;
    margin-left: 0.25rem;
    transition: transform 0.25s ease;
}

.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle svg {
    stroke: var(--wp--preset--color--gold);
    width: 16px;
    height: 16px;
}

.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

/* Liens sous-menus */
.lmdm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
    font-size: 1.15rem;
}

/* ─── Article de blog — Hero ──────────────────────────────────────────────────── */

.lmdm-article-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    max-height: 100vh;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
}

.lmdm-article-hero .wp-post-image,
.lmdm-article-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.lmdm-article-hero__bg {
    position: absolute;
    inset: 0;
    margin: 0 !important;
}

.lmdm-article-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(51, 51, 51, 0.45);
    z-index: 1;
}

.lmdm-article-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem max(5vw, calc((100vw - 2000px) / 2)) !important;
    text-align: center;
}

.lmdm-article-hero__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 3.15rem;
    font-weight: 700;
    color: var(--wp--preset--color--white) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin: 0 !important;
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ─── Article de blog — Corps ─────────────────────────────────────────────────── */

.lmdm-article-body {
    padding: 4rem max(5vw, calc((100vw - 2000px) / 2)) !important;
}

/* ── Grid 2 colonnes : main + sidebar ─────────────────────────────────────────── */

.lmdm-article-grid {
    display: grid;
    grid-template-columns: calc(70% - 15px) calc(30% - 15px);
    gap: 30px;
    align-items: start;
}

.lmdm-article-main {
    min-width: 0;
}

.lmdm-article-sidebar {
    position: sticky;
    top: 100px;
}

/* TOC dans la sidebar */
.lmdm-article-sidebar .lmdm-toc {
    margin-bottom: 2rem;
}

/* CTA sidebar */
.lmdm-sidebar-cta {
    background: var(--wp--preset--color--background);
    padding: 2rem 1.5rem;
    text-align: center;
}

.lmdm-sidebar-cta__text {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--wp--preset--color--primary);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.lmdm-sidebar-cta__btn {
    display: inline-block;
    text-align: center;
}

@media (max-width: 900px) {
    .lmdm-sidebar-cta {
        display: none;
    }
}

/* Related articles in 2-col grid needs to adapt */
.lmdm-related__grid {
    grid-template-columns: repeat(2, 1fr);
}

.lmdm-article-body h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--wp--preset--color--gold);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.lmdm-article-body h3 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--wp--preset--color--primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.lmdm-article-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.lmdm-article-body ul,
.lmdm-article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.lmdm-article-body li {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.lmdm-article-body blockquote {
    border-left: 3px solid var(--wp--preset--color--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--wp--preset--color--gray-dark);
}

.lmdm-article-body img {
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .lmdm-article-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lmdm-article-sidebar {
        position: static;
        order: -1;
    }

    .lmdm-article-hero {
        height: 70vh;
        max-height: 100vh;
    }

    .lmdm-article-hero__title {
        font-size: 2rem;
    }

    .lmdm-article-body {
        padding: 2.5rem 5vw !important;
    }
}

/* ─── Article de blog — Fil d'Ariane ──────────────────────────────────────────── */

.lmdm-breadcrumb {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    padding: 1rem max(5vw, calc((100vw - 2000px) / 2));
}

.lmdm-breadcrumb__link {
    color: var(--wp--preset--color--gray-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lmdm-breadcrumb__link:hover {
    color: var(--wp--preset--color--gold);
}

.lmdm-breadcrumb__sep {
    color: var(--wp--preset--color--gray-medium);
    margin: 0 0.15rem;
}

.lmdm-breadcrumb__current {
    color: var(--wp--preset--color--gold);
}

/* ─── Article de blog — Meta (auteur, date, catégorie) ────────────────────────── */

.lmdm-article-meta {
    padding: 1.5rem max(5vw, calc((100vw - 2000px) / 2)) !important;
    border-bottom: 1px solid var(--wp--preset--color--background);
}

.lmdm-article-meta .wp-block-group {
    justify-content: center;
    gap: 0.5rem;
}

.lmdm-article-meta__author,
.lmdm-article-meta__date,
.lmdm-article-meta__cat {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--wp--preset--color--gray-dark);
    margin: 0;
}

.lmdm-article-meta__cat a {
    color: var(--wp--preset--color--gold);
    text-decoration: none;
}

.lmdm-article-meta__sep {
    color: var(--wp--preset--color--gray-medium);
    margin: 0;
}

/* ─── Article de blog — Sommaire (TOC) ────────────────────────────────────────── */

.lmdm-toc {
    background: var(--wp--preset--color--background);
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
}

.lmdm-toc__label {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--wp--preset--color--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.lmdm-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.lmdm-toc__item {
    counter-increment: toc;
    margin-bottom: 0.4rem;
}

.lmdm-toc__item > a,
.lmdm-toc__details > summary > a {
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lmdm-toc__item > a::before,
.lmdm-toc__details > summary > a::before {
    content: counter(toc) ". ";
    color: var(--wp--preset--color--gold);
    font-weight: 400;
}

.lmdm-toc__item > a:hover,
.lmdm-toc__details > summary > a:hover {
    color: var(--wp--preset--color--gold);
}

/* Accordéon details/summary */
.lmdm-toc__details {
    margin: 0;
}

.lmdm-toc__details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lmdm-toc__details > summary::-webkit-details-marker {
    display: none;
}

.lmdm-toc__details > summary::marker {
    content: '';
}

.lmdm-toc__details > summary::after {
    content: '+';
    font-size: 0.85rem;
    color: var(--wp--preset--color--gold);
    transition: transform 0.25s ease;
}

.lmdm-toc__details[open] > summary::after {
    content: '−';
}

/* Sous-liste H3 */
.lmdm-toc__sublist {
    list-style: none;
    padding: 0.3rem 0 0.3rem 1.5rem;
    margin: 0;
}

.lmdm-toc__subitem {
    margin-bottom: 0.3rem;
}

.lmdm-toc__subitem a {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--wp--preset--color--gray-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lmdm-toc__subitem a::before {
    content: '— ';
    color: var(--wp--preset--color--gray-medium);
}

.lmdm-toc__subitem a:hover {
    color: var(--wp--preset--color--gold);
}

/* ─── Article de blog — Bloc auteur ───────────────────────────────────────────── */

.lmdm-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--wp--preset--color--background);
}

.lmdm-author__avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.lmdm-author__img {
    flex-shrink: 0;
}

.lmdm-author__label {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--wp--preset--color--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.25rem;
}

.lmdm-author__name {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.lmdm-author__name a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.lmdm-author__name a:hover {
    color: var(--wp--preset--color--gold);
}

.lmdm-author__bio {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--wp--preset--color--gray-dark);
    margin: 0;
}

/* ─── Article de blog — Articles recommandés ──────────────────────────────────── */

.lmdm-related {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--wp--preset--color--background);
}

.lmdm-related__title {
    font-family: var(--wp--preset--font-family--heading) !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    color: var(--wp--preset--color--gold) !important;
    margin-bottom: 2rem !important;
}

.lmdm-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lmdm-related__card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--wp--preset--color--background);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.lmdm-related__card:hover {
    border-color: var(--wp--preset--color--gold);
}

.lmdm-related__img {
    overflow: hidden;
}

.lmdm-related__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lmdm-related__card:hover .lmdm-related__img img {
    transform: scale(1.03);
}

.lmdm-related__card-title {
    font-family: var(--wp--preset--font-family--body) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: var(--wp--preset--color--primary) !important;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 1rem 1rem;
}

@media (max-width: 768px) {
    .lmdm-related__grid {
        grid-template-columns: 1fr;
    }

    .lmdm-author {
        flex-direction: column;
        text-align: center;
    }

    .lmdm-toc {
        padding: 1.5rem;
    }
}

/* ─── Footer — Partie haute (fond blanc) ─────────────────────────────────────── */

.lmdm-footer-top {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 75px max(5vw, calc((100vw - 2000px) / 2)) 50px !important;
    text-align: center;
}

.lmdm-footer-top__logo {
    margin-bottom: 3rem;
}

.lmdm-footer-top__grid {
    gap: 2rem;
}

.lmdm-footer-top__col {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.lmdm-footer-top__title {
    font-family: var(--wp--preset--font-family--heading) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--gold) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem !important;
}

.lmdm-footer-top__link {
    font-size: 1rem;
}

.lmdm-footer-top__link a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lmdm-footer-top__link a:hover {
    color: var(--wp--preset--color--gold);
}

.lmdm-footer-top__socials .wp-block-social-link {
    background: none !important;
}

.lmdm-footer-top__socials .wp-block-social-link a {
    color: var(--wp--preset--color--primary) !important;
}

.lmdm-footer-top__socials .wp-block-social-link a:hover {
    color: var(--wp--preset--color--gold) !important;
}

/* ─── Footer — Partie basse (fond or) ────────────────────────────────────────── */

.lmdm-footer-bottom {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 75px max(5vw, calc((100vw - 2000px) / 2)) 2rem !important;
}

.lmdm-footer-bottom__grid {
    gap: 3rem;
    margin-bottom: 3rem;
}

.lmdm-footer-bottom__col {
    flex: 1;
    min-width: 200px;
}

.lmdm-footer-bottom__title {
    font-family: var(--wp--preset--font-family--heading) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--white) !important;
    text-transform: uppercase;
    margin-bottom: 1.25rem !important;
}

.lmdm-footer-bottom__list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.lmdm-footer-bottom__list li {
    margin-bottom: 0.5rem;
}

.lmdm-footer-bottom__list a {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 1rem;
}

.lmdm-footer-bottom__list a:hover {
    color: var(--wp--preset--color--primary);
}

.lmdm-footer-bottom__lang a {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

/* Language switcher dans le footer : aligner sur le style des autres liens */
.lmdm-footer-bottom .lmdm-lang-switcher__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lmdm-footer-bottom .lmdm-lang-switcher a,
.lmdm-footer-bottom .lmdm-lang-switcher__link,
.lmdm-footer-bottom .lmdm-lang-switcher__current {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.lmdm-footer-bottom .lmdm-lang-switcher a:hover,
.lmdm-footer-bottom .lmdm-lang-switcher__link:hover {
    color: var(--wp--preset--color--primary);
}

.lmdm-footer-bottom .lmdm-lang-switcher .current-lang > a,
.lmdm-footer-bottom .lmdm-lang-switcher__current {
    font-weight: 600;
}

.lmdm-footer-bottom__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 2rem auto !important;
    width: 100%;
}

.lmdm-footer-bottom__legal {
    gap: 2rem;
    margin-bottom: 1rem;
}

.lmdm-footer-bottom__legal a {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lmdm-footer-bottom__legal a:hover {
    color: var(--wp--preset--color--primary);
}

/* ── Copyright ───────────────────────────────────────────────────────────────── */

.lmdm-footer-bottom__copyright {
    text-align: center !important;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    width: 100%;
}

.lmdm-footer-bottom__copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lmdm-footer-bottom__copyright a:hover {
    color: var(--wp--preset--color--white);
}

/* ─── Footer — Responsive ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lmdm-footer-top__grid {
        flex-direction: column;
        align-items: center;
    }

    .lmdm-footer-bottom__grid {
        flex-direction: column;
    }

    .lmdm-footer-top,
    .lmdm-footer-bottom {
        padding-left: 5vw !important;
        padding-right: 5vw !important;
    }
}

/* ─── CTA Discovery — marge optionnelle ───────────────────────────────────── */

.lmdm-cta-discovery--margin-top {
    margin-top: 75px !important;
}

/* ─── Séparateur or ──────────────────────────────────────────────────────────── */
.lmdm-separator--gold {
    border: none;
    border-top: 2px solid var(--wp--preset--color--gold);
    width: 60px;
    margin: 0 auto 2rem;
}

/* ─── Responsive progressif header ──────────────────────────────────────────── */

/* Logo ne se réduit jamais */
.lmdm-header__logo img {
    flex-shrink: 0 !important;
    max-width: none !important;
}

/* 1. D'abord masquer les réseaux sociaux */
@media (max-width: 1754px) {
    .lmdm-header__socials {
        display: none !important;
    }
}

/* 2. Ensuite masquer les avis Google */
@media (max-width: 1665px) {
    .lmdm-header__trustindex {
        display: none !important;
    }
}


/* 3. Layout mobile : hamburger gauche, logo centre */
@media (max-width: 1383px) {
    .lmdm-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .lmdm-header__left {
        order: 1;
        flex-direction: row-reverse !important;
    }

    .lmdm-header__left .lmdm-header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .lmdm-header__right {
        order: 2;
    }
}

/* ─── Responsive général ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wp-block-lmdm-sublimer,
    .wp-block-lmdm-hero,
    .wp-block-lmdm-pricing-table,
    .wp-block-lmdm-process-steps,
    .wp-block-lmdm-fabric-showcase,
    .wp-block-lmdm-testimonial-card,
    .wp-block-lmdm-cta-appointment,
    .wp-block-lmdm-product-features,
    .wp-block-lmdm-comparison-table,
    .lmdm-section {
        padding-left: 5vw !important;
        padding-right: 5vw !important;
    }

    .lmdm-header {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .lmdm-header__cta-btn,
    .lmdm-header__right .wp-block-buttons {
        display: none !important;
    }

    .lmdm-header__lang {
        display: block !important;
    }

    h1 {
        font-size: 1.75rem !important;
        line-height: 2.1rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.8rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
        line-height: 1.6rem !important;
    }
}
