/* La page Sites : la refonte complète. En tête l'avant/après, puis ce que la refonte change pour l'entreprise. */
.refonte {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding: calc(var(--nav) + var(--haut) + 2.5rem) var(--bord) clamp(3rem, 6vw, 5rem);
}

.refonte-tete {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.refonte h1 { font-size: min(6.4vw, 7.5rem); }
.refonte-appel { display: grid; gap: 1.5rem; }

/* L'adresse du site actuel : elle part préremplie vers la demande de démo. */
.refonte-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.refonte-form input {
  flex: 1 1 13rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--pilule);
  background: var(--filet-encre);
  color: var(--blanc);
  font: inherit;
  font-size: 1rem; /* 16 px au minimum : sinon iOS zoome dans le champ */
  transition: border-color var(--rapide) ease;
}

.refonte-form input::placeholder { color: var(--gris-clair); opacity: 1; }
.refonte-form input:focus { outline: none; border-color: var(--jaune); }
.sur-jaune .refonte-form input { background: var(--blanc); color: var(--encre); }
.sur-jaune .refonte-form input::placeholder { color: var(--gris); }
.sur-jaune .refonte-form input:focus { border-color: var(--encre); }

/* ---------- Ce qui change : une ligne par gain, le texte d'un côté, la preuve de l'autre ---------- */
.gain {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: var(--espace) var(--bord);
}

.gain-texte { display: grid; gap: 1.25rem; justify-items: start; }
.gain-texte p { max-width: 30rem; }
.gain .reserve { justify-self: end; width: min(100%, 44rem); }

/* ---------- Rapide : la même page, ouverte sur deux téléphones ---------- */
.vitesse {
  display: flex !important; /* [data-revele] passe l'élément en grille */
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.vit-tel { display: grid; justify-items: center; gap: 0.7rem; width: min(44%, 17rem); }
.vit-qui { font-weight: 800; }
.vit-ecran { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 720 / 1431; box-shadow: var(--ombre); } /* la coque d'iPhone vient d'appareils.css */

/* La barre de Safari, en verre, au bas de l'écran des deux téléphones */
.vit-ecran::before {
  content: "chauffage-exemple.be";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 7.5cqw;
  translate: -50% 0;
  padding: 2.4cqw 7cqw;
  border-radius: var(--pilule);
  background: color-mix(in srgb, var(--blanc) 78%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--encre) 8%, transparent), 0 2cqw 5cqw -2cqw color-mix(in srgb, var(--encre) 35%, transparent);
  color: var(--encre);
  font: 500 3.3cqw/1 var(--police);
  white-space: nowrap;
}

/* L'écran : un vrai site qu'on fait défiler, au doigt ou à la molette. */
.vit-page,
.vit-roue { position: absolute; inset: 3.64cqw 4.33cqw; border-radius: 12.5cqw; overflow: hidden; }

.vit-page {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--blanc);
}

.vit-page::-webkit-scrollbar { display: none; }

.vit-page .tel-etat {
  position: sticky;
  top: 0;
  z-index: 2;
  font: 600 3.4cqw/1 var(--police);
  color: var(--encre);
}

.vit-page .tel-etat .ico { width: 3.6cqw; height: 3.6cqw; }

.vit-roue {
  z-index: 1;
  display: grid;
  place-items: center;
  background: var(--blanc);
}

.vit-roue::after {
  content: "";
  width: 2rem;
  aspect-ratio: 1;
  border: 3px solid var(--filet);
  border-top-color: var(--encre);
  border-radius: 50%;
  animation: vit-tourne 0.8s linear infinite;
}

@keyframes vit-tourne { to { rotate: 1turn; } }

/* ---------- Avant : le site de 2011 tel quel, une page de bureau réduite à la largeur du téléphone (classes av- de compare.css) ---------- */
.vit-vieux {
  --px: calc(91.34cqw / 960);
  --av-page: #ffffff;
  --av-fond: #e6e8eb;
  --av-bleu: #1d4f8f;
  --av-bleu-clair: #3b7cc4;
  --av-bleu-nuit: #163a69;
  --av-texte: #333333;
  --av-gris: #777777;
  --av-trait: #c5ccd6;
  --av-boite: #eef2f7;
  background: var(--av-fond);
  color: var(--av-texte);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: calc(11 * var(--px));
  line-height: 1.5;
}

.vit-vieux .tel-etat { background: var(--blanc); }
.vit-vieux .av-page { height: auto; margin: 0; border: 0; }
.vit-vieux .av-galerie { display: flex; gap: calc(10 * var(--px)); margin-bottom: calc(9 * var(--px)); }

