/* =========================================================
   Idéal Habitat — feuille de style principale
   Valeurs de référence mesurées sur la maquette à 1440px
   ========================================================= */

:root {
  --ink: #171200;          /* texte principal */
  --taupe: #58554a;        /* boutons, footer */
  --sage: #b0af9b;         /* bouton menu, liens légaux */
  --sand: #e6e3d3;         /* fonds beiges, pastilles */
  --white: #fcfcfc;
  --bg: #fafafa;
  --line: #d6d4c8;
  --radius: 10px;
  --gutter: 50px;
  --header-h: 69px;
  --font: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-alt: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
button { font: inherit; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 10px; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-weight: 600; font-size: 16px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .01em; margin-bottom: 20px;
}
.title-light {
  font-weight: 300; font-size: 27px; line-height: 1.3;
}
.lead { font-weight: 300; font-size: 18px; line-height: 1.25; }
.rich p + p { margin-top: .2em; }
/* Texte justifié (demande client), césure automatique ; aligné à gauche en mobile (colonnes trop étroites) */
.rich p, .lead, .group__claim, .svc-hero__text .txt, .hero__subtitle, .contact .intro, .svc-cta p, .methode__step p, .svc-steps-intro p, .footer-main p:first-of-type { text-align: justify; hyphens: auto; }
.rich ul { padding-left: 1.4em; margin: .6em 0 1em; }
.rich li { margin: .1em 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 0 26px; white-space: nowrap;
  border: 0; border-radius: var(--radius);
  font-family: var(--font); font-weight: 600; font-size: 16px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s;
}
.btn .arrow { width: 13px; height: 13px; flex: none; transition: transform .25s; }
.btn:hover .arrow { transform: translate(2px, 2px); }
.btn--dark  { background: var(--ink);   color: #fff; }
.btn--dark:hover  { background: var(--taupe); }
.btn--taupe { background: var(--taupe); color: var(--white); }
.btn--taupe:hover { background: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sage); }
.btn--sage  { background: var(--sage);  color: var(--ink); }
.btn--sage:hover { background: var(--sand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, .21);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .3s;
}
/* Pages intérieures : bandeau taupe plein (le logo sable y est lisible), bouton devis en blanc */
body:not(.page-home) .site-header { background: var(--taupe); backdrop-filter: none; -webkit-backdrop-filter: none; }
body:not(.page-home) .site-header__quote { background: var(--white); color: var(--ink); }
body:not(.page-home) .site-header__quote:hover { background: var(--sand); }
/* Sur l'accueil le header flotte sur la vidéo */
.page-home .site-header { position: fixed; left: 0; right: 0; }
.page-home .site-header.is-scrolled { background: rgba(88, 85, 74, .85); }
.site-header__inner {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1440px; margin: 0 auto; padding: 0 59px 0 var(--gutter);
}
.site-header__logo { justify-self: start; display: inline-flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 34px; width: auto; display: block; }
.page-home .site-header__logo img { filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.site-header__quote { width: 262px; }
.menu-toggle {
  justify-self: end; width: 124px;
  font-family: var(--font-alt); font-weight: 700; font-size: 15px; text-transform: uppercase;
  gap: 8px;
}
.menu-toggle .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--taupe); color: var(--white);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  overflow-y: auto;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay__top {
  height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 59px 0 var(--gutter);
}
.menu-close .dot { background: var(--ink); }
.menu-overlay__body {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px;
  padding: 60px var(--gutter) 60px; max-width: 1440px; width: 100%; margin: 0 auto;
}
.menu-main { list-style: none; padding: 0; }
.menu-main a {
  display: inline-block; text-decoration: none;
  font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.2; text-transform: uppercase;
  transition: color .2s, transform .2s;
}
.menu-main a:hover, .menu-main a[aria-current="page"] { color: var(--sage); }
.menu-services__title { font-weight: 600; font-size: 16px; text-transform: uppercase; margin-bottom: 18px; color: var(--sage); }
.menu-services ul { list-style: none; padding: 0; columns: 2; column-gap: 30px; }
.menu-services li { break-inside: avoid; }
.menu-services a {
  display: block; padding: 7px 0; text-decoration: none; font-size: 18px;
  border-bottom: 1px solid rgba(252, 252, 252, .15);
}
.menu-services a:hover, .menu-services a[aria-current="page"] { color: var(--sage); }
.menu-overlay__contact { grid-column: 1 / -1; font-size: 16px; color: var(--sage); }
.menu-overlay__contact a { text-decoration: none; color: var(--white); }
body.menu-open { overflow: hidden; }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; color: var(--white); overflow: hidden;
  background: #3b3a33;
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.3) 100%);
}
/* Logo et texte sont dans le flux (colonne) : le texte est poussé en bas et ne peut jamais passer sous le logo.
   La largeur du logo est aussi bornée par la hauteur de l'écran (écrans courts / paysage). */
.hero__logo {
  position: relative; z-index: 1; align-self: center; height: auto;
  margin: calc(var(--header-h) + 25px) 0 40px;
  width: min(640px, 78vw, 95vh);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35));
}
/* Lisibilité du texte sur la vidéo (demande client) : zone discrète, arrière-plan légèrement flouté, sans cadre */
.hero__content {
  position: relative; z-index: 1; margin: auto 0 64px 113px; padding: 28px 36px 32px; max-width: 780px;
  background: rgba(23, 18, 0, .12); border-radius: 18px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.hero__title { font-weight: 400; font-size: clamp(32px, 3.6vw, 51.75px); line-height: 1.2; letter-spacing: -.04em; max-width: 700px; }
.hero__subtitle { font-weight: 300; font-size: clamp(20px, 2.2vw, 31.5px); line-height: 1.4; margin: 14px 0 28px; max-width: 700px; }
.hero .btn { width: 200px; }

/* ---------- Sections génériques ---------- */
.section { padding: 110px 0; }
.section--bg { background: var(--bg); }

/* Savoir-faire */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 670 / 572; }
.split__media video, .split__media img { width: 100%; height: 100%; object-fit: cover; }
.savoir .title-light { max-width: 560px; margin-bottom: 33px; }
.savoir .lead { max-width: 550px; margin-bottom: 0; text-align: justify; hyphens: auto; font-size: 17px; }
.savoir .btn { width: 206px; }

