/* ============================================================
   VERDO ENTRETIEN — feuille de style commune à toutes les pages
   Principe : tout est « posé » comme des pavés (l'été) ou des
   bardeaux (l'hiver). Les séparateurs sont des joints de 3 px, et
   la couleur d'accent de la saison allume les joints.
   ============================================================ */

/* ── Tokens ────────────────────────────────────── */
:root {
  --bg: #15181B;          /* fond : ardoise */
  --bg-2: rgba(255, 255, 255, .025);
  --surface: #1D2125;     /* panneaux */
  --surface-2: #252A2E;
  --joint: #2C3136;       /* séparateurs = joints */
  --texte: #F1F3F0;
  --texte-2: #A2A9AD;
  --texte-doux: #C4CACD;
  --accent: #3DB54A;        /* vert du logo */
  --accent-vif: #5AD968;
  --glow: color-mix(in srgb, var(--accent) 45%, transparent);

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --nav-h: 68px;

  /* motif de joints (briques de 120 × 30, appareil décalé) */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5H120M0 30.5H120M.5 0V30M60.5 30V60' stroke='%23fff' fill='none'/%3E%3C/svg%3E");
  --motif-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5H120M0 30.5H120M.5 0V30M60.5 30V60' stroke='%235AD968' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* L'été (valeurs par défaut) : sert à remettre les couleurs d'été dans un bloc placé en contexte hiver */
.ete {
  --bg: #15181B;
  --bg-2: rgba(255, 255, 255, .025);
  --surface: #1D2125;
  --surface-2: #252A2E;
  --joint: #2C3136;
  --texte-2: #A2A9AD;
  --texte-doux: #C4CACD;
  --accent: #3DB54A;
  --accent-vif: #5AD968;
  --glow: rgba(61, 181, 74, .45);
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5H120M0 30.5H120M.5 0V30M60.5 30V60' stroke='%23fff' fill='none'/%3E%3C/svg%3E");
  --motif-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5H120M0 30.5H120M.5 0V30M60.5 30V60' stroke='%235AD968' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* L'hiver : même base, accent bleu glace et motif de bardeaux de toit (80 × 24) */
.hiver {
  --bg: #13171C;
  --bg-2: rgba(160, 200, 255, .025);
  --surface: #1A2027;
  --surface-2: #222A33;
  --joint: #29313B;
  --texte-2: #A0AAB4;
  --texte-doux: #C3CBD3;
  --accent: #4FB6EC;
  --accent-vif: #8FD6FF;
  --glow: rgba(79, 182, 236, .45);
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48'%3E%3Cpath d='M0 .5H160M0 24.5H160M.5 0V24M80.5 24V48' stroke='%23fff' fill='none'/%3E%3C/svg%3E");
  --motif-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48'%3E%3Cpath d='M0 .5H160M0 24.5H160M.5 0V24M80.5 24V48' stroke='%238FD6FF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); color-scheme: dark; }
body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--texte);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Boutons ───────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 14px 28px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .3s, transform .2s;
}
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--accent:hover { background: var(--accent-vif); box-shadow: 0 12px 32px -10px var(--glow); transform: translateY(-2px); }
.btn--accent:hover::after { transform: translateX(120%); }
.btn--ligne { border-color: rgba(241, 243, 240, .3); color: var(--texte); background: transparent; }
.btn--ligne:hover { border-color: var(--accent); color: var(--accent-vif); }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ── Logo ──────────────────────────────────────── */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo__mot { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--texte); letter-spacing: 1px; }
.logo__mot .v { font-weight: 800; color: var(--accent); transition: color .6s; }
.logo__sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--texte-2);
  margin-top: 4px;
  padding-left: 3.2px;
}

/* ══ NAV ══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 24, 27, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--joint);
}
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.nav__in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; gap: 30px; list-style: none; }
.nav__links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--texte-2);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--texte); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__tel { font-weight: 600; font-size: 15px; color: var(--texte); text-decoration: none; }
.nav__tel:hover { color: var(--accent-vif); }
.nav__right .btn { font-size: 17px; padding: 9px 18px; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--texte);
  content: '';
  transition: transform .25s, background-color .2s;
}
.nav__burger span { top: 21px; }
.nav__burger span::before { left: 0; top: -7px; }
.nav__burger span::after { left: 0; top: 7px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
}
.nav__mobile a:not(.btn) {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--texte);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 3px solid var(--joint);
}
.nav__mobile a[aria-current="page"] { color: var(--accent-vif); }
.nav__mobile .btn { margin-top: 20px; }
.nav__mobile.is-open { display: flex; }

/* ══ FOND : motif de joints + lampe au curseur ══ */
.zone { position: relative; isolation: isolate; }
.zone::before,
.zone::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.zone::before { background-image: var(--motif); opacity: .035; }
.zone::after {
  background-image: var(--motif-accent);
  opacity: var(--spot, 0);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 75%);
  mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 75%);
  transition: opacity .5s;
}

