/* =========================================================================
   AxiHome — Design System
   Polices auto-hébergées · couleurs de marque · composants
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours */
  --ink:        #17181A;   /* anthracite quasi-noir */
  --ink-2:      #2A2C30;
  --ink-3:      #4A4E55;
  --muted:      #71767E;
  --line:       #E6E8E5;
  --bg:         #FFFFFF;
  --bg-soft:    #F6F7F4;   /* gris-vert très clair */
  --bg-dark:    #141518;

  --green:      #6AB023;   /* accent marque */
  --green-600:  #5C9C1C;
  --green-700:  #4C8316;
  --green-soft: #EEF6E4;
  --blue:       #2E5F9E;
  --red:        #E2231A;

  /* Typo */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16,18,20,.06), 0 2px 6px rgba(16,18,20,.05);
  --shadow:    0 8px 24px rgba(16,18,20,.08);
  --shadow-lg: 0 24px 60px rgba(16,18,20,.16);

  --transition: 220ms cubic-bezier(.4,.2,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-3); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.text-green { color: var(--green-700); }

/* Titres sur deux lignes, deux épaisseurs (même police) */
.title-2w span { display: block; }
.fw-light { font-weight: 300; }
.fw-bold  { font-weight: 800; }
/* Titre compact (ex: configurateur) — tient sur 2 lignes */
.h2-compact { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.72); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .9em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(106,176,35,.28); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(106,176,35,.36); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; height: 76px; }
.site-header .logo { flex: none; }
.site-header .logo img { height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: .55em .85em; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink-2);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav a.is-active { color: var(--green-700); }
.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.header-tel { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.header-tel svg { width: 1.1em; height: 1.1em; color: var(--green-700); }
.header-config { padding-inline: 1.1em; }
.header-config svg { color: var(--green); }
.nav-mobile-only { display: none; }
.nav-toggle {
  display: none; cursor: pointer; width: 46px; height: 46px; padding: 0;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 13px;
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--green-soft); border-color: var(--green); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px auto; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; }
.hero::after { /* subtle barreaudage motif */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 34px);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--green); }
.hero p { color: rgba(255,255,255,.78); max-width: 46ch; margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: nowrap; gap: .9rem; margin-top: 2rem; }
.hero__actions .btn { flex: 0 1 auto; }
.hero__trust { display: flex; flex-wrap: nowrap; gap: 1.1rem; margin-top: 2.5rem; }
.hero__trust .item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; white-space: nowrap; color: rgba(255,255,255,.82); }
.hero__trust .item svg { width: 1.2em; height: 1.2em; color: var(--green); flex: none; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Slider du hero (fondu enchaîné) */
.hero__slider { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; box-shadow: none; aspect-ratio: auto;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease-in-out, transform 7s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__badge {
  position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .8rem;
}
.hero__badge .big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--green-700); }
.hero__badge .lbl { font-size: .82rem; color: var(--muted); line-height: 1.25; }