.vit-vieux .av-galerie img {
  float: none;
  width: calc(150 * var(--px));
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.av-form {
  display: grid;
  grid-template-columns: calc(110 * var(--px)) calc(280 * var(--px));
  gap: calc(6 * var(--px));
  align-items: center;
}

.av-form i { height: calc(18 * var(--px)); border: 1px solid #9aa3ad; background: #fff; }
.av-form i.haut { height: calc(60 * var(--px)); }

.av-form b {
  justify-self: start;
  padding: calc(2 * var(--px)) calc(12 * var(--px));
  border: 1px solid #8a8f96;
  background: linear-gradient(#fbfbfb, #dcdfe3);
  font-weight: normal;
}

/* ---------- Après : le même artisan, un site pensé pour le pouce. Tout en largeur d'écran (cqw). ---------- */
.vs {
  --vs-encre: #0d2240;
  --vs-doux: #4a5b73;
  --vs-bleu: #1b56e0;
  --vs-fond: #f2f5fa;
  color: var(--vs-encre);
  font: 400 3.6cqw/1.4 var(--police);
}

.vs-barre {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--blanc) 84%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}

.vs .tel-etat { position: static; }
.vs-nav { display: flex; justify-content: space-between; align-items: center; padding: 1cqw 4.5cqw 3cqw; }
.vs-logo { display: flex; align-items: center; gap: 2cqw; font-size: 3.9cqw; font-weight: 700; letter-spacing: -0.01em; }

.vs-logo i,
.vs-appel,
.vs-services i { display: grid; place-items: center; flex: none; }

.vs-logo i { width: 7cqw; aspect-ratio: 1; border-radius: 2.2cqw; background: var(--vs-bleu); color: var(--blanc); }
.vs-appel { width: 8.6cqw; aspect-ratio: 1; border-radius: 50%; background: var(--vs-fond); }
.vs .ico { width: 4cqw; height: 4cqw; }

.vs-hero { margin: 0 3.5cqw; border-radius: 6cqw; overflow: hidden; }
.vs-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 0.86; object-fit: cover; object-position: 76% 30%; }

.vs-tete { display: grid; gap: 2.8cqw; padding: 5.5cqw 5cqw 7cqw; }
.vs-titre { font-size: 7.4cqw; font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.vs-chapo { color: var(--vs-doux); }
.vs-actions { display: grid; gap: 2cqw; margin-top: 1.5cqw; }

.vs-bouton {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8cqw;
  padding: 3.4cqw;
  border-radius: var(--pilule);
  background: var(--vs-bleu);
  color: var(--blanc);
  font-weight: 600;
}

.vs-bouton.clair { background: var(--vs-fond); color: var(--vs-encre); }

.vs-services { display: grid; gap: 2.2cqw; padding: 0 3.5cqw 7cqw; }

.vs-services li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 3.2cqw;
  align-items: center;
  padding: 3.6cqw;
  border-radius: 5cqw;
  background: var(--vs-fond);
}

.vs-services i { grid-row: span 2; width: 10cqw; aspect-ratio: 1; border-radius: 3.2cqw; background: var(--blanc); color: var(--vs-bleu); }
.vs-services b { font-size: 3.9cqw; }
.vs-services span { color: var(--vs-doux); font-size: 3.2cqw; line-height: 1.3; }

.vs-resa {
  display: grid;
  gap: 2.6cqw;
  margin: 0 3.5cqw 7cqw;
  padding: 4.6cqw;
  border-radius: 5.5cqw;
  background: var(--vs-encre);
  color: var(--blanc);
}

.vs-h { font-size: 4.3cqw; font-weight: 700; letter-spacing: -0.01em; }
.vs-jours,
.vs-heures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqw; }

.vs-jours span,
.vs-heures span {
  display: grid;
  place-items: center;
  padding: 2.2cqw 0;
  border-radius: 2.8cqw;
  background: color-mix(in srgb, var(--blanc) 10%, transparent);
  font-size: 3cqw;
}

