/* Palette reprise telle quelle de l'application (src/design/theme.ts) : le site et l'app
   doivent se reconnaitre. */
:root {
  --petrole: #244A4B;
  --petrole-fonce: #193638;
  --ivoire: #F8F4EC;
  --porcelaine: #FFFDF8;
  --sauge: #E9EEE5;
  --sauge-dense: #D8E1D3;
  --graphite: #243332;
  --graphite-doux: #66716D;
  --separateur: #D9DED4;
  --vert: #3F8F68;
  --ambre: #C47A24;

  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --page: 68rem;
  --rayon: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--graphite);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Un grain tres leger : sans lui, les grands aplats d'ivoire paraissent plats a l'ecran. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.045'/%3E%3C/svg%3E");
}

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

a { color: var(--petrole); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.large { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.etroit { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--petrole);
  letter-spacing: -.015em;
  margin: 0;
}

h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.32rem; line-height: 1.25; }

p { margin: 0; }
.chapeau { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--graphite-doux); line-height: 1.6; }
.discret { color: var(--graphite-doux); }

.oeil {
  display: inline-block;
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--graphite-doux);
  background: var(--sauge);
  border-radius: 999px;
  padding: .7em 1.15em;
}

/* ---------- En-tete ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ivoire) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header.site:has(+ main .hero:not(:hover)) { border-color: var(--separateur); }

header.site .large {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.15rem;
}

.marque {
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -.01em;
  color: var(--petrole);
  text-decoration: none;
  justify-self: start;
}

header.site nav { display: flex; align-items: center; gap: 2.2rem; }
header.site nav a { color: var(--graphite-doux); text-decoration: none; font-size: .97rem; font-weight: 500; }
header.site nav a:hover { color: var(--petrole); }

header.site .action { justify-self: end; }
header.site .action .bouton { padding: .72rem 1.3rem; font-size: .94rem; }

@media (max-width: 56rem) {
  header.site .large { grid-template-columns: 1fr auto; }
  header.site nav { display: none; }
}

/* ---------- Boutons ---------- */