/* Méthode (frise) */
.methode { padding: 90px 0 80px; background: var(--white); }
.methode__head { padding-left: 100px; margin-bottom: 65px; }
.methode__steps {
  position: relative; list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.methode__steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--ink);
}
.methode__step { position: relative; text-align: center; padding: 0 30px; }
.methode__icon {
  width: 40px; height: 40px; margin: 7px auto 26px; border-radius: 50%;
  background: var(--sand); display: grid; place-items: center; position: relative;
}
.methode__icon svg { width: 22px; height: 22px; }
.methode__step h3 { font-weight: 300; font-size: 19px; line-height: 1.45; color: var(--taupe); }
.methode__step p {
  font-weight: 500; font-size: 15px; line-height: 1.35; margin-top: 8px;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s;
}
.methode__step:hover p, .methode__step:focus-within p { opacity: 1; transform: none; }

/* Services : intro + slider */
.services-intro { padding: 120px 0 45px; background: var(--bg); }
.services-intro .title-light { max-width: 560px; }
.slider { position: relative; overflow: hidden; border-radius: var(--radius); }
.slider__track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.slider__slide { position: relative; flex: 0 0 100%; min-height: 597px; display: flex; align-items: center; justify-content: center; }
.slider__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider__card {
  position: relative; z-index: 1; width: min(620px, calc(100% - 120px));
  padding: 34px 48px 28px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(90deg, rgba(235,235,233,.82), rgba(220,220,218,.6));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
}
.slider__card h3 { font-weight: 300; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.1; color: var(--taupe); margin-bottom: 18px; }
.slider__card .sub { font-size: 18px; line-height: 1.6; margin-bottom: 30px; }
.slider__card .btn { align-self: flex-end; margin-top: 0; font-family: var(--font-alt); font-weight: 500; text-transform: none; min-height: 44px; width: 212px; }
.slider__card .btn svg { width: 20px; height: 20px; }
/* Flèches : disque blanc opaque + flèche taupe + ombre, lisibles sur photos claires comme sombres */
.slider__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(23,18,0,.08); cursor: pointer;
  background: var(--white); color: var(--taupe); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(23,18,0,.28);
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.slider__arrow:hover, .slider__arrow:focus-visible { background: var(--taupe); color: var(--white); transform: translateY(-50%) scale(1.06); box-shadow: 0 8px 24px rgba(23,18,0,.36); outline: none; }
.slider__arrow svg { width: 34px; height: 34px; }
.slider__arrow--prev { left: 42px; }
.slider__arrow--next { right: 42px; }
.slider__dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider__dots button { position: relative; width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(23,18,0,.35), 0 1px 4px rgba(23,18,0,.35); cursor: pointer; }
.slider__dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
/* zone tactile élargie (24 px) sans changer l'aspect des points */
.slider__dots button::after { content: ""; position: absolute; inset: -8px; }

/* Qui sommes-nous */
.about { padding: 115px 0 70px; }

/* Partenaires */
.partners { padding: 40px 0 90px; }
.partners .container { padding: 0 57px; }
.partners .title-light { margin-bottom: 18px; }
.partners .lead { max-width: 560px; margin-bottom: 48px; }
.partners__logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 11px; }
.partners__logos img { width: 100%; aspect-ratio: 155 / 128; object-fit: contain; }
.partners__cta { text-align: center; margin-top: 58px; }
.partners__cta .btn { min-width: 262px; }

/* Réseau : sous-traitants & recrutement */
.network { padding: 90px 0 110px; background: var(--bg); }
.network .title-light { max-width: 640px; margin-bottom: 50px; }
.network__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.network__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 38px 36px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s, box-shadow .3s;
}
.network__card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 18, 0, .08); }
.network__card h3 { font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--taupe); }
.network__card p { font-size: 17px; line-height: 1.5; flex: 1; }
.network__card .btn { align-self: flex-start; }

/* Bande de logos défilante (pages services) */
.marquee { overflow: hidden; padding: 6px 0; }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 60px; width: auto; max-width: 100px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Carte Google Maps (chargée au clic, RGPD) */
.map { position: relative; height: 500px; background: #e9e7de; border-top: 1px solid #ccc; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 20px; font-size: 16px; color: var(--taupe);
}