/* ══ ENTRÉES ANIMÉES ═════════════════════════ */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: lineUp .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .1s + .1s);
}
@keyframes lineUp { to { transform: none; } }

.rise { opacity: 0; animation: rise .8s var(--ease) forwards; animation-delay: var(--d, .5s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .rv.is-in { opacity: 1; transform: none; }

.js .rv-title {
  clip-path: inset(0 0 100% 0);
  transform: translateY(.35em);
  transition: clip-path .9s var(--ease), transform .9s var(--ease);
}
.js .rv-title.is-in { clip-path: inset(-10% -5% -20% -5%); transform: none; }

/* Photo : elle apparaît et son cadre s'allume en vert un instant */
.photo { position: relative; overflow: hidden; background: var(--surface-2); }
.photo img { transition: transform .8s var(--ease); }
.js .photo img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s);
}
.js .photo.is-in img { opacity: 1; transform: none; }
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
  box-shadow: inset 0 0 36px -8px var(--glow);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.js .photo.is-in::after { animation: allume 1.8s ease calc(var(--d, 0s) + .25s); }
@keyframes allume {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

/* Tag avant / après posé sur les photos */
.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--bg);
  color: var(--texte);
  pointer-events: none;
}
.tag--apres { background: var(--accent); color: var(--bg); }
.tag--droite { left: auto; right: 16px; }

/* ══ SECTIONS ═════════════════════════════════ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--band {
  background: var(--bg-2);
  border-top: 3px solid var(--joint);
  border-bottom: 3px solid var(--joint);
}
.section__head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.section__head p { font-size: 19px; color: var(--texte-2); }
.section__more { margin-top: 28px; }

.lien {
  font-weight: 600;
  color: var(--accent-vif);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: color .2s, text-underline-offset .2s;
}
.lien:hover { color: var(--texte); text-underline-offset: 7px; }

/* Grille à joints : les enfants sont des « pavés » séparés par des joints */
.joints {
  display: grid;
  gap: 3px;
  background: var(--joint);
  border: 3px solid var(--joint);
}
/* le joint autour d'un pavé s'allume au survol */
.pave-glow { position: relative; }
.pave-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 28px -4px var(--glow), inset 0 0 28px -12px var(--glow);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 4;
}
.pave-glow:hover::before { opacity: 1; }
.photo.pave-glow::before { inset: 0; }

/* Liste avec puces-pavés */
.puces { list-style: none; display: grid; gap: 10px; }
.puces li { position: relative; padding-left: 24px; color: var(--texte-doux); }
.puces li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

/* ══ EN-TÊTE DES PAGES INTÉRIEURES ═══════════ */
.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 3px solid var(--joint);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 12em;
}
.page-head__sub { font-size: 19px; color: var(--texte-doux); max-width: 36em; }
/* Les joints se tracent en vert, puis quelques pavés s'allument */
.traces {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 70%);
}
.traces svg { width: 100%; height: 100%; display: block; }
.traces rect {
  fill: color-mix(in srgb, var(--accent) 0%, transparent);
  stroke: var(--accent-vif);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 1.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
  transition: fill .8s, stroke .8s;
}
@keyframes trace {
  0% { stroke-dashoffset: 1; stroke: var(--accent-vif); }
  55% { stroke-dashoffset: 0; stroke: var(--accent-vif); }
  100% { stroke-dashoffset: 0; stroke: rgba(255, 255, 255, .07); }
}
.traces rect.lit { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent-vif); }

/* ══ HERO (accueil) ═══════════════════════════ */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: .92;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero__sub { font-size: 19px; line-height: 1.6; color: var(--texte-doux); max-width: 34em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding-top: 24px;
  border-top: 3px solid var(--joint);
  font-size: 15px;
  color: var(--texte-2);
}
.proof strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--texte);
  font-variant-numeric: tabular-nums;
}

/* ── Comparateur avant / après ─────────────────── */
.compare-fig { position: relative; }
.compare-fig::before {
  content: '';
  position: absolute;
  inset: 10% 0 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  filter: blur(30px);
  z-index: -1;
}
.compare {
  --pos: 50%;
  --shift: 0cqw;         /* décale les deux photos vers le haut pour les cadres larges */
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--joint);
  user-select: none;
  touch-action: pan-y;
}
.compare--hero { max-height: calc(100vh - var(--nav-h) - 80px); min-height: 380px; }
.compare--large { aspect-ratio: 16 / 9; --shift: 34cqw; }
/* Les deux photos de la rosace sont cadrées pour se superposer */
.compare img { position: absolute; max-width: none; pointer-events: none; }
.compare__apres { width: 100cqw; left: 0; top: calc(-18cqw - var(--shift)); }
.compare__avant-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__avant { width: 140.6cqw; left: -31.9cqw; top: calc(-35.4cqw - var(--shift)); }
/* Paire de photos simple (sans cadrage aligné) : les deux couvrent le cadre */
.compare--simple img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
/* Photos en format portrait : le cadre garde leur format pour les montrer en entier */
.compare-fig--portrait {
  --h: clamp(560px, calc(100vh - var(--nav-h) - 100px), 900px);
  width: calc(var(--h) * .5625);
  max-width: 100%;
}
.compare-fig--portrait .compare { aspect-ratio: 9 / 16; }
/* Comparateur vedette de la galerie : photo à gauche, texte à droite */
.vedette { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.vedette__texte { max-width: 34em; }
.vedette__texte > p:not(:last-child) { font-size: 19px; color: var(--texte-doux); margin-bottom: 24px; }
.vedette__texte .puces { margin-bottom: 32px; }
@media (max-width: 900px) {
  .vedette { grid-template-columns: 1fr; }
  .compare-fig--portrait { width: 100%; }
  .compare-fig--portrait .compare { aspect-ratio: 3 / 4; }
}
.compare .tag { top: 16px; }
.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.compare__knob svg { width: 26px; height: 26px; }
.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  margin: 0;
}
.compare input:focus-visible ~ .compare__line .compare__knob { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--texte-2);
}