.bouton, .bouton-clair {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 14px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.bouton {
  background: var(--petrole);
  color: var(--porcelaine);
  box-shadow: 0 10px 24px -14px rgba(25, 54, 56, .75);
}
.bouton:hover { background: var(--petrole-fonce); transform: translateY(-2px); }
.bouton-clair {
  background: transparent;
  color: var(--petrole);
  border: 1px solid var(--separateur);
}
.bouton-clair:hover { background: var(--porcelaine); transform: translateY(-2px); }

/* ---------- Sections ---------- */

section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.entete-section { display: grid; gap: 1rem; justify-items: center; text-align: center; margin-bottom: 3.5rem; }
.entete-section .chapeau { max-width: 34rem; }

/* ---------- Hero ---------- */

/* Le bloc entier est centre dans la hauteur visible plutot que colle sous la barre :
   le texte et l'illustration se repondent au milieu de l'ecran. */
.hero {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  min-height: min(86vh, 44rem);
  display: grid;
  align-content: center;
}
/* Le hero deborde la largeur du reste : l'illustration a besoin de place, et la colonne
   de texte doit rester assez large pour tenir ses trois badges sur une ligne. */
.hero .large { width: min(100% - 2.5rem, 78rem); display: grid; gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: center; }
/* Deux colonnes seulement quand la colonne de texte est assez large pour tenir les
   trois badges sur une ligne — l'illustration ayant pris de la place, ce seuil a monte.
   En dessous, le hero s'empile, ce qui respire mieux qu'un texte comprime. */
@media (min-width: 76rem) {
  .hero .large { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
  /* L'illustration mord un peu sur la gouttiere : elle respire, et se rapproche du texte. */
  .hero .visuel { margin-left: -2rem; }
}
.hero .texte { display: grid; gap: 1.6rem; justify-items: start; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--porcelaine);
  border-radius: 999px;
  padding: .38rem 1rem .38rem .38rem;
  box-shadow: 0 2px 10px -6px rgba(36, 51, 50, .3), 0 0 0 1px rgba(217, 222, 212, .7);
  font-size: .875rem;
  font-weight: 500;
  color: var(--graphite);
  white-space: nowrap;
}

.badge .rond {
  display: grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: var(--sauge);
  color: var(--petrole);
  flex: none;
}
.badge svg { width: 1rem; height: 1rem; }

/* ---------- Emplacements d'illustration ---------- */

/* Le fond sauge tient la place : la page reste presentable avant que les visuels
   n'existent, et rien ne casse si l'un d'eux manque. */
.visuel {
  background: linear-gradient(160deg, var(--sauge) 0%, var(--porcelaine) 100%);
  border-radius: var(--rayon);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel.libre { aspect-ratio: auto; background: none; border-radius: 0; }

/* ---------- Cartes ---------- */

.grille { display: grid; gap: 1.5rem; }
.grille.deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grille.trois { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.carte {
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: var(--rayon);
  padding: 1.9rem;
  display: grid;
  gap: .9rem;
  align-content: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -32px rgba(36, 51, 50, .5); }
.carte p { color: var(--graphite-doux); }
.carte .visuel { margin-bottom: .4rem; background: none; }
.carte .visuel img { object-fit: contain; }

.numero {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--petrole);
  color: var(--porcelaine);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- Fonctionnalites ---------- */

.grille-fonctions { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .grille-fonctions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fonction {
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: var(--rayon);
  padding: 1.9rem;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.4rem;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fonction:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -34px rgba(36, 51, 50, .55); }

.fonction .propos { display: grid; gap: .75rem; align-content: center; justify-items: start; }
.fonction .propos p { color: var(--graphite-doux); font-size: .96rem; }
.fonction h3 { font-size: 1.45rem; line-height: 1.15; }

/* L'illustration porte deja son fond ivoire : pas de panneau derriere elle. */
.fonction .visuel { background: none; border-radius: 16px; aspect-ratio: 4 / 3; }
.fonction .visuel img { object-fit: contain; }

@media (max-width: 32rem) {
  .fonction { grid-template-columns: 1fr; }
  .fonction .visuel { order: -1; }
}

.apres-grille { display: grid; justify-items: center; margin-top: 3rem; }

/* ---------- Bandeau des espaces ---------- */

/* Ce qui distingue l'application d'un enieme carnet de courses : elle ne s'arrete pas
   a la cuisine. Des icones suffisent — une huitieme illustration 3D diluerait les sept
   precedentes au lieu d'ajouter quoi que ce soit. */
.espaces {
  margin-top: 2.5rem;
  background: var(--sauge);
  border-radius: var(--rayon);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.espaces p { color: var(--graphite); font-size: 1.05rem; max-width: 32rem; }
.espaces ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.espaces li { display: grid; justify-items: center; gap: .55rem; font-size: .92rem; color: var(--graphite); width: 5.5rem; }
.espaces .rond {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--porcelaine);
  color: var(--petrole);
}
.espaces svg { width: 1.35rem; height: 1.35rem; }

/* Sur telephone, un ecart plus serre range les cinq espaces en trois puis deux, plutot
   qu'en deux, deux et un seul esseule. */
@media (max-width: 30rem) {
  .espaces ul { gap: 1.1rem .9rem; }
  .espaces li { width: 4.9rem; font-size: .86rem; }
}

/* ---------- Foyers ---------- */

/* Colonne flexible plutot que grille : « margin-top: auto » sur les etiquettes les colle
   au bas de la carte, quelle que soit la longueur du titre ou du texte au-dessus. */
#foyers .carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.6rem;
}

/* Les visages relies par la maison : un seul, puis deux, puis quatre. La progression se
   lit avant meme le titre. */
.trombinoscope {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.6rem;
  margin-bottom: .3rem;
}
/* Le trait passe derriere les visages et s'arrete a leurs extremites. */
.trombinoscope::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: var(--separateur);
}
.trombinoscope > * { position: relative; }

/* Ni fond ni bordure : l'illustration porte deja son cercle, un second ferait une double
   bague. Le masque rond, lui, reste : il rattrape les meches et les epaules qui debordent
   de l'anneau et qui, sans lui, mordent sur la carte. */
.visage {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.visage img, .maisonnette img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Un cran sous les visages : la maison relie les gens, elle n'est pas l'un d'eux. */
.maisonnette {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

/* Sur telephone, la rangee de quatre tenait a trois pour cent pres. La progression des
   visages est le coeur du visuel : mieux vaut de la marge qu'un retour a la ligne au
   moindre ecart de rendu. */
@media (max-width: 26rem) {
  .trombinoscope { gap: .4rem; }
  .visage { width: 2.7rem; height: 2.7rem; }
  .visage svg { width: 1.4rem; height: 1.4rem; }
  .maisonnette { width: 2.2rem; height: 2.2rem; }
}

.etiquettes { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: auto; }
.etiquette-douce {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--sauge);
  border-radius: 999px;
  padding: .38rem .7rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--graphite);
  white-space: nowrap;
}
.etiquette-douce svg { width: .95rem; height: .95rem; color: var(--petrole); flex: none; }

/* La carte « Seul » montre un telephone plutot qu'une icone perdue au milieu du vide :
   c'est ce que dit son texte — le stock reste la, sur l'appareil. */
/* Le telephone et le texte cote a cote, les etiquettes en dessous sur toute la largeur :
   elles y tiennent sur une ligne, ce que la colonne de droite seule ne permettait pas. */
#foyers .carte.solo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  text-align: left;
  gap: 1rem .9rem;
}
#foyers .carte.solo .colonne { display: flex; flex-direction: column; gap: .6rem; }
/* Le visage coiffe les deux colonnes, comme les rangees des deux autres cartes. Le trait
   de liaison n'a rien a relier quand on est seul : on le retire. */
#foyers .carte.solo .trombinoscope { grid-column: 1 / -1; }
#foyers .carte.solo .trombinoscope::before { display: none; }
#foyers .carte.solo .etiquettes { grid-column: 1 / -1; justify-content: flex-start; margin-top: 0; }

.telephone {
  flex: none;
  width: 4.9rem;
  border-radius: 11px;
  border: 2.5px solid var(--graphite);
  background: var(--ivoire);
  padding: .45rem .35rem .55rem;
  display: grid;
  gap: .3rem;
  box-shadow: 0 12px 26px -20px rgba(36, 51, 50, .9);
}
.telephone .titre {
  font-size: .48rem;
  font-weight: 700;
  color: var(--petrole);
  padding-left: .2rem;
  margin-bottom: .1rem;
}
.telephone .ligne {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: var(--porcelaine);
  border-radius: 6px;
  padding: .25rem .3rem;
}
.telephone .pastille { width: .48rem; height: .48rem; border-radius: 50%; flex: none; }
.telephone .texte { display: grid; gap: .12rem; flex: 1; }
.telephone .texte i { display: block; height: .22rem; border-radius: 999px; background: var(--sauge-dense); }
.telephone .texte i:last-child { width: 55%; background: var(--sauge); }

@media (max-width: 26rem) {
  #foyers .carte.solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  #foyers .carte.solo .colonne { align-items: center; }
  #foyers .carte.solo .etiquettes { justify-content: center; }
}

/* ---------- Tarifs ---------- */

.offres { display: grid; gap: 1.5rem; align-items: stretch; max-width: 54rem; margin-inline: auto; }
/* Colonnes inegales : l'offre partagee est plus large que la gratuite, l'oeil sait ou
   regarder avant d'avoir lu le moindre prix. */
@media (min-width: 48rem) { .offres { grid-template-columns: minmax(0, 1fr) minmax(0, 1.26fr); } }

.offre {
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: var(--rayon);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offre .entete { padding: 2rem 1.75rem 1.5rem; text-align: center; border-bottom: 1px solid var(--separateur); }
.offre .nom { font-weight: 700; font-size: 1.1rem; color: var(--petrole); }
.offre .prix {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--petrole);
  margin-top: .5rem;
}
.offre .prix span { font-size: 1.05rem; font-family: var(--sans); font-weight: 400; color: var(--graphite-doux); }
.offre .mention { color: var(--graphite-doux); font-size: .93rem; margin-top: .6rem; }

.offre .corps { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.offre .accroche { color: var(--graphite-doux); font-size: .95rem; text-align: center; }
.offre ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.offre li { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .95rem; }
.offre li svg { width: 1.15rem; height: 1.15rem; color: var(--vert); margin-top: .15rem; }
.offre .bouton, .offre .bouton-clair { justify-content: center; margin-top: auto; }

/* L'offre partagee est celle qui porte la promesse : elle se detache. */
.offre.plus { border-color: var(--petrole); box-shadow: 0 26px 54px -40px rgba(25, 54, 56, .9); }
.offre.plus .entete { background: var(--petrole); border-bottom: none; position: relative; }
.offre.plus .nom, .offre.plus .prix { color: var(--porcelaine); }
.offre.plus .prix span, .offre.plus .mention { color: color-mix(in srgb, var(--sauge) 80%, var(--petrole)); }
.ruban {
  display: inline-block;
  background: color-mix(in srgb, var(--sauge) 25%, transparent);
  color: var(--porcelaine);
  border-radius: 999px;
  padding: .35em .9em;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

/* Titre de tableau lu par les lecteurs d'ecran, invisible a l'oeil. */
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Comparatif ---------- */

.comparatif {
  max-width: 52rem;
  margin: 2rem auto 0;
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: var(--rayon);
  overflow-x: auto;
}
.comparatif table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.comparatif th, .comparatif td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--separateur); }
.comparatif tr:last-child th, .comparatif tr:last-child td { border-bottom: none; }
.comparatif thead th { color: var(--graphite-doux); font-weight: 600; font-size: .85rem; }
.comparatif tbody th { text-align: left; font-weight: 500; color: var(--graphite); white-space: nowrap; }
.comparatif .oui { color: var(--vert); font-weight: 700; }
.comparatif .non { color: var(--separateur); font-weight: 700; }

.promesse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.75rem;
  color: var(--graphite-doux);
  font-size: .92rem;
}
.promesse svg { width: 1.1rem; height: 1.1rem; color: var(--vert); }

