:root {
  /* Palette verte fournie par l'utilisateur, structure T1
     (essai bleu piscine du 2026-11-19 rejeté — voir l'historique git) */
  --vellum: #f5f4ea;   /* toile de page : beige crème */
  --paper: #ffffff;
  --tint: #eceadc;     /* panneau beige */
  --tint-2: #cff2d4;   /* tinte menthe claire (placeholders, survols) */
  --leaf: #adebb3;     /* accent vert menthe : CTA uniquement (choix du gérant 2026-11-19) */
  --carbon: #3a6b40;   /* titres, nav, boutons : vert éclairci côté menthe */
  --onyx: #2e5634;     /* pied de page, carte héro */
  --mercury: #64654e;  /* texte secondaire : gris chaud */
  --line: rgba(58, 107, 64, .3);  /* filets adoucis */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius-cards: 64px;
  --radius-nav: 16px;
  --radius-pills: 100px;

  --page-max: 1280px;
  --gutter: clamp(16px, 3vw, 48px);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--vellum);
  color: var(--carbon);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--carbon);
  outline-offset: 3px;
}

::selection { background: var(--carbon); color: var(--vellum); }

/* ---------- Typographie ---------- */

.display {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  max-width: 24em;
}
.lead + .lead { margin-top: 1em; }
.muted { color: var(--mercury); }

/* Étiquette de section : carré 4px + capitales */
.sq-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}
.sq-label::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: 5px;
  background: var(--carbon);
}
.sq-label-light { color: var(--tint-2); }

/* Index de section (01–04), signature « plan d'exécution » */
.idx {
  font-weight: 300;
  font-size: 24px;
  line-height: 0.9;
  letter-spacing: 0;
  margin-right: 6px;
}

/* Ligne de cote : ⊢——— légende ———⊣ */
.cote {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mercury);
}
.cote::before, .cote::after {
  content: "";
  flex: 1;
  height: 7px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.cote:empty { gap: 0; }
.cote:empty::after { display: none; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 16px 24px;
  border-radius: var(--radius-pills);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
/* L'accent feuille est réservé à l'action principale */
.btn-accent { background: var(--leaf); color: var(--onyx); border-color: var(--leaf); }
.btn-accent:hover { background: transparent; color: var(--carbon); border-color: var(--carbon); }
.hero .btn-accent:hover { color: var(--paper); border-color: var(--paper); }
.btn-ghost { background: transparent; color: var(--carbon); border-color: var(--carbon); }
.btn-ghost:hover { background: var(--carbon); color: var(--paper); }

/* ---------- Navigation : pilule compacte en haut à droite ---------- */

.pill-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  background: transparent;
  color: var(--paper);
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  transition: background .3s, color .3s;
}
/* Verre dépoli clair au défilement : texte vert foncé, bouton inversé */
.pill-nav.scrolled {
  background: rgba(245, 244, 234, .55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--carbon);
}
.pill-nav.scrolled .pill-cta {
  background: var(--carbon);
  color: var(--paper);
  border-color: var(--carbon);
}
.pill-nav.scrolled .pill-cta:hover {
  background: transparent;
  color: var(--carbon);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: none; }

.pill-links { display: flex; gap: 20px; font-size: 14px; }
.pill-links a { opacity: .85; transition: opacity .2s; }
.pill-links a:hover { opacity: 1; }

.pill-cta {
  margin-left: auto;
  background: var(--paper);
  color: var(--carbon);
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: var(--radius-pills);
  border: 1px solid var(--paper);
  transition: background .2s, color .2s;
}
.pill-cta:hover { background: transparent; color: var(--paper); }

@media (max-width: 860px) {
  .pill-nav { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .pill-links { gap: 14px; font-size: 13px; }
  .pill-cta { padding: 9px 14px; font-size: 13px; }
}

/* ---------- Héro : photo pleine page + descente au fond du bassin ----------
   Le héro est une piste de 240svh ; le cadre reste collé à l'écran pendant
   qu'on « plonge » : la photo défile vers le bas de l'image, l'eau monte
   (.hero-deep), puis la page refait surface en beige (.hero-fade).
   --hp (0 → 1) est posé par script.js au défilement. */

.hero {
  position: relative;
  height: 240svh;
  min-height: 540px;
  /* Vert nuit, pas var(--carbon) : ce fond se voit pendant le chargement de
     la photo et dans les tranches que la barre Safari découvre sur iPhone */
  background: #0d1b12;
  --hp: 0;
}
/* Parallaxe pointeur (leçon du guide SORA, adaptée) : --mx/--my sont posés
   par script.js, amortis par transition de propriétés enregistrées, et
   estompés dès que la descente commence (--mfade). Chaque couche compose
   sa propre vitesse dans son transform : aucun conflit avec --hp. */
@property --mx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --my { syntax: "<number>"; inherits: true; initial-value: 0; }
.hero-frame {
  position: sticky;
  top: 0;
  /* svh et non dvh : sur mobile la barre d'adresse se rétracte au défilement,
     dvh changerait en continu et ferait saccader la descente */
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  --mx: 0;
  --my: 0;
  --mfade: calc(1 - min(var(--hp) * 3, 1));
  --pmx: calc(var(--mx) * var(--mfade));
  --pmy: calc(var(--my) * var(--mfade));
  transition: --mx .6s cubic-bezier(.2, .6, .3, 1), --my .6s cubic-bezier(.2, .6, .3, 1);
}
.hero-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 135%;
  object-fit: cover;
  transform: translateY(calc(var(--hp) * -26%))
    translate(calc(var(--pmx) * -14px), calc(var(--pmy) * -8px));
  will-change: transform;
}
/* Diaporama Ken Burns (inspiré d'itpiscines.com, adapté) : zoom lent par la
   propriété scale — indépendante du transform piloté par --hp/--pmx — et
   fondu croisé via un second calque dont script.js change la photo */
.hero-img-b { opacity: 0; transition: opacity 1.6s ease; }
.hero-img-b.visible { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: kenburns 14s ease-in-out alternate infinite; }
}
@keyframes kenburns {
  from { scale: 1; }
  to { scale: 1.08; }
}
.hero-frame.no-photo {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(173, 235, 179, .12), transparent 60%),
    linear-gradient(165deg, #16301f, #0d1b12 60%, #142a1a);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(24, 45, 27, .4), transparent 160px),
    /* voile derrière le logo : le texte blanc reste lisible sur photo claire
       (léger, sinon il se voit en halo gris sur un ciel blanc) */
    radial-gradient(ellipse 64% 38% at 50% 36%, rgba(10, 30, 20, .26), transparent 78%),
    linear-gradient(200deg, transparent 50%, rgba(24, 45, 27, .55));
  pointer-events: none;
}
/* L'eau qui monte : teinte photographique d'immersion, pas une couleur d'interface */
.hero-deep {
  position: absolute;
  inset: -2% 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(5, 25, 28, .94) 0%,
    rgba(9, 44, 46, .72) 30%,
    rgba(18, 72, 70, .34) 58%,
    transparent 80%);
  transform: translateY(calc((1 - var(--hp)) * 92%));
  will-change: transform;
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, var(--vellum), transparent);
  opacity: calc((var(--hp) - .72) / .28);
  will-change: opacity;
}
/* Tactile : pas de descente au défilement — le JavaScript comme les
   animations liées au défilement saccadent sur iPhone (gros calques +
   sticky). Héro plein écran fixe ; diaporama et entrée du titre conservés. */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero-deep, .hero-fade { display: none; }
}