/* ---------- Hero accueil : images plein écran + texte minimal ---------- */
.hero--bg { position: relative; min-height: clamp(600px, 88vh, 840px); display: flex; align-items: center; overflow: hidden; background: var(--bg-dark); color: #fff; }
.hero--bg::after { content: none; }
.hero--bg .hero__slider { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; overflow: hidden; }
.hero--bg .hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 66%; opacity: 0; transition: opacity 1.4s ease; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.hero--bg .hero__slide.is-active { opacity: 1; }
.hero--bg .hero__scrim { position: absolute; inset: 0; z-index: 1; background:
    radial-gradient(120% 80% at 50% 42%, transparent 0%, rgba(15,16,18,.28) 70%, rgba(15,16,18,.5) 100%),
    linear-gradient(180deg, rgba(15,16,18,.5) 0%, rgba(15,16,18,.18) 32%, rgba(15,16,18,.32) 62%, rgba(15,16,18,.82) 100%); }
.hero--bg .hero__inner { position: relative; z-index: 2; display: block; text-align: center; padding-block: clamp(3rem, 9vh, 6rem); }

/* Légende produit + puces de navigation */
.hero__caption { position: absolute; left: var(--gutter); bottom: 1.7rem; z-index: 3; display: inline-flex; align-items: center; gap: .55em; padding: .5em 1.05em; background: rgba(15,16,18,.45); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: #fff; }
.hero__caption-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(106,176,35,.28); flex: none; }
.hero__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.9rem; z-index: 3; display: flex; gap: .5rem; }
.hero__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: var(--transition); }
.hero__dot:hover { background: rgba(255,255,255,.8); }
.hero__dot.is-active { width: 28px; border-radius: 6px; background: var(--green); }
@media (max-width: 640px) { .hero__caption { display: none; } .hero__dots { bottom: 1.2rem; } }
.hero--bg .eyebrow { justify-content: center; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero--bg .hero__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; max-width: none; margin: .7rem auto 0; text-wrap: balance; text-shadow: 0 3px 20px rgba(0,0,0,.5); }
.hero--bg .hero__title .accent { color: var(--green); white-space: nowrap; }
.hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-width: 700px; margin: 1.6rem auto 0; padding: 0; list-style: none; }
.hero__tags a { display: inline-block; padding: .5em 1.05em; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .92rem; transition: var(--transition); }
.hero__tags a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.hero--bg .hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }
@media (max-width: 560px) { .hero--bg { min-height: 76vh; } .hero__tags a { font-size: .82rem; padding: .45em .85em; } .hero--bg .hero__actions .btn { flex: 1 1 100%; } }

/* ---------- Stat / trust band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,4vw,2.8rem); color: var(--green-700); line-height: 1; }
.stats .lbl { margin-top: .4rem; font-size: .92rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2vw,1.5rem); }
.product-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: var(--transition);
  box-shadow: var(--shadow-sm); min-height: 320px; isolation: isolate;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card__body h3 { font-size: 1.18rem; }
.product-card__body p { font-size: .92rem; color: var(--muted); }
.product-card__link { margin-top: auto; padding-top: .6rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--green-700); display: inline-flex; align-items: center; gap: .4em; }
.product-card__link svg { width: 1em; height: 1em; transition: var(--transition); }
.product-card:hover .product-card__link svg { transform: translateX(4px); }
.product-card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Feature / why cards ---------- */
.feature { display: flex; flex-direction: column; gap: .65rem; padding: 1.6rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-700); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: .95rem; color: var(--ink-3); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,2vw,1.75rem); }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; background: var(--green);
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; color: var(--ink-3); }

