/* Agence Rapide : base blanche et sobre, un bleu franc, un dégradé bleu-violet réservé au logo et aux halos.
   Police : Manrope (OFL). Animations : transform et opacity seulement, coupées avec prefers-reduced-motion. */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --encre: #0f1a2e;
  --nuit: #0b1226;
  --texte-2: #4b5568;
  --fond: #ffffff;
  --gris: #f4f6fa;
  --ligne: #e3e7ef;
  --accent: #2448e8;
  --accent-fonce: #1b37b8;
  --accent-pale: #eaf0ff;
  --violet: #6a3cf0;
  --degrade: linear-gradient(135deg, #2448e8 0%, #6a3cf0 100%);
  --rouge: #c8322c;
  --vert: #1a7f4b;
  --rayon: 16px;
  --rayon-btn: 10px;
  --largeur: 1200px;
  --marge: clamp(20px, 5vw, 40px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent-pale);
}

.saut {
  position: absolute;
  left: -9999px;
}
.saut:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--fond);
  padding: 8px 16px;
}

.cadre {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  text-decoration: none;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo svg {
  width: 36px;
  height: 36px;
  transition: transform 0.4s var(--sortie);
}
.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
}
.logo .mot {
  font-weight: 400;
}
.logo .mot b {
  font-weight: 600;
}

/* ---------- boutons ---------- */
.bouton {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--rayon-btn);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--sortie), box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -10px rgba(36, 72, 232, 0.7);
}
.bouton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--sortie);
}
.bouton:hover {
  background: var(--accent-fonce);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(36, 72, 232, 0.8);
}
.bouton:hover::after {
  transform: translateX(120%);
}
.bouton svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--sortie);
}
.bouton:hover svg {
  transform: translateX(3px);
}
.bouton.petit {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}
.bouton.secondaire {
  background: var(--fond);
  color: var(--accent);
  border: 1px solid var(--ligne);
  box-shadow: none;
}
.bouton.secondaire:hover {
  background: var(--accent-pale);
  border-color: var(--accent);
}
.lien {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid var(--ligne);
  transition: border-color 0.2s ease;
}
.lien:hover {
  border-color: var(--accent);
}

/* ---------- barre ---------- */
.barre {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.barre.defile {
  border-color: var(--ligne);
  box-shadow: 0 6px 24px -18px rgba(15, 26, 46, 0.35);
}
.barre .cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.barre nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.barre nav a:not(.bouton) {
  position: relative;
  color: var(--texte-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.barre nav a:not(.bouton)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--sortie);
}
.barre nav a:not(.bouton):hover {
  color: var(--encre);
}
.barre nav a:not(.bouton):hover::after {
  transform: scaleX(1);
}

/* ---------- accueil ---------- */
.accueil {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 8vw, 112px);
  background: var(--fond);
}
.accueil::before {
  /* trame de points, estompée vers les bords */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(15, 26, 46, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.halo {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}
.halo.un {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -140px;
  background: #8ea2ff;
  animation: flotte 18s ease-in-out infinite alternate;
}
.halo.deux {
  width: 420px;
  height: 420px;
  right: 22%;
  bottom: -220px;
  background: #b9a4ff;
  animation: flotte 22s ease-in-out infinite alternate-reverse;
}
@keyframes flotte {
  to {
    transform: translate(-80px, 60px) scale(1.12);
  }
}
.accueil .cadre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  color: var(--texte-2);
}
.pastille i {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 0 0 rgba(26, 127, 75, 0.5);
  animation: pouls 2s ease-out infinite;
}
@keyframes pouls {
  70% {
    box-shadow: 0 0 0 8px rgba(26, 127, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 127, 75, 0);
  }
}
.accueil h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  max-width: 16ch;
}
.accueil h1 .degrade {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accueil .sous-titre {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--texte-2);
  max-width: 34em;
}
.accueil .sous-titre strong {
  color: var(--encre);
  font-weight: 600;
}
.accueil .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.accueil .precision {
  margin-top: 18px;
  font-size: 15px;
  color: var(--texte-2);
}

