/* Grand Accueil : page d'offre. Choix et raisons dans IDENTITE.md. */

@font-face {
  font-family: "Besley";
  src: url("fonts/besley-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("fonts/besley-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette (voir IDENTITE.md) */
  --ardoise: #26313b;
  --ardoise-2: #34424f;
  --ardoise-3: #4a5a69;
  --papier: #fbfaf6;
  --lichen: #e4e8dc;
  --lichen-2: #d3d9c8;
  --moutarde: #d9a21b;
  --moutarde-fonce: #c18c0b;
  --moutarde-pale: #f3e3b5;
  --lie: #7a2e3b;
  --lie-pale: #f1e2e4;
  --pierre: #5b5a52;
  --pierre-claire: #b9bcb0;

  /* Rôles */
  --fond: var(--papier);
  --texte: var(--ardoise);
  --texte-2: var(--pierre);
  --filet: var(--lichen-2);
  --focus: var(--moutarde);
  --voile: 38 49 59; /* ardoise en canaux, pour les voiles sur photo */

  /* Texte */
  --display: "Besley", "Clarendon", "Rockwell", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  --t-xxl: clamp(2.375rem, 1.4rem + 3.6vw, 4.375rem);
  --t-chiffre: clamp(3.5rem, 2.4rem + 4.5vw, 6.25rem);
  --interligne: 1.6;
  --interligne-titre: 1.06;

  /* Espaces */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4.5rem;
  --e-9: clamp(4rem, 2.5rem + 6vw, 8rem);
  --goutiere: clamp(1rem, 0.4rem + 3vw, 3rem);
  --largeur: 76rem;
  --mesure: 36rem;
  --cible: 3rem; /* 48 px : la plus petite zone qu'on touche du pouce */

  /* Formes */
  --rayon: 6px;
  --rayon-appli: 10px;
  --trait: 1px;

  /* Mouvement */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-cle: cubic-bezier(0.34, 1.4, 0.64, 1); /* léger dépassement : l'étiquette accrochée se balance */
  --d-court: 160ms;
  --d-moyen: 240ms;
  --d-cle: 520ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: var(--t-m);
  line-height: var(--interligne);
  font-kerning: normal;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

p {
  margin: 0 0 var(--e-4);
}

a {
  color: inherit;
}

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

/* Besley dessine ses chiffres tabulaires en bas-de-casse : on garde ses chiffres proportionnels alignés */
.chiffre {
  font-variant-numeric: lining-nums proportional-nums;
}

.evitement {
  position: absolute;
  left: var(--e-4);
  top: -10rem;
  z-index: 100;
  padding: var(--e-3) var(--e-4);
  background: var(--papier);
  color: var(--ardoise);
}
.evitement:focus {
  top: var(--e-4);
}

.titre-section {
  margin: 0 0 var(--e-5);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section {
  padding: var(--e-9) var(--goutiere);
}
.section > * {
  max-width: var(--largeur);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
 * Boutons : un seul appel, toujours moutarde
 * ------------------------------------------------------------------------ */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cible);
  padding: var(--e-3) var(--e-5);
  border: 0;
  border-radius: var(--rayon);
  background: var(--moutarde);
  color: var(--ardoise);
  font: 650 var(--t-m) / 1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--moutarde-fonce);
  transition:
    transform var(--d-court) var(--ease-out),
    background-color var(--d-court) ease;
}
.bouton:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover {
    background: #e5ae25;
  }
}
.bouton--grand {
  padding: var(--e-4) var(--e-6);
  font-size: var(--t-l);
}
.bouton--petit {
  min-height: 2.5rem;
  padding: var(--e-2) var(--e-4);
  font-size: var(--t-s);
}
.bouton--plein {
  width: 100%;
}