/* ---------- Footer ---------- */
.site-footer { color: var(--white); }
/* Certifications : bandeau clair */
.footer-labels { background: var(--sand); color: var(--ink); }
.footer-labels__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.footer-labels__title { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--taupe); }
.footer-labels__list { display: flex; gap: 14px; list-style: none; padding: 0; flex-wrap: wrap; }
.footer-labels__list li { background: var(--white); border-radius: var(--radius); padding: 8px 14px; display: grid; place-items: center; }
.footer-labels__list img { width: 76px; height: 64px; object-fit: contain; }
/* Colonnes : logo mis en avant, métiers sur 2 colonnes, texte réduit → footer compact */
.footer-main {
  display: grid; grid-template-columns: 1.35fr 1.5fr .95fr .85fr; gap: 36px 44px; align-items: start;
  padding-top: 56px; padding-bottom: 48px;
}
.site-footer { background: var(--taupe); }
.footer-brand img { width: 250px; height: auto; margin: 2px 0 22px; }
.footer-brand p { font-size: 14px; line-height: 1.55; max-width: 340px; margin-bottom: 22px; color: rgba(252,252,252,.8); }
.footer-col h2 { font-weight: 600; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); margin: 10px 0 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col--services ul { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(6, auto); gap: 8px 22px; } /* lecture par colonne : même ordre que les pastilles */
.footer-col--services a { white-space: nowrap; }
.footer-col a { text-decoration: none; font-size: 14px; line-height: 1.4; color: rgba(252,252,252,.88); transition: color .2s; }
.footer-col a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.55; color: rgba(252,252,252,.88); }
.footer-col address p + p { margin-top: 12px; }
.footer-col address a { text-decoration: none; }
.footer-col address a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
/* Barre légale */
.footer-bottom { background: var(--ink); border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom__inner { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; }
.footer-copy, .footer-credit { font-size: 13px; color: var(--sage); }
.footer-credit a { color: var(--white); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Pages services ---------- */
.svc-hero { position: relative; padding: 70px 0 30px; }
body.page-service { background: var(--page-bg, var(--white)); }
.svc-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 315px; background: #807d75; background: color-mix(in srgb, var(--page-bg, #a9a598) 78%, #58554a); }
.svc-hero__box {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 735px;
  display: flex; align-items: center; color: #fff; margin: 0 39px;
}
.svc-hero__box > img, .svc-hero__box > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-hero__box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,.05) 70%); }
.svc-hero__text {
  position: relative; z-index: 1; margin: 0 62px; padding: 30px 36px 34px; max-width: 760px;
  background: rgba(23, 18, 0, .14); border-radius: 18px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.svc-hero__text h1 { font-weight: 400; font-size: clamp(34px, 3.5vw, 49px); line-height: 1.1; }
.svc-hero__text .sub { font-weight: 300; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; margin: 4px 0 26px; }
.svc-hero__text .txt { font-weight: 400; font-size: 17px; line-height: 1.3; }

.svc-intro { padding: 50px 0 40px; }
.svc-intro .split { gap: 70px; grid-template-columns: 1fr 1fr; padding: 0 39px 0 58px; }
.svc-intro h2 { font-weight: 300; font-size: 29px; line-height: 1.1; margin-bottom: 55px; }
.svc-intro p { font-size: 16.5px; line-height: 1.3; }
.svc-intro .split__media { aspect-ratio: 630 / 500; }

.svc-details { padding: 0 0 40px; }
.svc-details__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 0 39px; align-items: start; }
.svc-details__grid--solo { grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; padding-top: 20px; }
.svc-details__grid--solo .feature-list { grid-template-columns: repeat(2, 1fr); }
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery__row { display: flex; gap: 14px; height: var(--h, 200px); }
.gallery__row a { display: block; flex-basis: 0; border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.svc-details h2, .svc-more h2 { font-weight: 300; font-size: 31px; line-height: 1.05; margin-bottom: 30px; }
.svc-details .rich { font-size: 18px; line-height: 1.2; }
.svc-details .rich h2 + h2 { margin-top: -30px; }
.svc-details .rich > * + h2 { margin-top: 60px; }
.svc-details .rich h3, .svc-more .rich h3 { font-weight: 300; font-size: 20px; margin-top: 20px; }
.svc-intro .rich p + p { margin-top: 12px; }
.svc-intro .rich h2 { margin-bottom: 30px; }
.svc-intro .rich .feature-list { margin: 0; }
.rich__cta { margin-top: 30px; }

.svc-more { padding: 0 0 50px; }
.svc-more .container { padding: 0 77px; }
.svc-more hr { border: 0; border-top: 1px solid #999; margin: 0 0 40px; }
.svc-more .rich { font-size: 18px; line-height: 1.2; }
.svc-more .rich > * + h2 { margin-top: 55px; }
.svc-more .partners__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; max-width: 950px; margin: 50px auto 0; } /* lignes de 8 logos max, dernière ligne centrée (6 ou 7 logos = centrés) */
.svc-more .partners__logos > * { flex: 0 0 calc((100% - 7 * 11px) / 8); }
.svc-more .partners__logos--few { gap: 30px; } /* moins de 6 logos : plus grands et centrés */
.svc-more .partners__logos--few > * { flex-basis: min(170px, calc((100% - (var(--n) - 1) * 30px) / var(--n))); } /* tous sur une ligne, 170 px max */
/* Photos fournies par Gibus (store & pergola) : cadrage ancré en bas à droite pour garder le filigrane entier */
img[src*="/store-pergola-"] { object-position: 100% 100%; }
img[src*="/store-pergola-inspiration-08"] { object-position: 50% 35%; } /* photo verticale : les lames de la pergola plutôt que le filigrane */
img[src*="/store-pergola-accueil"] { object-position: 50% 40%; } /* carrousel de l’accueil : la pergola entière de part et d’autre de la case texte */
img[src*="/climatisation-accueil"] { object-position: 50% 40%; } /* carrousel de l’accueil : unité murale en haut à droite, hors de la case texte */
/* « Votre projet commence ici » : apparition façon générique (titre qui se resserre, halo, balayage lumineux, puis texte et bouton) */
.svc-cta { position: relative; overflow: hidden; background: var(--taupe); color: var(--white); text-align: center; padding: 110px 0 120px; }
.svc-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(230, 227, 211, .28), transparent 62%); opacity: 0; }
.svc-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-15deg); opacity: 0; }
.svc-cta .container { position: relative; z-index: 1; }
.svc-cta h2 { font-weight: 300; font-size: clamp(34px, 5vw, 66px); line-height: 1.05; letter-spacing: .02em; opacity: 0; transform: scale(1.7); filter: blur(8px); }
.svc-cta p { font-size: 20px; line-height: 1.5; max-width: 720px; margin: 26px auto 0; opacity: 0; transform: translateY(18px); }
.svc-cta .svc-cta__btn { margin-top: 38px; }
.svc-cta .btn { min-width: 262px; min-height: 56px; font-size: 17px; padding: 0 34px; }
.svc-cta.is-visible h2 { animation: tadam-title 1.3s cubic-bezier(.16, 1, .3, 1) forwards; }
.svc-cta.is-visible::before { animation: tadam-glow 1.6s ease-out .2s forwards; }
.svc-cta.is-visible::after { animation: tadam-sweep 1.1s ease-in-out .55s forwards; }
.svc-cta.is-visible p { animation: tadam-up .8s ease-out 1s forwards; }
.svc-cta.is-visible .svc-cta__btn { animation-delay: 1.3s; }
@keyframes tadam-title { 0% { opacity: 0; transform: scale(1.7); filter: blur(8px); letter-spacing: .25em; } 40% { opacity: 1; } 100% { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: .02em; } }
@keyframes tadam-glow { to { opacity: 1; } }
@keyframes tadam-sweep { 0% { opacity: 0; left: -45%; } 20% { opacity: 1; } 100% { opacity: 0; left: 110%; } }
@keyframes tadam-up { to { opacity: 1; transform: none; } }

