/* benoitdrouet.fr — feuille de style unique, sans dépendance externe */

/* Polices */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Jetons */

:root {
  --papier: #f5f7f6;
  --brume: #e6ebe8;
  --filet: #c5cfca;
  --encre: #1f2a33;
  --encre-douce: #46545e;
  --ardoise: #2b3943;
  --ardoise-claire: #3d4f5b;
  --sur-ardoise: #c5d0cb;
  --lichen: #46722f;
  --lichen-fonce: #385c26;
  --lichen-clair: #9fcf7e;
  --erreur: #a1331f;

  --titre: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --texte: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --largeur: 68rem;
  --gouttiere: clamp(1.25rem, 5vw, 3rem);
  --mesure: 40rem;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

a {
  color: var(--lichen);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--lichen-fonce);
}

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

.wrap {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.saut {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 40;
  padding: 0.5rem 1rem;
  background: var(--encre);
  color: #fff;
}

.saut:focus {
  left: 0.5rem;
}

/* En-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 1.25rem;
  transition: padding 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.entete.defile {
  padding-block: 0.7rem;
  background: rgba(245, 247, 246, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--filet);
}

.entete .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.progres {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  background: var(--lichen);
  transform: scaleX(0);
  transform-origin: left;
}

.signature {
  font-family: var(--titre);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--encre);
  text-decoration: none;
}

.signature:hover {
  color: var(--encre);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu a:not(.bouton) {
  color: var(--encre);
  font-weight: 500;
}

@media (max-width: 36rem) {
  .menu .menu-secondaire {
    display: none;
  }
}

/* Boutons et liens soulignés au survol */

.bouton {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--lichen);
  color: #fff;
  font: 600 1rem/1.2 var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bouton:hover {
  background: var(--lichen-fonce);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(56, 92, 38, 0.28);
}

.bouton:active {
  transform: none;
  box-shadow: none;
}

.bouton[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.menu .bouton {
  padding: 0.55rem 1rem;
}

.menu a:not(.bouton),
.lien-discret {
  padding-bottom: 2px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s, color 0.2s;
}

.menu a:not(.bouton):hover {
  background-size: 100% 2px;
}

.lien-discret {
  color: var(--encre);
  font-weight: 500;
  background-size: 100% 2px;
}

.lien-discret:hover {
  color: var(--lichen-fonce);
}

/* Sections : rythme commun */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-teinte {
  background: var(--brume);
}

.section-sombre {
  position: relative;
  overflow: hidden;
  background-color: var(--ardoise);
  background-image: radial-gradient(rgba(159, 207, 126, 0.16) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  color: #eef2f0;
}

.section-sombre::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 207, 126, 0.18), transparent 65%);
  pointer-events: none;
}

.section-sombre .wrap {
  position: relative;
}

.section-sombre h2,
.section-sombre h3 {
  color: #fff;
}

.section-sombre a {
  color: var(--lichen-clair);
}

.titre-section {
  max-width: 34rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.chapeau,
.note {
  max-width: var(--mesure);
  color: var(--encre-douce);
}

.chapeau {
  margin: 1.1rem 0 0;
}

.note {
  margin: 1.25rem 0 0;
  font-size: 0.97rem;
}

.section-sombre .chapeau {
  color: var(--sur-ardoise);
}

.sous-titre {
  margin-top: 3.5rem;
  font-size: 1.6rem;
}

/* Icône carrée : exemples et paliers */

.icone {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--filet);
  transition: background-color 0.25s, box-shadow 0.25s;
}

.icone svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: var(--lichen);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

li:hover > .icone {
  background: var(--lichen);
  box-shadow: none;
}

li:hover > .icone svg {
  stroke: #fff;
}

.section-sombre .icone {
  background: var(--ardoise-claire);
  box-shadow: inset 0 0 0 1.5px rgba(159, 207, 126, 0.45);
}

.section-sombre .icone svg {
  stroke: var(--lichen-clair);
}

.section-sombre li:hover > .icone {
  background: var(--lichen-clair);
}

.section-sombre li:hover > .icone svg {
  stroke: var(--ardoise);
}

