/* BND Roofs, prototype v2 (2026-11-09) : mise en page calquée sur toituredim.com, logo BND.
   COULEURS : noir, gris et blanc uniquement (demande du client, 2026-11-10). Aucune couleur vive.
   Rayons : photos 6px (comme le concurrent), cartes 16px, boutons et champs 10px, pastilles en pilule. */
:root {
  --dark: #1c1c1c; --dark-600: #333333; --dark-700: #2b2b2b; --black: #111111;
  --grey-50: #f3f3f3; --grey-100: #e6e6e6; --accent-ink: #1c1c1c;
  --mid: #909090; /* gris du logo BND */
  --bg: #fbfbfb; --surface: #f2f2f2; --card: #ffffff; --ink: #1c1c1c; --text: #3d3d3d; --muted: #666666;
  --line: #e0e0e0; --err: #1c1c1c; --on-dark: #ffffff;
  --shadow: 0 22px 48px -24px rgba(0, 0, 0, .3);
  --r-img: 6px; --r-card: 16px; --r-ui: 10px;
  --font-h: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
/* ---------- MODE NUIT (bouton jour / nuit) : noirs et gris uniquement, aucune couleur.
   Le logo d'origine n'est jamais filtré ni recoloré : là où il apparaît (en-tête, pied de page, menu mobile, chat),
   le fond reste un bandeau gris clair, y compris la nuit. */
[data-theme="dark"] {
  --bg: #121212; --surface: #191919; --card: #1f1f1f; --ink: #f2f2f2; --text: #cfcfcf; --muted: #9c9c9c;
  --line: #343434; --grey-50: #272727; --grey-100: #303030; --accent-ink: #f2f2f2; --err: #f2f2f2;
  --dark: #ededed; --dark-600: #ffffff; --on-dark: #161616; --mid: #8c8c8c;
  --shadow: 0 22px 48px -24px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
[data-theme="dark"] .header, [data-theme="dark"] .footer, [data-theme="dark"] .drawer__panel,
[data-theme="dark"] .chat__head, [data-theme="dark"] .chat__teaser {
  --bg: #e2e2e2; --surface: #d9d9d9; --card: #e2e2e2; --ink: #1c1c1c; --text: #3d3d3d; --muted: #5a5a5a;
  --line: #c2c2c2; --grey-50: #d0d0d0; --grey-100: #c4c4c4; --accent-ink: #1c1c1c; --err: #1c1c1c;
  --dark: #1c1c1c; --dark-600: #333333; --on-dark: #ffffff;
  color: var(--text); color-scheme: light;
}
[data-theme="dark"] .emblem { display: none; }
[data-theme="dark"] .ctaband, [data-theme="dark"] .sidecard--alert { border: 1px solid var(--line); }
[data-theme="dark"] .specband { border-block: 1px solid var(--line); }
[data-theme="dark"] .msg__map iframe { filter: grayscale(1) invert(.9) contrast(.9); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); transition: background-color .25s, color .25s; font: 400 1rem/1.65 var(--font-b); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-h); color: var(--ink); line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.ph { line-height: 1; }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.wrap--wide { width: min(1400px, 100% - 2.5rem); }
.narrow { max-width: 860px; }
.center-t { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: .6rem 1rem; border-radius: var(--r-ui); }
.skip:focus { left: 8px; }
.no-scroll { overflow: hidden; }
.title-caps { text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin-bottom: 2.2rem; }
.title-caps--sm { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 2.2rem 0 1.2rem; }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem;
  border-radius: var(--r-ui); border: 1.5px solid transparent; font: 600 .95rem/1.2 var(--font-b); text-decoration: none;
  white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ph { font-size: 1.1em; }
.btn--lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: .45rem .9rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--dark); color: var(--on-dark); box-shadow: 0 10px 24px -12px rgba(89, 89, 89, .7); }
.btn--primary:hover { background: var(--dark-600); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--dark); color: var(--accent-ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(14, 14, 14, .28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn--light { background: #fff; color: var(--dark-700); }
.btn--light:hover { background: #ececec; color: var(--dark-700); }
/* sur fond sombre (grand visuel, bandeau de fin), le bouton principal passe en blanc pour rester lisible */
.hero .btn--primary, .ctaband .btn--primary { background: #fff; color: #1c1c1c; box-shadow: none; }
.hero .btn--primary:hover, .ctaband .btn--primary:hover { background: #e0e0e0; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btns--center { justify-content: center; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 1.15rem; }
.iconbtn:hover { border-color: var(--dark); color: var(--accent-ink); }
.svc__more, .spec__more { display: inline-block; color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.svc__more:hover { color: var(--accent-ink); }

/* ---------- barre haute + en-tête (copie de la structure du concurrent) */
.topbar { background: var(--black); color: #e2e2e2; font-size: .8rem; letter-spacing: .02em; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar__info, .topbar__right { display: flex; gap: 1.3rem; align-items: center; }
.topbar a, .topbar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar__call strong { color: #fff; margin-left: .25rem; }
.lang { display: flex; gap: .15rem; }
.lang a { padding: .15rem .45rem; border-radius: 6px; font-weight: 600; }
.lang a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; }

.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(28, 28, 28, .4); }
.header__in { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.logo img { width: 112px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; }
.nav__list > li { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .55rem; border: 0; background: none; border-radius: 8px;
  color: var(--ink); font: 600 .78rem/1 var(--font-h); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.nav__link:hover, .has-dd.is-open > .nav__link { color: var(--accent-ink); background: var(--grey-50); }
.nav__link[aria-current] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--dark); border-radius: 0; }
.nav__link .ph-caret-down { font-size: .7rem; transition: transform .2s; }
.has-dd.is-open .ph-caret-down { transform: rotate(180deg); }
.header__cta { display: none; align-items: center; gap: .6rem; }
/* bouton jour / nuit, à droite de Contact */
.theme-toggle { flex: none; width: 40px; height: 40px; margin-left: .3rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center; font-size: 1.15rem; transition: border-color .2s, transform .2s var(--ease); }
.theme-toggle:hover { border-color: var(--dark); transform: rotate(-12deg); }
.theme-toggle .ph-sun { display: none; }
[data-theme="dark"] .theme-toggle .ph-sun { display: inline; }
[data-theme="dark"] .theme-toggle .ph-moon { display: none; }
.burger { width: 44px; height: 44px; border-radius: var(--r-ui); border: 1.5px solid var(--line); background: var(--card); font-size: 1.4rem; display: grid; place-items: center; }

/* menus déroulants par métier */
.dd { position: absolute; left: -.5rem; top: calc(100% + 6px); min-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 5; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-dd.is-open .dd { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; } }
.dd__all { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 8px; font: 700 .86rem var(--font-h); color: var(--accent-ink); text-decoration: none; }
.dd__all .ph { font-size: 1.1rem; }
.dd ul { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.dd li a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.dd a:hover { background: var(--grey-50); color: var(--accent-ink); }

/* tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(14, 14, 14, .45); }
.drawer[hidden] { display: none; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(400px, 100%); background: var(--card); overflow-y: auto; padding: 1rem 1.25rem 2rem; animation: slidein .3s var(--ease); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.drawer__top img { width: 96px; }
.drawer__close { width: 44px; height: 44px; border-radius: var(--r-ui); border: 1.5px solid var(--line); background: none; font-size: 1.3rem; display: grid; place-items: center; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__link { display: flex; align-items: center; gap: .65rem; padding: .85rem .2rem; color: var(--ink); text-decoration: none; font: 600 .9rem var(--font-h); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; list-style: none; }
.drawer__link::-webkit-details-marker { display: none; }
.drawer__link .ph:first-child { color: var(--accent-ink); font-size: 1.2rem; }
.drawer__caret { margin-left: auto; transition: transform .2s; }
details[open] > .drawer__link .drawer__caret { transform: rotate(180deg); }
.drawer__sub { padding: 0 0 .8rem 2.1rem; display: grid; gap: .1rem; }
.drawer__sub a { display: block; padding: .4rem 0; color: var(--text); text-decoration: none; }
.drawer__cta { display: grid; gap: .6rem; margin-top: 1.5rem; }

/* ---------- sections */
.section { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--flush { padding-top: 0; }
.head { max-width: 680px; margin-bottom: 2.4rem; }
.head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .title-caps { margin-bottom: .6rem; }

/* ---------- grand visuel d'accueil (comme le concurrent : image plein écran, logo, titre centré) */
.hero { position: relative; min-height: min(80dvh, 740px); display: grid; place-items: center; color: #fff; isolation: isolate; overflow: hidden; text-align: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(34, 34, 34, .58), rgba(34, 34, 34, .5)); }
.hero__in { padding: 4rem 0; display: grid; justify-items: center; }
/* logo du client posé tel quel, sans plaque : éclairci par filtre pour rester lisible sur la photo sombre */
.hero__badge { display: inline-block; margin-bottom: 1.4rem; }
.hero__badge img { width: 200px; }
.hero__title { color: #fff; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 800; line-height: 1.04; max-width: 14ch; margin-bottom: .45em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__sub { font-size: 1.15rem; color: #efefef; max-width: 52ch; margin-bottom: 1.8rem; text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }

/* ---------- bande des métiers (icône, titre, texte, en savoir plus) */
.services { background: var(--surface); padding: clamp(3rem, 5vw, 4.5rem) 0; }
.svcs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.6rem; }
.svc { text-align: center; display: grid; justify-items: center; align-content: start; }
.svc__icon { font-size: 3.4rem; color: var(--ink); margin-bottom: .9rem; }
.svc__title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .55rem; }
.svc__title a { color: var(--accent-ink); text-decoration: none; }
.svc p { font-size: .88rem; line-height: 1.6; color: var(--muted); margin-bottom: .8rem; }

/* ---------- à propos en 4 colonnes */
.abs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.ab__img { display: block; overflow: hidden; border-radius: var(--r-img); margin-bottom: 1rem; }
.ab__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.ab:hover .ab__img img { transform: scale(1.04); }
.ab__title { color: var(--accent-ink); text-transform: uppercase; letter-spacing: .03em; font-size: .98rem; margin-bottom: .45rem; }
.ab p { font-size: .92rem; color: var(--text); margin-bottom: .6rem; }

/* ---------- méthodologie (les 4 boîtes) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* chaque boîte est un bouton : un clic ouvre le chat sur le sujet de l'étape */
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.step:hover, .step:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--dark); }
.step__btn { display: grid; justify-items: center; align-content: start; width: 100%; height: 100%; padding: 2rem 1.4rem 1.4rem; border: 0; border-radius: inherit;
  background: none; font: inherit; color: inherit; text-align: center; cursor: pointer; }
.step__text { display: block; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.step__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); width: 100%; justify-content: center;
  font-size: .85rem; font-weight: 600; color: var(--ink); }
.step__cta .ph { font-size: 1.1rem; }
.step:hover .step__cta, .step__btn:focus-visible .step__cta { text-decoration: underline; text-underline-offset: 4px; }
.step__icon { position: relative; width: 76px; height: 76px; margin: 0 auto 1.1rem; border-radius: 20px; display: grid; place-items: center; background: var(--grey-50); color: var(--accent-ink); font-size: 2.2rem; }
.step__num { position: absolute; top: -9px; left: -9px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--on-dark); font: 700 .85rem var(--font-h); box-shadow: 0 0 0 4px var(--card); }
.step__title { display: block; color: var(--accent-ink); font: 700 1.05rem/1.2 var(--font-h); margin-bottom: .4rem; }

/* ---------- vidéo pleine largeur */
.video { position: relative; isolation: isolate; min-height: clamp(360px, 44vw, 600px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.video__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 15, 15, .55); }
.video__in { display: grid; justify-items: center; padding: 3rem 1.25rem; }
.video h2 { color: #fff; text-transform: uppercase; letter-spacing: .03em; margin: 1.2rem 0 .3rem; }
.video p { color: #e7e7e7; margin: 0; }
.playbtn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: #1c1c1c; width: 64px; height: 64px; font-size: 1.5rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .18); transition: transform .25s var(--ease), box-shadow .25s; }
.playbtn--xl { width: 92px; height: 92px; font-size: 2.1rem; }
.playbtn:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 255, 255, .2); }

/* ---------- galerie en carrousel (3 visibles) */
.hs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs::-webkit-scrollbar { display: none; }
.hs__item { scroll-snap-align: start; }
.hs__ctrl { display: flex; justify-content: center; gap: .6rem; margin: 1.4rem 0 1rem; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r-img); overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot__cap { margin: .6rem .2rem 0; font-size: .92rem; color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; gap: .5rem; }
.shot__cap span { color: var(--muted); font-weight: 400; font-size: .85rem; }

/* ---------- bandeau des valeurs */
.vband { position: relative; isolation: isolate; color: #fff; min-height: 380px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.vband__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.vband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18, 18, 18, .58); }
.vband__in { padding: 4rem 0; }
.values { display: flex; flex-wrap: wrap; justify-content: center; font: 700 clamp(1.3rem, 2.8vw, 2.2rem)/1.3 var(--font-h); text-transform: uppercase; letter-spacing: .05em; }
.values li + li::before { content: "|"; color: var(--mid); margin: 0 .6em; font-weight: 400; }
.values--ink { color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 1.2rem; }

/* ---------- bannière des pages intérieures */
.banner { position: relative; isolation: isolate; min-height: clamp(230px, 24vw, 340px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18, 18, 18, .55); }
.banner__in { padding: 3rem 0 2.2rem; }
.banner__title { color: #fff; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 700; margin-bottom: .8rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.banner__sep { color: var(--mid); margin: 0 .45em; font-weight: 400; }
.banner .crumbs ol { justify-content: center; color: #e2e2e2; }
.banner .crumbs a { color: #e2e2e2; }
.banner .crumbs li + li::before { color: rgba(255, 255, 255, .5); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.emblem { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.emblem img { width: 92px; opacity: .95; }
.intro { color: var(--accent-ink); font: 600 1.12rem/1.6 var(--font-b); max-width: 780px; margin: 0 auto 1.6rem; text-align: center; }
.intro--sm { font-size: 1rem; margin-top: 1.8rem; }
.prose p { font-size: 1.03rem; }
.center-t .prose p { margin-inline: auto; max-width: 70ch; }

/* tuiles des pages famille */
.ftiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1.2rem; }
.ftile a { display: block; text-decoration: none; color: inherit; }
.ftile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); transition: transform .5s var(--ease), box-shadow .3s; }
.ftile a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.ftile__name { display: block; margin: .8rem 0 .3rem; color: var(--accent-ink); font: 700 1rem var(--font-h); text-transform: uppercase; letter-spacing: .03em; }
.ftile__lead { display: block; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* grille photo des pages service */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pgrid .shot img { aspect-ratio: 1; }
.siblings { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.siblings p { color: var(--muted); font-size: .9rem; margin-bottom: .7rem; }
.siblings ul { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.siblings a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; background: var(--card); }
.siblings a:hover { border-color: var(--dark); color: var(--accent-ink); }

/* bandeau « spécialisé en » de la page à propos */
.specband { background: linear-gradient(130deg, var(--black), var(--dark-700)); color: #fff; padding: clamp(3rem, 5vw, 4.5rem) 0; }
.specband__h { color: #fff; text-align: center; letter-spacing: .02em; margin-bottom: 2.4rem; }
.specs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.2rem; }
.spec { text-align: center; display: grid; justify-items: center; align-content: start; gap: .4rem; }
.spec__h { display: grid; justify-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 700 1rem var(--font-h); text-transform: uppercase; letter-spacing: .04em; }
.spec__h .ph { font-size: 2.6rem; color: var(--mid); }
.spec ul { display: grid; gap: .1rem; font-size: .86rem; color: #e2e2e2; }
.spec__more { color: #fff; margin-top: .3rem; }

.duo { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.duo__img { margin: 0; }
.duo__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.quote { margin: 1.4rem 0 1.8rem; padding: .2rem 0 .2rem 1.3rem; border-left: 3px solid var(--dark); }
.quote p { font: 600 1.15rem/1.5 var(--font-h); color: var(--ink); margin-bottom: .5rem; }
.quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }
.quote--lg p { font-size: 1.3rem; }
.ticks { display: grid; gap: .65rem; margin: 1.2rem 0 1.8rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink); }
.ticks .ph { color: var(--accent-ink); font-size: 1.3rem; flex: none; margin-top: .1rem; }
.ticks--grid { grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; }
.ticks--left { text-align: left; max-width: 760px; margin-inline: auto; }
.ticks--card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem 1.8rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* ---------- réalisations, primes, contact */
.fchips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.8rem; }
.fchip { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; font-weight: 500; }
.fchip:hover { border-color: var(--dark); }
.fchip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.mas { columns: 3 300px; column-gap: 18px; }
.mas__item { break-inside: avoid; margin-bottom: 22px; }
.mas__item:nth-child(3n + 1) .shot img { aspect-ratio: 4 / 5; }
.mas__item[hidden] { display: none; }
.empty { color: var(--muted); text-align: center; }
.proto-note { display: inline-flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--muted); background: var(--grey-50); padding: .45rem .8rem; border-radius: 8px; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.region { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.8rem; display: grid; gap: .5rem; align-content: start; justify-items: start; }
.region__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grey-50); color: var(--accent-ink); font-size: 1.6rem; }
.region__h { font-size: 1.2rem; margin: .4rem 0 0; }
.region p { color: var(--muted); margin: 0 0 .6rem; }
.worklinks { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.worklinks a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; }
.worklinks a:hover { border-color: var(--dark); color: var(--accent-ink); }
.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ph { color: var(--accent-ink); transition: transform .25s var(--ease); flex: none; }
.faq__item[open] summary .ph { transform: rotate(45deg); }
.faq__item p { padding: 0 1.2rem 1.1rem; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pills li { padding: .35rem .8rem; border-radius: 999px; background: var(--grey-50); color: var(--accent-ink); font-size: .9rem; font-weight: 500; }

.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.qform { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.4rem, 3vw, 2.4rem); }
.qform__fields { display: grid; gap: 1.6rem; }
.qform__fields > .btn { justify-self: start; }
.form-ok { text-align: center; padding: 2rem 1rem; display: grid; justify-items: center; gap: .4rem; }
.form-ok[hidden] { display: none; }
.form-ok > .ph { font-size: 3.4rem; color: var(--accent-ink); }
.contact__side { display: grid; gap: 1rem; position: sticky; top: 100px; }
.sidecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; display: grid; gap: .7rem; }
.sidecard__title { font-size: 1.25rem; margin: 0; }
.sidecard p { color: var(--muted); margin: 0 0 .3rem; }
.sidecard__h { font-size: .95rem; margin: .8rem 0 0; }
.sidecard--alert { background: linear-gradient(140deg, var(--dark-700), var(--black)); border: 0; color: #fff; }
.sidecard--alert > .ph { font-size: 2rem; }
.sidecard--alert .sidecard__title, .sidecard--alert p { color: #fff; }
.clist { display: grid; gap: .8rem; }
.clist li { display: flex; gap: .7rem; align-items: center; color: var(--ink); }
.clist .ph { color: var(--accent-ink); font-size: 1.25rem; flex: none; }
mark { background: color-mix(in srgb, var(--mid) 35%, transparent); color: inherit; padding: 0 .25em; border-radius: 4px; }

/* champs */
.field { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: .6rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .3rem; }
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--r-ui); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dark) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; border-width: 2.5px !important; }
input[type="file"] { font-size: .9rem; color: var(--text); }
input[type="file"]::file-selector-button { margin-right: .8rem; padding: .55rem .9rem; border-radius: 8px; border: 1.5px solid var(--line); background: var(--grey-50); color: var(--ink); font: 600 .88rem var(--font-b); cursor: pointer; }
.help { font-size: .85rem; color: var(--muted); margin: 0; }
.err { font-size: .86rem; color: var(--err); margin: 0; font-weight: 600; padding-left: .55rem; border-left: 3px solid var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; transition: all .15s; }
.chip input:hover + span { border-color: var(--dark); }
.chip input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--mid); outline-offset: 2px; }
.chips--sm span { padding: .45rem .85rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--dark); flex: none; }

.ctaband { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; border-radius: 22px; padding: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(120deg, var(--black), var(--dark-700)); color: #fff; }
.ctaband h2 { color: #fff; font-size: clamp(1.3rem, 2.3vw, 1.8rem); margin-bottom: .3rem; }
.ctaband p { margin: 0; color: #e0e0e0; }

/* ---------- pied de page (copie : contact, liens, logo au centre, liens, réseaux) */
.footer { background: var(--surface); color: var(--text); padding: 3.5rem 0 0; font-size: .9rem; border-top: 4px solid var(--dark); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr 1.1fr; gap: 2rem; align-items: start; }
.footer__name { color: var(--ink); font: 700 .95rem var(--font-h); letter-spacing: .06em; margin-bottom: .8rem; }
.footer ul { display: grid; gap: .45rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--accent-ink); }
.footer__contact li, .footer__contact a { display: flex; gap: .55rem; align-items: center; }
.footer__contact .ph { color: var(--accent-ink); }
.footer__links a { text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.footer__logo { text-align: center; display: grid; justify-items: center; gap: .9rem; }
.footer__plate { display: inline-block; }
.footer__plate img { width: 170px; }
.footer__logo p { font-size: .85rem; max-width: 30ch; margin: 0; }
.footer__side { text-align: right; display: grid; justify-items: end; gap: .3rem; }
.footer__side p { margin: 0; font-size: .85rem; }
.social { display: flex; gap: .5rem; margin-bottom: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 1.2rem; }
.social a:hover { border-color: var(--dark); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); margin-top: 2.6rem; padding: 1.3rem 0; font-size: .82rem; }
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.mbar { display: none; }

/* ---------- chat de démonstration */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 55; }
.chat__btn { display: flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 999px; border: 0; background: var(--dark); color: var(--on-dark); font-weight: 600; box-shadow: 0 16px 34px -14px rgba(57, 57, 57, .8); transition: transform .2s var(--ease); }
.chat__btn:hover { transform: translateY(-2px); }
.chat__btn .ph { font-size: 1.6rem; }
.chat__panel { position: absolute; right: 0; bottom: 70px; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 130px)); background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(28, 28, 28, .55); display: flex; flex-direction: column; overflow: hidden; animation: chatin .28s var(--ease); }
.chat__panel[hidden] { display: none; }
@keyframes chatin { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat__head { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.chat__head img { width: 66px; height: auto; flex: none; }
.chat__head strong { display: block; font-size: .95rem; color: var(--ink); }
.chat__head span { display: block; font-size: .76rem; color: var(--muted); }
.chat__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; background: var(--surface); }
.msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; animation: chatin .22s var(--ease); }
.msg--bot { align-self: flex-start; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--dark); color: var(--on-dark); border-bottom-right-radius: 4px; }
.msg__link { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; font-weight: 600; color: var(--accent-ink); overflow-wrap: anywhere; }
.msg__link .ph { font-size: 1.05rem; flex: none; }
.msg:has(.msg__map) { max-width: 100%; width: 100%; }
.msg__map { margin-top: .6rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
/* carte en niveaux de gris : la charte reste noir, gris, blanc */
.msg__map iframe { display: block; width: 100%; height: 170px; border: 0; filter: grayscale(1) contrast(1.05); }
.msg__mapcap { display: block; padding: .4rem .65rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); text-decoration: none; }
.msg__mapcap:hover { color: var(--ink); text-decoration: underline; }
.msg--typing { display: flex; gap: 4px; padding: .75rem .9rem; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .7rem; background: var(--surface); }
.chat__quick:empty { display: none; }
.qchip { padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--dark); background: var(--card); color: var(--accent-ink); font-size: .85rem; font-weight: 600; }
.qchip:hover { background: var(--dark); color: var(--on-dark); }
.chat__form { display: flex; gap: .45rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--card); }
.chat__form input { min-height: 44px !important; border-radius: 999px !important; padding: .5rem 1rem !important; }
.chat__form button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font-size: 1.15rem; }
.chat__note { font-size: .72rem; color: var(--muted); text-align: center; padding: 0 .8rem .55rem; margin: 0; background: var(--card); }
.chat__teaser { position: absolute; right: 0; bottom: 70px; width: 270px; display: flex; gap: .65rem; align-items: center; padding: .8rem 2.2rem .8rem .8rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .9rem; color: var(--ink); animation: chatin .3s var(--ease); }
.chat__teaser[hidden] { display: none; }
.chat__teaser img { width: 58px; height: auto; flex: none; }
.chat__teaser p { margin: 0; cursor: pointer; }
.chat__teaser-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .8rem; }

