/* ==========================================================================
   Botreau Plomberie — design system
   Structure et rythme inspirés d'un site d'agencement haut de gamme :
   fond crème, sections anthracite arrondies, boutons pilules.
   ========================================================================== */

/* Police auto-hébergée (Inter Tight, licence OFL — voir assets/fonts/OFL.txt) */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #fffcf5;
  --cream-2: #f3eee3;
  --dark: #262324;
  --dark-2: #322e2f;
  --text: #444;
  --text-muted: #6d6966;
  --text-on-dark: #d9d4ca;
  --white: #fff;
  --accent: #0077fc;
  --accent-dark: #005fcc;
  --accent-soft: #e1eeff;
  --line: rgba(38, 35, 36, 0.14);
  --line-dark: rgba(255, 252, 245, 0.16);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 15px;
  --pill: 50px;

  --frame: clamp(10px, 3.2vw, 46px);
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1240px;
  --section-y: clamp(72px, 9vw, 130px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 112px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.12;
}
h1 { font-size: clamp(38px, 4.1vw, 58px); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(30px, 2.95vw, 42px); letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.01em; line-height: 1.25; }

strong { font-weight: 600; color: var(--dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 20px; background: var(--dark); color: var(--cream);
  border-radius: var(--pill); transform: translateY(-150%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.bg--cream { background: var(--cream); }
.bg--cream-2 { background: var(--cream-2); }
.bg--dark { background: var(--dark); color: var(--text-on-dark); }
.bg--dark h1, .bg--dark h2, .bg--dark h3, .bg--dark strong { color: var(--cream); }

/* Sections anthracite en « carte » posée sur le fond crème */
.panel {
  margin-inline: var(--frame);
  border-radius: var(--radius);
}
.rad-top { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.rad-bot { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 { max-width: 15em; }
.section-head p { max-width: 34em; margin: 0; }
.section-head--split { align-items: center; }
.section-head .btn { justify-self: end; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bg--dark .eyebrow { color: var(--text-on-dark); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--dark);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 19px 28px 18px 30px;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px; font-weight: 500; line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%); transition: transform 0.45s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--white); }
.btn__arrow { display: inline-block; transition: transform 0.35s var(--ease-out); font-size: 1.05em; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--light { --btn-bg: var(--cream); --btn-fg: var(--dark); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--white); }
.btn--accent::before { background: var(--dark); }
.btn--glass {
  --btn-bg: rgba(39, 39, 39, 0.7); --btn-fg: var(--cream);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--outline {
  --btn-bg: transparent; --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--sm { padding: 14px 20px 13px 22px; font-size: 15px; }

.link-underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-accent {
  color: inherit;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px;
}

.prose a:not(.btn) {
  color: var(--dark);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: color 0.2s;
}
.prose a:not(.btn):hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  color: var(--cream);
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease), height 0.35s var(--ease), color 0.35s;
}
.site-header__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: calc(var(--frame) + clamp(14px, 2vw, 34px));
}
.site-header__left, .site-header__right { display: flex; align-items: center; gap: 6px; }
.site-header__right { justify-content: flex-end; gap: 10px; }

.site-header.is-scrolled {
  --header-h: 84px;
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--dark);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .btn--glass { --btn-bg: var(--dark); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header--solid { color: var(--dark); }
.site-header--solid .btn--glass { --btn-bg: var(--dark); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 10px 12px; font-size: 16px; font-weight: 500;
  border-radius: var(--pill); white-space: nowrap;
  transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 0.7; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor;
}
.badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--accent); color: var(--white);
  font-size: 11px; font-weight: 600; vertical-align: 6px;
}
.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  animation: pulse 2s var(--ease) infinite; z-index: -1;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }

.hamburger {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  transition: background-color 0.2s;
}
.hamburger:hover { background: rgba(127, 127, 127, 0.15); }
.hamburger__lines { width: 22px; height: 14px; position: relative; }
.hamburger__lines span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.hamburger__lines span:nth-child(1) { top: 0; }
.hamburger__lines span:nth-child(2) { top: 6px; }
.hamburger__lines span:nth-child(3) { top: 12px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; height: 44px; width: auto; }
/* Header : logo blanc sur la photo, logo noir une fois le fond crème affiché */
.site-header .logo__img--dark { display: none; }
.site-header.is-scrolled .logo__img--light,
.site-header--solid .logo__img--light { display: none; }
.site-header.is-scrolled .logo__img--dark,
.site-header--solid .logo__img--dark { display: block; }
.menu__top .logo__img, .contact-panel__top .logo__img { height: 40px; }