.lien-fort {
  padding: var(--e-2) 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 var(--t-m) var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
 * En-tête : posé sur la photo du hero
 * ------------------------------------------------------------------------ */
.entete {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--e-6);
  padding: var(--e-5) var(--goutiere);
  color: var(--papier);
}
.entete__logo img {
  width: auto;
  height: 1.5rem;
}
.entete__nav {
  display: flex;
  gap: var(--e-5);
  margin-left: auto;
  font-size: var(--t-s);
  font-weight: 500;
}
.entete__nav a {
  text-decoration: none;
  text-shadow: 0 1px 8px rgb(var(--voile) / 0.6);
}
.entete__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
@media (max-width: 68rem) {
  .entete__nav {
    display: none;
  }
  .entete__cta {
    margin-left: auto;
  }
}
@media (max-width: 40rem) {
  .entete__cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
 * 1. Hero
 * ------------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 60rem);
  padding: 7rem var(--goutiere) var(--e-8);
  background: var(--ardoise);
  color: var(--papier);
  isolation: isolate;
}
.hero picture,
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero {
  overflow: hidden;
}
.hero__photo {
  object-fit: cover;
  object-position: 42% 40%;
}
/* Grand écran : la photo déborde à droite, le groupe passe à droite du texte */
@media (min-width: 60rem) {
  .hero__photo {
    width: 145%;
    max-width: none;
    object-position: 0 42%;
  }
}
/* Téléphone : la photo au-dessus, le texte en dessous, pour ne cacher aucun visage */
@media (max-width: 40rem) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .hero picture {
    position: relative;
    display: block;
    height: 46svh;
    min-height: 16rem;
  }
  .hero__photo {
    position: absolute;
  }
  .hero::before {
    bottom: auto;
    height: 46svh;
    min-height: 16rem;
    background: linear-gradient(to bottom, rgb(var(--voile) / 0.55) 0%, rgb(var(--voile) / 0) 30%, rgb(var(--voile) / 0) 75%, rgb(var(--voile) / 1) 100%);
  }
  .hero__texte {
    padding: var(--e-5) var(--goutiere) var(--e-7);
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgb(var(--voile) / 0.88) 0%, rgb(var(--voile) / 0.62) 34%, rgb(var(--voile) / 0) 60%),
    linear-gradient(to top, rgb(var(--voile) / 0.6) 0%, rgb(var(--voile) / 0) 35%),
    linear-gradient(to bottom, rgb(var(--voile) / 0.45) 0%, rgb(var(--voile) / 0) 18%);
}
.hero__texte {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
}
.hero__texte > * {
  max-width: 44rem;
}
.hero__pour {
  margin-bottom: var(--e-4);
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--moutarde-pale);
}
.hero__titre {
  margin: 0 0 var(--e-5);
  font-family: var(--display);
  font-weight: 750;
  font-size: var(--t-xxl);
  line-height: var(--interligne-titre);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__chapo {
  max-width: 36rem;
  margin-bottom: var(--e-6);
  font-size: var(--t-l);
  line-height: 1.45;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
}
.hero__statut {
  margin: 0;
  font-size: var(--t-s);
  color: var(--lichen);
}

/* Entrée du hero : un seul mouvement, au chargement */
@media (prefers-reduced-motion: no-preference) {
  .hero__texte > * {
    animation: monter 700ms var(--ease-out) both;
  }
  .hero__titre {
    animation-delay: 80ms;
  }
  .hero__chapo {
    animation-delay: 160ms;
  }
  .hero__actions {
    animation-delay: 240ms;
  }
}
@keyframes monter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* --------------------------------------------------------------------------
 * Photos
 * ------------------------------------------------------------------------ */
.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--lichen-2);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
 * 2. Douleur
 * ------------------------------------------------------------------------ */
.douleur {
  display: grid;
  gap: var(--e-7);
}
.douleur__texte {
  max-width: var(--mesure);
}
.douleur__texte p {
  max-width: 34rem;
}
.douleur__photo {
  aspect-ratio: 4 / 5;
}
.constat {
  display: grid;
  gap: var(--e-2);
  margin: var(--e-6) 0 0;
  padding-top: var(--e-5);
  border-top: 2px solid var(--ardoise);
}
.constat__chiffre {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-chiffre);
  line-height: 1;
  color: var(--lie);
}
.constat figcaption {
  max-width: 30rem;
  font-size: var(--t-m);
}
.source {
  display: block;
  margin-top: var(--e-1);
  font-size: var(--t-xs);
  color: var(--texte-2);
}
@media (min-width: 60rem) {
  .douleur {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--e-8);
  }
}

/* --------------------------------------------------------------------------
 * 3. Promesse : l'addition (signature)
 * ------------------------------------------------------------------------ */