/* ── Services (accueil) : problème → traitement ── */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface); }
.service:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.service:nth-child(even) .service__img { order: 2; }
.service__img { min-height: 300px; }
.service__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service:hover .service__img img,
.projet figure:hover img,
.carte:hover .photo img { transform: scale(1.04); }
.service__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
  padding: clamp(24px, 3.5vw, 44px);
  align-items: center;
}
.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #F2786B;          /* le problème, en rouge */
  margin-bottom: 10px;
}
.label::before { content: ''; width: 8px; height: 8px; border-radius: 1px; background: #E5484D; box-shadow: 0 0 10px rgba(229, 72, 77, .55); }
.label--accent { color: var(--accent-vif); }
.label--accent::before { background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.service__probleme p:last-child {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: #D3D8DA;
}
.service__fix h3 { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.service__fix p:last-child { color: var(--texte-2); }

/* ── Étapes (accueil) ─────────────────────────── */
.steps { position: relative; list-style: none; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
/* le joint du haut se remplit de vert à l'arrivée */
.steps__track { position: absolute; top: -3px; left: -3px; right: -3px; height: 3px; z-index: 2; pointer-events: none; }
.steps__track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-vif);
  box-shadow: 0 0 14px 1px var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s linear .1s;
}
.steps.is-in .steps__track::after { transform: none; }
.step { background: var(--surface); padding: 28px 24px 32px; counter-increment: step; transition: background-color .3s; }
.step:hover { background: var(--surface-2); }
.num {
  display: block;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #5B6267;
  transition: color .5s, -webkit-text-stroke-color .5s, text-shadow .5s;
  transition-delay: calc(var(--i, 0) * .4s + .15s);
}
.step .num { margin-bottom: 20px; }
.is-in .num,
.num.is-on { color: var(--accent); -webkit-text-stroke-color: var(--accent); text-shadow: 0 0 28px var(--glow); }
.step h3 { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--texte-2); }

/* ── Projet (accueil) ─────────────────────────── */
.projet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); }
.projet figure { aspect-ratio: 3 / 4; }
.projet figure img { width: 100%; height: 100%; object-fit: cover; }
.projet__texte {
  background: var(--surface);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.projet__texte h3 { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.projet__texte p { color: var(--texte-2); margin-bottom: 24px; }

/* ══ SERVICES (page) ══════════════════════════ */
.svc-index { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 56px); max-width: 900px; }
.svc-index a {
  position: relative;
  display: block;
  background: var(--surface);
  padding: 18px 20px 20px;
  text-decoration: none;
  overflow: hidden;
}
.svc-index a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent-vif);
  box-shadow: 0 0 12px var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.svc-index a:hover::after { transform: none; }
.svc-index b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.svc-index span { font-size: 14px; color: var(--texte-2); }

