@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* Charte Axione Golf */
  --vert: #003028;
  --vert-clair: #053b31;
  --sauge: #d1dfd2;
  --or: #ad905d;
  --blanc: #fff;

  /* Or assombri : le #ad905d sur sauge ne passe pas le contraste en texte */
  --or-texte: #7a6236;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 10vw, 148px);
  --trame: 46px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--sauge);
  background: var(--vert);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap {
  position: relative;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* La trame de la plaquette */
.fond-vert, .fond-sauge {
  position: relative;
  background-size: var(--trame) var(--trame);
  background-image:
    linear-gradient(to right, var(--trait) 1px, transparent 1px),
    linear-gradient(to bottom, var(--trait) 1px, transparent 1px);
}
.fond-vert { --trait: rgb(0 0 0 / 0.2); background-color: var(--vert); color: var(--sauge); }
.fond-sauge { --trait: rgb(255 255 255 / 0.32); background-color: var(--sauge); color: var(--vert); }

/* Typographie */
h1, h2 { font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h3 { font-weight: 400; line-height: 1.18; font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.005em; }
.chapeau { font-weight: 600; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
p { text-wrap: pretty; }

.drapeau { display: flex; width: 44px; height: 22px; }
.drapeau i { flex: 1; }
.drapeau i:nth-child(1) { background: #283583; }
.drapeau i:nth-child(2) { background: #fff; }
.drapeau i:nth-child(3) { background: #cd1719; }
.drapeau--fin { width: 40px; height: 6px; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--or { background: var(--or); color: var(--vert); }
.btn--ligne { background: transparent; border-color: rgb(209 223 210 / 0.4); color: var(--sauge); }
.btn--vert { background: var(--vert); color: var(--sauge); }
.btn--petit { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }

@media (hover: hover) and (pointer: fine) {
  .btn--or:hover { background: #bda06c; }
  .btn--ligne:hover { border-color: var(--sauge); }
  .btn--vert:hover { background: var(--vert-clair); }
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgb(0 48 40 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(209 223 210 / 0.1);
  color: var(--sauge);
}
.nav__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__logo { display: block; color: var(--sauge); margin-right: auto; }
.nav__logo svg { width: 148px; height: 21px; }
.nav__liens { display: flex; gap: 28px; font-size: 0.875rem; }
.nav__liens a { text-decoration: none; opacity: 0.82; transition: opacity 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__liens a:hover { opacity: 1; }
}
@media (max-width: 940px) { .nav__liens { display: none; } }

/* Hero : la couverture de la plaquette, à l'horizontale */
.hero { overflow: hidden; }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 4vw, 64px);
  min-height: max(100svh, 720px);
  padding-top: 68px;
}
.hero__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(28px, 4.5vh, 64px) clamp(112px, 12vw, 176px);
}
.hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.875rem); margin-top: 22px; color: #e4ede5; }
.hero__sous { margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--sauge); }
.hero__sous span { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__prix { margin-top: 22px; font-size: 0.9375rem; color: var(--or); }
.hero__prix strong { font-weight: 700; }

.hero__photo { position: relative; margin-top: clamp(20px, 3vh, 40px); }
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - clamp(52px, 6.2vw, 92px));
  object-fit: cover;
  object-position: 50% 62%;
}
.hero__contour {
  position: absolute;
  top: -8px;
  right: calc(var(--gutter) * -1 - 44px);
  width: min(62%, 430px);
  color: var(--sauge);
  fill: none;
  overflow: visible;
}
.hero__contour path { stroke: currentColor; stroke-width: 0.9; vector-effect: non-scaling-stroke; }

/* Le logotype chevauche le bas de la photo, comme en couverture */
.hero__logo {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(16px, 2.6vw, 38px);
  width: min(66%, 880px);
  height: auto;
  aspect-ratio: 319.22 / 43.32;
  color: var(--sauge);
  pointer-events: none;
}

/* Intro */
.intro { padding-block: var(--section); }
.intro__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.intro h2 span { display: block; }
.intro h2 span + span { font-weight: 400; margin-top: 0.12em; }
.intro__texte { margin-top: 36px; max-width: 54ch; display: grid; gap: 16px; }
.mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; }
.mosaique__haute { grid-row: span 2; aspect-ratio: 0.62; object-position: 40% 50%; }
.mosaique img:not(.mosaique__haute) { aspect-ratio: 1.02; }

/* En-tête de section avec photo à fond perdu */
.tete { position: relative; }
.tete__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 44vw;
  height: clamp(340px, 34vw, 560px);
  object-fit: cover;
}
.tete--gauche .tete__photo { right: auto; left: 0; width: 40vw; }
.tete__titre {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 18px;
  height: clamp(340px, 34vw, 560px);
  max-width: 50%;
}
.tete--gauche .tete__titre { margin-left: auto; width: 54%; max-width: 54%; }

/* Pourquoi */
.pourquoi { padding-bottom: var(--section); }
.atouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(40px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 112px);
}
.atouts h3 { color: var(--or); font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.atouts h3 span { display: block; }
.atouts p { margin-top: 16px; max-width: 54ch; color: #eef3ee; font-size: 1rem; }

.citation {
  position: relative;
  margin: clamp(72px, 9vw, 128px) 0 0 auto;
  max-width: 820px;
  padding-right: 8px;
  text-align: right;
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #eef3ee;
}
.citation::before {
  content: "\201C";
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(-58%);
  font-size: clamp(7rem, 12vw, 11rem);
  line-height: 1;
  font-weight: 700;
  color: var(--or);
  opacity: 0.55;
  z-index: 0;
}
.citation span { position: relative; z-index: 1; }

/* Produit */
.produit { padding-bottom: var(--section); overflow: hidden; }
.produit__grille {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(40px, 5vw, 72px);
}
.produit__intro { color: var(--or-texte); max-width: 26ch; padding-top: 6px; }
.caracs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px); }
.carac { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 10px; }
.carac__n {
  grid-row: span 2;
  font-size: clamp(3rem, 4.6vw, 4.25rem);
  line-height: 0.95;
  font-weight: 700;
  color: var(--blanc);
  font-variant-numeric: tabular-nums;
}
.carac p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; grid-column: 2; }
.produit__art {
  position: absolute;
  left: 0;
  bottom: calc(var(--section) * -1);
  width: min(38vw, 520px);
  height: auto;
  color: var(--or);
  pointer-events: none;
}
.produit__corps { position: relative; }