.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: rgba(127, 127, 127, 0.15); }
.icon-btn svg { width: 20px; height: 20px; }

.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; padding: 10px 12px; }
.header-phone svg { width: 18px; height: 18px; }

/* ---------- Menu plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark); color: var(--cream);
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-out), visibility 0s; }
.menu__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 112px; padding-inline: calc(var(--frame) + clamp(14px, 2vw, 34px));
  flex: none;
}
.menu__close { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.menu__close:hover { background: rgba(255, 255, 255, 0.1); }
.menu__body {
  flex: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
  padding: 40px calc(var(--frame) + clamp(14px, 2vw, 34px)) 60px;
}
.menu__group h2 {
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-dark);
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line-dark); font-weight: 500;
}
.menu__group li + li { margin-top: 6px; }
.menu__group a {
  display: inline-block; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.01em; line-height: 1.3; color: var(--cream);
  transition: color 0.2s, transform 0.3s var(--ease-out);
}
.menu__group a:hover { color: var(--accent); transform: translateX(6px); }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
  padding: 28px calc(var(--frame) + clamp(14px, 2vw, 34px));
  border-top: 1px solid var(--line-dark); font-size: 16px;
}
.menu .menu__group, .menu .menu__foot { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.menu.is-open .menu__group, .menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu.is-open .menu__group:nth-child(2) { transition-delay: 0.08s; }
.menu.is-open .menu__group:nth-child(3) { transition-delay: 0.16s; }
.menu.is-open .menu__group:nth-child(4) { transition-delay: 0.24s; }
.menu.is-open .menu__foot { transition-delay: 0.3s; }

/* ---------- Panneau contact ---------- */
.contact-panel {
  position: fixed; inset: 0; z-index: 110;
  background: var(--cream); color: var(--text);
  overflow-y: auto;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.7s var(--ease-out), visibility 0s 0.7s;
}
.contact-panel.is-open { transform: none; visibility: visible; transition: transform 0.7s var(--ease-out), visibility 0s; }
.contact-panel__top {
  display: flex; justify-content: space-between; align-items: center;
  height: 112px; padding-inline: calc(var(--frame) + clamp(14px, 2vw, 34px)); color: var(--dark);
}
.contact-panel__close {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px;
  padding: 14px 22px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line);
}
.contact-panel__close:hover { background: var(--cream-2); }
.contact-panel__body { padding-block: 20px 80px; }

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 120px);
}
.contact-grid__intro h2 { font-size: clamp(36px, 3.4vw, 52px); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 28px; max-width: 9em; }
.contact-grid__intro > p { max-width: 26em; font-size: 16px; }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.contact-links h3 { font-size: 18px; margin-bottom: 6px; }
.contact-links a { font-size: 16px; }

/* ---------- Formulaires ---------- */
.form h2 { font-size: 22px; margin-bottom: 24px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form__full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--dark); margin-bottom: 8px; }
.field label small { font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--dark);
  background: var(--white); border: 1px solid #d8d2c6; border-radius: 6px;
  padding: 13px 14px; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23262324' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c4372c; }
.field__error { display: none; color: #c4372c; font-size: 13px; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form__note { font-size: 13px; color: var(--text-muted); }
.form__success {
  display: none; padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--dark); margin-top: 20px;
}
.form.is-sent .form__success { display: block; }
.form__alert {
  padding: 16px 20px; margin-bottom: 20px; border-radius: var(--radius-sm);
  background: #fdecea; color: #8a1f17; font-size: 15px; line-height: 1.5;
}
.form__alert:focus { outline: none; }
/* Champ piège anti-spam : invisible pour les visiteurs et les lecteurs d'écran */
.form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending [type="submit"] { opacity: 0.7; cursor: progress; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: max(620px, 100svh); max-height: 980px;
  margin-inline: var(--frame);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden; color: var(--cream);
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
.hero.is-paused .hero__media img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1%, -1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 18, 19, 0.6) 0%, rgba(20, 18, 19, 0.15) 28%, rgba(20, 18, 19, 0.3) 55%, rgba(20, 18, 19, 0.82) 100%);
}
.hero__content { width: 100%; padding: 0 clamp(20px, 3vw, 44px) clamp(28px, 3vw, 40px); }
.hero h1 { color: var(--cream); max-width: 13.5em; font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -0.035em; margin-bottom: clamp(36px, 6vw, 90px); }
.hero__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; border-top: 1px solid rgba(255, 252, 245, 0.35);
}
.hero__bar p { margin: 0; font-size: 16px; font-weight: 500; max-width: 46em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.round-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 245, 0.6); transition: background-color 0.2s;
}
.round-btn:hover { background: rgba(255, 252, 245, 0.15); }
.round-btn svg { width: 14px; height: 14px; }