.svc { padding: clamp(56px, 8vw, 100px) 0; border-bottom: 3px solid var(--joint); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.svc:nth-of-type(even) .svc__media { order: -1; }
.svc__num { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.svc__num .num { font-size: 64px; }
.svc__result {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-vif);
  border: 1.5px solid color-mix(in srgb, var(--accent-vif) 45%, transparent);
  border-radius: 2px;
  padding: 3px 10px;
}
.svc h2 { font-family: var(--display); font-size: clamp(38px, 4.4vw, 58px); font-weight: 800; line-height: .98; margin-bottom: 18px; }
.svc__lead { font-size: 19px; color: var(--texte); margin-bottom: 14px; max-width: 34em; }
.svc__body { color: var(--texte-2); margin-bottom: 26px; max-width: 34em; }
.svc__media { aspect-ratio: 4 / 5; box-shadow: 0 0 0 3px var(--joint); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }

/* ══ PROCESSUS (page) ═════════════════════════ */
.process { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__side { position: sticky; top: calc(var(--nav-h) + 32px); }
.spy { list-style: none; display: grid; gap: 3px; background: var(--joint); border: 3px solid var(--joint); margin-bottom: 24px; }
.spy a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--texte-2);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s, background-color .25s;
}
.spy a::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-vif);
  box-shadow: 0 0 12px var(--glow);
  transform: scaleY(0);
  transition: transform .35s var(--ease);
}
.spy a b { font-family: var(--display); font-size: 20px; font-weight: 800; color: #5B6267; min-width: 14px; transition: color .25s; }
.spy a:hover { color: var(--texte); }
.spy a.is-active { color: var(--texte); background: var(--surface-2); }
.spy a.is-active::before { transform: none; }
.spy a.is-active b { color: var(--accent); }
.side-cta { background: var(--surface); border: 3px solid var(--joint); padding: 20px; }
.side-cta p { font-size: 15px; color: var(--texte-2); margin-bottom: 14px; }
.side-cta .btn { width: 100%; font-size: 18px; }

.timeline { position: relative; list-style: none; }
/* le rail se remplit de vert au fil du défilement */
.timeline__rail { position: absolute; left: 34px; top: 36px; bottom: 36px; width: 3px; background: var(--joint); }
.timeline__rail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-vif);
  box-shadow: 0 0 14px 1px var(--glow);
  transform-origin: top;
  transform: scaleY(var(--fill, 0));
}
.etape { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding-bottom: clamp(48px, 6vw, 80px); }
.etape:last-child { padding-bottom: 0; }
.etape__rond {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 3px solid var(--joint);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: #5B6267;
  transition: border-color .4s, color .4s, box-shadow .4s;
}
.etape.is-on .etape__rond { border-color: var(--accent); color: var(--accent-vif); box-shadow: 0 0 24px -2px var(--glow); }
.etape__corps { padding-top: 10px; }
.etape__kicker { font-size: 14px; font-weight: 600; color: var(--texte-2); margin-bottom: 6px; }
.etape h2 { font-family: var(--display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; line-height: 1; margin-bottom: 16px; }
.etape__texte { color: var(--texte-doux); max-width: 38em; margin-bottom: 20px; }
.etape .puces { margin-bottom: 20px; }
.duree {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texte);
  background: var(--surface);
  border: 1.5px solid var(--joint);
  border-radius: 2px;
  padding: 6px 12px;
}
.duree::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

/* ══ GALERIE (page) ═══════════════════════════ */
.cartes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.carte { background: var(--surface); display: flex; flex-direction: column; }
.carte__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--joint); }
.carte__duo .photo { aspect-ratio: 3 / 4; }
.carte__duo img { width: 100%; height: 100%; object-fit: cover; }
.carte__info { padding: 22px 24px 26px; border-top: 3px solid var(--joint); }
.carte__info h3 { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.carte__info p { color: var(--texte-2); font-size: 16px; }
.carte__meta { margin-top: 12px; font-size: 14px; color: var(--texte-2); display: flex; gap: 8px; align-items: center; }
.carte__meta::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

/* ══ À PROPOS (page) ══════════════════════════ */
.apropos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.apropos__visuel { position: relative; }
.apropos__visuel .photo { aspect-ratio: 4 / 5; box-shadow: 0 0 0 3px var(--joint); }
.apropos__visuel img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 3;
  background: var(--accent);
  color: var(--bg);
  padding: 16px 22px 18px;
}
.badge strong { display: block; font-family: var(--display); font-size: 52px; font-weight: 800; line-height: 1; }
.badge > span { font-size: 14px; font-weight: 600; }
.apropos__texte p { color: var(--texte-doux); margin-bottom: 18px; max-width: 36em; }
.apropos__texte strong { color: var(--texte); font-weight: 600; }
.apropos__texte .h2 { margin-bottom: 28px; }

.valeurs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.valeur { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.valeur .num { font-size: 96px; margin-bottom: 18px; }
.valeur h3 { font-family: var(--display); font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.valeur p { color: var(--texte-2); }

.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface); padding: 28px 28px 30px; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(48px, 5vw, 68px); font-weight: 800; line-height: 1; color: var(--texte); font-variant-numeric: tabular-nums; }
.stat > span { color: var(--texte-2); }