/* Proximité */
.proximite { padding-bottom: var(--section); }
.proximite .tete__titre h2 { max-width: 12ch; }
.proximite__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 88px);
  align-items: start;
}
.proximite__intro { color: #eef3ee; max-width: 44ch; margin-bottom: clamp(32px, 4vw, 52px); }
.plus { display: grid; gap: 22px; }
.plus li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.plus svg { width: 20px; height: 20px; align-self: center; }
.plus--or { color: var(--or); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.25; font-weight: 400; }
.plus--or svg { color: var(--sauge); }

.carte { position: relative; }
.carte__svg { width: 100%; max-width: 400px; height: auto; margin-inline: auto; overflow: visible; }
.carte__trait { fill: none; stroke: url(#tricolore); stroke-width: 1.1; }
.carte__pin { color: var(--or); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 200ms var(--ease-out), color 200ms ease; }
.carte__pin.est-actif { transform: scale(1.3); color: #d6b679; }
.sites { display: grid; gap: 4px; margin-top: 28px; font-size: 0.9375rem; line-height: 1.45; }
.site {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgb(209 223 210 / 0.18);
  cursor: default;
}
.site__dep { color: var(--or); font-weight: 600; font-variant-numeric: tabular-nums; }
.site strong { display: block; font-weight: 700; color: #fff; font-style: italic; }

/* Personnalisation */
.perso { padding-bottom: var(--section); }
.perso__intro { max-width: 34ch; }
.perso__haut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
  align-items: start;
}
.plus--vert { font-size: clamp(1.125rem, 1.7vw, 1.4375rem); font-weight: 400; line-height: 1.25; color: var(--vert); gap: 16px; }

.config {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--vert);
  color: var(--sauge);
}
.config__apercu { position: relative; min-width: 0; }
.config__apercu svg { width: 100%; height: 100%; object-fit: cover; }
.config__fond { transition: fill 200ms ease; }
.config__teinte { mix-blend-mode: multiply; transition: fill 200ms ease; }
.config__marque { transition: color 200ms ease; }
.config__panneau { display: grid; gap: 28px; align-content: start; padding: clamp(24px, 3vw, 44px); }
.config__panneau h3 { color: var(--sauge); font-weight: 600; font-size: 1.25rem; }
.config__groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.config__groupe legend { padding: 0; margin-bottom: 12px; font-size: 0.875rem; color: var(--or); font-weight: 600; }
.nuancier { display: flex; flex-wrap: wrap; gap: 10px; }
.nuance { position: relative; display: block; width: 44px; height: 44px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.nuance:active { transform: scale(0.94); }
.nuance input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nuance span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(209 223 210 / 0.5);
}
/* L'anneau : présent en permanence, seule son opacité change */
.nuance::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--or);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 150ms ease, transform 200ms var(--ease-out);
  pointer-events: none;
}
.nuance:has(input:checked)::after { opacity: 1; transform: none; }
.nuance:has(input:focus-visible) { outline: 2px solid var(--sauge); outline-offset: 6px; border-radius: 50%; }
.nuance--libre span { background: conic-gradient(#b5352c, #d9a441, #4d8a4a, #2c5f94, #7a3f8f, #b5352c); }
.config__nom { margin-top: 12px; font-size: 0.875rem; min-height: 1.5em; }
.config__logo { display: flex; flex-wrap: wrap; gap: 10px; }
.config__note { font-size: 0.8125rem; line-height: 1.5; opacity: 0.72; }
.btn-fichier { position: relative; overflow: hidden; }
.btn-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.btn-fichier:has(input:focus-visible) { outline: 2px solid var(--or); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Formules */
.formules { padding-block: var(--section); }
.formules h2 { text-align: center; margin-inline: auto; max-width: 25ch; }
.offre {
  max-width: 920px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: clamp(16px, 2vw, 22px);
  background: var(--sauge);
  color: var(--vert);
}
.duree { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 0; margin: 0; padding: 0; }
.duree__fond {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(50% - 8px);
  background: var(--vert);
  transition: transform 280ms var(--ease-in-out);
}
.duree:has(#d36:checked) .duree__fond { transform: translateX(calc(100% + 16px)); }
.duree__choix {
  position: relative;
  display: block;
  padding: clamp(20px, 3vw, 32px) 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgb(0 48 40 / 0.25);
  transition: color 180ms ease;
}
.duree__choix input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.duree__choix:has(input:focus-visible) { outline: 2px solid var(--or); outline-offset: 3px; }
.duree__mois { display: block; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; color: var(--or-texte); transition: color 180ms ease; }
.duree__prix { display: block; margin-top: 8px; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.duree__unite { display: block; margin-top: 8px; font-size: 0.875rem; }
.duree__choix:has(input:checked) { color: #fff; }
.duree__choix:has(input:checked) .duree__mois { color: var(--or); }

.simu { padding: clamp(24px, 3.4vw, 40px) clamp(8px, 3vw, 36px) clamp(20px, 2.4vw, 28px); }
.simu__ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.simu label { font-weight: 600; }
.simu__n { font-weight: 700; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.curseur {
  --p: 20%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.curseur::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--vert) var(--p), rgb(0 48 40 / 0.22) var(--p));
}
.curseur::-moz-range-track { height: 3px; background: rgb(0 48 40 / 0.22); }
.curseur::-moz-range-progress { height: 3px; background: var(--vert); }
.curseur::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11.5px;
  border-radius: 50%;
  background: var(--vert);
  border: 7px solid var(--vert);
  box-shadow: inset 0 0 0 2px var(--or);
  transition: transform 160ms var(--ease-out);
}
.curseur::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--vert); border: 6px solid var(--vert); }
.curseur:active::-webkit-slider-thumb { transform: scale(1.12); }

.simu__total {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
}
.simu__somme { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.simu__somme small { font-size: 0.9375rem; font-weight: 500; }
.simu__detail { margin-top: 6px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }

.inclus { padding: clamp(24px, 3vw, 36px) clamp(8px, 3vw, 36px) clamp(12px, 2vw, 24px); border-top: 1px solid var(--or); }
.inclus h3 { font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; text-transform: uppercase; }
.inclus ul { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin-top: 22px; }
.inclus li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 0.875rem; line-height: 1.45; }
.inclus svg { width: 20px; height: 20px; color: var(--or-texte); margin-top: 1px; }
.inclus strong { display: block; font-weight: 700; font-size: 1rem; }
.formules__fin { margin-top: 32px; text-align: center; color: var(--or); font-weight: 600; text-wrap: balance; }
.formules__fin .drapeau { margin: 14px auto 0; }

/* Contact */
.contact { padding-block: var(--section) clamp(64px, 8vw, 112px); border-top: 1px solid rgb(209 223 210 / 0.1); }
.contact__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__art { width: clamp(150px, 16vw, 220px); height: auto; }
.contact h2 { margin-top: 28px; color: var(--or); }
.contact__texte { margin-top: 24px; color: #eef3ee; max-width: 46ch; }
.interlocuteur { margin-top: 36px; }
.interlocuteur__nom { font-size: 1.5rem; font-weight: 500; color: var(--or); }
.interlocuteur__liens { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
.interlocuteur__liens a { color: var(--sauge); text-underline-offset: 3px; text-decoration-color: rgb(209 223 210 / 0.4); }

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--sauge); color: var(--vert); }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 0.875rem; font-weight: 600; }
.champ input, .champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgb(0 48 40 / 0.3);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.55);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.champ textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--vert); background: #fff; box-shadow: 0 0 0 1px var(--vert); }
.envoi { grid-column: 1 / -1; width: 100%; position: relative; overflow: hidden; }
.envoi__etat { display: inline-flex; align-items: center; gap: 10px; transition: opacity 200ms ease, filter 200ms ease, transform 240ms var(--ease-out); }
.envoi__etat--ok { position: absolute; inset: 0; justify-content: center; opacity: 0; filter: blur(3px); transform: translateY(8px); }
.envoi__etat--ok svg { width: 18px; height: 18px; color: var(--or); }
.envoi.est-envoye .envoi__etat--base { opacity: 0; filter: blur(3px); transform: translateY(-8px); }
.envoi.est-envoye .envoi__etat--ok { opacity: 1; filter: none; transform: none; }
.envoi.est-envoye { pointer-events: none; }
.formulaire__note { grid-column: 1 / -1; font-size: 0.8125rem; line-height: 1.5; }

