/* ===============================================================
   PAC&SUN — Feuille de style principale (mobile first)
   Parti pris : sobre et direct. Couleurs pleines (pas de dégradés),
   angles modérés, peu d'effets — l'allure d'un artisan, pas d'une startup.
   =============================================================== */

:root {
  --accent:      #1d71b8;   /* bleu du logo */
  --accent-dark: #155a8f;
  --blue:        #1d71b8;
  --blue-dark:   #155a8f;
  --teal:        #00a19a;   /* vert d'eau du logo, pour les petites touches */
  --teal-dark:   #0b7f79;
  --ink:         #292c35;
  --ink-soft:    #4a505b;
  --muted:       #6b7280;
  --line:        #e2e7ed;
  --bg:          #ffffff;
  --bg-alt:      #f5f7f9;
  --bg-deep:     #1f2128;
  --sun:         #f5a623;
  --ok:          #16a34a;
  --warn:        #d97706;
  --danger:      #dc2626;

  --radius:      10px;
  --radius-lg:   14px;
  --shadow:      0 1px 2px rgba(20, 30, 45, .06);
  --shadow-md:   0 6px 18px rgba(20, 30, 45, .08);
  --shadow-lg:   0 12px 30px rgba(20, 30, 45, .12);

  --font:        'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head:   'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h:    68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 64px; /* barre mobile */
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 800;
}