.promesse {
  background: var(--ardoise);
  color: var(--papier);
}
.promesse picture,
.promesse__photo {
  display: block;
  width: 100%;
}
.promesse__photo {
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  object-fit: cover;
}
.promesse__texte {
  position: relative;
  max-width: var(--largeur);
  margin: calc(-1 * var(--e-9)) auto 0;
  padding: var(--e-7) var(--goutiere) var(--e-9);
  background: var(--ardoise);
}
@media (min-width: 60rem) {
  .promesse__texte {
    margin-inline: max(var(--goutiere), calc((100% - var(--largeur)) / 2));
    padding: var(--e-8) var(--e-8) var(--e-9);
    border-radius: var(--rayon) var(--rayon) 0 0;
  }
}
.promesse .titre-section {
  max-width: 44rem;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
}
.promesse__chapo {
  max-width: 40rem;
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--lichen);
}
.promesse__chapo strong {
  color: var(--papier);
  font-weight: 650;
}

.addition {
  margin-top: var(--e-7);
}
.addition__termes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--e-5) 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cle {
  display: grid;
  justify-items: center;
  gap: var(--e-2);
  width: 5.25rem;
  position: relative;
}
.cle + .cle::before {
  content: "+";
  position: absolute;
  left: -0.5rem;
  top: 1.85rem;
  font: 600 var(--t-l) / 1 var(--sans);
  color: var(--pierre-claire);
  transform: translateX(-50%);
}
.cle {
  margin-left: 1.25rem;
}
.cle:first-child {
  margin-left: 0;
}
/* l'étiquette de clé : bloc arrondi, trou de l'anneau en haut */
.cle__nombre {
  display: grid;
  place-items: end center;
  width: 3.5rem;
  height: 5rem;
  padding-bottom: var(--e-2);
  border-radius: 0.6rem;
  background:
    radial-gradient(circle at 50% 0.95rem, var(--ardoise) 0.34rem, transparent 0.38rem),
    var(--moutarde);
  color: var(--ardoise);
  font: 750 1.5rem / 1 var(--display);
  font-variant-numeric: lining-nums;
  transform-origin: 50% 0.95rem;
}
@media (min-width: 60rem) {
  .cle {
    width: 5.75rem;
  }
  .cle + .cle::before {
    top: 2.4rem;
  }
  .cle__nombre {
    width: 4.5rem;
    height: 6.25rem;
    border-radius: 0.75rem;
    background:
      radial-gradient(circle at 50% 1.15rem, var(--ardoise) 0.42rem, transparent 0.46rem),
      var(--moutarde);
    font-size: 2rem;
    transform-origin: 50% 1.15rem;
  }
}
.cle__type {
  font-size: var(--t-xs);
  line-height: 1.25;
  text-align: center;
  color: var(--lichen);
}
.addition__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--e-4);
  margin: var(--e-6) 0 var(--e-3);
  padding-top: var(--e-5);
  border-top: 1px solid var(--ardoise-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1.1;
}
.addition__total .chiffre {
  font-size: var(--t-chiffre);
  font-weight: 800;
  line-height: 1;
  color: var(--moutarde);
}
.addition__egal {
  color: var(--pierre-claire);
}
.addition__note {
  margin: 0;
  font-size: var(--t-s);
  color: var(--pierre-claire);
}

/* l'accrochage : chaque étiquette arrive suspendue et se balance une fois */
@media (prefers-reduced-motion: no-preference) {
  .addition[data-etat="attente"] .cle {
    opacity: 0;
  }
  .addition[data-etat="attente"] .cle__nombre {
    transform: translateY(-14px) rotate(-14deg);
  }
  .cle {
    transition: opacity var(--d-moyen) ease-out;
  }
  .cle__nombre {
    transition: transform var(--d-cle) var(--ease-cle);
  }
  .addition[data-etat="attente"] .cle[data-accrochee] {
    opacity: 1;
  }
  .addition[data-etat="attente"] .cle[data-accrochee] .cle__nombre {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
 * 4. Méthode
 * ------------------------------------------------------------------------ */
.methode__tete {
  display: grid;
  gap: var(--e-4);
  margin-bottom: var(--e-8);
}
.methode__tete p {
  max-width: 34rem;
  margin: 0;
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--texte-2);
}
@media (min-width: 60rem) {
  .methode__tete {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--e-8);
  }
  .methode__tete .titre-section {
    margin: 0;
  }
}
.temps {
  display: grid;
  gap: var(--e-8);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.temps__etape .photo {
  aspect-ratio: 4 / 5;
  margin-bottom: var(--e-5);
}
.temps__titre {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
  margin: 0 0 var(--e-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 1.2;
}
.temps__numero {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--lie);
}
.temps__etape p {
  max-width: 30rem;
  margin: 0;
  color: var(--texte-2);
}
@media (min-width: 60rem) {
  .temps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--e-6);
  }
  /* les étapes descendent comme on lit : l'ordre se voit */
  .temps__etape:nth-child(2) {
    margin-top: var(--e-8);
  }
  .temps__etape:nth-child(3) {
    margin-top: calc(var(--e-8) * 2);
  }
}

