/* Tunitaly Flex — feuille de style
   Concept : un site clair comme une lanière transparente. Fond blanc et acier,
   bleu Tunitaly pour l'action, rouge pour le devis, vert réservé au filet tricolore.
   Signature : le rideau de lanières du hero, qui s'écarte au passage du pointeur. */

:root {
    --blue: #0049A3;
    --blue-ink: #062B5F;
    --blue-soft: #E3ECF8;
    --red: #D8001A;
    --red-dark: #B00015;
    --green: #0A8A3A;
    --ink: #15191E;
    --muted: #56616E;
    --steel: #EEF2F6;
    --line: #D3DAE3;
    --white: #FFFFFF;

    --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --f-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --f-serif: 'Marcellus', 'Times New Roman', serif;

    --wrap: 1240px;
    --gut: clamp(16px, 4vw, 40px);
    --r: 4px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--blue); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; color: var(--ink); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; font-stretch: 112%; line-height: 1.05; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; font-stretch: 108%; line-height: 1.15; }
.h4 { font-size: 1rem; font-weight: 700; font-stretch: 104%; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.sub { font-family: var(--f-serif); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.9rem; color: var(--muted); margin: 10px 0 0; }
.kicker { margin: 0 0 14px; color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.page-title { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; font-stretch: 115%; line-height: 1; letter-spacing: -0.02em; }
.quote { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.35; color: var(--blue-ink); margin: 18px 0; max-width: 30ch; }
p { margin: 0 0 1em; }
.prose p { max-width: 64ch; }
.signature { font-weight: 700; font-stretch: 108%; color: var(--blue-ink); }
.note { font-size: 0.92rem; color: var(--muted); max-width: 70ch; margin-top: 18px; }
.mono, .num { font-variant-numeric: tabular-nums; }
.mono { font-weight: 600; letter-spacing: 0.01em; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--f-display); font-weight: 700; font-stretch: 106%; font-size: 1rem;
    padding: 14px 22px; border-radius: var(--r); border: 2px solid transparent;
    text-decoration: none; cursor: pointer; line-height: 1.1; transition: background .2s, color .2s, border-color .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-ink); color: var(--white); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--blue-ink); }
.btn--white:hover { background: var(--blue-soft); color: var(--blue-ink); }
.btn--line { border-color: var(--line); background: var(--white); color: var(--blue); }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn--line.is-added { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--small { padding: 9px 14px; font-size: 0.92rem; }
.link-arrow { font-weight: 700; font-stretch: 106%; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--blue-ink); color: #C9D6EA; font-size: 0.85rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 7px; }
.topbar__base { font-family: var(--f-serif); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; }
.topbar__links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }

