/* Burma Group — base reprise de burma-equipement/public/css/refonte.css (charte commune du groupe) */
:root {
    --red: #bd1b27;
    --red-hover: #9e141f;
    --ink: #18191b;
    --muted: #525862;
    --line: #e4e5e8;
    --surface: #f5f6f7;
    
    /* Échelle typographique : 7 tailles, 4 graisses (400 / 600 / 700 / 800).
       Toute nouvelle règle doit utiliser ces variables. */
    --font-d1: clamp(2.5rem, 2rem + 2.4vw, 3.75rem);
    --font-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    --font-h3: 1.25rem;
    --font-lead: 1.125rem;
    --font-body: 1rem;
    --font-sm: 0.875rem;
    --font-xs: 0.75rem;

    --header-h: 92px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Encode Sans', Arial, sans-serif;
    color: var(--ink);
    font-size: var(--font-body);
    line-height: 1.65;
    background: #fff;
}

h1, h2, h3, .metric, .catalog-category-heading, .footer-next h2 {
    font-family: 'Encode Sans Condensed', 'Encode Sans', sans-serif;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
}

h1 { font-size: var(--font-d1); text-wrap: balance; }
h2 { font-size: var(--font-h2); margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: var(--font-h3); margin: 0 0 10px; }
h2 + .lead, h2 + p { margin-top: 0; }
p { margin: 0 0 1rem; text-wrap: pretty; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
::selection { background: #f6d4d7; }
#nprogress .bar { background: var(--red) !important; }
#nprogress .peg { box-shadow: 0 0 10px var(--red), 0 0 5px var(--red) !important; }

a, button, input, select, textarea { touch-action: manipulation; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}
img { max-width: 100%; height: auto; }

.shell { width: min(1840px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 72px; }
.section-soft { background: var(--surface); }
.section-dark { background: var(--ink); color: white; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: var(--font-xs);
    font-weight: 800;
    color: var(--red);
    display: block;
    margin-bottom: 14px;
}
.section-dark .eyebrow { color: #ffadb5; }

.lead {
    font-size: var(--font-lead);
    color: var(--muted);
    max-width: 680px;
    line-height: 1.6;
}
.section-dark .lead { color: #d4d6dc; }

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.section-heading h2 { margin: 0; }

.text-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease, gap 0.2s ease;
}
.text-link:hover { color: var(--red-hover); text-decoration: underline; text-underline-offset: 4px; }
.text-link .arrow { display: inline-block; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.text-link:hover .arrow, .card:hover .text-link .arrow { transform: translateX(4px); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--line);
    font-size: var(--font-sm);
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    background: white;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.button-red {
    background: var(--red);
    border-color: var(--red);
    color: white;
}
.button-red:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: white;
    box-shadow: 0 6px 18px rgba(189, 27, 39, 0.25);
}
.button-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}
.button-dark:hover {
    background: #2a2c30;
    border-color: #2a2c30;
    color: white;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 26px;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 1001;
    background: white;
    padding: 10px;
    border: 2px solid var(--red);
}
.skip-link:focus { top: 10px; }

/* Group bar */
.group-bar { background: #202124; color: #fff; font-size: .75rem; }
.group-inner, .group-inner > div { display: flex; align-items: center; gap: 24px; }
.group-inner { justify-content: space-between; min-height: 37px; }
.group-inner > span { letter-spacing: .1em; font-weight: 700; }
.group-bar a { text-decoration: none; opacity: .75; transition: opacity 0.15s ease; }
.group-bar a:hover { opacity: 1; }
.group-bar a[aria-current] { opacity: 1; border-bottom: 2px solid #df6b74; }

/* En-tête : Îlot flottant centré en haut ➔ Pleine largeur compacte au scroll */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding-top: 14px;
    padding-bottom: 8px;
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.is-compact {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding-top: 0;
    padding-bottom: 0;
}

.masthead {
    display: flex;
    align-items: center;
    gap: 32px;
    width: min(1360px, calc(100% - 32px));
    margin-inline: auto;
    min-height: 84px;
    padding: 8px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: width .35s cubic-bezier(0.16, 1, 0.3, 1),
                min-height .35s cubic-bezier(0.16, 1, 0.3, 1),
                padding .35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius .35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color .35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow .35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color .35s ease;
    box-sizing: border-box;
}
.is-compact .masthead {
    width: min(1840px, calc(100% - 48px));
    min-height: 68px;
    padding: 4px 0;
    background: transparent;
    border-color: transparent;
    border-radius: 0;
    box-shadow: none;
}
.brand { flex-shrink: 0; display: block; line-height: 0; }
.brand img { width: 125px; height: auto; transition: width .35s cubic-bezier(0.16, 1, 0.3, 1); }
.is-compact .brand img { width: 95px; }

.primary-nav { flex: 1; min-width: 0; }
.menu-links { display: flex; align-items: center; justify-content: center; gap: 4px; }
.menu-links > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: var(--font-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink);
    transition: color .2s ease;
}
.menu-links > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease-out);
}
.menu-links > a:hover { color: var(--red); }
.menu-links > a:hover::after, .menu-links > a[aria-current]::after { transform: scaleX(1); }
.menu-links > a[aria-current] { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.help-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: var(--font-sm);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
    color: var(--ink);
}
.help-link .header-icon-phone {
    flex-shrink: 0;
    color: var(--red);
    transition: transform .2s ease;
}
.help-link:hover .header-icon-phone {
    transform: scale(1.15);
}
.help-link-text {
    display: flex;
    flex-direction: column;
}
.help-link-text span {
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--muted);
    line-height: 1.2;
}
.help-link-text strong {
    font-size: var(--font-sm);
    font-weight: 700;
    color: inherit;
    line-height: 1.25;
}
.help-link:hover {
    color: var(--red);
}

.header-sav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-sav-btn .header-icon-sav {
    flex-shrink: 0;
    color: #ffffff;
    transition: transform .2s ease;
}
.header-sav-btn:hover .header-icon-sav {
    transform: rotate(-15deg);
}

.menu-toggle, .mobile-menu-actions { display: none; }


/* Site Footer */
.site-footer {
    padding: 0 0 22px;
    background: #f6f6f5;
    color: #303238;
    border-top: 1px solid #e4e5e8;
}
.footer-next { background: #202124; color: #fff; }
.footer-next-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding-block: 40px;
}
.site-footer .footer-kicker {
    display: block;
    color: #eea6ac;
    text-transform: uppercase;
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 12px;
}
.site-footer .footer-next h2 {
    font-size: var(--font-h2);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -.025em;
}
.footer-next p { color: #c9cbd0; margin: 0; max-width: 530px; font-size: var(--font-sm); }
.footer-next-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 270px; }
.site-footer .footer-next-actions a { margin: 0; }
.site-footer .footer-next-actions .button { display: flex; justify-content: space-between; gap: 30px; min-height: 52px; }
.site-footer .footer-sav-link { font-size: var(--font-sm); color: #eceef0; padding-block: 5px; text-align: center; text-underline-offset: 5px; }

.site-footer .footer-grid { padding-block: 44px 32px; grid-template-columns: 1.05fr 1fr 1fr 1.1fr; gap: 40px; display: grid; }
.site-footer .footer-grid h3 { color: #18191b; font-size: var(--font-sm); font-weight: 800; margin: 0 0 20px; font-family: inherit; }
.site-footer .footer-logo { width: 135px; height: auto; filter: none; margin: 0 0 18px; }
.footer-brand p { max-width: 260px; color: #60656c; line-height: 1.7; font-size: var(--font-sm); }
.site-footer .footer-group-link { font-size: var(--font-xs); font-weight: 600; }
.site-footer .footer-grid nav { display: flex; flex-direction: column; }
.site-footer .footer-grid nav a { display: inline-flex; align-items: center; width: fit-content; padding: 6px 0; margin-bottom: 2px; line-height: 1.5; text-decoration: none; font-size: var(--font-sm); color: #374151; transition: color 0.15s ease, transform 0.15s ease; }
.site-footer .footer-grid nav a:hover { color: var(--red); transform: translateX(4px); text-decoration: none; }
.site-footer .footer-grid a:hover { color: var(--red); }
.site-footer .footer-grid span { color: #626870; }
.site-footer .footer-phone { margin-bottom: 18px; }
.site-footer .footer-contact-row { display: flex; align-items: flex-start; gap: 10px; }
.site-footer .footer-contact-icon { flex-shrink: 0; color: var(--red); margin-top: 2px; transition: transform 0.15s ease; }
.site-footer .footer-contact-row:hover .footer-contact-icon { transform: scale(1.12); }
.site-footer .footer-contact-info { display: flex; flex-direction: column; }
.site-footer .footer-contact-info span { display: block; font-size: var(--font-xs); color: #626870; margin-bottom: 2px; }
.site-footer .footer-contact-info a { display: inline-flex; align-items: center; color: #202124; font-size: var(--font-h3); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .025em; text-decoration: none; margin-bottom: 0; transition: color 0.15s ease, transform 0.15s ease; }
.site-footer .footer-contact-info a:hover { color: var(--red); transform: translateX(3px); text-decoration: none; }

.site-footer .footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #ffffff !important; border: none; border-radius: 6px; padding: 8px 14px; font-size: var(--font-sm); font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25); transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; margin-top: 4px; }
.site-footer .footer-whatsapp span { color: #ffffff !important; }
.site-footer .footer-whatsapp:hover { background: #1eb956; color: #ffffff !important; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); }
.site-footer .footer-whatsapp:hover span { color: #ffffff !important; }
.site-footer .footer-whatsapp-icon { flex-shrink: 0; width: 18px; height: 18px; }
.site-footer a span[aria-hidden] { display: inline; color: inherit; }

.footer-visit address { font-style: normal; margin-bottom: 16px; line-height: 1.65; font-size: var(--font-sm); }
.site-footer .footer-address-link { display: inline-flex; align-items: flex-start; gap: 10px; color: #4b5563; text-decoration: none; line-height: 1.5; transition: color 0.15s ease; }
.site-footer .footer-address-link:hover { color: var(--red); text-decoration: none; }
.site-footer .footer-address-link .footer-icon-pin { flex-shrink: 0; color: var(--red); margin-top: 3px; transition: transform 0.15s ease; }
.site-footer .footer-address-link:hover .footer-icon-pin { transform: translateY(-2px); }

.site-footer .footer-hours-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.site-footer .footer-icon-clock { flex-shrink: 0; color: var(--red); margin-top: 2px; transition: transform 0.15s ease; }
.site-footer .footer-hours-row:hover .footer-icon-clock { transform: scale(1.12); }
.site-footer .footer-hours-info span { display: block; font-size: var(--font-xs); color: #626870; margin-bottom: 2px; }
.site-footer .footer-hours-info p { font-size: var(--font-sm); color: #4b5563; margin: 0; line-height: 1.5; }

.site-footer .footer-location-link { font-size: var(--font-sm); font-weight: 600; color: #1f2937; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color 0.15s ease; }
.site-footer .footer-location-link .footer-icon-building { flex-shrink: 0; color: var(--red); transition: transform 0.15s ease; }
.site-footer .footer-location-link span { transition: transform 0.15s ease; }
.site-footer .footer-location-link:hover { color: var(--red); text-decoration: none; }
.site-footer .footer-location-link:hover .footer-icon-building { transform: translateY(-2px); }
.site-footer .footer-location-link:hover span { transform: translateX(3px); }

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid #dcdedf;
    font-size: var(--font-xs);
    align-items: center;
}
.site-footer .footer-bottom > span { color: #626870; }
.site-footer .footer-bottom > div { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .footer-bottom a { margin: 0; text-decoration: none; }
.site-footer .footer-bottom a:hover { text-decoration: underline; }

/* Points de rupture : 3 seulement — 1200 (desktop serré), 1024 (tablette), 640 (mobile) */
@media (max-width: 1200px) {
    .help-link { display: none; }
    .masthead { gap: 20px; }
    .menu-links > a { padding: 0 9px; }
    .menu-links > a::after { left: 9px; right: 9px; }
}
/* Tablette : 641px – 1024px */
@media (max-width: 1024px) {
    :root { --header-h: 68px; }
    .header-actions { gap: 12px; margin-left: auto; }

    /* Menu : panneau superposé sous l'en-tête, sans pousser le contenu */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
        color: var(--ink);
        font: 700 var(--font-sm)/1 'Encode Sans', sans-serif;
        cursor: pointer;
        transition: border-color .2s ease, color .2s ease;
    }
    .menu-toggle:hover { border-color: var(--ink); }
    .menu-toggle-icon { position: relative; width: 18px; height: 12px; }
    .menu-toggle-icon i {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform .3s var(--ease-out), opacity .2s ease, top .3s var(--ease-out);
    }
    .menu-toggle-icon i:nth-child(1) { top: 0; }
    .menu-toggle-icon i:nth-child(2) { top: 5px; }
    .menu-toggle-icon i:nth-child(3) { top: 10px; }
    .menu-open .menu-toggle-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
    .menu-open .menu-toggle-icon i:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle-icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

    .primary-nav { flex: 0 0 auto; order: 3; }
    .menu-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: 8px max(24px, calc((100% - 720px) / 2)) 24px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
    }
    .menu-links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .menu-links > a { min-height: 52px; padding: 0 4px; font-size: var(--font-lead); border-bottom: 1px solid var(--line); }
    .menu-links > a::after { display: none; }
    .menu-links > a[aria-current] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }

    .mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; }
    .mobile-contact-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: 56px;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: var(--font-lead);
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none;
        font-variant-numeric: tabular-nums;
        color: #fff;
    }
    .mobile-contact-btn svg { flex-shrink: 0; }
    .mobile-contact-btn > span { display: flex; flex-direction: column; }
    .mobile-contact-btn span span { font-size: var(--font-xs); font-weight: 600; opacity: .85; }
    .mobile-contact-btn.mobile-call { background: var(--ink); }
    .mobile-contact-btn.mobile-sav { background: var(--red); }
    .mobile-contact-btn.mobile-wa { grid-column: 1 / -1; align-items: center; background: #1e7e45; font-size: var(--font-body); }

    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: none; }
    .hero-visual img { height: 320px; }
    .grid-3 { gap: 16px; }
    .grid-3 .card { padding: 20px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .process { gap: 14px; }
    .process h3 { font-size: var(--font-body); }
    .split { gap: 36px; }
    .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-filters { top: calc(var(--header-h) + 12px); }
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 44px; }
}

/* Mobile : ≤ 640px */
@media (max-width: 640px) {
    :root { --header-h: 60px; }
    .site-header { padding-top: 0; padding-bottom: 0; background: rgba(255, 255, 255, .98); border-bottom: 2px solid var(--red); }
    .shell { width: calc(100% - 32px); }
    .group-inner > span { display: none; }
    .group-inner { justify-content: center; min-height: 34px; }
    .group-inner > div { gap: 16px; }
    .group-bar a { display: inline-flex; align-items: center; min-height: 34px; }
    .brand img, .is-compact .brand img { width: 85px; }
    .masthead, .is-compact .masthead { width: 100%; margin: 0; border: none; border-radius: 0; box-shadow: none; padding-inline: 16px; min-height: var(--header-h); gap: 10px; background: transparent; }
    .header-actions { gap: 8px; }
    .header-actions .button { min-height: 44px; padding: 0 14px; }
    .menu-toggle { padding: 0 12px; }
    .menu-toggle > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .menu-links { padding: 4px 16px 20px; }
    .mobile-menu-actions { grid-template-columns: 1fr; }

    .section { padding-block: 56px; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero { padding: 32px 0 40px; }
    .hero-grid { gap: 28px; }
    .hero-visual { padding: 14px; }
    .hero-visual img { height: 200px; }
    .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero .actions .button { width: 100%; }
    .trust-row { gap: 8px; }

    .brand-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 16px; }
    .brand-group { gap: 10px 16px; width: 100%; }
    .brand-group li img { height: 22px; max-height: 22px; max-width: 95px; }

    .grid-3 { grid-template-columns: 1fr; gap: 14px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .grid-4 .card { padding-bottom: 16px; }
    .grid-4 .card > :not(.card-image) { margin-inline: 14px; }
    .grid-4 .card h3 { font-size: var(--font-body); margin: 8px 14px 6px; }
    .grid-4 .card p { display: none; }
    .grid-4 .card .text-link { font-size: var(--font-sm); }

    .process { grid-template-columns: 1fr; gap: 0; }
    .process > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; border-top-width: 1px; border-top-color: var(--line); padding: 16px 0; }
    .process > div:first-child { border-top: 3px solid var(--red); }
    .process-num { grid-row: 1 / span 2; margin: 0; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split-image { height: 230px; }
    .callout { padding: 24px; }
    .showroom-card { padding: 24px; }
    .section-dark .actions { flex-direction: column; align-items: stretch; }

    .filter-toggle { display: block; width: 100%; margin-bottom: 16px; min-height: 44px; }
    .catalog-filters .filter-content { display: none; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
    .catalog-filters .filter-content.is-open { display: block; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-products { grid-template-columns: 1fr; }
    .catalog-card { height: auto; padding: 14px; }
    .catalog-card-front .catalog-photo { height: 200px; }

    .footer-next-inner { flex-direction: column; align-items: stretch; gap: 24px; padding-block: 36px; }
    .footer-next-actions { min-width: 0; }
    .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); padding-block: 32px 24px; gap: 24px; }
    .site-footer .footer-grid > :not(:first-child) { border-top: 1px solid #dedfe2; padding-top: 24px; }
    .site-footer .footer-grid h3 { margin-bottom: 14px; }
    .site-footer .footer-bottom { align-items: flex-start; gap: 14px; flex-direction: column; }
    .site-footer .footer-bottom > div { gap: 12px 18px; }
    .site-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Écrans tactiles : toutes les cibles font au moins 44 px de haut */
@media (pointer: coarse) {
    .text-link, .trust-chip, .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
    .site-footer .footer-grid nav a, .site-footer .footer-phone a { display: flex; padding-block: 0; margin-bottom: 0; }
    .site-footer .footer-sav-link { justify-content: center; }
}

/* ===== Correctifs audit du 27/11 ===== */
/* Lien texte : la flèche qui glisse suffit, le soulignement se coupait avant la flèche */
.text-link:hover { text-decoration: none; }
/* Pas de mot orphelin en fin de titre */
.card h3, .section-heading h2, .hero-caption strong { text-wrap: balance; }
/* Photo du showroom : remplit son cadre à toutes les tailles (photo en 16:9) */
.hero-visual img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }

@media (max-width: 1024px) {
    /* Fond assombri derrière le menu ouvert, sans recouvrir l'en-tête */
    .menu-links.is-open {
        box-shadow: 0 18px 30px rgba(0, 0, 0, .12), 0 0 0 100vmax rgba(20, 22, 26, .45);
        clip-path: inset(0 -100vmax -100vmax -100vmax);
    }
    /* La page ne défile plus sous le menu ouvert */
    html.menu-locked { overflow: hidden; } /* pas sur body : ça casserait l’en-tête sticky */
}

@media (max-width: 640px) {
    /* Pastilles sur une seule ligne, défilement horizontal */
    .trust-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -16px;
        padding: 3px 16px;
        scrollbar-width: none;
    }
    .trust-row::-webkit-scrollbar { display: none; }
    .trust-chip { flex: 0 0 auto; white-space: nowrap; }
    .hero-grid > * { min-width: 0; } /* sinon la ligne de pastilles élargit la grille */
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}
/* ==========================================================================
   ANIMATIONS D'ENTRÉE CIBLÉES (data-reveal / data-reveal-stagger)
   Actives seulement si .can-reveal (JS présent et pas de prefers-reduced-motion).
   ========================================================================== */
.can-reveal [data-reveal] {
    transition: opacity .8s ease, transform .9s var(--ease-out), filter .8s ease;
    transition-delay: var(--d, 0s);
}
.can-reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.can-reveal [data-reveal="left"]:not(.is-in) { transform: translateX(-48px); }
.can-reveal [data-reveal="right"]:not(.is-in) { transform: translateX(48px); }
.can-reveal [data-reveal="zoom"]:not(.is-in) { transform: scale(.94); filter: blur(4px); }

.can-reveal [data-reveal-stagger] > * {
    transition: opacity .7s ease, transform .8s var(--ease-out);
}
.can-reveal [data-reveal-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }
.can-reveal [data-reveal-stagger] > :nth-child(2) { transition-delay: .1s; }
.can-reveal [data-reveal-stagger] > :nth-child(3) { transition-delay: .2s; }
.can-reveal [data-reveal-stagger] > :nth-child(4) { transition-delay: .3s; }
/* Bouton « remonter en haut » (toutes les pages) */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 30px -10px rgba(189, 27, 39, .65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease-out), background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ink); }
.back-to-top:hover svg { transform: translateY(-2px); }
.back-to-top svg { transition: transform .2s var(--ease-out); }
.back-to-top:focus-visible { outline: 3px solid rgba(189, 27, 39, .35); outline-offset: 3px; }
@media (max-width: 640px) {
    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.site-footer .footer-contact-info .footer-email { font-size: var(--font-sm); font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.site-footer .footer-contact-info .footer-email:hover { color: var(--red); transform: none; }