/* ══ FAQ (page) ═══════════════════════════════ */
.faq { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__cat { margin-bottom: clamp(48px, 6vw, 72px); }
.faq__cat h2 { font-family: var(--display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; line-height: 1; margin-bottom: 20px; }
.qr { list-style: none; }
.qr li { background: var(--surface); }
.qr__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--texte);
  cursor: pointer;
  transition: color .2s;
}
.qr__q:hover { color: var(--accent-vif); }
.qr__plus { position: relative; flex: none; width: 18px; height: 18px; }
.qr__plus::before,
.qr__plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.qr__plus::after { transform: rotate(90deg); }
.qr__q[aria-expanded="true"] { color: var(--accent-vif); }
.qr__q[aria-expanded="true"] .qr__plus::after { transform: rotate(0); }
.qr__r { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qr__r > div { overflow: hidden; }
.qr__r p { padding: 0 22px 22px; color: var(--texte-doux); max-width: 44em; }
.qr__q[aria-expanded="true"] + .qr__r { grid-template-rows: 1fr; }

/* ══ CONTACT (page) ═══════════════════════════ */
.contact { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.coord { list-style: none; }
.coord li { background: var(--surface); padding: 20px 22px; }
.coord b { display: block; font-size: 14px; font-weight: 600; color: var(--texte-2); margin-bottom: 4px; }
.coord a, .coord span { font-family: var(--display); font-size: 24px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.coord a:hover { color: var(--accent-vif); }
.contact__side { position: sticky; top: calc(var(--nav-h) + 32px); }
.contact__side p { color: var(--texte-2); font-size: 15px; margin-top: 16px; }

.formulaire { background: var(--surface); border: 3px solid var(--joint); padding: clamp(24px, 4vw, 48px); }
.formulaire h2 { font-family: var(--display); font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.formulaire > p { color: var(--texte-2); margin-bottom: 28px; }
.form-titre {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.form-titre::after { content: ''; flex: 1; height: 3px; background: var(--joint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .champ { margin-bottom: 0; }
.champ label { font-size: 14px; font-weight: 600; color: var(--texte-doux); }
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--texte);
  background: var(--bg);
  border: 1.5px solid var(--joint);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ input::placeholder, .champ textarea::placeholder { color: #6B7277; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 20px -6px var(--glow); }
.cases { display: grid; gap: 10px; }
.case {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--joint);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.case:hover { border-color: #4A5156; }
.case input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #5B6267;
  border-radius: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.case input::after {
  content: '';
  width: 10px;
  height: 5px;
  border: solid var(--bg);
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .2s var(--ease);
}
.case input:checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--glow); }
.case input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.case:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.formulaire .btn { width: 100%; margin-top: 12px; }
.form-note { font-size: 14px; color: var(--texte-2); margin-top: 14px; }
.form-success { display: none; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 0 40px -12px var(--glow); padding: clamp(28px, 4vw, 48px); }
.form-success h2 { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.form-success p { color: var(--texte-doux); }
.form-success__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 0 30px var(--glow);
}

/* ══ CTA ══════════════════════════════════════ */
.cta { padding: clamp(64px, 9vw, 112px) 0; }
.cta--suite { padding-top: 0; }
.cta__panel {
  position: relative;
  isolation: isolate;
  border-radius: 4px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  overflow: hidden;
}
/* bordure : une lumière verte fait le tour */
.cta__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: conic-gradient(from var(--angle), var(--joint) 0 70%, var(--accent-vif) 85%, var(--joint) 100%);
  animation: tour 6s linear infinite;
}
.cta__panel::after {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 2px;
  background: radial-gradient(60% 90% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface);
}
@keyframes tour { to { --angle: 360deg; } }
.cta .h2 { font-size: clamp(42px, 5.6vw, 76px); margin-bottom: 18px; }
.cta p { font-size: 19px; color: var(--texte-doux); max-width: 30em; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ══ FOOTER ═══════════════════════════════════ */
.footer { color: var(--texte-2); border-top: 3px solid var(--joint); padding: 56px 0 28px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer__desc { margin-top: 16px; max-width: 26em; }
.footer h2 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--texte); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--accent-vif); }
.footer dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.footer dt { color: var(--texte); font-weight: 600; }
.footer dd { overflow-wrap: anywhere; }
.footer__bottom { padding-top: 24px; border-top: 3px solid var(--joint); font-size: 14px; }

/* ══ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .nav__tel { display: none; }
  .service,
  .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__img { order: 0; }
  .service__img { min-height: 0; aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projet { grid-template-columns: 1fr 1fr; }
  .projet__texte { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: block; }
  .hero__grid, .svc__grid, .apropos, .cta__panel { grid-template-columns: 1fr; }
  .compare--hero { max-height: none; aspect-ratio: 4 / 4.4; }
  .compare--large { aspect-ratio: 4 / 4.4; --shift: 0cqw; }
  .svc:nth-of-type(even) .svc__media { order: 0; }
  .svc__media { aspect-ratio: 4 / 3.4; }
  .process, .faq, .contact { grid-template-columns: 1fr; }
  .process__side, .contact__side { position: static; }
  .faq__side { display: none; }
  .process__side { display: none; }
  .valeurs, .stats { grid-template-columns: 1fr; }
  .apropos__visuel .photo { aspect-ratio: 4 / 3.6; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__sub, .section__head p, .cta p, .page-head__sub, .svc__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .service__body { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps__track { top: -3px; bottom: -3px; left: -3px; right: auto; width: 3px; height: auto; }
  .steps__track::after { transform: scaleY(0); transform-origin: top; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px 20px; }
  .step .num { font-size: 48px; margin: 0; grid-row: span 2; }
  .svc-index { grid-template-columns: 1fr; }
  .etape { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
  .etape__rond { width: 52px; height: 52px; font-size: 24px; }
  .timeline__rail { left: 24.5px; top: 26px; bottom: 26px; }
  .etape__corps { padding-top: 4px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .champ { margin-bottom: 16px; }
  .footer__top { grid-template-columns: 1fr; }
  .tag { top: 10px; left: 10px; font-size: 16px; }
  .tag--droite { left: auto; right: 10px; }
  .qr__q { font-size: 20px; padding: 18px; }
  .qr__r p { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .line > span, .rise { transform: none; opacity: 1; }
  .js .rv, .js .rv-title { opacity: 1; transform: none; clip-path: none; }
  .js .photo img { opacity: 1; transform: none; }
  .traces rect { stroke-dashoffset: 0; stroke: rgba(255, 255, 255, .07); }
}

/* ============================================================
   DEUX SAISONS — éléments ajoutés pour le site hiver
   ============================================================ */

/* ── Bouton soleil / flocon (menu) ─────────────── */
.bascule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--texte-2);
  text-decoration: none;
  transition: color .2s;
}
.bascule:hover { color: var(--texte); }
.bascule__piste {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1.5px solid var(--joint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}
.bascule__piste svg {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--texte-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s;
}
.bascule__pastille {
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  transition: transform .45s var(--ease);
}
.bascule .bascule__soleil { stroke: var(--bg); }
.bascule:hover .bascule__pastille { transform: translateX(9px); }
.hiver .bascule__pastille { transform: translateX(29px); }
.hiver .bascule:hover .bascule__pastille { transform: translateX(20px); }
.hiver .bascule .bascule__soleil { stroke: var(--texte-2); }
.hiver .bascule .bascule__flocon { stroke: var(--bg); }

/* ── Passage d'une saison à l'autre ────────────── */
.passage {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg);
  clip-path: inset(0 0 0 100%);
  animation: passageG .75s var(--ease) forwards;
}
.passage::before { content: ''; position: absolute; inset: 0; background-image: var(--motif); opacity: .06; }
.passage svg {
  position: relative;
  width: 96px;
  height: 96px;
  fill: none;
  stroke: var(--accent-vif);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px var(--glow));
  opacity: 0;
  transform: scale(.7) rotate(-30deg);
  animation: passageIcone .6s var(--ease) .25s forwards;
}
.passage--ete { clip-path: inset(0 100% 0 0); animation-name: passageD; }
.passage__ligne {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 3px;
  margin-left: -1.5px;
  z-index: 301;
  background: #fff;
  animation: ligneG .75s var(--ease) forwards;
}
.passage__ligne--ete { left: 0; animation-name: ligneD; }
@keyframes passageG { to { clip-path: inset(0 0 0 0); } }
@keyframes passageD { to { clip-path: inset(0 0 0 0); } }
@keyframes ligneG { to { left: 0; } }
@keyframes ligneD { to { left: 100%; } }
@keyframes passageIcone { to { opacity: 1; transform: none; } }

/* ── Neige qui tombe (canvas) ──────────────────── */
canvas.neige { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; }

/* ── Blocs propres au site hiver ───────────────── */
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formule { background: var(--surface); padding: clamp(28px, 4vw, 44px); }
.formule .num { font-size: 64px; margin-bottom: 18px; }
.formule h3 { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.formule__pour { color: var(--accent-vif); font-weight: 600; margin-bottom: 14px; }
.formule > p:not(.formule__pour) { color: var(--texte-2); margin-bottom: 18px; }
.illu { background: #10151B; }
.illu img { width: 100%; height: 100%; object-fit: cover; }

/* ══ PAGE DE CHOIX DE SAISON ══════════════════ */
.choix {
  --s: .5;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-columns: calc(var(--s) * 100%) minmax(0, 1fr);
  background: #0D1013;
  overflow: hidden;
}
.saison {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  overflow: hidden;
  color: var(--texte);
  text-decoration: none;
}
.saison:focus-visible { outline: none; }
.saison--hiver { justify-content: flex-end; text-align: right; }
/* Les deux scènes (la même maison) sont alignées sur tout l'écran :
   la ligne de saison agit comme le comparateur avant / après */
.saison__fond { position: absolute; top: 0; bottom: 0; left: 0; width: var(--W, 100vw); z-index: -3; }
.saison--hiver .saison__fond { left: auto; right: 0; }
.saison__fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.saison::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to top, rgba(8, 10, 12, .92) 0%, rgba(8, 10, 12, .62) 34%, rgba(8, 10, 12, .15) 60%, transparent 76%);
}
/* au survol, la couleur de la saison monte du coin */
.saison::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(75% 65% at 0% 100%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .7s;
  pointer-events: none;
}
.saison--hiver::after { background: radial-gradient(75% 65% at 100% 100%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%); }
.saison:hover::after, .saison:focus-visible::after { opacity: 1; }
.saison canvas.neige { z-index: -1; }

.saison__etiquette {
  position: absolute;
  top: 150px;
  left: clamp(28px, 5vw, 72px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: rgba(10, 13, 16, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 3px;
}
.saison--hiver .saison__etiquette { left: auto; right: clamp(28px, 5vw, 72px); }
.saison__etiquette svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-vif); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: pivote 16s linear infinite; }

.saison__contenu {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  padding: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(40px, 8vh, 96px);
}
.saison__badge {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 30%, rgba(10, 13, 16, .6));
  border: 1.5px solid var(--accent-vif);
  border-radius: 2px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.saison__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-vif); box-shadow: 0 0 10px var(--accent-vif); animation: pouls 2s ease infinite; }