/* Ouverture orchestrée : mots du titre, puis le reste. */
.js .entree {
  opacity: 0;
  transform: translateY(18px);
  animation: monte 0.9s var(--sortie) forwards;
  animation-delay: var(--d, 0s);
}
.js h1 .mot-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: monte 0.8s var(--sortie) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes monte {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- visuel avant / après ---------- */
.ecrans {
  position: relative;
  padding: 10px 28px 36px 0;
}
.js .ecrans {
  opacity: 0;
  transform: translateY(30px) rotate(1deg) scale(0.97);
  animation: pose 1.1s var(--sortie) 0.35s forwards;
}
@keyframes pose {
  to {
    opacity: 1;
    transform: none;
  }
}
.navigateur {
  position: relative;
  background: #fff;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: 0 40px 80px -40px rgba(15, 26, 46, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}
.navigateur .onglet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ligne);
  background: var(--gris);
}
.points {
  display: flex;
  gap: 6px;
}
.points i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3d8e3;
}
.adresse {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 30px;
  background: #fff;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  font-size: 13px;
  color: var(--texte-2);
}
.adresse span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.adresse svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.adresse .mauvaise {
  color: var(--rouge);
}
.adresse .mauvaise em {
  font-style: normal;
  font-weight: 600;
}
.adresse .bonne svg {
  color: var(--vert);
}
.adresse b {
  color: var(--encre);
  font-weight: 600;
}
.adresse .bonne {
  opacity: 0;
}
.apres .adresse .bonne {
  opacity: 1;
}
.apres .adresse .mauvaise {
  opacity: 0;
}

.vues {
  display: grid;
}
.vues > * {
  grid-area: 1 / 1;
}
.vue-apres {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--sortie);
}
.apres .vue-apres {
  clip-path: inset(0 0 0 0);
}
.balayage {
  position: relative;
  z-index: 2;
  width: 3px;
  justify-self: start;
  background: var(--degrade);
  box-shadow: 0 0 24px 6px rgba(106, 60, 240, 0.45);
  opacity: 0;
  transform: translateX(-10px);
}
.apres .balayage {
  animation: balaie 1.4s var(--sortie) forwards;
}
@keyframes balaie {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--largeur-vue, 560px));
  }
}

/* L'ancien site : serré, daté. */
.vue-avant {
  padding: 18px 20px 22px;
  background: #f3f0e6;
  font-family: 'Times New Roman', Times, serif;
  color: #3b3b3b;
}
.vue-avant .vieux-titre {
  font-size: 22px;
  color: #7a1f1f;
  text-decoration: underline;
  margin-bottom: 6px;
}
.vue-avant .vieux-menu {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #1a0dab;
  text-decoration: underline;
}
.vue-avant .vieux-corps {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}
.vue-avant .vieille-photo {
  height: 80px;
  background: repeating-linear-gradient(45deg, #d9d3c0 0 6px, #cfc8b2 6px 12px);
  border: 2px ridge #bbb;
}
.vue-avant p {
  font-size: 12px;
  line-height: 1.35;
}
.vue-avant .compteur {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 6px;
  background: #000;
  color: #3f3;
  font-family: monospace;
  font-size: 11px;
}
.vue-avant .vieux-bas {
  margin-top: 14px;
  font-size: 11px;
  color: #777;
}

/* Le nouveau site. */
.vue-apres {
  padding: 20px 22px 24px;
  background: #fff;
}
.vue-apres .entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.vue-apres .nom {
  font-weight: 600;
  font-size: 15px;
}
.vue-apres .menu {
  display: flex;
  gap: 10px;
}
.vue-apres .menu i,
.vue-apres .ligne {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--ligne);
}
.vue-apres .menu i {
  width: 34px;
}
.vue-apres .bandeau {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
}
.vue-apres .titre {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.vue-apres .ligne + .ligne {
  margin-top: 8px;
}
.vue-apres .mini-bouton {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.vue-apres .photo {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #dfe6ff 0%, #ece4ff 100%);
  display: grid;
  place-items: center;
  color: #8ea2ff;
}
.vue-apres .photo svg {
  width: 44px;
  height: 44px;
}
.vue-apres .cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.vue-apres .cartes span {
  display: block;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 12px;
}
.vue-apres .cartes .ligne {
  width: 70%;
}
.vue-apres .cartes .ligne + .ligne {
  width: 90%;
}

.telephone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  max-width: 160px;
  background: #fff;
  border: 6px solid var(--encre);
  border-radius: 26px;
  padding: 18px 12px 16px;
  box-shadow: 0 24px 48px -20px rgba(15, 26, 46, 0.5);
  opacity: 0;
  transform: translateY(40px) rotate(4deg);
  transition: opacity 0.8s var(--sortie) 0.6s, transform 0.8s var(--sortie) 0.6s;
}
.apres .telephone {
  opacity: 1;
  transform: rotate(4deg);
}
.telephone .nom {
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 10px;
}
.telephone .photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #dfe6ff 0%, #ece4ff 100%);
  margin-bottom: 10px;
}
.telephone .titre {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.telephone .ligne {
  height: 6px;
  border-radius: 3px;
  background: var(--ligne);
}
.telephone .ligne + .ligne {
  margin-top: 6px;
  width: 80%;
}
.telephone .mini-bouton {
  margin-top: 12px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
}

/* Badges qui apparaissent après la transformation. */
.badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ligne);
  box-shadow: 0 14px 30px -16px rgba(15, 26, 46, 0.45);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.6s var(--sortie), transform 0.6s var(--sortie);
}
.badge svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
}
.badge.b1 {
  left: -22px;
  top: 30%;
}
.badge.b2 {
  left: 8%;
  bottom: 4px;
}
.badge.b3 {
  right: 14%;
  top: -6px;
}
.apres .badge {
  opacity: 1;
  transform: none;
}
.apres .badge.b1 {
  transition-delay: 1s;
  animation: oscille 5s ease-in-out 1.6s infinite;
}
.apres .badge.b2 {
  transition-delay: 1.2s;
  animation: oscille 6s ease-in-out 1.8s infinite;
}
.apres .badge.b3 {
  transition-delay: 1.4s;
  animation: oscille 5.5s ease-in-out 2s infinite;
}
@keyframes oscille {
  50% {
    transform: translateY(-6px);
  }
}