.svc-brands { padding: 60px 0 30px; }
.svc-brands--after { padding-top: 24px; }
.svc-brands--after .marquee { margin-top: 10px; }
.svc-brands--after h2 { font-size: 22px; margin-bottom: 18px; }
.svc-brands h2 { text-align: center; font-weight: 300; font-size: 29px; margin-bottom: 30px; }

.svc-steps-intro { background: #d9d6c4; padding: 30px 0; }
.svc-steps-intro p { font-size: 27px; line-height: 1.3; font-weight: 300; padding-left: 40px; }
.steps-slider .slider { border-radius: 0; }
.steps-slider .slider__slide { min-height: 520px; align-items: flex-end; justify-content: flex-start; padding: 0 0 60px 100px; }
.steps-slider .slider__card {
  width: min(590px, calc(100% - 40px)); min-height: 0; padding: 22px 16px 26px 16px;
}
.steps-slider .slider__card .num { font-weight: 600; font-size: 54px; line-height: 1; color: #fff; }
.steps-slider .slider__card h3 { font-size: 23px; color: var(--taupe); margin: 12px 0 8px; }
.steps-slider .slider__card p { font-size: 27px; line-height: 1.3; font-weight: 300; color: var(--ink); }
.steps-slider .slider__arrow { width: 44px; height: 44px; }
.steps-slider .slider__arrow svg { width: 26px; height: 26px; }

.svc-others { background: var(--taupe); color: var(--white); padding: 60px 0 80px; }
.svc-others h2 { font-weight: 400; font-size: 27px; padding: 0 var(--gutter); margin-bottom: 40px; }
.cards-row { position: relative; }
.cards-row__track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 0 0 1px;
}
.cards-row__track::-webkit-scrollbar { display: none; }
.svc-card {
  position: relative; flex: 0 0 calc((100% - 30px) / 4); min-width: 230px; aspect-ratio: 352 / 198;
  border-radius: 10px; overflow: hidden; display: grid; place-items: center; text-align: center;
  color: #fff; text-decoration: none; scroll-snap-align: start; padding: 10px;
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.25); }
.svc-card span { position: relative; z-index: 2; font-weight: 600; font-size: 21px; line-height: 1.2; }
.svc-card:hover img { transform: scale(1.06); }
.cards-row__next, .cards-row__prev {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.cards-row__next { right: 16px; }
.cards-row__prev { left: 16px; }
.cards-row__next svg, .cards-row__prev svg { width: 22px; height: 22px; }
.cards-row__prev[hidden], .cards-row__next[hidden] { display: none; }

/* ---------- Pages simples (formulaires, légales) ---------- */

.contact { padding: 30px 0 90px; background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact h1 { font-weight: 300; font-size: 33px; line-height: 1.1; max-width: 460px; margin-bottom: 30px; }
.contact .eyebrow { margin-top: 20px; }
.contact .intro { font-size: 21px; line-height: 1.5; margin-bottom: 70px; max-width: 470px; }
.contact__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 622 / 877; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 0 24px; max-width: 590px; }
.form--card { background: var(--white); padding: 30px 24px; max-width: none; grid-template-columns: 1fr; }
.form .full { grid-column: 1 / -1; }
.form label, .form legend { display: block; font-size: 14px; margin-bottom: 8px; color: #3a382f; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; height: 42px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--sage); border-radius: 10px; background: #f3f2ee;
  transition: border-color .2s, box-shadow .2s;
}
.form--card input[type=text], .form--card input[type=email], .form--card input[type=tel] { background: #fff; border-color: #888; }
.form textarea { height: 120px; padding: 10px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(88,85,74,.15); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 15px; margin: 0; cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--taupe); }
.checks--radios { grid-template-columns: 1fr; gap: 8px; }
.form .hint { font-weight: 300; color: #777; }
.form fieldset + div { margin-top: 4px; }
.form .btn { min-height: 36px; font-family: var(--font-alt); font-size: 14px; text-transform: none; font-weight: 700; padding: 0 40px; justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.form__status { grid-column: 1 / -1; font-size: 15px; }
.form__status.ok { color: #2e6b2e; }
.form__status.err { color: #a12a2a; }
.file-input { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.file-input input { font-size: 14px; }
.form__note { font-size: 13px; color: #666; }
.form__help { font-size: 12px; color: #666; margin-top: 6px; }

.legal { padding: 100px 0 120px; }
.legal .container { max-width: 900px; }
.legal h1 { font-weight: 400; font-size: 44px; margin-bottom: 40px; }
.legal h2 { font-weight: 500; font-size: 22px; margin: 2em 0 .6em; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal p { margin-bottom: .8em; }
.legal ul { padding-left: 1.3em; margin-bottom: .8em; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Apparition échelonnée des enfants (hero des pages services) */
.reveal--stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal--stagger.is-visible > * { opacity: 1; transform: none; }
.reveal--stagger.is-visible > :nth-child(2) { transition-delay: .2s; }
.reveal--stagger.is-visible > :nth-child(3) { transition-delay: .4s; }
.reveal--stagger.is-visible > :nth-child(4) { transition-delay: .6s; }

/* ---------- Pages services : éléments dynamiques ---------- */
/* Hero : zoom lent sur la photo */
.svc-hero__img { transform-origin: 60% 40%; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, 1%); } }

/* Listes en cartes à coche */
.rich .feature-list { list-style: none; padding: 0; margin: .4em 0 1.2em; display: grid; gap: 10px; }
.rich .feature-list li {
  display: flex; align-items: center; gap: 14px; margin: 0; padding: 13px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 17px; line-height: 1.3;
  opacity: 0; transform: translateX(-16px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease, border-color .3s;
  transition-delay: calc(var(--i, 0) * .09s);
}
.is-visible .feature-list li, .feature-list.is-visible li { opacity: 1; transform: none; }
.rich .feature-list li:hover { transform: translateX(4px); box-shadow: 0 8px 22px rgba(23, 18, 0, .08); border-color: var(--sage); transition-delay: 0s; }
.feature-list__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sand); color: var(--taupe); display: grid; place-items: center;
}
.feature-list__icon svg { width: 16px; height: 16px; }
.feature-list--steps .feature-list__icon { font-size: 13px; font-weight: 600; line-height: 1; }
.feature-list--steps strong { font-weight: 600; }
.svc-more .feature-list { grid-template-columns: repeat(2, 1fr); max-width: 980px; }

/* « Notre accompagnement » : liste compacte sur deux colonnes, sans cartes, à côté d'une seule grande photo */
.rich--compact h2 { margin-bottom: 22px; }
.rich--compact .feature-list { grid-template-columns: repeat(2, 1fr); gap: 6px 22px; margin: 0 0 1.1em; }
.rich--compact .feature-list li { padding: 5px 0; background: none; border: 0; border-radius: 0; font-size: 16px; gap: 10px; align-items: flex-start; }
.rich--compact .feature-list li:hover { transform: none; box-shadow: none; }
.rich--compact .feature-list__icon { width: 22px; height: 22px; margin-top: 1px; }
.rich--compact .feature-list__icon svg { width: 13px; height: 13px; }
.rich--compact .feature-list--steps .feature-list__icon { font-size: 11px; }
.rich--compact .feature-list--steps { grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto); } /* 1-4 à gauche, 5-8 à droite */
.rich--compact p { font-size: 17px; line-height: 1.35; }
.photos--solo { grid-template-columns: 1fr; }
.photos--solo a, .photos--solo a:first-child { aspect-ratio: 4 / 3; }

/* Galerie : indication "agrandir" au survol */
.gallery__row a { position: relative; }
.gallery__row a::after {
  content: "+"; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(252, 252, 252, .9); color: var(--ink); display: grid; place-items: center;
  font-size: 24px; font-weight: 300; line-height: 1;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
}
.gallery__row a:hover::after, .gallery__row a:focus-visible::after { opacity: 1; transform: none; }

/* Visionneuse plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(23, 18, 0, .93);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1400px); max-height: 80vh; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: lightbox-in .35s ease;
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } }
.lightbox__caption { color: var(--white); font-size: 15px; margin-top: 16px; text-align: center; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background-color .2s;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .32); }
.lightbox button svg { width: 26px; height: 26px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* Slider : barre de progression du défilement automatique */
.slider__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); z-index: 2; }
.slider__progress span { display: block; height: 100%; width: 0; background: var(--white); }
.slider__progress.is-running span { width: 100%; transition: width var(--autoplay, 6s) linear; }

/* Bouton devis collant (mobile uniquement) */
.sticky-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--stagger > *, .feature-list li, .svc-cta h2, .svc-cta p { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  .svc-cta.is-visible h2, .svc-cta.is-visible p, .svc-cta.is-visible::before, .svc-cta.is-visible::after { animation: none; }
  .marquee__track, .svc-hero__img, .lightbox img, .orbit__ring { animation: none; }
  .orbit__link { stroke-dashoffset: 0; animation: none; }
  .orbit__core, .orbit__node { opacity: 1; transform: translate(-50%, -50%); transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 30px; }
  .hero__content { padding-left: var(--gutter); }
  .methode__head { padding-left: 0; }
  .partners__logos { grid-template-columns: repeat(4, 1fr); }
  .svc-more .partners__logos > * { flex-basis: calc((100% - 3 * 11px) / 4); }
  .svc-card { flex-basis: calc((100% - 20px) / 3); }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; gap: 36px 36px; padding-top: 48px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; --header-h: 60px; }
  body { font-size: 16px; }
  .site-header__inner { grid-template-columns: 1fr auto auto; gap: 8px; padding: 0 12px 0 var(--gutter); }
  .site-header__logo img { height: 26px; }
  .site-header__quote { width: auto; padding: 0 14px; font-size: 13px; min-height: 44px; gap: 8px; }
  .only-wide { display: none; }
  .menu-toggle { width: auto; padding: 0 16px; min-height: 44px; font-size: 13px; }
  .menu-services a { padding: 11px 0; }
  .footer-col a, .footer-group a, .footer-credit a { display: inline-block; padding: 5px 0; } /* cibles tactiles ≥ 24 px */
  .site-header__logo { padding: 10px 0; }
  a[href^="tel:"], .courriel { display: inline-block; padding: 4px 0; }
  .menu-overlay__top { padding: 0 10px 0 var(--gutter); }
  .menu-overlay__body { grid-template-columns: 1fr; padding-top: 30px; }
  .menu-services ul { columns: 1; }

  .hero__logo { margin: calc(var(--header-h) + 40px) 0 30px; width: min(92vw, 95vh); }
  .hero__content { margin: auto 12px 40px; padding: 20px 18px 24px; }
  .hero .btn { width: auto; }

  .section { padding: 70px 0; }
  .split, .svc-intro .split, .svc-details__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .map { height: 380px; }
  .split__media { order: 2; }
  .title-light { font-size: 22px; }
  .lead { font-size: 15px; }
  .savoir .lead { font-size: 15px; }
  .rich p, .lead, .group__claim, .svc-hero__text .txt, .hero__subtitle, .contact .intro, .svc-cta p, .methode__step p, .svc-steps-intro p, .footer-main p:first-of-type { text-align: left; hyphens: manual; }

  .methode { padding: 30px 0 70px; }
  .methode__steps { grid-template-columns: 1fr; gap: 40px; }
  .methode__steps::before { display: none; }
  .methode__icon { margin-bottom: 10px; }
  .methode__step h3 { font-size: 15px; }
  .methode__step p { opacity: 1; transform: none; font-size: 15px; }

  .services-intro { padding: 70px 0 30px; }
  .slider__slide { min-height: 560px; padding: 20px 0 48px; align-items: flex-end; } /* mobile : case texte en bas pour laisser voir la photo */
  .slider__card { width: calc(100% - 100px); min-height: 0; padding: 20px 14px; }
  .slider__card h3 { font-size: 22px; margin-bottom: 20px; }
  .slider__card .sub { font-size: 14px; }
  .slider__card .sub { margin-bottom: 20px; }
  .slider__card .btn { align-self: center; margin-top: 4px; width: auto; }
  .slider__arrow { width: 40px; height: 40px; }
  .slider__arrow svg { width: 24px; height: 24px; }
  .slider__arrow--prev { left: 6px; }
  .slider__arrow--next { right: 6px; }

  .about { padding: 70px 0 40px; }
  .network { padding: 60px 0 70px; }
  .network__cards { grid-template-columns: 1fr; gap: 20px; }
  .network__card { padding: 28px 22px; }
  .network__card h3 { font-size: 20px; }
  .network__card p { font-size: 15px; text-align: left; hyphens: manual; }
  .network__card .btn { align-self: stretch; white-space: normal; text-align: center; padding: 8px 16px; line-height: 1.2; }
  .partners .container { padding: 0 var(--gutter); }
  .partners__logos { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .svc-more .partners__logos { gap: 8px; }
  .svc-more .partners__logos > * { flex-basis: calc((100% - 3 * 8px) / 4); }

  .footer-labels__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
  .footer-labels__list { gap: 10px; }
  .footer-labels__list li { padding: 6px 10px; }
  .footer-labels__list img { width: 60px; height: 52px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 40px; }
  .footer-brand img { width: 190px; }
  .footer-col--services ul { gap: 8px 16px; }
  .footer-col--services a { white-space: normal; }
  .footer-bottom__inner { flex-direction: column; text-align: center; gap: 6px; }

  .svc-hero { padding-top: 30px; }
  .svc-hero::before { height: 200px; }
  .svc-hero__box { margin: 0 10px; min-height: 520px; align-items: flex-end; padding-bottom: 34px; }
  .svc-hero__box::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.65) 100%); } /* texte lisible en bas de la vidéo */
  .svc-hero__text { margin: 0 12px; padding: 20px 18px 24px; }
  .svc-hero__text .txt { font-size: 15px; }
  .svc-more .container { padding: 0 var(--gutter); }
  .svc-more .partners__logos { margin: 50px auto 40px; }
  .svc-steps-intro p { font-size: 20px; padding-left: 0; }
  .steps-slider .slider__slide { padding: 0 20px 40px; min-height: 460px; justify-content: center; }
  .steps-slider .slider__card p { font-size: 19px; }
  .svc-card { flex-basis: 75%; }
  .gallery__row { height: calc(var(--h, 200px) * .55); gap: 8px; }
  .gallery { gap: 8px; }
  .svc-intro .rich h2 { margin-bottom: 25px; }
  .svc-more .feature-list { grid-template-columns: 1fr; }
  .svc-details__grid--solo .feature-list, .rich--compact .feature-list { grid-template-columns: 1fr; }
  .rich--compact .feature-list--steps { grid-auto-flow: row; grid-template-rows: none; }
  .rich .feature-list li { font-size: 15px; padding: 11px 14px; }
  .gallery__row a::after { display: none; }
  .lightbox button { width: 42px; height: 42px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } .lightbox__close { top: 10px; right: 10px; }
  .lightbox img { max-height: 70vh; }
  .sticky-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    min-height: 50px; align-items: center; justify-content: center; gap: 12px;
    background: var(--ink); color: #fff; border-radius: var(--radius);
    font-weight: 600; font-size: 15px; text-transform: uppercase; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: translateY(130%); transition: transform .4s ease;
  }
  .sticky-cta .arrow { width: 13px; height: 13px; }
  body.show-cta .sticky-cta { transform: none; }
  body.show-cta .site-footer { padding-bottom: 70px; }

  .contact .intro { margin-bottom: 30px; }
  .contact__img { display: none; }
  .form { grid-template-columns: 1fr; padding: 0; }
  .checks { grid-template-columns: 1fr 1fr; }
  .legal h1 { font-size: 32px; }
}