/* Accueil */

.accueil {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
}

.accueil .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.accroche {
  margin: 1.25rem 0 0;
  font-family: var(--titre);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 450;
  line-height: 1.3;
  color: var(--encre-douce);
}

.presentation {
  max-width: 34rem;
  margin: 1.5rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 52rem) {
  .accueil .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Schéma animé : cycle de 11 s, les étapes s'allument une à une puis s'éteignent ensemble */

.schema {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 18px;
  background: linear-gradient(150deg, #374853 0%, var(--ardoise) 45%, #222d35 100%);
  color: #eef2f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 50px -24px rgba(31, 42, 51, 0.7),
    0 0 60px -20px rgba(159, 207, 126, 0.35);
}

/* Reflet fixe en haut de la carte */
.schema::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

.schema > * {
  position: relative;
  z-index: 1;
}

.schema-entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.schema-entete h2 {
  font-size: 1.35rem;
  color: #fff;
}

.schema-entete p {
  margin: 0.4rem 0 0;
  color: var(--sur-ardoise);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rouages {
  position: relative;
  flex: none;
  width: 4.4rem;
  height: 3.4rem;
}

.rouage {
  position: absolute;
  fill: none;
  stroke: var(--lichen-clair);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(159, 207, 126, 0.55));
}

.rouage-grand {
  left: 0;
  top: 0;
  width: 2.7rem;
  height: 2.7rem;
  animation: tourner 9s linear infinite;
}

.rouage-petit {
  right: 0;
  bottom: 0;
  width: 1.9rem;
  height: 1.9rem;
  opacity: 0.8;
  animation: tourner 6.4s linear infinite reverse;
}

.schema ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.etape-schema {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  padding-bottom: 2rem;
  opacity: 0.28;
}

.etape-schema:last-child {
  padding-bottom: 0;
}

.etape-schema h3 {
  padding-top: 0.3rem;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #fff;
}

.etape-schema p {
  margin: 0.25rem 0 0;
  color: var(--sur-ardoise);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Trait qui relie une étape à la suivante */
.etape-schema:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--lichen-clair), rgba(159, 207, 126, 0.5));
  box-shadow: 0 0 8px rgba(159, 207, 126, 0.7);
  transform: scaleY(0);
  transform-origin: top;
}

/* Pastille ronde : schéma d'accueil et déroulé */
.pastille {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--lichen-clair);
  border-radius: 50%;
  background: #2a3841;
}

.pastille svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: var(--lichen-clair);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.etape-schema:nth-child(1) { animation: allumer-1 11s ease-in-out infinite; }
.etape-schema:nth-child(2) { animation: allumer-2 11s ease-in-out infinite; }
.etape-schema:nth-child(3) { animation: allumer-3 11s ease-in-out infinite; }
.etape-schema:nth-child(1) .pastille { animation: impulsion-1 11s ease-out infinite; }
.etape-schema:nth-child(2) .pastille { animation: impulsion-2 11s ease-out infinite; }
.etape-schema:nth-child(3) .pastille { animation: impulsion-3 11s ease-out infinite; }
.etape-schema:nth-child(1)::after { animation: tracer-1 11s ease-in-out infinite; }
.etape-schema:nth-child(2)::after { animation: tracer-2 11s ease-in-out infinite; }

.legende {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--sur-ardoise);
  font-size: 0.88rem;
}

.voyant {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lichen-clair);
  animation: voyant 2.2s ease-out infinite;
}

/* Allumage échelonné (8 %, 21 %, 34 %), extinction commune (86 % à 94 %) */
@keyframes allumer-1 {
  0%, 3% { opacity: 0.28; }
  8%, 86% { opacity: 1; }
  94%, 100% { opacity: 0.28; }
}
@keyframes allumer-2 {
  0%, 15% { opacity: 0.28; }
  21%, 86% { opacity: 1; }
  94%, 100% { opacity: 0.28; }
}
@keyframes allumer-3 {
  0%, 28% { opacity: 0.28; }
  34%, 86% { opacity: 1; }
  94%, 100% { opacity: 0.28; }
}