/* --------------------------------------------------------------------------
 * 5. Maquette du tableau de capacité
 * ------------------------------------------------------------------------ */
.tableau {
  background: var(--lichen);
}
.tableau__tete {
  margin-bottom: var(--e-6);
}
.tableau__tete p {
  max-width: 38rem;
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--texte-2);
}
.etiquette-fictif {
  max-width: 44rem;
  margin-bottom: var(--e-4);
  padding: var(--e-2) var(--e-4);
  border-left: 4px solid var(--lie);
  background: var(--papier);
  font-size: var(--t-s);
}
.appli {
  overflow: hidden;
  border: var(--trait) solid var(--lichen-2);
  border-radius: var(--rayon-appli);
  background: var(--papier);
  box-shadow: 0 1px 0 var(--lichen-2), 0 18px 40px -24px rgb(var(--voile) / 0.35);
  font-size: var(--t-s);
}
.appli__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-2) var(--e-5);
  padding: var(--e-3) var(--e-5);
  border-bottom: var(--trait) solid var(--lichen-2);
}
.appli__barre img {
  height: 1rem;
  width: auto;
}
.appli__barre p {
  margin: 0;
}
.appli__territoire {
  font-weight: 650;
}
.appli__date {
  margin-left: auto !important;
  color: var(--texte-2);
}
.appli__reglages {
  display: grid;
  gap: var(--e-5);
  padding: var(--e-5);
}
@media (min-width: 60rem) {
  .appli__reglages {
    grid-template-columns: auto minmax(16rem, 1fr);
    align-items: end;
    gap: var(--e-7);
  }
}
.choix-groupe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
  margin: 0;
  padding: 0;
  border: 0;
}
.choix-groupe legend {
  margin-bottom: var(--e-2);
  padding: 0;
  font-weight: 650;
}
.choix-groupe label {
  position: relative;
}
.choix-groupe input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choix-groupe span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--e-2) var(--e-4);
  border: var(--trait) solid var(--lichen-2);
  border-radius: var(--rayon);
  background: var(--papier);
  font-weight: 550;
  transition:
    background-color var(--d-court) ease,
    border-color var(--d-court) ease;
}
.choix-groupe input:checked + span {
  border-color: var(--ardoise);
  background: var(--ardoise);
  color: var(--papier);
}
.choix-groupe input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.rayon label {
  display: block;
  margin-bottom: var(--e-2);
  font-weight: 650;
}
.rayon output {
  font-size: var(--t-l);
  color: var(--lie);
}
.rayon input[type="range"] {
  width: 100%;
  height: var(--cible);
  margin: 0;
  accent-color: var(--lie);
  cursor: pointer;
}

.jauge {
  padding: 0 var(--e-5) var(--e-5);
}
.jauge__piste {
  position: relative;
  height: 0.875rem;
  border-radius: 999px;
  background: var(--lichen);
  overflow: visible;
}
.jauge__rempli {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--moutarde);
  transition: width 420ms var(--ease-out);
}
.jauge[data-complet="true"] .jauge__rempli {
  background: var(--lie);
}
.jauge__cible {
  position: absolute;
  top: -0.375rem;
  bottom: -0.375rem;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ardoise);
  transition: left 420ms var(--ease-out);
}
.jauge__texte {
  margin: var(--e-2) 0 0;
  font-size: var(--t-m);
}
.jauge__texte .chiffre {
  font-family: var(--display);
  font-weight: 750;
  font-size: var(--t-l);
}