h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.95rem); }
h3 { font-size: clamp(1.08rem, 2.4vw, 1.25rem); font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.wrap--narrow { max-width: 900px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* --------------------------- Boutons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  text-align: center; line-height: 1.25;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef2f6; color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: #cfd6de; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* --------------------------- Topbar --------------------------- */
.topbar { background: #1a1c22; color: #cfd8e3; font-size: .82rem; }
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 36px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item--hide { display: none; }
.topbar__phone { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar__phone:hover { color: #7fd8d3; }
.topbar__link { color: inherit; text-decoration: none; }
.topbar__link:hover { color: #fff; }
.topbar__link .ico { color: var(--sun); }

/* --------------------------- Header --------------------------- */
/* Pas de backdrop-filter ni de transform ici : ces propriétés feraient du header
   le bloc conteneur du menu mobile (position: fixed), qui déborderait alors de la page.
   Header sombre : le logo officiel (lettrage blanc, esperluette dégradée) s'affiche tel quel. */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand__img { width: 210px; height: auto; }

.burger {
  width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  background: transparent; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; cursor: pointer; flex: none;
}
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0;
  background: #fff; transform: translateX(100%); transition: transform .28s ease;
  overflow-y: auto; padding: 8px 0 40px; visibility: hidden;
}
.nav.is-open { transform: translateX(0); visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list > li { border-bottom: 1px solid var(--line); position: relative; }
.nav__list > li > a {
  display: block; padding: 16px 20px; font-family: var(--font-head);
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.02rem;
}
.nav__list > li > a[aria-current="page"] { color: var(--accent); }
.nav__toggle {
  position: absolute; right: 10px; top: 10px; width: 42px; height: 38px;
  border: 0; background: transparent; cursor: pointer;
}
.nav__toggle::after {
  content: ''; display: block; width: 9px; height: 9px; margin: 0 auto;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .22s;
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px,-3px); }
.nav__sub { list-style: none; margin: 0; padding: 0 0 10px; display: none; background: var(--bg-alt); }
.nav__sub.is-open { display: block; }
.nav__sub a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 26px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav__sub a:hover { color: var(--accent); }
.nav__sub img { width: 26px; height: 26px; }
.nav__cta { padding: 18px 20px; border-bottom: 0 !important; }
.nav__cta .btn { width: 100%; }
/* Le bouton CTA ne doit pas hériter du style des liens de menu (texte sombre, fond au survol) */
.nav__list > li.nav__cta > a.btn { display: flex; color: #fff; background: var(--accent); }
.nav__list > li.nav__cta > a.btn:hover { color: #fff; background: var(--accent-dark); }

body.nav-open { overflow: hidden; }

/* --------------------------- Hero --------------------------- */
/* Deux colonnes : texte + vraie photo de chantier, sans voile ni dégradé */
.hero { background: var(--bg-alt); padding: 32px 0 44px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; }
.hero__rating {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px;
  font-size: .9rem; font-weight: 700; color: var(--ink);
}
.hero__rating .stars { color: var(--sun); letter-spacing: 1px; }
.hero__rating a { color: var(--ink-soft); font-weight: 600; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: clamp(1rem, 2.4vw, 1.12rem); max-width: 56ch; margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__proof {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero__proof div { display: flex; flex-direction: column; }
.hero__proof b { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); line-height: 1.15; }
.hero__proof span { font-size: .82rem; color: var(--muted); }
.hero__media { margin: 0; position: relative; }
.hero__media > img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.hero__badge {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 10px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow-md);
  font-size: .8rem; color: var(--muted); line-height: 1.3;
}
.hero__badge img { width: 32px; height: 32px; flex: none; }
.hero__badge b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .86rem; }

/* --------------------------- Sections --------------------------- */
.section { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 26px; }
.section__head p:last-child { margin-bottom: 0; }
.section__more { margin-top: 26px; }
.lead { font-size: 1.04rem; }

/* --------------------------- Grilles --------------------------- */
/* Mobile first : une seule colonne, y compris pour les grilles de 4.
   minmax(0,1fr) empêche les enfants au contenu long de forcer un débordement. */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }

/* --------------------------- Cartes services --------------------------- */
.svc {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.svc:hover { border-color: #b9c6d3; color: inherit; }
/* min-height: 0 — sans overflow:hidden, une boîte aspect-ratio s'agrandirait
   pour contenir une image plus haute (ex. SVG carré) et désalignerait les cartes */
.svc__media { position: relative; aspect-ratio: 16/10; min-height: 0; background: var(--ink); overflow: visible; }
/* La photo est arrondie par elle-même, ce qui laisse le pictogramme déborder du visuel */
.svc__media > img:not(.svc__icon) {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.svc__media img.svc__icon {
  position: absolute; left: 16px; bottom: -22px; width: 50px; height: 50px;
  border-radius: 50%; background: #fff; padding: 4px; box-shadow: var(--shadow-md);
  object-fit: contain; z-index: 2;
}
.svc__body { padding: 32px 20px 20px; flex: 1; display: flex; flex-direction: column; }
/* align-self : sinon la colonne flex étire l'image sur toute la largeur et le logo se centre */
.svc__brand { display: block; align-self: flex-start; height: 40px; width: auto; max-width: 100%; margin-bottom: 14px; }
.svc__title { font-size: 1.15rem; margin-bottom: .45em; }
.svc__text { font-size: .94rem; flex: 1; margin-bottom: 1em; }
.svc__link { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .92rem; }
.svc:hover .svc__link { text-decoration: underline; }

/* --------------------------- Certifications (ligne unique) --------------------------- */
.section--tight { padding: 30px 0; }
/* Trois colonnes à toutes les tailles : badge au-dessus, légende en dessous */
.certs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 0 auto; padding: 0; list-style: none; max-width: 820px;
}
.certs li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.certs img { width: 56px; height: 56px; }
.certs span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.certs b { display: block; color: var(--ink); font-size: .88rem; }

/* Encadré « matériel posé » des pages prestation */
.brandline {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px 28px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; margin: 6px 0 14px;
}
.brandline__part { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.brandline__part--cert { padding-left: 28px; border-left: 1px solid var(--line); }
.brandline__label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.brandline__logo { height: 46px; width: auto; }
.brandline__cert { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .92rem; }
.brandline__badge { height: 52px; width: 52px; }

/* --------------------------- Encadrés simples --------------------------- */
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat h3 { font-size: 1.05rem; margin-bottom: .4em; }
.feat p { font-size: .93rem; margin: 0; }
.feat__badge { width: 64px; height: 64px; margin-bottom: 12px; }

/* --------------------------- Étapes --------------------------- */
.steps { list-style: none; padding: 0; margin: 0; }
.step { margin: 0; padding-top: 14px; border-top: 2px solid var(--line); }
.step__num {
  display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35em; }
.step p { font-size: .93rem; margin: 0; }

/* --------------------------- Réalisations --------------------------- */
.proj {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .15s;
}
.proj:hover { border-color: #b9c6d3; color: inherit; }
.proj__media { aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; }
/* « contient .svg » et non « finit par » : les URL portent un paramètre de version (?v=…) */
.proj__media img[src*=".svg"] { object-fit: contain; padding: 16%; background: var(--ink); }
.proj__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.proj__title { font-size: 1.06rem; margin-bottom: .4em; }
.proj__text { font-size: .92rem; margin: 0 0 1em; flex: 1; }
.proj__link { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .9rem; }
.proj:hover .proj__link { text-decoration: underline; }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; font-family: var(--font-head);
  padding: 3px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.tag--strong { background: #e8f1f9; color: var(--accent-dark); border-color: #cfe1f1; }

/* --------------------------- Filtres --------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters a {
  font-family: var(--font-head); font-weight: 700; font-size: .86rem;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); text-decoration: none;
}
.filters a:hover { border-color: var(--accent); color: var(--accent); }
.filters a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --------------------------- Avis --------------------------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; height: 100%;
}
.review__stars { color: var(--sun); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.review__body { font-size: .95rem; flex: 1; margin-bottom: 1em; }
.review__foot { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding-top: 12px; }
.review__avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e8f1f9; color: var(--accent-dark);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; flex: none; font-size: .95rem;
}
.review__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .93rem; line-height: 1.2; }
.review__date { font-size: .8rem; color: var(--muted); }

/* --------------------------- Carrousel d'avis --------------------------- */
/* Sans animation (pas de JS, ou animations réduites) : défilement manuel */
.marquee { overflow-x: auto; padding: 4px 0 14px; scroll-snap-type: x mandatory; }
.marquee__track { display: flex; width: max-content; }
/* Les deux groupes ont exactement la même largeur (marges symétriques) : -50 % = un groupe */
.marquee__group { display: flex; gap: 18px; padding: 0 9px; margin: 0; list-style: none; }
.marquee__item { width: min(310px, 80vw); flex: none; margin: 0; display: flex; scroll-snap-align: start; }
.marquee__item .review { width: 100%; }

/* Défilement infini, activé par main.js une fois la copie ajoutée */
.marquee.is-animated {
  overflow: hidden; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee.is-animated .marquee__track { animation: marquee var(--marquee-duration, 120s) linear infinite; }
.marquee.is-animated:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------- FAQ --------------------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq + .faq { margin-top: 8px; }
.faq summary {
  padding: 15px 46px 15px 18px; font-family: var(--font-head); font-weight: 700;
  color: var(--ink); cursor: pointer; position: relative; list-style: none; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 18px 16px; font-size: .95rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------- Fil d'ariane --------------------------- */
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; }
.crumbs li { margin: 0; }
.crumbs li::after { content: '›'; margin-left: 6px; color: var(--muted); }
.crumbs li:last-child::after { content: ''; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }

/* --------------------------- Page interne --------------------------- */
.page-hero {
  position: relative; background: var(--bg-deep); color: #fff; padding: 42px 0; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Voile neutre uni (pas de dégradé coloré sur les photos) : assure la lisibilité du titre */
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(20, 24, 30, .74); }
/* La largeur de lecture est limitée sur les enfants : limiter .page-hero__in lui-même
   écraserait la largeur du .wrap et centrerait le bloc au lieu de l'aligner sur le logo */
.page-hero__in { position: relative; z-index: 2; }
.page-hero__in > * { max-width: 62ch; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); margin-bottom: 0; }
.page-hero__icon { width: 56px; height: 56px; margin-bottom: 14px; }

.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--accent); }

/* Coche simple plutôt qu'une pastille colorée */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.checklist li::before {
  content: '✓'; position: absolute; left: 2px; top: 0;
  font-weight: 900; color: var(--accent);
}

.split { display: grid; gap: 28px; }
.split__media img { border-radius: var(--radius-lg); width: 100%; }

.aside-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; position: sticky; top: calc(var(--header-h) + 16px);
}
.aside-card h3 { font-size: 1.1rem; }
.aside-card__photo {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 10px; margin-bottom: 16px;
}
/* Photo portrait recadrée au carré : l'encart reste « sticky » sans dépasser la hauteur d'écran */
.aside-card__photo--tall { aspect-ratio: 1/1; object-position: 50% 35%; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card__phone {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; margin: 14px 0 4px;
}
.aside-card__phone:hover { color: var(--accent); }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* --------------------------- Formulaire --------------------------- */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: .89rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; padding: 11px 13px;
  border: 1px solid #cfd6de; border-radius: 8px; background: #fff; color: var(--ink);
  width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,113,184,.15);
}
.field textarea { min-height: 128px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--muted); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__err { font-size: .82rem; color: var(--danger); font-weight: 600; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; flex: none; }
.field--check label { font-weight: 400; font-family: var(--font); font-size: .86rem; color: var(--ink-soft); }
.hp { position: absolute !important; left: -9999px !important; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .95rem; border: 1px solid; }
.alert--ok { background: #eefbf3; border-color: #bbf0ce; color: #14532d; }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert--info { background: #eff6fc; border-color: #c9def0; color: #0c3d66; }
.alert strong { display: block; font-family: var(--font-head); margin-bottom: 3px; }

/* --------------------------- Spécifications --------------------------- */
.specs { list-style: none; padding: 0; display: grid; gap: 8px; }
.specs li {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 14px 11px 34px; position: relative; font-size: .93rem; margin: 0;
}
.specs li::before { content: '✓'; position: absolute; left: 13px; top: 11px; font-weight: 900; color: var(--accent); }

/* --------------------------- Fiche entreprise --------------------------- */
.facts {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.facts > div { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: .88rem; margin-bottom: 2px; }
.facts dd { margin: 0; font-size: .95rem; }

@media (min-width: 640px) {
  .facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .facts dt { margin: 0; }
}

/* --------------------------- Barre mobile --------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -2px 12px rgba(20,30,45,.12);
}
.mobile-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--ink); text-decoration: none; padding: 15px 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
}
.mobile-bar__btn svg { width: 18px; height: 18px; fill: currentColor; }
.mobile-bar__btn--accent { background: var(--accent); color: #fff; }

/* --------------------------- Bande d'appel à l'action --------------------------- */
.cta-band { background: var(--ink); color: #fff; padding: 38px 0; }
.cta-band__in { display: grid; gap: 20px; }
/* Paragraphe mis en forme comme un titre : ce bandeau répété sur chaque page
   ne doit pas apparaître dans le plan (H2) des pages */
.cta-band__title {
  font-family: var(--font-head); font-weight: 800; line-height: 1.25;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem); color: #fff; margin: 0 0 .25em;
}
.cta-band__text { color: rgba(255,255,255,.85); margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 11px; }

/* --------------------------- Footer --------------------------- */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.72); font-size: .92rem; }
.footer__grid { display: grid; gap: 32px; padding-block: 44px 10px; }
.footer__logo { width: 210px; margin-bottom: 14px; }
.footer__about { font-size: .9rem; }
.footer__h { font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.25; color: #fff; margin: 0 0 12px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .5em; }
.footer__links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__badges { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.footer__badges img { width: 54px; height: 54px; }
.footer__badges span { font-size: .8rem; color: rgba(255,255,255,.75); }
.social { display: flex; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.social li { margin: 0; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.social--light a { border-color: var(--line); color: var(--ink); background: #fff; }
.social--light a:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.footer__address { font-style: normal; line-height: 1.75; }
.footer__address a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer__phone { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff !important; }
.footer__hours { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer__zone { padding-bottom: 26px; }
.footer__cities { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.9; margin: 0; }
.footer__cities a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer__cities a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer__bottom-in { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; text-align: center; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: rgba(255,255,255,.6); }

/* ===============================================================
   Tablette ≥ 640px
   =============================================================== */
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__actions { flex-direction: row; }
  .cta-band__actions { flex-direction: row; }
  .topbar__item--hide { display: inline-flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom-in { flex-direction: row; justify-content: space-between; text-align: left; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ===============================================================
   Desktop ≥ 980px
   =============================================================== */
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .burger { display: none; }

  .section { padding: 68px 0; }
  .section--tight { padding: 36px 0; }
  .certs img { width: 68px; height: 68px; }
  .certs li { flex-direction: row; justify-content: center; text-align: left; gap: 14px; }
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
  .hero__proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }

  .brand__img { width: 260px; }

  .nav {
    position: static; inset: auto; transform: none; visibility: visible;
    background: transparent; overflow: visible; padding: 0;
  }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__list > li { border-bottom: 0; }
  /* Liens clairs sur le header sombre (le panneau mobile, lui, reste blanc) */
  .nav__list > li > a { padding: 10px 13px; font-size: .93rem; border-radius: 6px; color: rgba(255,255,255,.88); }
  .nav__list > li > a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .nav__list > li > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
  .nav__toggle { display: none; }
  .nav__sub {
    display: block; position: absolute; top: calc(100% + 6px); left: 0; width: 272px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav__has-sub:hover .nav__sub,
  .nav__has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__sub a { border-radius: 6px; padding: 10px 12px; }
  .nav__sub a:hover { background: var(--bg-alt); }
  .nav__cta { padding: 0 0 0 10px; }
  .nav__cta .btn { width: auto; padding: 10px 20px; font-size: .9rem; }

  .cta-band__in { grid-template-columns: 1fr auto; align-items: center; }
  .cta-band { padding: 46px 0; }

  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .split--aside { grid-template-columns: 1.65fr 1fr; align-items: start; }

  .page-hero { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------- Impression --------------------------- */
@media print {
  .topbar, .header, .mobile-bar, .cta-band, .footer__zone { display: none; }
  body { padding: 0; color: #000; }
}