/* Mots qui montent un à un */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 150ms); }
.split-words.is-in .w > span { transform: none; }

/* ---------- Bannière (pages internes) ---------- */
.banner {
  position: relative; margin-inline: var(--frame);
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: clamp(520px, 72svh, 720px);
  overflow: hidden; color: var(--cream);
  display: flex; align-items: flex-end; isolation: isolate;
}
.banner__media { position: absolute; inset: 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 18, 19, 0.6) 0%, rgba(20, 18, 19, 0.1) 35%, rgba(20, 18, 19, 0.75) 100%);
}
.banner__content { width: 100%; padding: calc(var(--header-h) + 20px) clamp(20px, 3vw, 44px) clamp(32px, 3.5vw, 48px); }
.banner h1 { color: var(--cream); max-width: 16em; margin-bottom: 20px; }
.banner__lede { max-width: 38em; font-size: 18px; margin-bottom: 30px; color: rgba(255, 252, 245, 0.88); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.banner--compact { min-height: clamp(380px, 48svh, 480px); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 22px; color: rgba(255, 252, 245, 0.8); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a:hover { color: var(--cream); text-decoration: underline; }

/* ---------- Cartes services (3 grandes images) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.service-card { display: block; }
.service-card__media {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 385 / 486;
  background: var(--cream-2);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 18, 19, 0.45));
  opacity: 0; transition: opacity 0.5s;
}
.service-card:hover .service-card__media::after { opacity: 1; }
.service-card__arrow {
  position: absolute; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream); color: var(--dark); display: grid; place-items: center; z-index: 1;
  transform: translateY(12px) scale(0.85); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.35s;
}
.service-card:hover .service-card__arrow { transform: none; opacity: 1; }
.service-card__body { padding-top: 22px; }
.service-card__body h3 { margin-bottom: 10px; }
.service-card__body p { font-size: 16px; color: var(--text-muted); margin: 0; }
.bg--dark .service-card__body p { color: var(--text-on-dark); }

/* Grille compacte de tous les services */
.all-services {
  margin-top: clamp(56px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px;
  border-top: 1px solid var(--line);
}
.all-services__title { grid-column: 1 / -1; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 22px 0 6px; font-weight: 500; }
.all-services a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500; color: var(--dark); line-height: 1.3;
  transition: color 0.2s, padding 0.35s var(--ease-out);
}
.all-services a::after { content: "→"; transition: transform 0.35s var(--ease-out); color: var(--accent); }
.all-services a:hover { color: var(--accent); padding-left: 6px; }
.all-services a:hover::after { transform: translateX(4px); }

/* ---------- Bloc atouts (sombre) ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); }
.usp__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 385 / 262; margin-bottom: 28px; background: var(--dark-2); }
.usp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.usp:hover .usp__media img { transform: scale(1.05); }
.usp h3 { margin-bottom: 14px; }
.usp p { font-size: 16px; margin: 0; }
.usp__num { display: inline-block; font-size: 14px; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.usp-foot { margin-top: clamp(48px, 5vw, 72px); display: flex; justify-content: center; }

/* Étapes (méthode) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 32px 28px 8px 0; border-top: 1px solid var(--line-dark); position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 40px;
}
.step h3 { margin-bottom: 12px; font-size: 22px; }
.step p { font-size: 16px; margin: 0; }

/* ---------- Bloc texte (phrase d'accroche) ---------- */
.statement { max-width: 1060px; }
.statement__text {
  font-size: clamp(28px, 3vw, 44px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500;
  color: var(--dark); margin-bottom: 44px;
}
.statement__text .sw { color: rgba(38, 35, 36, 0.18); transition: color 0.3s; }
.statement__text .sw.is-lit { color: var(--dark); }
.statement__text .sw--accent.is-lit { color: var(--accent); }

/* ---------- Carrousel (réalisations) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3);
  gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor; transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}
.carousel__btn:hover { background: var(--cream); color: var(--dark); }
.bg--cream .carousel__btn:hover { background: var(--dark); color: var(--cream); }
.carousel__btn[disabled] { opacity: 0.3; pointer-events: none; }
.carousel__btn svg { width: 16px; height: 16px; }
.carousel__progress { height: 1px; background: var(--line-dark); margin-top: 40px; position: relative; overflow: hidden; }
.bg--cream .carousel__progress { background: var(--line); }
.carousel__progress span { position: absolute; inset: 0 auto 0 0; width: 30%; background: currentColor; transition: transform 0.4s var(--ease-out), width 0.4s; }

.project-card { display: block; }
.project-card__media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 385 / 232; margin-bottom: 22px; background: var(--dark-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__tag {
  display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--line-dark); margin-bottom: 14px;
}
.bg--cream .project-card__tag { box-shadow: inset 0 0 0 1px var(--line); }
.project-card h3 { margin-bottom: 8px; }
.project-card p { font-size: 16px; margin: 0; }

/* ---------- Média pleine largeur ---------- */
.fw-media {
  position: relative; margin-inline: var(--frame); border-radius: var(--radius); overflow: hidden;
  min-height: clamp(460px, 52vw, 760px); display: flex; align-items: center; color: var(--cream); isolation: isolate;
}
.fw-media__img { position: absolute; inset: -8% 0; z-index: -2; }
.fw-media__img img { width: 100%; height: 100%; object-fit: cover; }
.fw-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 18, 19, 0.72) 0%, rgba(20, 18, 19, 0.25) 60%, rgba(20, 18, 19, 0.1) 100%); }
.fw-media__content { width: 100%; }
.fw-media h2 { color: var(--cream); max-width: 12em; margin-bottom: 28px; }
.fw-media p { max-width: 30em; margin-bottom: 30px; color: rgba(255, 252, 245, 0.88); }
.fw-media__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Texte + média ---------- */
.text-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.text-media--reverse .text-media__media { order: 2; }
.text-media__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--cream-2); }
.text-media__media img { width: 100%; height: 100%; object-fit: cover; }
.text-media h2 { margin-bottom: 26px; }
.text-media .prose { font-size: 17px; }
.text-media .btn { margin-top: 18px; }
.checklist { margin: 22px 0 6px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center no-repeat;
}