.appli__corps {
  display: grid;
  border-top: var(--trait) solid var(--lichen-2);
}
@media (min-width: 60rem) {
  .appli__corps {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .appli__sejour {
    border-left: var(--trait) solid var(--lichen-2);
  }
}
.appli__liste {
  overflow-x: auto;
}
.appli table {
  width: 100%;
  border-collapse: collapse;
}
.appli caption {
  padding: var(--e-3) var(--e-5) var(--e-2);
  text-align: left;
  font-weight: 650;
}
.appli th,
.appli td {
  padding: var(--e-2) var(--e-3);
  border-bottom: var(--trait) solid var(--lichen);
  text-align: left;
  vertical-align: top;
}
.appli th:first-child,
.appli td:first-child {
  padding-left: var(--e-5);
}
.appli thead th {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--texte-2);
}
.appli td.nombre,
.appli th.nombre {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hebergeur__nom {
  display: block;
  font-weight: 600;
}
.hebergeur__secteur {
  display: block;
  font-size: var(--t-xs);
  color: var(--texte-2);
}
.hebergeur__km {
  display: none;
}
@media (max-width: 40rem) {
  .appli .col-km {
    display: none;
  }
  .hebergeur__km {
    display: inline;
  }
  .appli th,
  .appli td {
    padding-inline: var(--e-2);
  }
}
.statut {
  display: inline-block;
  padding: 0 var(--e-2);
  border-radius: 4px;
  font-size: var(--t-xs);
  font-weight: 650;
  white-space: nowrap;
}
.statut--retenu {
  background: var(--moutarde-pale);
  color: var(--ardoise);
}
.statut--reserve {
  color: var(--texte-2);
}
.statut--complet {
  background: var(--lie-pale);
  color: var(--lie);
}
.statut--loin {
  color: var(--pierre-claire);
}
tr[data-etat="loin"] td,
tr[data-etat="loin"] .hebergeur__secteur {
  color: #8c8d85;
}
tr[data-etat="complet"] .hebergeur__nom,
tr[data-etat="ferme"] .hebergeur__nom {
  text-decoration: line-through;
  text-decoration-color: var(--lie);
}

.appli__sejour {
  padding: var(--e-3) var(--e-5) var(--e-5);
}
.appli__sous-titre {
  margin: 0 0 var(--e-3);
  font: 650 var(--t-s) / 1.4 var(--sans);
}
.sejour {
  display: grid;
  gap: var(--e-2);
  margin: 0 0 var(--e-5);
  padding: 0;
  list-style: none;
}
.sejour li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--e-3);
  padding-bottom: var(--e-2);
  border-bottom: var(--trait) solid var(--lichen);
}
.sejour__quand {
  font-weight: 650;
  color: var(--lie);
}
.depense {
  padding: var(--e-4);
  border-radius: var(--rayon);
  background: var(--lichen);
}
.depense p {
  margin: 0;
}
.depense__titre {
  font-weight: 650;
}
.depense__montant {
  font: 800 var(--t-xl) / 1.15 var(--display);
}
.depense__calcul {
  font-size: var(--t-xs);
  color: var(--texte-2);
}
.maquette__phrase {
  max-width: 52rem;
  min-height: 2.9em;
  margin: 0;
  padding: 0 var(--e-5) var(--e-5);
  font-family: var(--display);
  font-size: var(--t-m);
  line-height: 1.45;
}
.jauge {
  padding-bottom: var(--e-3);
}

/* --------------------------------------------------------------------------
 * 6. Ce que le territoire reçoit
 * ------------------------------------------------------------------------ */
.recu {
  display: grid;
  gap: var(--e-7);
}
.recu__photo {
  aspect-ratio: 4 / 5;
}
.gains {
  display: grid;
  gap: var(--e-6);
  margin: var(--e-6) 0 0;
}
.gains__ligne {
  padding-top: var(--e-4);
  border-top: 2px solid var(--ardoise);
}
.gains dt {
  margin-bottom: var(--e-2);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 1.25;
}
.gains dd {
  max-width: 34rem;
  margin: 0;
  color: var(--texte-2);
}
@media (min-width: 60rem) {
  .recu {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: var(--e-8);
  }
  .recu__photo {
    position: sticky;
    top: var(--e-6);
  }
}