@media (max-width: 380px) {
  .site-header__logo img { height: 22px; }
  .site-header__quote, .menu-toggle { padding: 0 10px; font-size: 12px; }
  .hero__title { font-size: 28px; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; text-align: center; padding: 80px 0; }
.error-page h1 { font-weight: 300; font-size: 44px; margin-bottom: 20px; }
.error-page p { margin-bottom: 30px; }

/* =========================================================
   Évolutions du 2026-10-21 : tuiles métiers, groupe HBP, certifications,
   collaborations, carte dessinée, pages services (4 photos, inspirations, texte révélé)
   ========================================================= */

/* Savoir-faire : texte plus long sur deux paragraphes */
.savoir .lead + .lead { margin-top: 18px; }
.savoir .lead:last-of-type { margin-bottom: 44px; }
.savoir .btn { width: auto; min-width: 206px; }

/* Vignettes « tous nos métiers » sous le carrousel : pastilles texte, sans fond ni photo (2 rangées de 6 sur grand écran) */
.tiles { list-style: none; padding: 0; margin: 34px 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; }
.tiles li { margin-bottom: 10px; }
.tiles__break { flex-basis: 100%; height: 0; margin: 0; }
.tile {
  display: inline-block; padding: 11px 20px; border: 1px solid var(--sage); border-radius: 999px; background: transparent;
  color: var(--taupe); font: 600 13px/1.2 var(--font); text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.tile:hover, .tile:focus-visible { border-color: var(--taupe); background: var(--sand); transform: translateY(-2px); outline: none; }
.tile[aria-current="true"] { background: var(--taupe); border-color: var(--taupe); color: var(--white); }

/* Qui sommes-nous : titre + texte à gauche, chiffres clés animés à droite */
.about__head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 80px; align-items: center; }
.about__head .title-light { margin-bottom: 26px; }
.about__head .lead { font-size: 18px; line-height: 1.55; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 6px; transition: transform .3s, box-shadow .3s;
}
.stats li:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 18, 0, .08); }
.stats__num { font-weight: 300; font-size: 52px; line-height: 1; color: var(--taupe); font-variant-numeric: tabular-nums; }
.stats__num sup { font-size: 26px; vertical-align: top; margin-left: 2px; color: var(--sage); }
.stats__label { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #5e5b50; }

/* Le Groupe HBP : texte à gauche, « constellation » des trois entités à droite, le tout sur une carte sable */
.group { margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 70px; align-items: center; background: var(--sand); border-radius: 18px; padding: 54px 60px 50px; }
.group .lead { font-size: 18px; line-height: 1.55; }
.group .lead + .lead { margin-top: 16px; }
.group__claim { font-size: 18px; line-height: 1.55; font-weight: 600; margin-top: 16px; }
.group__cta { margin-top: 28px; }
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 400 / 440; margin: 0 auto; } /* viewBox 0 -40 400 440 : marge en haut pour le libellé */
.orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--sage); stroke-width: 1; stroke-dasharray: 4 8; opacity: .7; transform-origin: 200px 200px; animation: orbit-spin 90s linear infinite; }
.orbit__link { fill: none; stroke: var(--taupe); stroke-width: 1.5; stroke-dasharray: 160; stroke-dashoffset: 160; opacity: .6; }
.orbit.is-visible .orbit__link { animation: orbit-draw 1s ease-out forwards; }
.orbit.is-visible .orbit__link:nth-child(3) { animation-delay: .25s; }
.orbit.is-visible .orbit__link:nth-child(4) { animation-delay: .5s; }
.orbit__core {
  position: absolute; left: 50%; top: 54.5%; width: 118px; height: 118px; transform: translate(-50%, -50%) scale(.6);
  border-radius: 50%; background: var(--taupe); color: var(--sand); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  font-weight: 700; font-size: 26px; letter-spacing: .04em; box-shadow: 0 0 0 10px rgba(88, 85, 74, .08);
  opacity: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s, box-shadow .3s;
}
.orbit__core small { font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.orbit__core:hover, .orbit__core:focus-visible { box-shadow: 0 0 0 16px rgba(88, 85, 74, .12); }
.orbit.is-visible .orbit__core { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.orbit__node {
  position: absolute; width: 150px; transform: translate(-50%, -50%) scale(.6); opacity: 0; text-align: center; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s;
}
.orbit__node--1 { left: 50%; top: 19%; } /* libellé au-dessus du logo pour ne pas croiser la ligne */
.orbit__node--1 img { order: 3; margin: 10px auto 0; }
.orbit__node--2 { left: 20.5%; top: 75%; }
.orbit__node--3 { left: 79.5%; top: 75%; }
.orbit.is-visible .orbit__node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.orbit__node--1 img { border-color: #f36f20; background: #f36f20; }
.orbit__node--2 img { border-color: #807471; background: #807471; }
.orbit__node--3 img { border-color: #221f1f; background: #221f1f; }
.orbit.is-visible .orbit__node--1 { transition-delay: .7s; }
.orbit.is-visible .orbit__node--2 { transition-delay: .95s; }
.orbit.is-visible .orbit__node--3 { transition-delay: 1.2s; }
.orbit__node img { width: 88px; height: 88px; border-radius: 50%; display: block; margin: 0 auto 10px; flex: none; box-shadow: 0 10px 26px rgba(23, 18, 0, .14); border: 4px solid var(--white); transition: transform .3s, box-shadow .3s; }
.orbit__node:hover img, .orbit__node:focus-visible img { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 32px rgba(23, 18, 0, .2); }
.orbit__node span { display: block; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--taupe); }
.orbit__node small { display: block; font-size: 12px; color: #5e5b50; margin-top: 2px; }
.orbit__node[aria-current="page"] img { border-color: var(--sage); }
@keyframes orbit-draw { to { stroke-dashoffset: 0; } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Notre expertise reconnue : labels (les marques sont sur les pages métiers) */
.partners { padding: 100px 0 90px; background: var(--bg); }
.partners .container { padding: 0 var(--gutter); }
.labels {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.labels li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; display: grid; place-items: center; min-height: 170px;
  transition: transform .3s, box-shadow .3s;
}
.labels li:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 18, 0, .08); }
.labels img { max-height: 120px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.svc-labels { padding: 70px 0 80px; }
/* Respiration claire avant le bloc anthracite « Votre projet commence ici » (demande client du 26/11), quelle que soit la section qui précède */
.svc-more:has(+ .svc-cta) { padding-bottom: 90px; }
.svc-brands:has(+ .svc-cta) { padding-bottom: 80px; }
.svc-labels h2 { font-weight: 300; font-size: 27px; }
.labels--inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 32px; }
.labels--inline li { flex: 0 0 220px; min-height: 160px; }
.partners__sub { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--taupe); margin-bottom: 18px; }
.partners__logos--links a { display: block; border-radius: 8px; transition: transform .3s, background-color .3s; }
.partners__logos--links a:hover, .partners__logos--links a:focus-visible { transform: translateY(-3px); background: rgba(255, 255, 255, .7); }
.partners__logos--links img { filter: saturate(.9); transition: filter .3s; }
.partners__logos--links a:hover img { filter: none; }
.marquee__track a { display: block; flex: none; }

/* Collaborations */
.network { background: var(--white); }
.network__card p + p { margin-top: -6px; }
.network__card p { text-align: justify; hyphens: auto; }
.network__card p strong { font-weight: 500; }

/* Carte dessinée (SVG) + Google Maps à la demande */
.map { height: auto; background: var(--bg); border-top: 1px solid var(--line); padding: 0 0 60px; }
.map__canvas { position: relative; height: 560px; overflow: hidden; background: #c8cbb9; }
.map-svg { width: 100%; height: 100%; display: block; font-family: var(--font); }
.map-sea { fill: #c7cab7; }
.map-land { fill: #ece9db; }
.map-coast { fill: none; stroke: #a9a893; stroke-width: 1.5; stroke-linejoin: round; }
.map-roads { fill: none; stroke: #d9d5c3; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.map-town circle { fill: #58554a; }
.map-town text { font-size: 19px; font-weight: 400; fill: #58554a; letter-spacing: .01em; }
.map-site { cursor: pointer; outline: none; }
.map-site__pulse { fill: rgba(23, 18, 0, .18); transform-origin: center; animation: map-pulse 2.4s ease-out infinite; }
.map-site__pin { fill: var(--ink); stroke: var(--white); stroke-width: 2.5; transition: fill .3s; }
.map-site__dot { fill: var(--white); }
.map-site__label { font-size: 24px; font-weight: 600; fill: var(--ink); text-anchor: middle; letter-spacing: .02em; }
.map-site__town { font-size: 17px; font-weight: 400; fill: #58554a; text-anchor: middle; }
.map-site:hover .map-site__pin, .map-site:focus-visible .map-site__pin, .map-site.is-active .map-site__pin { fill: var(--taupe); }
.map-site.is-active .map-site__pulse { fill: rgba(88, 85, 74, .35); }
@keyframes map-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.map__embed { position: absolute; inset: 0; z-index: 2; background: #e9e7de; }
.map__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__embed button {
  position: absolute; top: 14px; left: 14px; z-index: 3; min-height: 42px; padding: 0 18px;
  border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.map__sites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -70px; position: relative; z-index: 3; }
.map__site {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px 26px;
  box-shadow: 0 14px 34px rgba(23, 18, 0, .08); transition: border-color .3s, transform .3s;
}
.map__site.is-active { border-color: var(--taupe); }
.map__site .eyebrow { margin-bottom: 10px; }
.map__tagline { display: inline-block; font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--taupe); background: var(--sand); border-radius: 6px; padding: 5px 12px; margin-bottom: 14px; }
.map__site .eyebrow small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--sage); }
.map__site address { font-style: normal; font-size: 16px; line-height: 1.55; }
.map__site address a { text-decoration: none; font-weight: 500; }
.map__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.map__links .btn { min-height: 44px; font-size: 14px; }
.map__gmaps { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 15px; color: var(--taupe); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map__gmaps:hover { color: var(--ink); }
.map__note { grid-column: 1 / -1; font-size: 13px; color: #777; }

/* Footer : mention du groupe */
/* Groupe HBP dans le footer : trois mini-logos ronds + libellé */
.footer-group { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(252, 252, 252, .7); max-width: 360px; margin: 0; }
.footer-group__logos { display: flex; gap: 6px; }
.footer-group__logos a { display: block; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid; transition: transform .25s, box-shadow .25s; }
.footer-group__logos a:nth-child(1) { border-color: #f36f20; background: #f36f20; } /* SOS Dépannage */
.footer-group__logos a:nth-child(2) { border-color: #807471; background: #807471; } /* Idéal Habitat */
.footer-group__logos a:nth-child(3) { border-color: #221f1f; background: #221f1f; } /* CBR Cuisines */
.footer-group__logos a:hover, .footer-group__logos a:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--sand); }
.footer-group__logos img { width: 100%; height: 100%; display: block; object-fit: cover; }
.footer-group a { color: var(--white); text-decoration: none; }
.footer-group > span > a:hover { text-decoration: underline; }

/* Footer : réseaux sociaux */
.footer-col .socials { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(252,252,252,.35); color: var(--white); transition: background-color .25s, border-color .25s, transform .25s; }
.socials a:hover, .socials a:focus-visible { background: var(--sand); border-color: var(--sand); color: var(--taupe); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

/* Pages services : texte révélé paragraphe par paragraphe au défilement */
.reveal-each > * { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal-each > .is-visible { opacity: 1; transform: none; }

/* Pages services : 4 photos à la place du mur d’images */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photos a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.photos a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photos a:hover img { transform: scale(1.05); }
.photos a::after {
  content: "+"; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(252, 252, 252, .9); color: var(--ink); display: grid; place-items: center;
  font-size: 24px; font-weight: 300; line-height: 1; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
}
.photos a:hover::after, .photos a:focus-visible::after { opacity: 1; transform: none; }

/* Pages services : « Nos inspirations », carrousel automatique continu */
.svc-inspirations { padding: 30px 0 60px; }
.svc-inspirations .container { padding-left: 77px; margin-bottom: 26px; }
.svc-inspirations h2 { font-weight: 300; font-size: 31px; line-height: 1.05; }
.inspirations { overflow: hidden; }
.inspirations__track {
  display: flex; gap: 14px; width: max-content; padding: 0 7px;
  animation: inspirations calc(var(--n, 6) * 5s) linear infinite;
}
.inspirations:hover .inspirations__track, .inspirations:focus-within .inspirations__track { animation-play-state: paused; }
.inspirations__track a { display: block; flex: none; width: 420px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; }
.inspirations__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.inspirations__track a:hover img { transform: scale(1.05); }
@keyframes inspirations { to { transform: translateX(calc(-50% - 7px)); } }

@media (prefers-reduced-motion: reduce) {
  .reveal-each > * { opacity: 1; transform: none; transition: none; }
  .inspirations__track { animation: none; }
  .map-site__pulse { animation: none; opacity: 0; }
}

@media (max-width: 1100px) {
  .about__head { grid-template-columns: 1fr; gap: 30px; }
  .orbit { margin-top: 30px; }
  .group { grid-template-columns: 1fr; margin-top: 60px; padding: 40px 34px; }
  .tiles__break { display: none; }
  .labels { grid-template-columns: repeat(2, 1fr); }
  .map__canvas { height: 460px; }
}

@media (max-width: 800px) {
  .slider__dots { gap: 16px; }
  .tiles { gap: 0 8px; }
  .tiles li { margin-bottom: 8px; }
  .tile { padding: 9px 14px; font-size: 12px; }
  .about__head .lead, .group .lead { font-size: 16px; }
  .group { margin-top: 40px; padding: 30px 22px 28px; border-radius: 14px; }
  .group__claim { font-size: 15px; }
  .stats { gap: 10px; }
  .stats li { padding: 18px 14px 16px; }
  .stats__num { font-size: 38px; }
  .stats__num sup { font-size: 20px; }
  .stats__label { font-size: 12px; }
  .orbit { width: min(100%, 340px); }
  .orbit__core { width: 92px; height: 92px; font-size: 20px; }
  .orbit__core small { font-size: 12px; letter-spacing: .1em; }
  .orbit__node { width: 118px; }
  .orbit__node--1 { top: 18%; }
  .orbit__node img { width: 64px; height: 64px; }
  .orbit__node span { font-size: 12px; }
  .orbit__node small { font-size: 12px; }
  .partners { padding: 70px 0 60px; }
  .labels { gap: 10px; margin: 26px 0 0; }
  .labels--inline li { flex-basis: calc(50% - 5px); }
  .labels li { min-height: 120px; padding: 14px 10px; }
  .labels img { max-height: 84px; }
  .map__canvas { height: 320px; }
  .map-town text { font-size: 26px; }
  .map-site__label { font-size: 30px; }
  .map-site__town { font-size: 22px; }
  .map__sites { grid-template-columns: 1fr; margin-top: -30px; gap: 14px; }
  .map__site { padding: 20px; }
  .photos { gap: 8px; }
  .svc-inspirations .container { padding-left: var(--gutter); }
  .svc-inspirations h2 { font-size: 24px; }
  .inspirations__track a { width: 260px; }
  .inspirations__track { gap: 8px; }
}