.bascule {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: #fff;
}
.bascule button {
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--texte-2);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.bascule button[aria-pressed='true'] {
  background: var(--encre);
  color: #fff;
}

/* ---------- repères ---------- */
.reperes {
  border-block: 1px solid var(--ligne);
  background: var(--fond);
}
.reperes ul {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 28px;
}
.reperes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.reperes svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

/* ---------- bandeau des métiers ---------- */
.metiers {
  padding-block: 28px;
  background: var(--gris);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.metiers .piste {
  display: flex;
  width: max-content;
  animation: defile 45s linear infinite;
}
.metiers:hover .piste {
  animation-play-state: paused;
}
.metiers ul {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}
.metiers li {
  padding: 10px 18px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
@keyframes defile {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}
.section.grise {
  background: var(--gris);
}
.tete {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.tete h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}
.tete p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--texte-2);
}
.suite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(36px, 5vw, 48px);
}
.suite p {
  color: var(--texte-2);
}

/* Apparition au défilement. */
.js [data-apparait] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--sortie), transform 0.9s var(--sortie);
  transition-delay: var(--d, 0s);
}
.js [data-apparait].vu {
  opacity: 1;
  transform: none;
}

/* Services : halo qui suit la souris. */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.4s var(--sortie), box-shadow 0.4s var(--sortie);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(36, 72, 232, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service:hover {
  border-color: #c5d0fb;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -30px rgba(36, 72, 232, 0.55);
}
.service:hover::before {
  opacity: 1;
}
.service .icone {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--degrade);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 20px -10px rgba(106, 60, 240, 0.7);
  transition: transform 0.4s var(--sortie);
}
.service:hover .icone {
  transform: rotate(-6deg) scale(1.08);
}
.service .icone svg {
  width: 24px;
  height: 24px;
}
.service h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.service p {
  color: var(--texte-2);
}
.service.large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 28px;
  background: linear-gradient(135deg, #f5f7ff 0%, #f6f2ff 100%);
}
.service.large .icone {
  margin-bottom: 0;
}
.service.large .action {
  margin-top: 0;
  align-self: center;
}
.usages {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.usages li {
  position: relative;
  padding-left: 20px;
  color: var(--texte-2);
}
.usages li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--degrade);
}
.usages strong {
  color: var(--encre);
  font-weight: 600;
}
.service .action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
}
.service .action svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--sortie);
}
.service .action:hover svg {
  transform: translateX(4px);
}

/* Méthode : tracé qui relie les étapes. */
.etapes {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: etape;
}
.etapes::before,
.etapes::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 2px;
}
.etapes::before {
  background: var(--ligne);
}
.etapes::after {
  background: var(--degrade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--sortie) 0.2s;
}
.etapes.vu::after {
  transform: scaleX(1);
}
.etapes li {
  position: relative;
  z-index: 1;
  counter-increment: etape;
}
.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ligne);
  color: var(--texte-2);
  font-weight: 600;
  margin-bottom: 18px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--sortie);
}
.etapes.vu li::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.etapes.vu li:nth-child(1)::before {
  transition-delay: 0.2s;
}
.etapes.vu li:nth-child(2)::before {
  transition-delay: 0.7s;
}
.etapes.vu li:nth-child(3)::before {
  transition-delay: 1.2s;
}
.etapes.vu li:nth-child(4)::before {
  transition-delay: 1.7s;
}
.etapes h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.etapes p {
  color: var(--texte-2);
}