/* --------------------------------------------------------------------------
 * 7. Offre et prix
 * ------------------------------------------------------------------------ */
.offre {
  background: var(--ardoise);
  color: var(--papier);
}
.offre__tete {
  margin-bottom: var(--e-7);
}
.offre__tete .titre-section {
  max-width: 46rem;
}
.offre__resume {
  max-width: 38rem;
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--lichen);
}
.offre__corps {
  display: grid;
  gap: var(--e-7);
}
@media (min-width: 60rem) {
  .offre__corps {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: var(--e-8);
  }
}
.calendrier {
  margin: 0 0 var(--e-7);
  padding: 0;
  list-style: none;
}
.calendrier li {
  position: relative;
  padding: 0 0 var(--e-5) var(--e-6);
  border-left: 2px solid var(--ardoise-3);
}
.calendrier li:last-child {
  border-left-color: transparent;
}
.calendrier li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.3rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--moutarde);
}
.calendrier p {
  margin: 0;
}
.calendrier__quand {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 1.2;
}
.calendrier__quoi {
  max-width: 32rem;
  color: var(--lichen);
}
.inclus {
  display: grid;
  gap: var(--e-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.inclus li {
  position: relative;
  padding-left: var(--e-6);
  color: var(--lichen);
}
.inclus li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.4rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--moutarde);
  border-bottom: 2.5px solid var(--moutarde);
  transform: rotate(-45deg);
}
.inclus strong {
  color: var(--papier);
  font-weight: 650;
}

.tarif {
  padding: var(--e-6) var(--e-5);
  border-radius: var(--rayon-appli);
  background: var(--papier);
  color: var(--ardoise);
}
@media (min-width: 40rem) {
  .tarif {
    padding: var(--e-7) var(--e-6);
  }
}
.tarif__etiquette {
  display: inline-block;
  margin-bottom: var(--e-3);
  padding: 0 var(--e-2);
  border-radius: 4px;
  background: var(--lie-pale);
  color: var(--lie);
  font-size: var(--t-s);
  font-weight: 650;
}
.tarif__montant {
  margin-bottom: var(--e-5);
  font-size: var(--t-m);
}
.tarif__montant .chiffre {
  display: block;
  font: 800 clamp(2rem, 1.5rem + 2vw, 2.75rem) / 1.1 var(--display);
}
.paliers {
  width: 100%;
  margin-bottom: var(--e-5);
  border-collapse: collapse;
}
.paliers caption {
  margin-bottom: var(--e-2);
  text-align: left;
  font-size: var(--t-s);
  font-weight: 650;
}
.paliers th,
.paliers td {
  padding: var(--e-2) 0;
  border-top: var(--trait) solid var(--lichen-2);
  font-weight: 450;
  text-align: left;
}
.paliers td {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tarif__suite {
  font-size: var(--t-s);
  color: var(--texte-2);
}
.ancre {
  margin: var(--e-6) 0;
  padding-top: var(--e-5);
  border-top: 2px solid var(--ardoise);
}
.ancre__titre {
  font-weight: 700;
}
.echelle {
  display: grid;
  gap: var(--e-4);
  margin-bottom: var(--e-4);
}
.echelle__ligne {
  display: grid;
  gap: var(--e-1);
}
.echelle__nom {
  font-size: var(--t-s);
}
.echelle__piste {
  position: relative;
  height: 0.875rem;
  border-radius: 3px;
  background: var(--lichen);
}
.echelle__bande {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--de) * 1%);
  width: calc((var(--a) - var(--de)) * 1%);
  border-radius: 3px;
  background: var(--pierre-claire);
}
.echelle__ligne--nous .echelle__nom {
  font-weight: 700;
}
.echelle__ligne--nous .echelle__bande {
  background: var(--moutarde);
}
.echelle__mediane {
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  left: calc(var(--x) * 1%);
  width: 3px;
  background: var(--ardoise);
}
.echelle__axe {
  position: relative;
  height: 1.2rem;
  font-size: var(--t-xs);
  color: var(--texte-2);
}
.echelle__axe span {
  position: absolute;
  left: calc(var(--x) * 1%);
  transform: translateX(-50%);
}
.echelle__axe span:first-child {
  transform: none;
}
.echelle__axe span:last-child {
  left: auto;
  right: 0;
  transform: none;
}
.ancre__texte {
  margin: 0;
  font-size: var(--t-s);
  color: var(--texte-2);
}