/* ---------- Bloc confidentialite ---------- */

/* Carte claire plutot que l'aplat sombre d'avant : la promesse se lit comme le reste de
   la page, et non comme un encart juridique mis a part. */
.confiance {
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: var(--rayon);
  padding: clamp(1.6rem, 3.2vw, 2.5rem);
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}
@media (min-width: 56rem) {
  .confiance { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
}

.confiance .propos { display: flex; flex-direction: column; gap: .9rem; }
.confiance h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.16; }
/* align-self, sinon la pastille s'etire sur toute la colonne flex. */
.confiance .oeil { display: inline-flex; align-items: center; gap: .55em; align-self: start; }
.confiance .oeil svg { width: 1.05em; height: 1.05em; }
.filet { width: 3.4rem; height: 3px; border-radius: 999px; background: var(--sauge-dense); }
/* L'illustration tombe au bas de la colonne quelle que soit la longueur du texte, pour
   s'aligner sur la derniere garantie d'en face. */
/* Centree : l'illustration est carree alors que la colonne est en portrait. Calee a
   gauche, tout le vide s'accumulait d'un seul cote et se voyait. */
.confiance .scene { margin-top: auto; align-self: center; width: min(100%, 17rem); padding-top: .9rem; }

/* Centre, pas etire : etirer sur toute la hauteur ecarterait les quatre garanties de
   pres de cent pixels et detacherait les filets de leur ligne. */