/* ---------- Entrée du héro : chorégraphie adaptée du guide SORA (Prisma) —
   le titre émerge mot à mot (flou qui se dissipe, cascade de 0,09 s), puis
   les repères et la carte devis remontent. Les animations utilisent
   opacity + translate (propriété séparée) et rendent la main aux
   déclarations pilotées par --hp une fois finies. */
@media (prefers-reduced-motion: no-preference) {
  .mot {
    display: inline-block;
    /* backwards et non both : both garderait filter: blur(0) appliqué pour
       toujours, chaque mot resterait un calque composité et iOS affiche des
       doublons fantômes du titre pendant le défilement */
    animation: mot-in .7s ease-out calc(.35s + var(--i) * .09s) backwards;
  }
  .hero-brand { animation: surgit .8s ease-out .1s backwards; }
  .hero-copy .cote,
  .hero-copy .btn { animation: surgit .7s ease-out 1.05s backwards; }
  .hero-card { animation: surgit .7s ease-out 1.2s backwards; }
  @keyframes mot-in {
    from { opacity: 0; translate: 0 14px; filter: blur(8px); }
    to { opacity: 1; translate: 0 0; filter: blur(0); }
  }
  @keyframes surgit {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
  /* Tactile : même cascade mais sans flou — huit mots filtrés d'un coup
     font apparaître des doublons fantômes du titre sur iPhone */
  @media (pointer: coarse) {
    .mot { animation-name: mot-in-tactile; }
  }
  @keyframes mot-in-tactile {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }
}

/* Logo centré sur le héro, version sobre */
.hero-brand {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) translateY(calc(var(--hp) * -14vh))
    translate(calc(var(--pmx) * 5px), calc(var(--pmy) * 4px));
  opacity: calc(1 - var(--hp) * 2.4);
  will-change: transform, opacity;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: var(--paper);
  text-align: center;
}
.hero-brand svg { width: 60px; height: 60px; }
.hero-brand span {
  font: 300 14px/1 var(--font-display);
  letter-spacing: 0.38em;
  text-indent: 0.38em; /* compense l'espacement pour un vrai centrage */
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .hero-brand { top: 34%; }
  .hero-brand span { font-size: 11px; letter-spacing: 0.3em; text-indent: 0.3em; }
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 60px);
  z-index: 1;
  color: var(--paper);
  display: grid;
  justify-items: start;
  gap: 24px;
  max-width: min(640px, calc(100% - 2 * var(--gutter)));
  transform: translateY(calc(var(--hp) * -10vh));
  opacity: calc(1 - (var(--hp) - .45) * 2.8);
  will-change: transform, opacity;
}
.hero .cote { color: rgba(253, 255, 251, .85); max-width: 420px; }