.garantie {
  margin-top: var(--e-8) !important;
  padding: var(--e-6) var(--e-5);
  border-radius: var(--rayon-appli);
  background: var(--lie);
  color: var(--papier);
}
@media (min-width: 60rem) {
  .garantie {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--e-7);
    padding: var(--e-7);
  }
}
.garantie__titre {
  margin: 0 0 var(--e-3);
  font: 750 var(--t-xl) / 1.1 var(--display);
  text-wrap: balance;
}
.garantie p {
  max-width: 40rem;
  margin: 0;
  font-size: var(--t-l);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
 * 8. Questions
 * ------------------------------------------------------------------------ */
.questions > * {
  max-width: 50rem;
}
.faq {
  border-top: 2px solid var(--ardoise);
}
.faq details {
  border-bottom: var(--trait) solid var(--filet);
}
.faq summary {
  position: relative;
  display: block;
  padding: var(--e-5) var(--e-7) var(--e-5) 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: var(--t-l);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--e-2);
  top: 50%;
  font: 500 1.75rem / 1 var(--sans);
  color: var(--lie);
  transform: translateY(-50%);
  transition: transform var(--d-moyen) var(--ease-out);
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  max-width: 42rem;
  margin: 0 0 var(--e-5);
  color: var(--texte-2);
}

/* --------------------------------------------------------------------------
 * 9. Appel final
 * ------------------------------------------------------------------------ */
.appel-final {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(80svh, 44rem);
  padding: var(--e-9) var(--goutiere);
  color: var(--papier);
  background: var(--ardoise);
  isolation: isolate;
}
.appel-final picture,
.appel-final__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
/* le hameau éclairé est recadré à droite de la photo : il reste visible à côté du texte */
.appel-final__photo {
  object-fit: cover;
  object-position: 78% 72%;
}
.appel-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgb(var(--voile) / 0.9) 0%, rgb(var(--voile) / 0.75) 42%, rgb(var(--voile) / 0) 68%);
}
@media (max-width: 40rem) {
  .appel-final::before {
    background: linear-gradient(to bottom, rgb(var(--voile) / 0.85) 0%, rgb(var(--voile) / 0.7) 60%, rgb(var(--voile) / 0.35) 100%);
  }
}
.appel-final__texte {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
}
.appel-final__texte > * {
  max-width: 36rem;
}
.appel-final .titre-section {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
}
.appel-final p {
  margin-bottom: var(--e-6);
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--lichen);
}

/* --------------------------------------------------------------------------
 * Pied de page
 * ------------------------------------------------------------------------ */
.pied {
  display: grid;
  gap: var(--e-4);
  padding: var(--e-7) var(--goutiere) calc(var(--e-7) + 4.5rem);
  background: var(--ardoise);
  color: var(--pierre-claire);
  font-size: var(--t-s);
}
.pied img {
  height: 1.25rem;
  width: auto;
}
.pied p {
  max-width: 44rem;
  margin: 0;
}
@media (min-width: 40rem) {
  .pied {
    padding-bottom: var(--e-7);
  }
}

/* --------------------------------------------------------------------------
 * Barre d'action mobile
 * ------------------------------------------------------------------------ */