.site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand img { width: auto; height: 42px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: 8px 10px; color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: 0.97rem; border-bottom: 2px solid transparent;
}
.main-nav ul a:hover { color: var(--blue); }
.main-nav ul a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.main-nav__cta { padding: 11px 16px; font-size: 0.95rem; }
.devis-count { background: var(--white); color: var(--red); border-radius: 99px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 0.8rem; display: inline-grid; place-items: center; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
    .topbar__base { display: none; }
    .topbar__links { justify-content: flex-end; width: 100%; gap: 16px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); border-bottom: 1px solid var(--line);
        padding: 8px var(--gut) 20px; display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .main-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
    .main-nav__cta { margin-top: 16px; }
}
@media (max-width: 640px) {
    .topbar__links a:nth-child(3) { display: none; }
    .brand img { height: 34px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--steel { background: var(--steel); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.lead-col { font-size: 1.15rem; max-width: 60ch; margin-bottom: 40px; }

/* ---------- Hero accueil ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 88px); background: var(--white); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title {
    font-size: clamp(2.6rem, 5.6vw, 4.9rem); font-weight: 800; font-style: italic; font-stretch: 112%;
    line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 26px;
}
.hero__lead { font-size: 1.18rem; color: var(--muted); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1; background: var(--blue-ink); box-shadow: 0 30px 60px -30px rgba(6, 43, 95, 0.45); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual figcaption {
    position: absolute; right: 14px; bottom: 12px; font-size: 0.8rem; color: var(--white);
    background: rgba(6, 43, 95, 0.6); padding: 4px 10px; border-radius: 99px; pointer-events: none;
}
@media (hover: none) { .hero__visual figcaption { display: none; } }

/* Le rideau */
.curtain { position: absolute; inset: 0; display: flex; pointer-events: none; }
.curtain::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 2;
    background: linear-gradient(180deg, #F4F6F9 0%, #AEB8C4 55%, #7F8B98 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.strip {
    position: relative; flex: 0 0 auto; height: 100%;
    transform-origin: 50% 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.30) 0%, rgba(214, 228, 248, 0.10) 18%, rgba(255, 255, 255, 0.03) 55%, rgba(214, 228, 248, 0.12) 85%, rgba(255, 255, 255, 0.34) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.55);
    border-right: 1px solid rgba(160, 190, 230, 0.35);
    backdrop-filter: blur(1.2px) brightness(1.06);
    -webkit-backdrop-filter: blur(1.2px) brightness(1.06);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.strip::before {
    content: ""; position: absolute; top: 6px; left: 50%; width: 46%; height: 22px; transform: translateX(-50%);
    background: linear-gradient(180deg, #E8ECF1, #A9B3BF); border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.curtain.is-swaying .strip { animation: sway 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes sway {
    0% { transform: rotate(0deg); }
    22% { transform: rotate(calc(var(--dir) * 5deg)); }
    48% { transform: rotate(calc(var(--dir) * -3deg)); }
    72% { transform: rotate(calc(var(--dir) * 1.2deg)); }
    100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .strip { transition: none; }
    .curtain.is-swaying .strip { animation: none; }
}

/* ---------- Gamme ---------- */
.gamme { background: var(--steel); padding-block: clamp(48px, 6vw, 80px); }
.gamme__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.gamme__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.gamme__item { background: var(--white); border-radius: var(--r); padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.gamme__item img { height: 110px; width: 100%; object-fit: contain; margin-bottom: 12px; }
.gamme__item strong { font-stretch: 106%; font-size: 0.98rem; line-height: 1.2; }
.gamme__item span { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 1080px) { .gamme__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gamme__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gamme__item img { height: 90px; } }

/* ---------- Entre les espaces ---------- */
.between__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.between__text p { max-width: 54ch; }
.deliver { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.deliver li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ico { width: 26px; height: 26px; flex: none; color: var(--blue); }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(420px, 52vw, 620px); }
.mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r); }
.mosaic__a { grid-row: 1 / 3; }

/* ---------- Avantages (accueil) ---------- */
.benefits { background: var(--blue-ink); color: var(--white); }
.benefits .h2 { color: var(--white); }
.benefits .sub { color: #A9BCD8; }
.benefits__scroller { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gut); max-width: calc(var(--wrap) + 0px); margin-inline: auto; }
.benefits__row { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; }
.benefit { display: flex; flex-direction: column; height: 100%; color: var(--white); text-decoration: none; scroll-snap-align: start; }
.benefit img { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; border-radius: var(--r); filter: saturate(0.9); transition: filter .3s; }
.benefit:hover img { filter: saturate(1.1) brightness(1.05); }
.benefit__body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.benefit strong { font-stretch: 106%; font-size: 1.02rem; line-height: 1.2; }
.benefit:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.benefit__body span { color: #BFCDE2; font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 1080px) { .benefits__row { grid-template-columns: repeat(7, 200px); } }

/* ---------- Secteurs (accueil) ---------- */
.sectors__pano { width: 100%; border-radius: var(--r); margin-bottom: 36px; }
.sectors__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.sectors__list a { display: block; padding: 18px 0 22px; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); height: 100%; }
.sectors__list a:hover { border-top-color: var(--blue); }
.sectors__list a:hover strong { color: var(--blue); }
.sectors__list strong { display: block; font-stretch: 108%; font-size: 1.1rem; margin-bottom: 6px; }
.sectors__list span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1080px) { .sectors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors__list { grid-template-columns: 1fr; } }

/* ---------- Bande estimation ---------- */
.estimate-band { background: var(--blue); color: var(--white); padding-block: clamp(40px, 6vw, 64px); }
.estimate-band__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.estimate-band .h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.estimate-band p { max-width: 60ch; margin: 0; color: #DCE6F5; }

/* ---------- CTA ---------- */
.cta { background: var(--steel); padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta .h2 { margin-bottom: 14px; }
.cta p { max-width: 54ch; color: var(--muted); margin: 0; }
.cta__contacts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta__line { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; font-stretch: 108%; color: var(--ink); text-decoration: none; }
.cta__line:hover { color: var(--blue); }
.cta__contacts .btn { margin-top: 8px; }

/* ---------- Pages intérieures ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin: 20px 0 0; }
.page-hero--dark { background: #000; border-bottom: 0; min-height: clamp(380px, 48vw, 560px); display: flex; align-items: flex-end; }
.page-hero--dark .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0.75; }
.page-hero--dark .page-hero__in { position: relative; width: 100%; }
.page-hero--dark .page-title { color: var(--white); }
.page-hero--dark .kicker { color: #9FC0EC; }
.page-hero--dark .page-hero__lead { color: #E3E9F2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
    font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
    padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line);
    background: var(--white); color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .h2 { margin-bottom: 24px; }
.split__media { margin: 0; position: sticky; top: 110px; }
.split__media img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pillars li { border-top: 2px solid var(--blue); padding-top: 20px; }
.pillars .ico { width: 32px; height: 32px; margin-bottom: 14px; }
.pillars h3 { font-size: 1.1rem; font-stretch: 106%; margin-bottom: 8px; }
.pillars p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

.photo-row { display: grid; grid-template-columns: 0.7fr 1.6fr 1fr; gap: 12px; }
.photo-row img { width: 100%; height: clamp(260px, 34vw, 440px); object-fit: cover; border-radius: var(--r); }
@media (max-width: 720px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-row img:nth-child(2) { grid-column: 1 / -1; order: -1; } }

/* Avantages (page) */
.adv { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.adv--alt { background: var(--steel); }
.adv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.adv__text { grid-area: text; }
.adv__photo { grid-area: photo; }
.adv__schema { grid-area: schema; }
.adv__grid { grid-template-areas: "text photo" "schema schema"; }
.adv--alt .adv__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); grid-template-areas: "photo text" "schema schema"; }
.adv__text .h2 { margin-bottom: 20px; }
.adv__text p { max-width: 58ch; }
.adv__photo { margin: 0; }
.adv__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; border-radius: var(--r); }
.adv__schema { margin: 12px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(10px, 2vw, 24px); }
.adv__schema img { width: 100%; max-width: 1000px; margin-inline: auto; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--green); }
.dash { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.dash li { padding-left: 18px; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 9px; height: 2px; background: var(--blue); }

/* Secteurs (page) */
.sector { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.sector:nth-of-type(even) { background: var(--steel); }
.sector__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.sector__photo { margin: 0; }
.sector__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.sector__body .h2 { margin-bottom: 18px; }
.sector__body > p { max-width: 64ch; }
.sector__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.sector__schema { grid-column: 1 / -1; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(8px, 1.6vw, 20px); }
.sector__schema img { width: 100%; }

/* Produits */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; position: sticky; top: 72px; z-index: 5; background: var(--white); padding-block: 12px; }
.family { margin-bottom: clamp(48px, 6vw, 80px); }
.family__head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.family__head p { margin: 0; color: var(--muted); max-width: 60ch; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.product__media { background: linear-gradient(160deg, #F7F9FB, #E6EBF1); height: 180px; display: grid; place-items: center; padding: 18px; }
.product__media img { max-height: 144px; width: auto; object-fit: contain; }
.product__media--acc { background: linear-gradient(160deg, #F7F9FB, #E9EDF2); }
.acc-svg { width: 100%; max-width: 220px; height: auto; }
.product__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; flex: 1; }
.product__ref { font-weight: 700; color: var(--blue); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.product__name { font-size: 1.05rem; font-stretch: 106%; line-height: 1.25; }
.product__dim { font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.product__use { color: var(--muted); font-size: 0.92rem; margin: 6px 0 14px; flex: 1; }
.product .btn { align-self: flex-start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 560px; }
.ref-table th, .ref-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.ref-table thead th { background: var(--blue-ink); color: var(--white); font-weight: 600; font-stretch: 106%; }
.ref-table__group th { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.ref-table tbody tr:last-child td { border-bottom: 0; }
.ref-table--compact { min-width: 0; font-size: 0.94rem; }
.ref-table--compact th, .ref-table--compact td { padding: 9px 12px; }
.devis-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--white); padding-bottom: env(safe-area-inset-bottom, 0px); }
.devis-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }

/* Guide de choix */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.calc__form { display: grid; gap: 22px; }
.calc__result { background: var(--steel); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.calc__door svg { width: 100%; height: auto; display: block; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.calc__out div { border-top: 1px solid var(--line); padding-top: 8px; }
.calc__out dt { font-size: 0.85rem; color: var(--muted); }
.calc__out dd { margin: 2px 0 0; font-weight: 700; font-stretch: 106%; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.calc__result .note { margin: 0; }
.calc__result .btn { justify-self: start; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rule { display: grid; gap: 14px; align-content: start; }
.rule p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 1000px) { .rules { grid-template-columns: 1fr; } }

/* Formulaires */
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 0.94rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
    font: inherit; font-size: 1rem; width: 100%; padding: 12px 14px; color: var(--ink);
    border: 1px solid #B9C3CF; border-radius: var(--r); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea { resize: vertical; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--white); }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radios input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__form { display: grid; gap: 18px; }
.basket { border: 1px solid var(--blue); background: var(--blue-soft); border-radius: var(--r); padding: 14px 18px 16px; margin: 0; }
.basket legend { font-weight: 700; padding: 0 6px; color: var(--blue-ink); }
.basket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.basket li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.basket li button { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; font-size: 0.9rem; text-decoration: underline; }
.basket p { margin: 0 0 10px; white-space: pre-line; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: var(--red); }
.contact__aside { display: grid; gap: 8px; align-content: start; }
.contact__aside .h3 { margin-bottom: 8px; }
.contact__aside .h4 { margin-top: 14px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact__list li, .contact__mail { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; font-stretch: 106%; margin: 0; }
.contact__mail { font-size: 1rem; word-break: break-all; }
.contact__list a, .contact__mail a { color: var(--ink); text-decoration: none; }
.contact__list a:hover, .contact__mail a:hover { color: var(--blue); }
.contact__photo { margin: 22px 0 0; }
.contact__photo img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-ink); color: #C2D0E4; position: relative; padding-top: 72px; }
.swoosh { position: absolute; top: 18px; left: 0; width: 100%; height: 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.site-footer__brand img { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 36ch; font-size: 0.95rem; }
.site-footer__h { color: var(--white); font-size: 0.98rem; font-stretch: 108%; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.site-footer a { color: #C2D0E4; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__contact a { color: var(--white); word-break: break-all; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 18px 22px; font-size: 0.86rem; }

/* ---------- Responsive général ---------- */
@media (max-width: 960px) {
    .hero__grid, .between__grid, .split, .adv__grid, .sector__grid, .cta__grid, .calc, .contact { grid-template-columns: 1fr; }
    .adv__grid, .adv--alt .adv__grid { grid-template-columns: 1fr; grid-template-areas: "text" "photo" "schema"; }
    .split__media { position: static; }
    .family__head { grid-template-columns: 1fr; gap: 8px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .sector__photo img { aspect-ratio: 16 / 10; }
    .adv__photo img { aspect-ratio: 16 / 11; }
    .filter { top: 64px; }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .field-row, .field-row--3, .sector__cols, .calc__out { grid-template-columns: 1fr; }
    .deliver { grid-template-columns: 1fr; }
    .mosaic { height: 460px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .filter { position: static; }
}
.catalogue { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 560px) {
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product__media { height: 124px; padding: 10px; }
    .product__media img { max-height: 100px; }
    .product__body { padding: 12px 12px 14px; }
    .product__name { font-size: 0.95rem; }
    .product__use { display: none; }
    .product .btn { font-size: 0.8rem; padding: 8px 10px; margin-top: 10px; }
    .product .btn .ico { width: 14px; height: 14px; }
}

/* Prix et photos d'accessoires */
.product__price { margin: 0 0 14px; font-weight: 800; font-stretch: 110%; font-size: 1.35rem; color: var(--blue-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.product__price.is-ask { font-size: 1rem; font-weight: 700; color: var(--muted); }
.product__use { margin-bottom: 10px; }
.product__media--photo { padding: 0; background: #E9ECF0; }
.product__media--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.num-r { text-align: right !important; white-space: nowrap; }
@media (max-width: 560px) { .product__price { font-size: 1.1rem; margin-bottom: 4px; } }
.product__media--photo { display: block; overflow: hidden; }
.product__media--photo img { height: 180px; }
@media (max-width: 560px) { .product__media--photo img { height: 124px; } }

/* Retour en haut + crédit */
.to-top {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center;
    background: var(--blue); color: var(--white);
    box-shadow: 0 10px 24px -8px rgba(6, 43, 95, 0.55);
    transition: background .2s, transform .2s, bottom .2s;
}
.to-top:hover { background: var(--blue-ink); transform: translateY(-2px); }
.to-top.is-raised { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.credit a { color: var(--white); }
.site-footer .fa-heart { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin: 0 2px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 10.6 20C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.6 11.5L12 21.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 10.6 20C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.6 11.5L12 21.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-footer .fa-heart::before { content: none; }

/* Adresse */
.site-footer__addr { font-style: normal; margin-bottom: 12px; font-size: 0.95rem; }
.site-footer__addr a { display: flex; gap: 8px; align-items: flex-start; color: var(--white); }
.site-footer__addr .ico { width: 20px; height: 20px; color: #9FC0EC; margin-top: 2px; }
.contact__addr { font-style: normal; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 0; }
.contact__addr .ico { margin-top: 1px; }
.contact__addr a { color: var(--ink); text-decoration: none; }
.contact__addr a:hover { color: var(--blue); text-decoration: underline; }

/* Retour client 14/10 */
.cta--simple { padding-block: clamp(40px, 6vw, 64px); }
.cta__center { display: flex; justify-content: center; }
.product__unit { font-size: 0.85rem; font-weight: 600; font-stretch: 100%; color: var(--muted); margin-left: 6px; }
.ref-table .product__unit { margin-left: 4px; font-size: 0.82rem; }
.benefits__row { grid-template-columns: repeat(8, minmax(120px, 1fr)); }
@media (max-width: 1080px) { .benefits__row { grid-template-columns: repeat(8, 200px); } }
.topbar__wa { display: inline-flex; align-items: center; gap: 8px; }
.topbar .wa { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #25D366; color: #fff; }
.topbar .wa .ico { width: 16px; height: 16px; color: #fff; }
.topbar .wa:hover { background: #1EBE5B; }

/* Sélecteur de langue */
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang-switch a { padding: 5px 10px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; line-height: 1; }
.lang-switch a:hover { color: var(--blue); }
.lang-switch a[aria-current] { background: var(--blue-ink); color: var(--white); }
@media (max-width: 1180px) { .lang-switch { align-self: flex-start; margin-top: 16px; } }
.main-nav ul a, .main-nav__cta { white-space: nowrap; }
@media (max-width: 1300px) and (min-width: 1181px) {
    .main-nav { gap: 12px; }
    .main-nav ul a { padding: 8px 7px; font-size: 0.92rem; }
    .brand img { height: 36px; }
    .main-nav__cta { padding: 10px 12px; font-size: 0.9rem; }
}