/* ---------- Chiffres / engagements ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.stat span { font-size: 15px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq-layout__intro { position: sticky; top: 120px; }
.faq-layout__intro h2 { margin-bottom: 20px; }
.faq-layout__intro p { font-size: 16px; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 26px 0; font-size: 20px; font-weight: 500; color: var(--dark); letter-spacing: -0.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; font-weight: 400; transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--dark); color: var(--cream); }
.faq summary:hover { color: var(--accent); }
.faq__answer { padding: 0 60px 28px 0; font-size: 16px; }

/* ---------- Hub prestations ---------- */
.hub-group + .hub-group { margin-top: clamp(64px, 7vw, 100px); }
.hub-group__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hub-group__head span { font-size: 14px; color: var(--text-muted); }
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hub-grid .service-card__media { aspect-ratio: 4 / 5; }

/* ---------- Contact (page) ---------- */
.contact-cards { display: grid; gap: 14px; margin-top: 36px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, transform 0.3s var(--ease-out);
}
a.contact-card:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.contact-card__icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card strong { display: block; font-size: 18px; }
.contact-card span { font-size: 15px; color: var(--text-muted); }

.legal { max-width: 820px; }
.legal h2 { font-size: 26px; margin: 48px 0 16px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Encadré « En bref » (fiches services) ---------- */
.summary {
  border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(24px, 3vw, 40px);
}
.summary__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--dark); margin-bottom: 24px; max-width: 60em; }
.summary__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.summary__facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.summary__facts dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--dark); }
.summary__facts a { color: var(--accent); }
.updated { margin-top: 22px; font-size: 14px; color: var(--text-muted); }