.garanties { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; }
.garanties li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--separateur);
}
.garanties li:first-child { border-top: none; padding-top: 0; }
.garanties li:last-child { padding-bottom: 0; }
.garanties img { width: 4.5rem; height: 4.5rem; }
.garanties b { display: block; color: var(--petrole); font-weight: 600; font-size: 1.02rem; margin-bottom: .3rem; }
.garanties span { color: var(--graphite-doux); font-size: .95rem; }

.confiance .pied {
  grid-column: 1 / -1;
  border-top: 1px solid var(--separateur);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  color: var(--graphite-doux);
  font-size: .95rem;
}
.confiance .pied svg { width: 1.2rem; height: 1.2rem; color: var(--vert); margin-left: auto; }

@media (max-width: 30rem) {
  .garanties img { width: 3.2rem; height: 3.2rem; }
  .garanties li { gap: .9rem; }
}

/* ---------- Questions ---------- */

.questions { max-width: 46rem; margin-inline: auto; display: grid; gap: .8rem; }

.question {
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
}
.question h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.question p { color: var(--graphite); }
.question p + p { margin-top: .6rem; }

/* ---------- Appel final ---------- */

/* L'illustration est au centre du bloc, le titre au-dessus et l'appel en dessous :
   c'est la derniere image de la page, elle a droit a la place. */
.final {
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  background: var(--porcelaine);
  border: 1px solid var(--separateur);
  border-radius: var(--rayon);
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem);
}
.final .chapeau { max-width: 34rem; }
.final .visuel { width: min(100%, 44rem); margin-block: .25rem; }
.final .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Pied ---------- */

footer.site { padding-block: 3rem 4rem; border-top: 1px solid var(--separateur); }
footer.site .large { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer.site nav { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; }
footer.site a { color: var(--graphite-doux); text-decoration: none; font-size: .94rem; }
footer.site a:hover { color: var(--petrole); }
footer.site .mention { color: var(--graphite-doux); font-size: .94rem; }

/* ---------- Pages de texte ---------- */

.document { padding-block: clamp(3rem, 7vw, 5rem); }
.document h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.document h2 { font-size: 1.5rem; margin-top: 3rem; margin-bottom: .7rem; }
.document h3 { font-size: 1.1rem; margin-top: 1.9rem; margin-bottom: .4rem; }
.document p, .document li { color: var(--graphite); }
.document p + p { margin-top: 1rem; }
.document ul { padding-left: 1.2rem; display: grid; gap: .6rem; margin: 1rem 0 0; }
.document .maj { color: var(--graphite-doux); font-size: .95rem; margin-top: .4rem; }
.document table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .97rem; }
.document th, .document td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--separateur); vertical-align: top; }
.document th { color: var(--graphite-doux); font-weight: 600; }
.document .encart {
  background: var(--sauge);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  margin-top: 1.6rem;
}

/* ---------- Entree en scene ---------- */

@media (prefers-reduced-motion: no-preference) {
  .monte { animation: monte .8s cubic-bezier(.22, .68, .36, 1) backwards; }
  .monte:nth-child(2) { animation-delay: .08s; }
  .monte:nth-child(3) { animation-delay: .16s; }
  .monte:nth-child(4) { animation-delay: .24s; }
  @keyframes monte {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}