@keyframes tracer-1 {
  0%, 8% { transform: scaleY(0); opacity: 1; }
  18%, 86% { transform: scaleY(1); opacity: 1; }
  94% { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}
@keyframes tracer-2 {
  0%, 21% { transform: scaleY(0); opacity: 1; }
  31%, 86% { transform: scaleY(1); opacity: 1; }
  94% { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}

@keyframes impulsion-1 {
  0%, 6% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0); }
  8% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0.6); }
  17%, 100% { box-shadow: 0 0 0 14px rgba(159, 207, 126, 0); }
}
@keyframes impulsion-2 {
  0%, 19% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0); }
  21% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0.6); }
  30%, 100% { box-shadow: 0 0 0 14px rgba(159, 207, 126, 0); }
}
@keyframes impulsion-3 {
  0%, 32% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0); }
  34% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0.6); }
  43%, 100% { box-shadow: 0 0 0 14px rgba(159, 207, 126, 0); }
}

@keyframes tourner {
  to { transform: rotate(360deg); }
}

@keyframes voyant {
  0% { box-shadow: 0 0 0 0 rgba(159, 207, 126, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(159, 207, 126, 0); }
}

/* Exemples : une liste à filets, pas des cartes */

.exemples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 6vw, 4.5rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.exemples li {
  padding: 1.75rem 1.5rem 2rem;
  border-top: 1px solid rgba(159, 207, 126, 0.25);
  /* Halo sous le pointeur, position posée par main.js */
  background: radial-gradient(14rem circle at var(--x, -20rem) var(--y, -20rem), rgba(159, 207, 126, 0.12), transparent 70%);
}

.exemples .icone {
  margin-bottom: 1.1rem;
}

.exemples h3 {
  font-size: 1.25rem;
}

.exemples p {
  margin: 0.35rem 0 0;
  color: var(--sur-ardoise);
}

@media (max-width: 44rem) {
  .exemples {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Déroulé : une frise, avec la même pastille que le schéma d'accueil */

.deroule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.deroule li {
  position: relative;
  counter-increment: etape;
}

.deroule .pastille {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-color: var(--lichen);
  background: var(--papier);
}

.deroule .pastille svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: var(--lichen);
}

/* Trait vers l'étape suivante */
.deroule li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 3.75rem;
  right: calc(-1 * clamp(1.5rem, 4vw, 3rem) + 0.75rem);
  height: 2px;
  background: var(--lichen);
  opacity: 0.45;
}

.deroule h3 {
  font-size: 1.3rem;
}

.deroule h3::before {
  content: counter(etape) ". ";
  color: var(--lichen);
}

.deroule p {
  max-width: 22rem;
  margin: 0.5rem 0 0;
  color: var(--encre-douce);
}

@media (max-width: 52rem) {
  .deroule {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .deroule li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1.25rem;
    padding-bottom: 2rem;
  }

  .deroule li:last-child {
    padding-bottom: 0;
  }

  .deroule .pastille {
    grid-row: span 2;
    margin: 0;
  }

  .deroule h3 {
    padding-top: 0.6rem;
  }

  .deroule li:not(:last-child)::after {
    top: 3.5rem;
    bottom: 0.5rem;
    left: calc(1.5rem - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
}

/* Offres : trois cartes de même poids, le bon palier dépend du besoin */

.paliers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.paliers li {
  padding: 1.75rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--filet);
  transition: transform 0.25s;
}

.paliers li:hover {
  transform: translateY(-4px);
}

.paliers h3 {
  font-size: 1.3rem;
}

.paliers p {
  margin: 0.75rem 0 0;
  color: var(--encre-douce);
}

.prix {
  display: block;
  margin-top: 0.35rem;
  color: var(--lichen-fonce);
  font-family: var(--titre);
  font-size: 2.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.prix small {
  display: block;
  margin-top: 0.15rem;
  color: var(--encre-douce);
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 52rem) {
  .paliers {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Maintenance : un vrai barème, une ligne par forfait */

.forfaits {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--encre);
}

.forfaits li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--filet);
  transition: background-color 0.2s;
}

.forfaits li:hover {
  background: rgba(255, 255, 255, 0.6);
}

.forfaits h4 {
  font-family: var(--texte);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
}

.forfaits .prix {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.forfaits .prix small {
  display: inline;
  margin: 0 0 0 0.25rem;
}

/* Abonnement n8n : un encadré discret, filet d'accent à gauche */

#offres .note {
  max-width: none;
}

.encart {
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--lichen);
  background: #fff;
  color: var(--encre);
}

/* À propos : texte et carte de la Mayenne */

.apropos {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.texte-large {
  max-width: var(--mesure);
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--lichen-clair);
  color: #e3e9e6;
  font-size: 1.2rem;
}

.carte {
  margin: 0;
}

.carte svg {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.carte-contour {
  fill: rgba(159, 207, 126, 0.07);
  stroke: var(--lichen-clair);
  stroke-width: 2;
  stroke-linejoin: round;
}

.carte-liens {
  fill: none;
  stroke: var(--lichen-clair);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.55;
}

.carte-ville {
  fill: var(--ardoise);
  stroke: var(--lichen-clair);
  stroke-width: 2;
}

.carte-prefecture {
  fill: var(--lichen-clair);
}

.carte-nom {
  fill: #fff;
  font-family: var(--titre);
  font-size: 20px;
  font-weight: 600;
}

.carte-numero {
  fill: rgba(159, 207, 126, 0.35);
  font-family: var(--titre);
  font-size: 64px;
  font-weight: 700;
}

@media (max-width: 52rem) {
  .apropos {
    grid-template-columns: minmax(0, 1fr);
  }

  .carte svg {
    max-width: 17rem;
  }
}

/* Accroche du calculateur : texte et calculatrice dessinée comme la carte */

.calcul-accroche {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.calcul-accroche .actions {
  margin-top: 1.75rem;
}

.calculatrice {
  margin: 0;
}

.calculatrice svg {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.calculatrice-corps {
  fill: rgba(70, 114, 47, 0.07);
  stroke: var(--lichen);
  stroke-width: 2;
}

.calculatrice-ecran {
  fill: #fff;
  stroke: var(--lichen);
  stroke-width: 2;
}

.calculatrice-unite {
  fill: var(--encre-douce);
  font-family: var(--texte);
  font-size: 12px;
}

.calculatrice-total {
  fill: var(--lichen-fonce);
  font-family: var(--titre);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.calculatrice-touches rect {
  fill: #fff;
  stroke: var(--lichen);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.calculatrice-egal {
  fill: var(--lichen);
}

.calculatrice-signe {
  fill: #fff;
  font-family: var(--titre);
  font-size: 22px;
  font-weight: 650;
}

.calculatrice-signe-fonce {
  fill: var(--lichen-fonce);
}

@media (max-width: 52rem) {
  .calcul-accroche {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculatrice svg {
    max-width: 11rem;
  }
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

@media (max-width: 52rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

form {
  display: grid;
  gap: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.facultatif {
  font-weight: 400;
  color: var(--encre-douce);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #8d9b95;
  border-radius: 6px;
  background: #fff;
  color: var(--encre);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
  border-color: var(--lichen);
}

input:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.accord {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.95rem;
}

.accord input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--lichen);
}

.accord label {
  margin: 0;
  font-weight: 400;
}

.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.statut {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.statut[data-etat="ok"] {
  color: var(--lichen-fonce);
}

.statut[data-etat="erreur"] {
  color: var(--erreur);
}

/* Pied de page */

.pied {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--filet);
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.pied .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.pied p {
  margin: 0;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.pied a {
  color: var(--encre);
}

/* Pages légales */

.legal {
  padding-block: 1.5rem 4rem;
}

.legal .wrap {
  max-width: 46rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.45rem;
}

.legal p,
.legal li {
  max-width: 42rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.a-completer {
  padding: 0 0.25rem;
  border-radius: 3px;
  background: #fff3c4;
}

/* Animations réduites : tout est affiché, rien ne bouge */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .etape-schema {
    opacity: 1;
  }

  .etape-schema:not(:last-child)::after {
    transform: none;
  }
}