/* ---------- Fiche entreprise (À propos) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; border-top: 1px solid var(--line-dark); }
.facts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-size: 14px; color: rgba(217, 212, 202, 0.7); }
.facts dd { margin: 0; font-size: 16px; color: var(--cream); }
.facts a { color: var(--cream); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; }

/* ---------- Footer ---------- */
.site-footer {
  margin-inline: var(--frame);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(64px, 7vw, 100px) 0 28px;
  overflow: hidden; position: relative;
}
.footer-cta { font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -0.01em; color: var(--cream); font-weight: 500; line-height: 1.2; max-width: 20em; }
.footer-cta a { color: var(--cream); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: color 0.2s; }
.footer-cta a:hover { color: var(--accent); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: end; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 44px; font-size: 15px; }
.footer-nav a { color: var(--text-on-dark); transition: color 0.2s; }
.footer-nav a:hover { color: var(--cream); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line-dark); }
.footer-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(217, 212, 202, 0.65); margin-bottom: 16px; font-weight: 500; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a, .footer-cols p { font-size: 15px; color: var(--text-on-dark); margin: 0; }
.footer-cols a:hover { color: var(--cream); }
.footer-nap { font-style: normal; font-size: 14px; line-height: 1.7; color: rgba(217, 212, 202, 0.75); margin-top: 36px; max-width: 70em; }
.footer-nap strong { color: var(--cream); font-weight: 500; }
.footer-nap a { color: var(--text-on-dark); }
.footer-nap a:hover { color: var(--cream); }
.footer-watermark { margin: clamp(40px, 5vw, 70px) 0 clamp(16px, 2.4vw, 32px); user-select: none; pointer-events: none; }
.footer-watermark img { width: 100%; height: auto; opacity: 0.06; filter: grayscale(1); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(217, 212, 202, 0.7); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-nav a:hover { color: var(--cream); }
.cert-logos { display: flex; gap: 12px; }
.cert-logos span {
  width: 92px; height: 54px; border-radius: 8px; display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 11px; line-height: 1.2; color: rgba(217, 212, 202, 0.6); padding: 4px;
}

/* ---------- Barre d'appel mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .main-nav a { padding-inline: 9px; font-size: 15px; }
  .header-phone span { display: none; }
}

@media (max-width: 1180px) {
  .main-nav, .header-phone { display: none; }
}

@media (max-width: 1100px) {
  :root { --header-h: 88px; }
  .menu__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .menu__top, .contact-panel__top { height: 88px; }
}

@media (max-width: 900px) {
  .summary__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .section-head, .text-media, .faq-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head .btn { justify-self: start; }
  .text-media--reverse .text-media__media { order: 0; }
  .text-media__media { aspect-ratio: 4 / 3; }
  .faq-layout__intro { position: static; }
  .services-grid, .usp-grid {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .services-grid::-webkit-scrollbar, .usp-grid::-webkit-scrollbar { display: none; }
  .services-grid > *, .usp-grid > * { scroll-snap-align: start; }
  .carousel__track { grid-auto-columns: 78%; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  body { font-size: 17px; }
  .site-header .btn--glass .btn__label { display: none; }
  .site-header .btn--glass { padding: 0; width: 48px; height: 48px; gap: 0; }
  .site-header .btn--glass .btn__arrow { display: none; }
  .site-header .btn--glass .btn__icon { display: block; }
  .logo__img { height: 36px; }
  .menu__top .logo__img, .contact-panel__top .logo__img { height: 34px; }
  .hero { min-height: 92svh; }
  .hero__bar { flex-direction: row; align-items: flex-end; }
  .hero__bar p { font-size: 15px; }
  .menu__body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .menu__top, .contact-panel__top { height: 76px; }
  .form__grid, .contact-links { grid-template-columns: minmax(0, 1fr); }
  .all-services { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 18px; padding: 22px 0; }
  .faq__answer { padding-right: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { padding-left: 0; border-left: 0; }
  .step::before { margin-bottom: 18px; }
  .hub-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .hub-grid > * { scroll-snap-align: start; }
  .fw-media::after { background: linear-gradient(0deg, rgba(20, 18, 19, 0.8) 0%, rgba(20, 18, 19, 0.3) 100%); }
  .fw-media { align-items: flex-end; padding-bottom: 36px; }
  .section-head--split { display: flex; flex-direction: column; align-items: flex-start; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80;
    padding: 8px; border-radius: 40px; background: rgba(38, 35, 36, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(140%); transition: transform 0.5s var(--ease-out);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { padding: 15px 12px 14px; font-size: 15px; }
  .site-footer { padding-bottom: 96px; }
}

.btn__icon { display: none; width: 20px; height: 20px; }

@media (max-width: 480px) {
  .summary__facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero h1 { font-size: 38px; }
  .logo__img { height: 32px; }
  .contact-panel__close span { display: none; }
  .cert-logos span { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .statement__text .sw { color: var(--dark); }
}