/* Tarifs */
.tarifs {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.offre {
  position: relative;
  background: var(--fond);
  border-radius: var(--rayon);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -36px rgba(36, 72, 232, 0.55);
}
.offre::before {
  /* contour en dégradé */
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--degrade);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.offre .etiquette {
  position: absolute;
  top: -14px;
  left: clamp(28px, 4vw, 40px);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--degrade);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.offre h3 {
  font-size: 22px;
}
.offre .prix {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--texte-2);
}
.offre .prix strong {
  font-size: clamp(44px, 5.4vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.offre ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}
.offre li {
  display: flex;
  gap: 12px;
}
.offre li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}
.offre .note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  font-size: 15px;
  color: var(--texte-2);
}
.offre .bouton {
  align-self: flex-start;
  margin-bottom: 24px;
}
.autres {
  display: grid;
  gap: 20px;
}
.autre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 24px 28px;
  transition: border-color 0.3s ease, transform 0.4s var(--sortie);
}
.autre:hover {
  border-color: #c5d0fb;
  transform: translateX(4px);
}
.autre h3 {
  font-size: 19px;
}
.autre p {
  margin-top: 4px;
  color: var(--texte-2);
}
.autre .devis {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--encre);
}

/* Questions */
.questions {
  max-width: 820px;
}
.questions details {
  border-bottom: 1px solid var(--ligne);
}
.questions details:first-child {
  border-top: 1px solid var(--ligne);
}
.questions summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.2s ease;
}
.questions summary:hover {
  color: var(--accent);
}
.questions summary::-webkit-details-marker {
  display: none;
}
.questions summary svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  transition: transform 0.3s var(--sortie);
}
.questions details[open] summary svg {
  transform: rotate(45deg);
}
.questions details p {
  padding: 0 0 24px;
  color: var(--texte-2);
  max-width: 68ch;
}
.questions details[open] p {
  animation: deplie 0.4s var(--sortie);
}
@keyframes deplie {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nuit);
  color: #fff;
  padding-block: clamp(72px, 10vw, 120px);
}
.contact .halo.un {
  right: auto;
  left: -160px;
  top: -200px;
  background: #2448e8;
  opacity: 0.5;
}
.contact .halo.deux {
  right: -120px;
  bottom: -260px;
  background: #6a3cf0;
  opacity: 0.45;
}
.contact .cadre {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}
.contact .intro {
  margin-top: 16px;
  color: #c5cde0;
  font-size: 18px;
}
.contact .ensuite {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact .ensuite li {
  display: flex;
  gap: 14px;
  color: #dfe4f2;
}
.contact .ensuite svg {
  width: 26px;
  height: 26px;
  flex: none;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.contact .direct {
  margin-top: 32px;
  color: #aab4ca;
  font-size: 15px;
}
.contact .direct a {
  color: #fff;
  font-weight: 600;
}

.formulaire {
  position: relative;
  background: #fff;
  color: var(--encre);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.formulaire .grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.champ {
  display: grid;
  gap: 6px;
}
.champ.large {
  grid-column: 1 / -1;
}
.champ label {
  font-size: 14px;
  font-weight: 600;
}
.champ label span {
  font-weight: 400;
  color: var(--texte-2);
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd6e4;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--encre);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.champ textarea {
  min-height: 130px;
  resize: vertical;
}
.champ select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5568' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 72, 232, 0.15);
}
.champ input:user-invalid,
.champ textarea:user-invalid {
  border-color: var(--rouge);
}
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formulaire .envoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}
.formulaire .bouton {
  min-width: 220px;
}
.formulaire .bouton[aria-busy='true'] {
  pointer-events: none;
  opacity: 0.8;
}
.formulaire .bouton[aria-busy='true'] svg {
  animation: tourne 0.8s linear infinite;
}
@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}
.formulaire .mention {
  font-size: 13px;
  color: var(--texte-2);
  max-width: 34em;
}
.formulaire .etat {
  margin-top: 14px;
  font-weight: 600;
  color: var(--rouge);
}
.formulaire .etat:empty {
  display: none;
}
.merci {
  display: none;
  text-align: center;
  padding: 32px 8px;
}
.formulaire.envoye .grille,
.formulaire.envoye .envoi,
.formulaire.envoye .etat {
  display: none;
}
.formulaire.envoye .merci {
  display: block;
  animation: monte 0.7s var(--sortie);
}
.merci svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}
.merci circle {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: trace 0.8s var(--sortie) 0.1s forwards;
}
.merci path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: trace 0.5s var(--sortie) 0.6s forwards;
}
@keyframes trace {
  to {
    stroke-dashoffset: 0;
  }
}
.merci h3 {
  font-size: 24px;
}
.merci p {
  margin-top: 8px;
  color: var(--texte-2);
}