/* ---------- Process (parcours en étapes) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.process__item {
  position: relative; overflow: hidden; padding: 2.5rem 1.75rem 2rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.process__item::after {
  content: attr(data-num); position: absolute; top: -.75rem; right: .5rem; z-index: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; line-height: 1;
  color: var(--bg-soft); pointer-events: none;
}
.process__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.process__ico {
  position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.5rem;
  background: var(--green); color: #fff; box-shadow: 0 10px 22px rgba(106,176,35,.32);
}
.process__ico svg { width: 28px; height: 28px; }
.process__item h3 { position: relative; z-index: 1; font-size: 1.25rem; margin-bottom: .5rem; }
.process__item p { position: relative; z-index: 1; font-size: .95rem; color: var(--ink-3); }

/* ---------- Realisations gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem,1.5vw,1.25rem); }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.1rem .85rem; color: #fff;
  background: linear-gradient(to top, rgba(15,16,18,.9) 10%, rgba(15,16,18,.35) 65%, transparent);
  opacity: 1; transform: none; /* texte toujours visible */
}
.gallery__item .cap-cat { font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.gallery__item .cap-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.gallery__item .cap-city { font-size: .85rem; color: rgba(255,255,255,.8); }
.gallery--featured .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- Testimonials ---------- */
.testi { display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.testi .stars { color: #F5A623; letter-spacing: 2px; }
.testi .stars .star-off { color: var(--line); }
.testi blockquote { font-size: 1.02rem; color: var(--ink-2); line-height: 1.6; flex: 1; }
.testi .who { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.testi .who span { color: var(--muted); font-weight: 400; }

/* Carrousel d'avis (défilé, même carte) */
.testi-carousel { display: flex; gap: clamp(1rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.25rem; margin-inline: -.25rem; -ms-overflow-style: none; scrollbar-width: none; }
.testi-carousel::-webkit-scrollbar { display: none; }
.testi-carousel > .testi { flex: 0 0 clamp(270px, calc((100% - 3rem) / 3), 400px); scroll-snap-align: start; }
@media (max-width: 900px) { .testi-carousel > .testi { flex-basis: clamp(260px, calc((100% - 1.5rem) / 2), 360px); } }
@media (max-width: 560px) { .testi-carousel > .testi { flex-basis: 86%; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--green); color: #fff; padding: clamp(2.5rem,5vw,4rem); }
.cta-band::after { content:""; position:absolute; inset:0; opacity:.12; background-image: repeating-linear-gradient(90deg,#fff 0 2px, transparent 2px 30px); }
.cta-band__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: .5rem; }
.cta-band .btn--light { color: var(--green-700); }

/* ---------- CTA strip : bande pleine largeur, collée au footer ---------- */
.cta-strip {
  position: relative; overflow: hidden; background: var(--green); color: #fff;
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  margin-top: clamp(3rem, 7vw, 6rem);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cta-strip::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 30px);
}
.cta-strip .container { position: relative; z-index: 2; }
.cta-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-strip h2 { color: #fff; max-width: 18ch; }
.cta-strip p { color: rgba(255,255,255,.92); margin-top: .5rem; }
.cta-strip__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-strip .btn--light { color: var(--green-700); }
/* Quand une section sombre précède le bandeau : transition continue (pas de bande blanche) */
.section--dark + .cta-strip { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: var(--transition); font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { width: auto; margin-top: .25rem; }
.field--check label { font-weight: 400; font-size: .88rem; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .95rem; }
.alert--ok { background: var(--green-soft); color: var(--green-700); border: 1px solid #cfe7b3; }
.alert--err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.input-error { border-color: var(--red) !important; }
.error-msg { color: var(--red); font-size: .82rem; }

/* ---------- Misc components ---------- */
.pill { display:inline-flex; align-items:center; gap:.4em; padding:.4em .9em; border-radius:999px; background:var(--green-soft); color:var(--green-700); font-family:var(--font-display); font-weight:600; font-size:.82rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.check-list { display: grid; gap: .7rem; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--ink-2); }
.check-list svg { width: 1.3em; height: 1.3em; color: var(--green); flex: none; margin-top: .15em; }
/* Sur fond sombre : texte clair et lisible */
.section--dark .check-list li { color: rgba(255,255,255,.85); }
.breadcrumb { font-size: .85rem; color: var(--muted); padding-block: 1rem; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb span { margin-inline: .4em; }

/* ---------- Carte contact ---------- */
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-map iframe { filter: grayscale(.15); }
.contact-map__link { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--bg); border-top: 1px solid var(--line); transition: var(--transition); }
.contact-map__link:hover { color: var(--green-700); background: var(--bg-soft); }
.contact-map__link svg { width: 1.1em; height: 1.1em; color: var(--green-700); }

/* ---------- Lightbox (photos en grand) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 4vh 2vw; background: rgba(10,11,13,.93); backdrop-filter: blur(4px); }
.lightbox.is-open { display: flex; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 92vw; }
.lightbox__img { max-width: 92vw; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background: #1c1d20; }
.lightbox__cap { text-align: center; font-family: var(--font-display); color: #fff; display: grid; gap: .15rem; }
.lightbox__cap .cap-cat { color: var(--green); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lightbox__cap .cap-title { font-weight: 600; font-size: 1.1rem; }
.lightbox__cap .cap-city { color: rgba(255,255,255,.72); font-size: .9rem; font-weight: 400; display: inline-flex; align-items: center; gap: .35em; justify-content: center; }
.lightbox__cap .cap-city svg { width: 1em; height: 1em; }
.lightbox__close { position: absolute; top: 1.1rem; right: 1.3rem; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.lightbox__close:hover { background: var(--green); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.lightbox__nav:hover { background: var(--green); }
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }
@media (max-width: 640px) { .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; } .lightbox__prev { left: .4rem; } .lightbox__next { right: .4rem; } .lightbox__img { max-height: 68vh; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-display); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer a { color: rgba(255,255,255,.7); transition: var(--transition); }
.site-footer a:hover { color: var(--green); }
.footer-logo img { height: 40px; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .55rem; font-size: .95rem; }
.footer-contact { display: grid; gap: .7rem; font-size: .95rem; }
.footer-contact .row { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 1.1em; height: 1.1em; color: var(--green); flex: none; margin-top: .2em; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-social svg { width: 1.1rem; height: 1.1rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* ---------- Espace admin : cadenas footer + modale de connexion ---------- */
.footer-admin { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); border: 0; cursor: pointer; transition: var(--transition); }
.footer-admin:hover { background: var(--green); color: #fff; }
.footer-admin svg { width: 1rem; height: 1rem; }
.cms-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: flex-start; justify-content: flex-end; padding: 1rem 1.25rem; background: rgba(15,16,18,.4); backdrop-filter: blur(2px); }
.cms-modal.is-open { display: flex; }
.cms-modal__box { position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: var(--radius); padding: 1.75rem 1.6rem; box-shadow: var(--shadow-lg); transform: translateY(-16px); opacity: 0; }
.cms-modal.is-open .cms-modal__box { animation: cmsDrop .3s cubic-bezier(.4,.2,.2,1) forwards; }
@keyframes cmsDrop { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cms-modal__box h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.cms-modal__box p.sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.cms-modal__box input[type=password] { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 1rem; }
.cms-modal__box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.cms-modal__close { position: absolute; top: .75rem; right: .9rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cms-modal__err { background: #fdecea; color: #b3261e; padding: .6rem .9rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 1rem; }

/* ---------- Bouton téléphone flottant (fixe en bas à droite) ---------- */
.phone-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 95;
  display: inline-flex; align-items: center; gap: .75em;
  background: var(--ink); color: #fff;
  font-family: var(--font-display);
  padding: .7em 1.3em .7em .85em; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.phone-fab__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); }
.phone-fab__icon svg { width: 1.3em; height: 1.3em; color: #fff; }
.phone-fab__text { display: flex; flex-direction: column; line-height: 1.2; }
.phone-fab__text small { font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.72); }
.phone-fab__text strong { font-size: 1.1rem; font-weight: 700; }
.phone-fab:hover { background: var(--green); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(106,176,35,.4); }
.phone-fab:hover .phone-fab__icon { background: #fff; }
.phone-fab:hover .phone-fab__icon svg { color: var(--green-700); }
.phone-fab:hover .phone-fab__text small { color: rgba(255,255,255,.9); }

/* ---------- Mobile sticky call bar ---------- */
.mobile-cta { display: none; }

/* ---------- Split / editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.media-frame { position: relative; }
.media-frame::before { content:""; position:absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--green); border-radius: var(--radius-lg); z-index: -1; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--bg-soft); padding-block: clamp(2.5rem,5vw,4rem) clamp(2rem,4vw,3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: .4rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero p { margin-top: .9rem; max-width: 58ch; }

/* ---------- Tunnels de vente (landing pages) ---------- */
/* En-tête transparent : posé par-dessus la photo du hero, logo blanc centré, aucun bouton. */
.tunnel-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 0; }
.tunnel-header .bar { display: flex; align-items: center; justify-content: center; height: 104px; }
.tunnel-header__logo img { height: 64px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
body.cms-edit .tunnel-header { top: 52px; }
@media (max-width: 640px) { .tunnel-header .bar { height: 82px; } .tunnel-header__logo img { height: 50px; } }

.tunnel-hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; color: #fff; background-image: var(--bg); background-size: cover; background-position: center; }
.tunnel-hero__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(15,16,18,.84) 30%, rgba(15,16,18,.4)); }
.tunnel-hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem); }
.tunnel-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; max-width: 19ch; margin-top: .6rem; }
.tunnel-hero__sub { color: rgba(255,255,255,.85); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 48ch; margin-top: 1rem; }
.tunnel-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.tunnel-hero__trust { display: flex; flex-wrap: wrap; gap: .9rem 1.75rem; margin-top: 2rem; }
.tunnel-hero__trust span { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; color: rgba(255,255,255,.85); }
.tunnel-hero__trust svg { color: var(--green); width: 1.3em; height: 1.3em; flex: none; }
.trust-bar { background: var(--ink); color: #fff; padding-block: clamp(1.5rem, 3vw, 2rem); }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust-bar .num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--green); line-height: 1; }
.trust-bar .lbl { display: block; margin-top: .35rem; font-size: .88rem; color: rgba(255,255,255,.7); }
@media (max-width: 560px) { .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; } }
.tunnel-guarantees { display: inline-flex; align-items: center; gap: .55em; margin-top: 2rem; padding: .7em 1.3em; background: var(--green-soft); color: var(--green-700); border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.tunnel-guarantees svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Bloc réassurance (tunnels) ---------- */
.reassure { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.reassure__item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.75rem 1.5rem; transition: var(--transition); }
.reassure__item:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.reassure__ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; margin-bottom: 1.1rem; }
.reassure__ico svg { width: 26px; height: 26px; }
.reassure__item h3 { color: #fff; font-size: 1.12rem; margin-bottom: .35rem; }
.reassure__item p { color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.55; }
@media (max-width: 860px) { .reassure { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .reassure { grid-template-columns: 1fr; } }

/* ---------- Animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .stats, .steps, .process { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero::after { display: none; } /* pas de rayures sur mobile : plus net */
  .hero .eyebrow { font-size: .7rem; letter-spacing: .08em; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 2.5rem 3rem; gap: 2.75rem; }
  .hero__trust { flex-wrap: wrap; gap: .9rem 1.5rem; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
  .split, .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery--featured .gallery__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .form-grid { grid-template-columns: 1fr; }
  .media-frame::before { display: none; }

  .site-header { background: #fff; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; border-top: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow-lg); margin: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter); }
  .main-nav a { padding: .9em .5em; font-size: 1.05rem; border-radius: 8px; }
  .header-tel span, .header-actions .btn { display: none; }
  .nav-mobile-only { display: block; }
  .nav-toggle { display: block; }

  .phone-fab { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; position: fixed; inset: auto 0 0 0;
    z-index: 90; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,16,18,.08);
  }
  .mobile-cta .btn { padding: .72em .6em; font-size: .92rem; border-radius: 12px; }
  body { padding-bottom: 68px; }

  /* Tunnels : on épure — les CTA du hero font doublon avec la barre fixe du bas. */
  .tunnel-hero__actions { display: none; }

  /* Barre fixe des tunnels : Appeler · Devis · icône Configurateur */
  .mobile-cta--3 { grid-template-columns: 1fr 1fr auto; }
  .mobile-cta__icon { padding: .72em .95em; }
  .mobile-cta__icon svg { width: 1.25em; height: 1.25em; }
}
@media (max-width: 560px) {
  .btn { padding: .78em 1.25em; font-size: .94rem; }
  .btn--lg { padding: .9em 1.5em; font-size: 1rem; }
  .product-grid, .stats, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); } /* réalisations : 2 par ligne sur mobile */
  .gallery__item figcaption { padding: .95rem .7rem .6rem; }
  .gallery__item .cap-cat { font-size: .62rem; }
  .gallery__item .cap-title { font-size: .82rem; line-height: 1.2; }
  .gallery__item .cap-city { font-size: .72rem; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -26px; }
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 100%; }
  .product-grid, .steps, .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
}