/* Pied de page */
.pied { border-top: 1px solid rgb(209 223 210 / 0.14); padding-block: 36px; font-size: 0.8125rem; }
.pied__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.pied__logo { width: 136px; height: 19px; color: var(--sauge); margin-right: auto; }
.pied a { text-underline-offset: 3px; text-decoration-color: rgb(209 223 210 / 0.4); }

/* Apparitions au défilement : une seule fois, jamais bloquantes */
.js [data-apparait] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--retard, 0ms);
}
.js [data-apparait].est-visible { opacity: 1; transform: none; }

.js [data-devoile] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1000ms var(--ease-in-out);
  transition-delay: var(--retard, 0ms);
}
.js [data-devoile].est-visible { clip-path: inset(0 0 0 0); }

.js [data-trace] path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1800ms var(--ease-in-out);
}
.js [data-trace].est-visible path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-apparait] { transform: none; transition: opacity 240ms ease; transition-delay: 0ms; }
  .js [data-devoile] { clip-path: none; transition: none; opacity: 1; }
  .js [data-trace] path { stroke-dashoffset: 0; transition: none; }
  .duree__fond { transition: none; }
  .btn:active, .nuance:active { transform: none; }
  .envoi__etat--ok, .envoi.est-envoye .envoi__etat--base { transform: none; }
}