/* Pied */
.pied {
  background: var(--nuit);
  color: #aab4ca;
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pied .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}
.pied .logo {
  color: #fff;
  font-size: 17px;
}
.pied .logo svg {
  width: 30px;
  height: 30px;
}
.pied a:not(.logo) {
  color: #fff;
}

/* Pages de texte */
.texte {
  padding-block: clamp(48px, 7vw, 88px);
}
.texte .cadre {
  max-width: calc(760px + 2 * var(--marge));
}
.texte h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.15;
  margin-bottom: 32px;
}
.texte h2 {
  font-size: 21px;
  margin: 40px 0 10px;
}
.texte p,
.texte address {
  margin: 0 0 12px;
  font-style: normal;
  color: var(--texte-2);
}

/* ---------- pages de service ---------- */
.page-tete {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px);
}
.page-tete::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(15, 26, 46, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 25%, transparent 75%);
}
.page-tete h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.1;
  max-width: 20ch;
}
.page-tete h1 .degrade {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-tete .sous-titre {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--texte-2);
  max-width: 40em;
}
.page-tete .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.prix-tete {
  color: var(--texte-2);
  font-weight: 600;
}
.prix-tete strong {
  color: var(--encre);
}
.fil {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texte-2);
}
.fil a {
  color: var(--texte-2);
  text-decoration: none;
}
.fil a:hover {
  color: var(--accent);
}
.inclus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.inclus li {
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.4s var(--sortie);
}
.inclus li:hover {
  border-color: #c5d0fb;
  transform: translateY(-3px);
}
.inclus .coche {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--degrade);
  color: #fff;
}
.inclus .coche svg {
  width: 18px;
  height: 18px;
}
.inclus h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.inclus p {
  color: var(--texte-2);
}
.offre-seule {
  max-width: 640px;
}
.offre-seule .note {
  margin: 16px 0 24px;
  padding-top: 16px;
}
.h3 {
  font-size: 22px;
}
.contact.appel {
  text-align: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.contact.appel .cadre {
  display: block;
}
.contact.appel .intro {
  margin: 14px auto 28px;
  max-width: 34em;
}
.autres-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.autres-services a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  color: var(--encre);
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.4s var(--sortie);
}
.autres-services a:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.autres-services strong {
  font-weight: 600;
  font-size: 18px;
}
.autres-services span {
  grid-row: 2;
  color: var(--texte-2);
  font-size: 15px;
}
.autres-services svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.vers-page {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--sortie);
}
.vers-page:hover {
  background-size: 100% 2px;
}
.pied-haut {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start !important;
  padding-block: 48px 32px !important;
}
.pied-phrase {
  margin-top: 14px;
  max-width: 30em;
}
.pied-titre {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pied ul a {
  color: #c5cde0 !important;
  text-decoration: none;
}
.pied ul a:hover,
.pied ul a[aria-current] {
  color: #fff !important;
  text-decoration: underline;
}
.pied-bas {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px !important;
}

/* ---------- tablette et téléphone ---------- */
@media (max-width: 1000px) {
  .accueil .cadre,
  .tarifs,
  .contact .cadre {
    grid-template-columns: 1fr;
  }
  .ecrans {
    max-width: 620px;
  }
  .etapes,
  .inclus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .etapes::before,
  .etapes::after {
    display: none;
  }
  .reperes ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 760px) {
  .barre nav a:not(.bouton) {
    display: none;
  }
  .services,
  .etapes,
  .formulaire .grille,
  .inclus,
  .autres-services,
  .pied-haut {
    grid-template-columns: 1fr;
  }
  .vue-apres .cartes {
    display: none;
  }
  .service.large {
    display: flex;
  }
  .service.large .icone {
    margin-bottom: 18px;
  }
  .service.large .action {
    margin-top: 16px;
    align-self: flex-start;
  }
  .usages {
    grid-template-columns: 1fr;
  }
  .badge.b1 {
    left: 4px;
  }
  .badge.b3 {
    display: none;
  }
  .ecrans {
    padding-right: 16px;
  }
  .autre {
    grid-template-columns: 1fr;
  }
  .autre .bouton {
    justify-self: start;
  }
}
@media (max-width: 420px) {
  .reperes ul {
    flex-direction: column;
    align-items: center;
  }
  .barre .bouton.petit {
    padding-inline: 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .metiers .piste {
    animation: none;
  }
}