.barre-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  padding: var(--e-3) var(--e-4) calc(var(--e-3) + env(safe-area-inset-bottom));
  background: var(--ardoise);
  box-shadow: 0 -1px 0 var(--ardoise-3);
  transition: transform var(--d-moyen) var(--ease-out);
}
.barre-cta .bouton {
  width: 100%;
}
.barre-cta[data-visible="false"] {
  transform: translateY(110%);
}
@media (min-width: 40rem) {
  .barre-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
 * Fausse porte
 * ------------------------------------------------------------------------ */
.porte {
  width: min(36rem, calc(100% - 2 * var(--e-4)));
  max-height: calc(100dvh - 2 * var(--e-4));
  padding: 0;
  border: 0;
  border-radius: var(--rayon-appli);
  background: var(--papier);
  color: var(--ardoise);
  overflow-y: auto;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--d-moyen) var(--ease-out),
    transform var(--d-moyen) var(--ease-out),
    overlay var(--d-moyen) allow-discrete,
    display var(--d-moyen) allow-discrete;
}
.porte::backdrop {
  background: rgb(var(--voile) / 0.72);
  transition:
    background-color var(--d-moyen) ease,
    overlay var(--d-moyen) allow-discrete,
    display var(--d-moyen) allow-discrete;
}
.porte:not([open]) {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}
@starting-style {
  .porte[open] {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  .porte[open]::backdrop {
    background: rgb(var(--voile) / 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .porte,
  .porte:not([open]) {
    transform: none;
  }
}
.porte__tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-4);
  padding: var(--e-5) var(--e-5) 0;
}
.porte__tete h2 {
  margin: 0;
  font: 750 var(--t-l) / 1.2 var(--display);
}
.porte__fermer {
  flex: none;
  width: var(--cible);
  height: var(--cible);
  margin: calc(-1 * var(--e-3)) calc(-1 * var(--e-3)) 0 0;
  border: 0;
  border-radius: var(--rayon);
  background: none;
  color: var(--ardoise);
  font: 400 2rem / 1 var(--sans);
  cursor: pointer;
}
.porte__fermer:hover {
  background: var(--lichen);
}
.porte__formulaire,
.porte__proposition {
  padding: var(--e-4) var(--e-5) var(--e-5);
}
.porte__franchise {
  font-size: var(--t-s);
  color: var(--texte-2);
}
.porte__progression {
  margin: var(--e-5) 0 var(--e-2);
  font-size: var(--t-s);
  font-weight: 650;
}
.porte__barre {
  height: 4px;
  margin-bottom: var(--e-5);
  border-radius: 2px;
  background: var(--lichen);
}
.porte__barre span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--lie);
  transition: width var(--d-moyen) var(--ease-out);
}
.question {
  display: grid;
  gap: var(--e-2);
  margin: 0;
  padding: 0;
  border: 0;
}
.question legend {
  margin-bottom: var(--e-3);
  padding: 0;
  font: 700 var(--t-l) / 1.3 var(--display);
}
.question__aide {
  display: block;
  font: 400 var(--t-s) / 1.4 var(--sans);
  color: var(--texte-2);
}
.question label {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  min-height: var(--cible);
  padding: var(--e-2) var(--e-4);
  border: var(--trait) solid var(--lichen-2);
  border-radius: var(--rayon);
  cursor: pointer;
  transition:
    border-color var(--d-court) ease,
    background-color var(--d-court) ease;
}
.question label:has(input:checked) {
  border-color: var(--lie);
  background: var(--lie-pale);
}
@media (hover: hover) and (pointer: fine) {
  .question label:hover {
    border-color: var(--ardoise-3);
  }
}
.question input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--lie);
}
.porte__erreur {
  margin: var(--e-3) 0 0;
  color: var(--lie);
  font-weight: 650;
}
.porte__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
  margin-top: var(--e-5);
}
.porte__formulaire .porte__actions {
  flex-direction: row-reverse;
  justify-content: space-between;
}
.porte__formulaire .porte__actions .bouton {
  width: auto;
  flex: 1 1 12rem;
}
.proposition__statut {
  padding: var(--e-2) var(--e-3);
  border-left: 4px solid var(--lie);
  background: var(--lie-pale);
  font-size: var(--t-s);
}
.proposition__titre {
  margin: var(--e-5) 0 var(--e-1);
  font: 750 var(--t-xl) / 1.1 var(--display);
}
.proposition__prix {
  font-size: var(--t-m);
}
.proposition__prix .chiffre {
  font: 800 var(--t-xl) / 1.1 var(--display);
  color: var(--lie);
}
.proposition__lignes {
  display: grid;
  gap: var(--e-3);
  margin: 0 0 var(--e-5);
  padding: 0;
  list-style: none;
}
.proposition__lignes li {
  padding-top: var(--e-3);
  border-top: var(--trait) solid var(--lichen-2);
}
.proposition__lignes strong {
  display: block;
}
.proposition__merci {
  font-size: var(--t-s);
  color: var(--texte-2);
}