/* ---------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(11, 11, 11, .9); }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); }
.lightbox img { max-height: 78dvh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: .8rem; }
.lightbox__close, .lightbox__nav { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; }
.lightbox__nav--next { right: 16px; top: 50%; }
.lightbox--video .lightbox__nav { display: none; }
.vmsg { max-width: 460px; background: var(--card); color: var(--text); border-radius: var(--r-card); padding: 2rem; text-align: center; }
.vmsg .ph { font-size: 2.6rem; color: var(--accent-ink); }

/* ---------- apparition au défilement (désactivée si mouvement réduit) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- responsive : menu complet dès 1240 px, compact jusqu'à 1359 px */
@media (max-width: 1359px) {
  .nav__link { font-size: .72rem; padding: .5rem .4rem; letter-spacing: .03em; }
  .logo img { width: 100px; }
}
@media (max-width: 1239px) {
  .nav { display: none; }
  .header__cta { display: flex; }
  .theme-toggle { margin-left: auto; width: 44px; height: 44px; }
  .svcs { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; grid-row: 1; }
  .footer__side { text-align: left; justify-items: start; }
}
@media (max-width: 1080px) {
  .abs, .steps { grid-template-columns: repeat(2, 1fr); }
  .ftiles, .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .split, .contact, .duo { grid-template-columns: 1fr; }
  .contact__side { position: static; }
  .regions { grid-template-columns: 1fr; }
  .hs { grid-auto-columns: 78%; }
  .ftiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .hide-sm { display: none !important; }
  .topbar__info a:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .header__in { min-height: 64px; gap: .8rem; }
  .logo img { width: 88px; }
  .hero { min-height: 560px; }
  .hero__img { object-position: 70% 50%; }
  .hero__badge { margin-bottom: 1rem; }
  .hero__badge img { width: 150px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__sub { font-size: 1rem; }
  .hero .btns .btn { flex: 1 1 100%; }
  .svcs { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .abs { grid-template-columns: 1fr; }
  .steps { gap: 12px; }
  .step__btn { padding: 1.5rem .8rem 1rem; }
  .step__icon { width: 62px; height: 62px; font-size: 1.8rem; border-radius: 16px; }
  .step__text { font-size: .85rem; }
  .step__cta { font-size: .78rem; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .ticks--grid, .grid2 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .values { gap: .1em .9em; }
  .values li + li::before { content: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(28, 28, 28, .4); }
  .mbar .btn { min-height: 48px; }
  .ctaband .btns .btn { flex: 1 1 100%; }
  .chat { right: 12px; bottom: 84px; }
  .chat__btn { width: 56px; padding: 0; justify-content: center; }
  .chat__btn span { display: none; }
  .chat__panel { position: fixed; left: 8px; right: 8px; bottom: 150px; width: auto; height: min(70dvh, 540px); }
  .chat__teaser { bottom: 68px; width: min(270px, calc(100vw - 90px)); }
  .lightbox__nav { top: auto; bottom: 20px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .ftiles { grid-template-columns: 1fr; }
}