.hero-card {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 6vh, 60px);
  z-index: 1;
  transform: translateY(calc(var(--hp) * -6vh))
    translate(calc(var(--pmx) * 10px), calc(var(--pmy) * 7px));
  opacity: calc(1 - (var(--hp) - .45) * 2.8);
  will-change: transform, opacity;
  width: 250px;
  background: var(--onyx);
  color: var(--paper);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
  transition: background .2s;
}
.hero-card:hover { background: var(--carbon); }
.hero-card-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint-2); }
.hero-card-text { font-size: 14px; line-height: 1.4; }
.hero-card-arrow { justify-self: end; }

@media (max-width: 760px) {
  .hero-card { display: none; }
}

/* ---------- Sections : étiquette à gauche, contenu décalé à droite ---------- */

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter) 0;
}
.section:last-of-type { padding-bottom: clamp(72px, 10vw, 120px); }

/* Rythme volontairement irrégulier : « La maison » dense, « Réalisations » très aérée */
#mission { padding-top: 64px; }
#mission .lead + .lead { margin-top: .6em; }
#realisations { padding-top: clamp(96px, 13vw, 170px); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.split-body { display: grid; gap: 36px; justify-items: start; }

/* Colonne latérale remplie (photo de chantier légendée + CTA contour) */
.side { display: grid; gap: 24px; align-content: start; justify-items: start; }
.photo-side {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 40px;
  background: var(--tint-2);
}
.photo-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side .cote { color: var(--mercury); }
@media (max-width: 860px) {
  .photo-side { max-width: 420px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* Chiffres clés */
.specs {
  list-style: none;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  width: 100%;
}
.specs strong { display: block; font-size: 30px; font-weight: 300; line-height: 1.2; }
.specs span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mercury); }

/* ---------- Paire d'images à pastille centrée ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 96px);
}
.duo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-cards);
  background: var(--tint-2);
  aspect-ratio: 4 / 3;
  display: block;
}
.duo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.duo-card:hover img { transform: scale(1.03); }

.pill-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--vellum);
  color: var(--carbon);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pills);
  padding: 12px 20px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .duo-card { border-radius: 40px; }
}

/* ---------- Accordéon ---------- */

.accordion { border-top: 1px solid var(--line); width: 100%; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font: inherit; }

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: 0;
  color: var(--carbon);
  text-align: left;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  padding: 22px 0;
}

.acc-icon {
  flex: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--carbon);
  border-radius: var(--radius-pills);
  background: var(--paper);
  transition: background .2s;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--carbon);
  transform: translate(-50%, -50%);
  transition: transform .25s;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-btn:hover .acc-icon { background: var(--tint-2); }

.acc-panel p {
  max-width: 52ch;
  color: var(--mercury);
  padding-bottom: 22px;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Réalisations : bandeau 4 colonnes bord à bord ---------- */

.section-news { max-width: none; padding-left: 0; padding-right: 0; }
.section-news .split {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.news-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: clamp(48px, 6vw, 80px);
}
.news-item { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; }
.news-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity .2s;
}
.news-item:hover img { opacity: .9; }
.news-item.no-photo::before {
  content: "";
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(165deg, var(--tint), var(--tint-2));
}
.news-item .cote { margin: 14px 14px 0; width: auto; }
.news-cat {
  margin: 8px 14px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mercury);
}
.news-title {
  margin: 0 14px 14px;
  font-size: 15px;
  line-height: 1.35;
  max-width: 26ch;
}