/* Tablette et mobile */
@media (max-width: 940px) {
  body { font-size: 1rem; }
  :root { --trame: 36px; }

  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .hero__texte { padding-block: 40px 36px; }
  .hero__photo { margin-top: 0; aspect-ratio: 0.86; margin-inline: 0; }
  .hero__photo img { height: calc(100% - 8vw); }
  .hero__contour { right: calc(var(--gutter) * -1 - 28px); top: -24px; width: 52%; }
  .hero__logo { width: calc(100% - var(--gutter) * 2 - 24px); bottom: 12px; }

  .intro__grille, .proximite__grille, .perso__haut, .contact__grille, .produit__grille { grid-template-columns: minmax(0, 1fr); }

  .tete__photo, .tete--gauche .tete__photo { position: static; width: 100%; height: 72vw; max-height: 520px; }
  .tete__titre, .tete--gauche .tete__titre { height: auto; max-width: none; width: auto; margin-left: 0; padding-top: 40px; }

  .produit__intro { max-width: 42ch; }
  .produit__art { display: none; }
  .config { grid-template-columns: minmax(0, 1fr); }
  .config__apercu svg { height: auto; }
  .atouts { margin-top: 48px; }
}

@media (max-width: 620px) {
  .nav__in { gap: 12px; height: 60px; }
  .nav__logo svg { width: 112px; height: 16px; }
  .nav .btn { min-height: 38px; padding: 0 12px; font-size: 0.8125rem; }
  .duree__unite { font-size: 0.75rem; }
  .simu__total .btn { padding-inline: 12px; font-size: 0.875rem; }
  .site { grid-template-columns: 36px minmax(0, 1fr); }
  .hero__in { padding-top: 60px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .atouts, .caracs, .inclus ul, .formulaire { grid-template-columns: minmax(0, 1fr); }
  .duree { gap: 10px; }
  .duree__fond { width: calc(50% - 5px); }
  .duree:has(#d36:checked) .duree__fond { transform: translateX(calc(100% + 10px)); }
  .simu__total .btn { width: 100%; }
  .citation { text-align: left; }
  .citation::before { right: auto; left: 45%; }
}

/* Choix de langue */
.langues { display: flex; gap: 2px; margin-left: auto; font-size: 0.8125rem; font-weight: 600; }
.langues a { display: flex; align-items: center; gap: 7px; min-height: 36px; padding-inline: 6px; text-decoration: none; opacity: 0.6; transition: opacity 160ms ease; }
.langues a[aria-current] { opacity: 1; }
.langues a[aria-current] span { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.langues__drapeau { flex: none; width: 21px; height: 14px; box-shadow: 0 0 0 1px rgb(209 223 210 / 0.35); }
.langues a:active .langues__drapeau { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .langues a:hover { opacity: 1; } }
.nav__liens + .langues { margin-left: 0; }

/* Simulateur de rentabilité */
.simulateur { padding-block: var(--section); }
.simulateur__tete { max-width: 760px; }
.simulateur__tete .chapeau { margin-top: 22px; }
.rentab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.rentab__saisie { display: grid; gap: clamp(16px, 2vw, 24px); }

.bloc { min-width: 0; margin: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid rgb(0 48 40 / 0.25); background: rgb(255 255 255 / 0.4); }
.bloc__titre { float: left; width: 100%; margin-bottom: 22px; padding: 0; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--or-texte); }
.bloc__titre + * { clear: both; }
.bloc .simu__ligne label { font-weight: 600; }
.bloc__sous { margin: 22px 0 10px; font-size: 0.875rem; font-weight: 600; }
.bloc__note { margin-top: 14px; font-size: 0.8125rem; }

.segment { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgb(0 48 40 / 0.3); }
.segment label { position: relative; cursor: pointer; }
.segment input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segment span { display: grid; place-items: center; min-height: 46px; padding: 8px 10px; font-size: 0.9375rem; font-weight: 600; text-align: center; transition: background-color 180ms ease, color 180ms ease; }
.segment label + label span { box-shadow: -1px 0 0 rgb(0 48 40 / 0.3); }
.segment input:checked + span { background: var(--vert); color: #fff; }
.segment input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }
.segment label:active span { transform: scale(0.98); }

.couts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.couts div { padding: 14px 16px; background: var(--sauge); }
.couts dt { font-size: 0.8125rem; font-weight: 600; }
.couts dd { margin: 4px 0 0; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.segment + .champs { margin-top: 18px; }
.unite { display: flex; align-items: center; border: 1px solid rgb(0 48 40 / 0.3); border-radius: 2px; background: rgb(255 255 255 / 0.55); transition: border-color 150ms ease, background-color 150ms ease; }
.unite:focus-within { border-color: var(--vert); background: #fff; box-shadow: 0 0 0 1px var(--vert); }
.champ .unite input { min-width: 0; flex: 1; border: 0; background: transparent; box-shadow: none; font-variant-numeric: tabular-nums; }
.champ .unite input:focus { box-shadow: none; background: transparent; }
.unite span { flex: none; padding-right: 14px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }

.resultat { position: sticky; top: 96px; padding: clamp(24px, 3vw, 40px); background: var(--vert); color: var(--sauge); }
.resultat__titre { font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--or); }
.resultat__table { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.resultat__table th, .resultat__table td { padding: 14px 0; text-align: right; border-bottom: 1px solid rgb(209 223 210 / 0.18); }
.resultat__table thead th { padding-top: 0; font-size: 0.8125rem; font-weight: 600; }
.resultat__table tbody th { text-align: left; font-size: 0.875rem; font-weight: 600; }
.resultat__table tbody td { padding-left: 12px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; color: #fff; white-space: nowrap; }
.resultat__table tbody td:last-child { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.resultat__calcul { margin-top: 22px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.resultat__calcul div { display: flex; justify-content: space-between; gap: 16px; padding-block: 4px; }
.resultat__calcul dd { margin: 0; white-space: nowrap; }
.resultat__solde { margin-top: 4px; padding-top: 8px !important; border-top: 1px solid rgb(209 223 210 / 0.18); font-weight: 700; color: #fff; }
.resultat__seuil { margin-top: 18px; font-size: 0.875rem; color: #eef3ee; }
.resultat__seuil:empty { display: none; }
.resultat .btn { width: 100%; margin-top: 24px; }
.resultat__note { margin-top: 14px; font-size: 0.75rem; line-height: 1.5; opacity: 0.8; }

@media (max-width: 940px) {
  .rentab { grid-template-columns: minmax(0, 1fr); }
  .resultat { position: static; }
}

@media (max-width: 620px) {
  .nav__in { gap: 6px; }
  .nav .btn { padding: 0 10px; font-size: 0.75rem; white-space: nowrap; }
  .langues a { padding-inline: 5px; }
  .langues a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .langues a[aria-current] .langues__drapeau { box-shadow: 0 0 0 1px var(--vert), 0 0 0 3px var(--or); }
  .champs, .couts { grid-template-columns: minmax(0, 1fr); }
  .couts { gap: 8px; }
  .couts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .couts dd { margin: 0; font-size: 1.125rem; white-space: nowrap; }
}

/* Formulaire de contact */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__erreur { grid-column: 1 / -1; padding: 10px 14px; border-left: 3px solid #9b2c2c; background: rgb(255 255 255 / 0.6); color: #7f1d1d; font-size: 0.875rem; font-weight: 600; }
.envoi:disabled { cursor: progress; }

/* Pages légales */
.legal { padding-block: calc(76px + clamp(32px, 6vw, 72px)) var(--section); }
.legal__in { max-width: 780px; }
.legal h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.legal__maj { margin-top: 10px; font-size: 0.875rem; }
.legal__sommaire { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 0.9375rem; font-weight: 600; }
.legal__sommaire a { text-underline-offset: 4px; text-decoration-color: var(--or); }
.legal h2 { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgb(0 48 40 / 0.18); font-size: clamp(1.375rem, 2.4vw, 1.75rem); scroll-margin-top: 90px; }
.legal p { margin-top: 14px; max-width: 68ch; }
.legal strong { font-weight: 700; }
.legal a:not(.btn) { text-underline-offset: 3px; text-decoration-color: rgb(0 48 40 / 0.4); }
.legal dl { margin: 18px 0 0; border-top: 1px solid rgb(0 48 40 / 0.15); }
.legal dl div { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid rgb(0 48 40 / 0.15); }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal__action { margin-top: 22px !important; }
@media (max-width: 620px) {
  .legal dl div { grid-template-columns: minmax(0, 1fr); }
}
