/* ==========================================================================
   Clean Protect Habitat — feuille de style principale
   Palette et typographies reprises du site d'origine.
   ========================================================================== */

:root {
    --c-bg: #e8eff1;          /* fond clair bleuté */
    --c-surface: #ffffff;
    --c-dark: #303739;        /* anthracite (en-tête, pied de page) */
    --c-dark-2: #3b4345;
    --c-ink: #3d402c;         /* titres */
    --c-text: #545747;        /* texte courant */
    --c-muted: #7d806c;
    --c-cream: #fbeedf;       /* texte clair sur fond sombre */
    --c-accent: #2395ca;      /* bleu des boutons */
    --c-accent-dark: #1b7aa7;
    --c-line: #d3dde0;

    --f-title: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --f-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(48, 55, 57, .08);
    --container: 1220px;
    --gutter: clamp(16px, 4vw, 32px);
    --topbar-h: 38px;
    --header-h: 88px;
    --header-h-scrolled: 72px;
    --logo-h: 58px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 500; color: var(--c-ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 em, h2 em, h3 em, .section__title em, .cta-band__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--c-accent); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--f-title); font-weight: 500; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
    line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--c-cream); background: transparent; }
.btn--ghost:hover { background: var(--c-cream); color: var(--c-dark); border-color: var(--c-cream); }
.btn--light { background: var(--c-cream); color: var(--c-dark); }
.btn--light:hover { background: #fff; color: var(--c-dark); }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--sm { padding: .7em 1.2em; font-size: .82rem; }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--f-title); font-weight: 500; text-decoration: none; }

/* ---------- Barre supérieure + en-tête (transparents en haut de page) ---------- */
.masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
body.header-solid .masthead { position: relative; background: var(--c-dark); min-height: calc(var(--topbar-h) + var(--header-h)); }

.topbar { background: rgba(18, 22, 23, .35); color: rgba(251, 238, 223, .85); font-size: .82rem; border-bottom: 1px solid rgba(251, 238, 223, .1); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--topbar-h); }
.topbar__item { display: inline-flex; align-items: center; gap: .4em; }
.topbar__phone { color: var(--c-cream); font-weight: 700; text-decoration: none; }
.topbar__phone:hover { color: #fff; }

.site-header { position: relative; z-index: 100; background: transparent; color: var(--c-cream); transition: background-color .3s, box-shadow .3s; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; padding-block: 12px; }
.logo { display: block; flex: none; }
.logo img { height: var(--logo-h); width: auto; }

/* Au défilement (ou menu mobile ouvert) : en-tête fixe et coloré */
body.is-scrolled .site-header,
body.nav-open .site-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(48, 55, 57, .97); box-shadow: 0 2px 20px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body.is-scrolled .site-header { animation: header-in .35s ease both; }
body.is-scrolled:not(.nav-open) .site-header__inner { min-height: var(--header-h-scrolled); padding-block: 8px; }
body.is-scrolled:not(.nav-open) .logo img { height: calc(var(--logo-h) - 4px); }
.logo img { transition: height .25s; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.main-nav__item { position: relative; display: flex; align-items: center; }
/* Liens et boutons du menu : même boîte, même police -> soulignement aligné */
.main-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: .3em;
    height: 44px; padding: 0 .7em; margin: 0; border: 0; background: none; cursor: pointer;
    font: 500 .84rem/1 var(--f-title); letter-spacing: .04em; text-transform: uppercase;
    color: var(--c-cream); text-decoration: none; white-space: nowrap;
}
.main-nav__link svg { flex: none; }
.main-nav__item--cta { margin-left: .9rem; }
.main-nav__link::after {
    content: ""; position: absolute; left: .7em; right: .7em; bottom: 4px; height: 2px;
    background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.main-nav__link:hover, .main-nav__item.is-active > .main-nav__link { color: #fff; }
.main-nav__link:hover::after, .main-nav__item.is-active > .main-nav__link::after { transform: scaleX(1); }
.sub-menu {
    list-style: none; margin: 0; padding: .6rem; position: absolute; top: 100%; left: 0; min-width: 250px;
    background: #fff; border-radius: var(--radius-sm); box-shadow: 0 18px 40px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.sub-menu a { display: block; padding: .5em .8em; border-radius: 6px; color: var(--c-ink); text-decoration: none; font-size: .95rem; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--c-bg); color: var(--c-accent-dark); }
@media (min-width: 1101px) {
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--c-cream); margin: 6px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
    :root { --header-h: 76px; --header-h-scrolled: 68px; --logo-h: 50px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-dark);
        flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 6rem; overflow-y: auto;
        transform: translateX(100%); transition: transform .3s; visibility: hidden;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav__list { flex-direction: column; align-items: stretch; }
    .main-nav__item { display: block; }
    .main-nav__link { width: 100%; height: auto; justify-content: space-between; padding: 1.1em 0; font-size: 1rem; border-bottom: 1px solid rgba(251,238,223,.12); }
    .main-nav__link::after { display: none; }
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 .5rem .8rem; display: none; min-width: 0; }
    .has-sub.is-open > .sub-menu { display: block; }
    .has-sub.is-open .main-nav__btn svg { transform: rotate(180deg); }
    .sub-menu a { color: rgba(251,238,223,.85); }
    .sub-menu a:hover, .sub-menu a[aria-current] { background: rgba(255,255,255,.06); color: #fff; }
    .main-nav__item--cta { margin: 1.2rem 0 0; }
    .main-nav__cta { width: 100%; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 700px) {
    .topbar__item { display: none; }
    .topbar__inner { justify-content: center; }
}

/* ---------- Sections génériques ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--light { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: rgba(251,238,223,.85); }
.section--dark h2, .section--dark h3 { color: var(--c-cream); }
.section__title { max-width: 820px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section__head .section__title { margin: 0; }
.section__lead { font-size: 1.12rem; max-width: 760px; }
.eyebrow { display: inline-block; font-family: var(--f-title); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-dark); margin-bottom: .8rem; }
.section--dark .eyebrow { color: #8fd0ee; }

/* ---------- Héros de l'accueil ---------- */
.hero {
    position: relative; color: var(--c-cream); background: var(--c-dark);
    min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,35,36,.62) 0%, rgba(30,35,36,.3) 55%, rgba(30,35,36,.05) 100%), linear-gradient(0deg, rgba(30,35,36,.45), transparent 45%), linear-gradient(180deg, rgba(30,35,36,.45), transparent 30%); }
.hero__content { position: relative; z-index: 1; padding-block: calc(var(--topbar-h) + var(--header-h) + clamp(40px, 8vw, 90px)) clamp(48px, 7vw, 90px); }
.hero h1, .hero__lead, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1 { color: var(--c-cream); max-width: 900px; font-size: clamp(2.3rem, 5.6vw, 4.8rem); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 700px; color: rgba(251,238,223,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.hero__badges li { display: flex; align-items: center; gap: .45em; }
.hero__badges li::before { content: "✓"; color: #8fd0ee; font-weight: 700; }

/* ---------- Héros des pages intérieures ---------- */
.page-hero { background: var(--c-dark); color: rgba(251,238,223,.88); padding: calc(var(--topbar-h) + var(--header-h) + clamp(28px, 4vw, 56px)) 0 clamp(36px, 6vw, 72px); }
body.header-solid .page-hero { padding-top: clamp(36px, 6vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero h1 { color: var(--c-cream); font-size: clamp(2rem, 4.2vw, 3.4rem); }
.page-hero__intro { font-size: 1.1rem; }
.page-hero__intro p:last-child { margin-bottom: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.page-hero__media { position: relative; }
.page-hero__img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
@media (max-width: 860px) {
    .page-hero__grid { grid-template-columns: 1fr; }
    .page-hero__media { order: -1; }
    .page-hero__img { aspect-ratio: 16 / 9; }
}

.breadcrumb ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .3em; opacity: .5; }
.breadcrumb a { color: rgba(251,238,223,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-cream); }

/* ---------- Contenu + barre latérale ---------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); padding-block: clamp(48px, 7vw, 90px); align-items: start; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }

.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--c-line); }
.prose > h2:first-child, .prose > .prose__lead + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose__lead { font-size: 1.15rem; color: var(--c-ink); }
.prose__cta { margin-top: 2.5rem; }
.prose ul { padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.8em; margin-bottom: .45em; }
.prose ul li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 1.05em; height: 1.05em; border-radius: 50%;
    background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.prose .columns-2 { columns: 2 260px; column-gap: 2rem; }
.prose .columns-2 li { break-inside: avoid; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .5rem; }

.callout { background: var(--c-surface); border-left: 4px solid var(--c-accent); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin: 1.6rem 0; box-shadow: var(--shadow); }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { border-left-color: #d58a1c; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.2rem; }
@media (max-width: 960px) { .sidebar { position: static; } }
.sidebar__card { background: var(--c-surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.sidebar__card--dark { background: var(--c-dark); color: rgba(251,238,223,.85); }
.sidebar__card--dark .sidebar__title { color: var(--c-cream); }
.sidebar__title { font-family: var(--f-title); font-size: 1.2rem; font-weight: 500; color: var(--c-ink); margin-bottom: .6rem; }
.sidebar__phone { margin: 1rem 0 0; text-align: center; font-size: .9rem; }
.sidebar__phone a { color: var(--c-cream); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.sidebar__links { list-style: none; margin: 0; padding: 0; }
.sidebar__links a { display: block; padding: .45em 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.sidebar__links li:last-child a { border-bottom: 0; }
.sidebar__links a:hover, .sidebar__links a[aria-current] { color: var(--c-accent-dark); }
.sidebar__links a[aria-current] { font-weight: 700; }

/* ---------- Cartes prestations ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--c-text); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.section--light .card { background: var(--c-bg); box-shadow: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(48,55,57,.14); color: var(--c-text); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #cdd6d9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.card__title { font-family: var(--f-title); font-size: 1.15rem; font-weight: 500; color: var(--c-ink); line-height: 1.25; }
.card__city { font-family: var(--f-serif); font-style: italic; }
.card__text { font-size: .95rem; line-height: 1.55; }
.card__more { margin-top: auto; padding-top: .5rem; font-family: var(--f-title); font-size: .85rem; color: var(--c-accent-dark); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Communes ---------- */
.section--cities { background: var(--c-dark); color: rgba(251,238,223,.85); }
.section--cities .section__title { color: var(--c-cream); }
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.cities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.cities__list a { display: flex; align-items: center; gap: .5em; padding: .8em 1em; border: 1px solid rgba(251,238,223,.18); border-radius: var(--radius-sm); color: var(--c-cream); text-decoration: none; transition: .2s; }
.cities__list a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
@media (max-width: 860px) { .cities { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cities__list { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.review { margin: 0; background: var(--c-surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review__stars { color: #f2b01e; letter-spacing: .1em; font-size: 1.1rem; }
.review__text { margin: .6rem 0 1rem; font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; line-height: 1.55; color: var(--c-ink); }
.review__text p { margin: 0; }
.review__author { margin-top: auto; font-weight: 700; color: var(--c-ink); font-size: .95rem; }
.review__author span { font-weight: 400; color: var(--c-muted); }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { background: var(--c-accent); color: #fff; padding: clamp(40px, 6vw, 70px) 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-band__title { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }

/* ---------- Accueil : blocs spécifiques ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3.3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.checklist { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; }
.checklist li { display: flex; gap: .6em; align-items: baseline; }
.checklist li::before { content: "✓"; color: var(--c-accent); font-weight: 700; flex: none; }
.section--dark .checklist li::before { color: #8fd0ee; }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.feature { background: var(--c-surface); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.section--dark .feature { background: var(--c-dark-2); box-shadow: none; }
.feature h3 { font-size: 1.25rem; }
.feature p:last-child { margin-bottom: 0; }
.feature__icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(35,149,202,.12); color: var(--c-accent); display: grid; place-items: center; margin-bottom: 1rem; }
.section--dark .feature__icon { background: rgba(143,208,238,.12); color: #8fd0ee; }
.feature a { font-family: var(--f-title); font-size: .9rem; text-decoration: none; }

.grue { position: relative; overflow: hidden; }
.grue .split__media img { aspect-ratio: 4 / 3; }

/* ---------- Réalisations (galerie) ---------- */
.gallery-section + .gallery-section { margin-top: 3.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: #cdd6d9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery-section__links { font-size: .95rem; }
.lightbox { position: fixed; inset: 0; background: rgba(15,18,19,.94); z-index: 500; display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--c-surface); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; color: var(--c-ink); font-size: .92rem; margin-bottom: .35rem; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--c-ink); background: var(--c-bg);
    border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: .8em 1em; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 3px rgba(35,149,202,.18); }
.field__help { font-size: .85rem; color: var(--c-muted); margin: .35rem 0 0; }
.field--error input, .field--error select, .field--error textarea { border-color: #c0392b; }
.field__error { color: #c0392b; font-size: .85rem; margin: .3rem 0 0; }
.field--check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.field--check input { width: auto; margin-top: .35em; }
.field--check label { font-weight: 400; color: var(--c-text); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; }
.alert--success { background: #e3f4ea; color: #1e6b3d; border: 1px solid #b7e0c6; }
.alert--error { background: #fbeaea; color: #8e2a20; border: 1px solid #f0c3be; }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info .sidebar__card p:last-child { margin-bottom: 0; }
.contact-info__big { font-size: 1.35rem; font-weight: 700; color: var(--c-ink); text-decoration: none; }

.map-embed { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-dark-2); aspect-ratio: 16 / 9; margin-top: 1.5rem; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; padding: 1.5rem; color: var(--c-cream); font-size: .92rem; }

/* ---------- Pages légales ---------- */
.legal { max-width: 860px; padding-block: clamp(48px, 7vw, 90px); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; }
.legal dt { font-weight: 700; color: var(--c-ink); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--c-dark); color: rgba(251,238,223,.75); font-size: .95rem; padding-top: clamp(48px, 7vw, 80px); }
.site-footer a { color: rgba(251,238,223,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.site-footer__brand img { width: 110px; margin-bottom: 1rem; }
.site-footer__title { font-family: var(--f-title); color: var(--c-cream); font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { margin-bottom: 1rem; }
.site-footer__bottom { border-top: 1px solid rgba(251,238,223,.12); padding: 1.2rem 0; font-size: .85rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer__bottom li { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Retour en haut ---------- */
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--c-accent-dark); color: #fff; }

/* ---------- Page 404 ---------- */
.notfound { text-align: center; padding-block: clamp(70px, 12vw, 140px); }
.notfound .cards { text-align: left; margin-top: 3rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* Contrastes sur fonds sombres */
.hero .eyebrow, .page-hero .eyebrow { color: #8fd0ee; }
.section--dark a:not(.btn), .page-hero__intro a, .sidebar__card--dark a:not(.btn) { color: #8fd0ee; }
.section--dark a:not(.btn):hover { color: #fff; }

/* ---------- Onglets "Entretien, zinguerie & façade" (accueil) ---------- */
.tabs { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; gap: .4rem; }
.tabs__tab {
    display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; cursor: pointer;
    padding: 1rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: transparent;
    font: inherit; color: var(--c-ink); transition: background .2s, border-color .2s, color .2s;
}
.tabs__tab:hover { border-color: var(--c-accent); }
.tabs__tab[aria-selected="true"] { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-cream); }
.tabs__num { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--c-accent); min-width: 1.8em; }
.tabs__tab[aria-selected="true"] .tabs__num { color: #8fd0ee; }
.tabs__label { display: flex; flex-direction: column; font-family: var(--f-title); font-weight: 500; font-size: 1.02rem; line-height: 1.25; }
.tabs__label small { font-family: var(--f-body); font-weight: 400; font-size: .85rem; opacity: .75; margin-top: .2rem; }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-bg); border-radius: var(--radius); overflow: hidden; }
.tabs__panel[hidden] { display: none; }
.tabs__media { min-height: 100%; }
.tabs__media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.tabs__body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.tabs__body .btn { align-self: flex-start; margin-top: .4rem; }
.tabs--ready .tabs__panel { animation: tab-in .35s ease both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Sans JavaScript : tous les blocs s'affichent les uns sous les autres */
.tabs:not(.tabs--ready) { grid-template-columns: 1fr; }
.tabs:not(.tabs--ready) .tabs__list { display: none; }
.tabs:not(.tabs--ready) .tabs__panels { display: grid; gap: 1.4rem; }
@media (max-width: 960px) {
    .tabs { grid-template-columns: 1fr; }
    .tabs__list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
    .tabs__tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; padding: .8rem 1rem; }
    .tabs__label small { display: none; }
    .tabs__num { font-size: 1.2rem; min-width: 0; }
}
@media (max-width: 640px) {
    .tabs__panel { grid-template-columns: 1fr; }
    .tabs__media img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* Menu mobile ouvert : pas de filtre/animation sur l'en-tête (sinon le panneau fixe est rogné) */
body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; background: var(--c-dark); }

/* ---------- Accueil : Luxembourg / Belgique (drapeaux) ---------- */
.borders { padding-block: clamp(48px, 6vw, 80px) 0; text-align: center; }
.borders__title { font-family: var(--f-serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--c-ink); margin: 0 auto 1.5rem; max-width: 860px; }
.borders__flags { width: min(420px, 90%); height: auto; margin: 0 auto 2rem; }
.borders__grid { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 1.5rem clamp(2rem, 6vw, 5rem); text-align: left; }
.borders__item p { margin-bottom: 1.2rem; }
.borders__item strong { color: var(--c-ink); }
@media (max-width: 480px) {
    .borders__grid { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Bandeau cookies ---------- */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: rgba(251,238,223,.85); cursor: pointer; }
.link-button:hover { color: #fff; text-decoration: underline; }
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 300; width: min(520px, calc(100% - 32px)); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.consent.is-visible { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__box { background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 1.4rem 1.5rem; font-size: .92rem; line-height: 1.55; max-height: calc(100vh - 32px); overflow-y: auto; }
.consent__title { font-family: var(--f-title); font-size: 1.1rem; font-weight: 500; color: var(--c-ink); margin-bottom: .6rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.consent__actions .btn { flex: 1 1 auto; }
.consent__option { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--c-line); }
.consent__label { font-weight: 700; color: var(--c-ink); margin: 0 0 .2rem; }
.consent__help { margin: 0; font-size: .85rem; color: var(--c-muted); }
.consent__always { flex: none; font-size: .8rem; font-weight: 700; color: var(--c-accent-dark); white-space: nowrap; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch__slider { position: absolute; inset: 0; background: #c9d2d5; border-radius: 999px; transition: background .2s; }
.switch__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch__slider { background: var(--c-accent); }
.switch input:checked + .switch__slider::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__slider { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.5rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.cookie-table th { color: var(--c-ink); background: var(--c-surface); }
.table-scroll { overflow-x: auto; }
@media (max-width: 560px) {
    .consent { left: 8px; right: 8px; bottom: 8px; width: auto; }
    .consent__actions .btn { flex: 1 1 100%; }
}