@media (max-width: 900px) {
  .news-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .news-strip { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list { list-style: none; padding: 0; display: grid; gap: 22px; }
.contact-list span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mercury);
  margin-bottom: 4px;
}
.contact-list a, .contact-list address { font-size: 18px; font-weight: 300; line-height: 1.4; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Repères « + » de table à dessin aux coins du panneau */
.form {
  position: relative;
  background: var(--tint);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 40px);
  display: grid;
  gap: 22px;
}
.form::before, .form::after {
  content: "+";
  position: absolute;
  font: 300 16px/1 var(--font-display);
  color: var(--mercury);
  pointer-events: none;
}
.form::before { top: 10px; left: 14px; }
.form::after { bottom: 10px; right: 14px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mercury);
}

.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--carbon);
  font: 300 17px/1.4 var(--font);
  padding: 9px 0;
  border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--carbon); }
.field ::placeholder { color: var(--mercury); opacity: .7; }

.form .btn { justify-self: start; }
.form-error { color: #b4482f; font-size: 14px; }
.form-hint { color: var(--mercury); font-size: 12px; }

/* ---------- Pied de page ---------- */

/* Pied de page compact, sans filets */
.footer {
  background: var(--onyx);
  color: var(--vellum);
  margin-top: clamp(72px, 10vw, 120px);
  padding: 48px var(--gutter) 28px;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px 48px;
}
.f-cell {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: start;
  font-size: 14px;
  line-height: 1.5;
}
.f-cell a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-cell p, .f-cell address { color: rgba(245, 244, 234, .8); }

.f-brand { gap: 12px; }
.f-brand svg { width: 32px; height: 32px; }
.f-wordmark {
  font: 300 15px/1 var(--font-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.f-tagline { color: rgba(245, 244, 234, .6); font-size: 13px; max-width: 28ch; }

.f-bottom {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font: 400 11px/1.4 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 244, 234, .6);
}
/* Réseaux sociaux : boutons ronds en contour, dans la logique pilule du site */
.f-social { display: flex; gap: 10px; }
.f-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 244, 234, .35);
  border-radius: 100px;
  display: grid;
  place-items: center;
  color: var(--vellum);
  transition: background .2s, color .2s;
}
.f-social a:hover { background: var(--vellum); color: var(--onyx); text-decoration: none; }
.f-social svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Avant / après : curseur de comparaison ---------- */

.ba { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; gap: 16px; justify-items: center; }
.ba > .cote { color: var(--mercury); }
/* Cadre volontairement petit : la photo source fait 335 px, on l'affiche près de sa taille pour rester net */
.ba-frame {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 40px;
  overflow: hidden;
  background: var(--tint-2);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
.ba-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--carbon);
  display: grid;
  place-items: center;
  font: 500 16px/1 var(--font-display);
}
.ba-tag {
  position: absolute;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--radius-pills);
  background: rgba(46, 86, 52, .75);
  color: var(--vellum);
  font: 400 11px/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-avant { left: 16px; }
.ba-tag-apres { right: 16px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
/* ---------- Galerie de projet (lightbox) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 34, 21, .92);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-figure { display: grid; gap: 14px; max-width: min(1100px, 100%); margin: 0; }
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  margin: 0 auto;
  border-radius: 24px;
  object-fit: contain;
}
.lb-figure figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--vellum);
  font: 400 12px/1.4 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 244, 234, .4);
  background: transparent;
  color: var(--vellum);
  font: 300 20px/1 var(--font-display);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--vellum); color: var(--carbon); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-height: 58vh; }
}

/* ---------- Apparition au défilement ---------- */

/* Voix typographique technique : tout ce qui étiquette, chiffre ou actionne parle en Space Grotesk */
.sq-label, .cote, .news-cat, .contact-list span, .field label,
.hero-card-label, .specs span, .specs strong, .pill-tag, .btn,
.pill-cta, .acc-btn { font-family: var(--font-display); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Page Réalisations : onglets par catégorie + grille ---------- */

.page-reals {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) 90px;
}
.reals-head h1 { margin: 12px 0 8px; }
.reals-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 36px; }
.reals-tab {
  font: 400 14px var(--font-display);
  padding: 10px 18px;
  border: 1px solid var(--carbon);
  border-radius: var(--radius-pills);
  background: transparent;
  color: var(--carbon);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.reals-tab[aria-selected="true"], .reals-tab:hover {
  background: var(--carbon);
  color: var(--paper);
}
.reals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.reals-item {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  display: grid;
  gap: 8px;
  text-align: left;
  font: inherit;
}
.reals-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.reals-item:hover img { opacity: .9; }
.reals-item .cote { width: auto; }
@media (max-width: 560px) {
  .reals-grid { grid-template-columns: 1fr; }
  .page-reals { padding-top: calc(92px + env(safe-area-inset-top, 0px)) }
}
.reals-more { margin: 30px 0 0; }

/* Formulaire : confirmation d envoi + champ piege anti-robots (hors ecran) */
.form-ok { color: var(--carbon); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