.vs-jours b { font-size: 4.6cqw; line-height: 1.1; }
.vs-resa .choisi { background: var(--vs-bleu); }
.vs-confirme { display: flex; align-items: center; gap: 1.6cqw; color: #bccaea; font-size: 3.2cqw; }

.vs-tuile { margin: 0 3.5cqw 7cqw; border-radius: 5.5cqw; overflow: hidden; background: var(--vs-fond); }
.vs-tuile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.vs-tuile figcaption { display: grid; gap: 0.6cqw; padding: 3.8cqw 4.2cqw 4.4cqw; }
.vs-tuile span { color: var(--vs-doux); font-size: 3.2cqw; }

.vs-horaires { display: grid; gap: 2.2cqw; margin: 0 5cqw 8cqw; }

.vs-horaires p:not(.vs-h) {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2.2cqw;
  border-bottom: 1px solid #e1e7f0;
  font-size: 3.4cqw;
}

.vs-horaires span { color: var(--vs-doux); }

.vs-pied {
  display: grid;
  gap: 1cqw;
  padding: 6cqw 5cqw 24cqw; /* la barre de Safari flotte par-dessus */
  background: var(--vs-encre);
  color: #c9d3e6;
  font-size: 3.2cqw;
}

.vs-pied b { color: var(--blanc); font-size: 3.9cqw; }

.vit-barre { width: 100%; height: 6px; border-radius: var(--pilule); background: color-mix(in srgb, var(--encre) 14%, transparent); overflow: hidden; }
.vit-barre i { display: block; height: 100%; border-radius: inherit; background: var(--encre); transform-origin: 0 50%; scale: 1 1; }

/* Le chargement se joue à l'arrivée, puis sur « Revoir ». L'ancien site fait attendre, le nouveau s'affiche aussitôt. */
.js .vitesse:not(.vu) .vit-barre i { scale: 0 1; }
.js .vitesse:not(.vu) .vit-roue { opacity: 1; }
.vitesse.vu .vit-roue { opacity: 0; transition: opacity var(--rapide) linear var(--attente); }
.vitesse.vu .vit-barre i { animation: vit-charge var(--attente) ease-out both; }
.vit-tel.vit-avant { --attente: 3.2s; }
.vit-tel.vit-apres { --attente: 0.45s; }

@keyframes vit-charge { from { scale: 0 1; } }

/* ---------- Trouvé près de chez vous : une fiche Google ---------- */
.fiche-g {
  justify-self: end;
  width: min(100%, 30rem);
  border-radius: var(--r);
  background: var(--blanc);
  color: var(--encre);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.fg-carte {
  position: relative;
  height: 11rem;
  background: #e9edf1;
}

.fg-rue { position: absolute; background: var(--blanc); }
.fg-rue.r1 { left: -10%; right: -10%; top: 42%; height: 0.9rem; rotate: -8deg; }
.fg-rue.r2 { top: -10%; bottom: -10%; left: 30%; width: 0.7rem; rotate: 12deg; }
.fg-rue.r3 { top: -10%; bottom: -10%; left: 74%; width: 0.6rem; rotate: -20deg; }

.fg-repere {
  position: absolute;
  left: 52%;
  top: 30%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border-radius: 50% 50% 50% 0;
  background: var(--encre);
  rotate: -45deg;
  box-shadow: var(--ombre);
}

.fg-repere .mascotte { --m: 1.8rem; --coque: var(--blanc); rotate: 45deg; }
.fg-repere.autre { width: 1.1rem; background: #9aa3ad; box-shadow: none; }
.fg-repere.a1 { left: 18%; top: 62%; }
.fg-repere.a2 { left: 82%; top: 22%; }

.fg-panneau { display: grid; gap: 0.35rem; padding: 1.25rem 1.4rem 1.4rem; }
.fg-nom { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.fg-genre { color: var(--gris); }
.fg-ouvert b { font-weight: 600; }

.fg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.fg-actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--pilule);
  box-shadow: inset 0 0 0 1px var(--filet);
  font-size: 0.875rem;
  font-weight: 600;
}

.fg-actions .jaune { background: var(--jaune); box-shadow: none; }
.fg-actions .ico { width: 1rem; height: 1rem; }
.fg-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.fg-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.6rem; }

/* ---------- Le déroulé ---------- */
.etapes-refonte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.etapes-refonte li {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--encre);
}

.etapes-refonte h3 { font-weight: 800; }

.er-ico {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--jaune);
}

.er-ico .ico { width: 1.4rem; height: 1.4rem; }

.refonte-fin {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  padding: clamp(3.5rem, 7vw, 6rem) var(--bord);
}

.refonte-fin .refonte-form { width: min(100%, 36rem); }

@media (max-width: 60rem) {
  .refonte-tete,
  .gain { grid-template-columns: minmax(0, 1fr); }
  .refonte h1 { font-size: min(12vw, 5rem); }
  .gain .reserve,
  .fiche-g { justify-self: stretch; }
  .etapes-refonte { grid-template-columns: minmax(0, 1fr); }
}