@keyframes pouls { 50% { opacity: .35; } }
.saison.is-maintenant .saison__badge { display: inline-flex; }
.saison__mot {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(84px, 11vw, 184px);
  line-height: .8;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
  margin-bottom: 18px;
  transform-origin: left bottom;
  transition: text-shadow .6s, transform .6s var(--ease), color .6s;
}
.saison--hiver .saison__mot { transform-origin: right bottom; }
.saison:hover .saison__mot,
.saison:focus-visible .saison__mot { color: var(--accent-vif); text-shadow: 0 0 60px var(--glow), 0 6px 40px rgba(0, 0, 0, .5); transform: scale(1.04); }
.saison__titre { display: block; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.saison__desc { display: block; font-size: 17px; color: #DDE2E5; max-width: 26em; margin-bottom: 16px; }
.saison--hiver .saison__desc { margin-left: auto; }
.saison__puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.saison--hiver .saison__puces { justify-content: flex-end; }
.saison__puces span {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  color: #fff;
  background: rgba(10, 13, 16, .5);
  border: 1px solid color-mix(in srgb, var(--accent-vif) 45%, transparent);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.saison:focus-visible .btn { outline: 3px solid var(--accent); outline-offset: 3px; }

.choix__ligne {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--s) * 100%);
  width: 3px;
  margin-left: -1.5px;
  z-index: 5;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, .35);
  pointer-events: none;
}
.choix__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
.choix__knob svg { width: 22px; height: 22px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.choix__knob svg:first-of-type { stroke: #2E9A3B; animation: pivote 14s linear infinite; }
.choix__knob svg:last-of-type { stroke: #2A8CC4; animation: pivote 20s linear infinite reverse; }
.choix__knob i { width: 1.5px; height: 24px; background: #C9CED2; }
@keyframes pivote { to { transform: rotate(360deg); } }

.choix__haut {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.choix__marque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 26px 12px;
  text-align: center;
  background: rgba(10, 13, 16, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
}
.choix__marque .logo__mot { font-size: 34px; }
.choix__marque .logo__sub { font-size: 10.5px; letter-spacing: 3.6px; padding-left: 3.6px; }
.choix__marque h1 { font-size: 14px; font-weight: 500; color: var(--texte-doux); }
.choix__tel {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  pointer-events: auto;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(10, 13, 16, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 3px;
}
.choix__tel:hover { border-color: #fff; }

@media (max-width: 1240px) {
  .bascule__txt { display: none; }
}
@media (max-width: 1080px) {
  .steps.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .formules { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .choix { grid-template-columns: 1fr; grid-template-rows: calc(var(--s) * 100%) minmax(0, 1fr); min-height: 640px; }
  /* empilé : chaque moitié montre la scène entière (maison et allée) */
  .saison__fond, .saison--hiver .saison__fond { inset: 0; width: auto; height: auto; }
  .saison__fond img { object-position: center 85%; }
  .saison--hiver { justify-content: flex-start; text-align: left; }
  .saison--hiver .saison__desc { margin-left: 0; }
  .saison--hiver .saison__puces { justify-content: flex-start; }
  .saison--hiver::after { background: radial-gradient(75% 65% at 0% 100%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%); }
  .saison__etiquette { display: none; }
  .saison__contenu { padding: 20px 22px 24px; }
  .saison__mot { font-size: clamp(56px, 17vw, 92px); margin-bottom: 8px; }
  .saison__titre { font-size: 22px; }
  .saison__desc { font-size: 15px; margin-bottom: 10px; }
  .saison__puces { gap: 6px; margin-bottom: 14px; }
  .saison__puces span { font-size: 12px; padding: 4px 9px; }
  .saison .btn { font-size: 17px; padding: 10px 18px; }
  .choix__ligne { top: calc(var(--s) * 100%); bottom: auto; left: 0; right: 0; width: auto; height: 3px; margin: -1.5px 0 0; }
  .choix__knob { left: auto; right: 20px; width: 58px; height: 58px; margin: -29px 0 0; gap: 4px; }
  .choix__knob svg { width: 18px; height: 18px; }
  .choix__haut { padding-top: 12px; }
  .choix__marque { padding: 10px 18px 9px; gap: 6px; }
  .choix__marque .logo__mot { font-size: 28px; }
  .choix__marque h1 { font-size: 12px; }
  .choix__tel { display: none; }
}
@media (max-width: 600px) {
  .steps.steps--3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .passage, .passage__ligne { display: none; }
}

/* ============================================================
   TÉLÉPHONE ET TABLETTE — même site, pensé pour le pouce
   (rien ici ne touche l'affichage sur ordinateur)
   ============================================================ */
a, button, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }

/* Barre d'action collée en bas (créée par le script) */
.barre { display: none; }

@media (max-width: 900px) {
  .btn:active { transform: scale(.97); }

  /* Le bouton soleil / flocon reste dans la barre du haut */
  .nav__in { gap: 14px; }
  .nav__right { display: flex; margin-left: auto; gap: 0; }
  .nav__right .nav__tel, .nav__right .btn, .bascule__txt { display: none; }

  /* Menu plein écran, liens en cascade */
  .nav__mobile {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h) - 3px);
    height: calc(100svh - var(--nav-h) - 3px);
    display: flex;
    flex-direction: column;
    padding: 16px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s linear .4s;
  }
  .nav__mobile::before { content: ''; position: absolute; inset: 0; background-image: var(--motif); opacity: .04; pointer-events: none; }
  .nav__mobile.is-open { display: flex; opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav__mobile a:not(.btn) {
    position: relative;
    font-size: 34px;
    padding: 12px 0;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity .4s, transform .55s var(--ease), color .2s;
  }
  .nav__mobile.is-open a:not(.btn) { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
  .nav__mobile a:not(.btn):active { color: var(--accent-vif); }
  .nav__mobile .btn { position: relative; margin-top: 26px; padding: 16px; font-size: 20px; }
  .nav__mobile a.nav__mobile-tel {
    font-family: var(--text);
    font-size: 17px;
    font-weight: 600;
    color: var(--texte-2);
    border: 0;
    text-align: center;
    padding: 16px 0 0;
  }
  html.menu-ouvert body { overflow: hidden; }

  .barre {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 45;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--joint);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
    transform: translateY(calc(100% + 30px));
    transition: transform .45s var(--ease);
  }
  .barre.is-visible { transform: none; }
  html.menu-ouvert .barre { transform: translateY(calc(100% + 30px)); }
  .barre .btn { font-size: 18px; padding: 12px 14px; }
  .barre__tel {
    display: grid;
    place-items: center;
    border: 2px solid color-mix(in srgb, var(--accent-vif) 55%, transparent);
    border-radius: 2px;
    color: var(--accent-vif);
  }
  .barre__tel svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body.a-barre { padding-bottom: 84px; }
}

@media (max-width: 600px) {
  /* Accueil : le comparateur arrive juste sous le titre */
  .hero { padding-top: 28px; }
  .hero__grid { gap: 0; }
  .hero__grid > div:first-child { display: contents; }
  .hero__title { order: 1; margin-bottom: 22px; }
  .hero__grid > .compare-fig { order: 2; margin-bottom: 30px; }
  .hero__sub { order: 3; }
  .hero__actions { order: 4; }
  .proof { order: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .proof strong { font-size: 26px; }
  .proof p { font-size: 14px; line-height: 1.35; }

  /* Tracés d'en-tête : dans le coin, loin du texte */
  .traces {
    -webkit-mask-image: linear-gradient(155deg, transparent 50%, #000 100%);
    mask-image: linear-gradient(155deg, transparent 50%, #000 100%);
  }

  /* Pied de page : deux colonnes et des liens faciles à toucher */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__top > div:first-child, .footer__top > div:last-child { grid-column: 1 / -1; }
  .footer ul { gap: 0; }
  .footer ul a { display: block; padding: 8px 0; }
  .footer dd a { display: inline-block; padding: 6px 0; }
  .footer dl { align-items: center; }

  /* Liens texte un peu plus hauts */
  .lien { display: inline-block; padding: 6px 0; }
  .section__head { margin-bottom: 30px; }
}

/* ── Page de choix : vraie photo côté été ─────────
   Le cadre de la photo garde une taille fixe (la largeur maximale du panneau) :
   quand la ligne bouge, la photo ne zoome pas, elle se dévoile. */
.saison--ete .saison__fond--photo {
  top: 0;
  bottom: 0;
  left: 0;
  width: max(64vw, calc(var(--s) * var(--W, 100vw)));
}
.saison--ete .saison__fond--photo img { object-position: center 58%; }
@media (max-width: 760px) {
  .saison--ete .saison__fond--photo {
    inset: 0 0 auto 0;
    width: auto;
    height: max(calc(var(--H, 100svh) * .68), calc(var(--s) * var(--H, 100svh)));
  }
  .saison--ete .saison__fond--photo img { object-position: center 62%; }
}

/* Un numéro de téléphone ne se coupe jamais en deux */
a[href^="tel"] { white-space: nowrap; }

@media (max-width: 600px) {
  /* Le grand titre de l'accueil tient sur les plus petits écrans (320 px) */
  .hero__title { font-size: clamp(42px, 14vw, 64px); }
  .page-head__title { font-size: clamp(42px, 13.5vw, 64px); }
  /* Liens de contact plus faciles à toucher */
  .coord a { display: inline-block; padding: 8px 0; }
}

@media (max-width: 600px) {
  /* Le comparateur du haut s'adapte à la largeur des plus petits écrans */
  .compare--hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}
