/* Busteo. Feuille de style unique. Les choix sont décrits dans DESIGN.md. */

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

@font-face {
  font-family: "Titrage";
  src: url("/fonts/titrage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Base neutre : pages de texte, aperçu, réservation. */
  --platre: #F4F2EE;
  --galerie: #DCDAD5;
  --encre: #1B1B19;
  --pierre: #6A6862;
  /* Dérivées des quatre couleurs. */
  --pierre-sur-galerie: #54524D;
  --champ: #FAF9F7;
  --encre-survol: #32322F;
  --trait: rgb(27 27 25 / 0.16);
  --trait-fort: rgb(27 27 25 / 0.5);
  --voile: rgb(27 27 25 / 0.06);
  --secondaire: var(--pierre);

  /* Aplats pastel des écrans forts (direction d'Alex du 13.11.2026) : une teinte par écran,
     en deux nuances. Le buste y est montré ton sur ton. */
  /* Version 5 (« pièce de musée ») : les pastels sont adoucis vers le Plâtre, pour rester discrets. */
  --rose: #F2E3DF;
  --rose-soutenu: #E6BDB9;
  --ciel: #E1E8EF;
  --ciel-soutenu: #B9CEE3;
  --sauge: #E2E8DC;
  --sauge-soutenu: #BCCFB4;
  --beurre: #F3EDD6;
  --beurre-soutenu: #E6D8A6;
  --lilas: #E7E1EE;
  --lilas-soutenu: #C9BCDD;

  --titrage: "Titrage", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --texte: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-legende: 0.8125rem;
  --t-petit: 0.9375rem;
  --t-corps: 1.0625rem;
  --t-chapo: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  --t-h3: 1.1875rem;
  --t-h2: clamp(2rem, 2.6vw + 1.2rem, 3.25rem);
  --t-h1: clamp(2.5rem, 6.2vw, 3.5rem);

  --marge: clamp(1.25rem, 4vw, 3rem);
  --largeur: 78rem;
  --section: clamp(6rem, 13vw, 12rem);
  --entete: 4.5rem;

  /* Grain de papier sur les aplats pastel : bruit SVG en niveaux d’encre, opacité moyenne sous 2 %,
     au plus 4 %. Le motif est fixé à l’écran : il ne bouge pas sous l’en-tête fixe. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .106 0 0 0 0 .106 0 0 0 0 .098 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--platre);
  color: var(--encre);
  font: 400 var(--t-corps) / 1.55 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
model-viewer {
  display: block;
  max-width: 100%;
}

/* La visionneuse 3D n'affiche pas sa barre de chargement : le site a ses propres états d'attente. */
model-viewer {
  --progress-bar-color: transparent;
  --progress-bar-height: 0px;
}

/* Les attributs width et height des images ne servent qu'à réserver leur place. */
img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-family: var(--titrage);
  /* Version 5 : plus fin que la graisse 300, pour une allure de catalogue d’exposition. */
  font-weight: 260;
  /* La coupe de titrage la plus fine de Newsreader, fixée pour un rendu identique d’un navigateur à l’autre. */
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.05;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
}

h3 {
  font: 500 var(--t-h3) / 1.3 var(--texte);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: var(--marge);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--encre);
  color: var(--platre);
}

.evitement:focus {
  top: 0.5rem;
}

.cadre {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
}

[data-teinte="rose"] {
  --fond: var(--rose);
  --soutenu: var(--rose-soutenu);
}

[data-teinte="ciel"] {
  --fond: var(--ciel);
  --soutenu: var(--ciel-soutenu);
}

[data-teinte="sauge"] {
  --fond: var(--sauge);
  --soutenu: var(--sauge-soutenu);
}

[data-teinte="beurre"] {
  --fond: var(--beurre);
  --soutenu: var(--beurre-soutenu);
}

/* L’ouverture : le buste présenté comme une œuvre, sur le gris Galerie, sous une lumière douce. */
[data-teinte="galerie"] {
  --fond: var(--galerie);
  --soutenu: var(--galerie);
}

[data-teinte="lilas"] {
  --fond: var(--lilas);
  --soutenu: var(--lilas-soutenu);
}

/* Sur un pastel, le texte reste en Encre : le texte secondaire est la même Encre, un peu allégée. */
[data-teinte] {
  background: var(--grain) fixed, var(--fond);
  --secondaire: rgb(27 27 25 / 0.76);
  --trait: rgb(27 27 25 / 0.2);
}

.icone {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.chapo {
  font-size: var(--t-chapo);
  line-height: 1.45;
  color: var(--secondaire);
  max-width: 34rem;
}

.legende {
  margin-top: 0.75rem;
  font-size: var(--t-legende);
  line-height: 1.45;
  color: var(--secondaire);
}

/* ------------------------------------------------------------ bandeau de la maquette */

.bandeau-maquette {
  margin: 0;
  padding: 0.5rem var(--marge);
  border-bottom: 1px dashed var(--pierre);
  background: var(--platre);
  color: var(--encre);
  font-size: var(--t-legende);
  line-height: 1.4;
  text-align: center;
}

.bandeau-maquette[data-mode="demo"] .bandeau-maquette__reel,
.bandeau-maquette[data-mode="reel"] .bandeau-maquette__demo {
  display: none;
}

/* MAQUETTE=0 au lancement : le site ne montre plus aucun signe de maquette. */
[data-maquette="non"] .bandeau-maquette,
[data-maquette="non"] .note-maquette {
  display: none;
}

.note-maquette {
  margin-top: 1rem;
  padding: 0.625rem 0.75rem;
  border: 1px dashed var(--pierre);
  font-size: var(--t-legende);
  line-height: 1.45;
  color: var(--secondaire);
}

/* ------------------------------------------------------------ en-tête, marque, boutons */

.entete {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2 * var(--marge), var(--largeur));
  height: var(--entete);
  margin-inline: auto;
}

.entete--simple {
  grid-template-columns: 1fr auto;
}

.entete__liens {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  font-size: var(--t-petit);
}

.entete__liens a {
  text-decoration: none;
}

.entete__liens a:hover {
  text-decoration: underline;
}

.entete > .bouton {
  justify-self: end;
}

/* Le logo : l’emblème (un S debout sur une corniche et un socle) et le nom en capitales espacées.
   SVG vectorisé, sans police à charger. */
.marque {
  display: inline-flex;
  justify-self: start;
  line-height: 0;
  text-decoration: none;
}

.marque__logo {
  width: auto;
  height: 3.5rem;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0 1.625rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--encre);
  border-radius: 0;
  background: var(--encre);
  color: var(--platre);
  font: 500 1rem / 1 var(--texte);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.08s ease;
}

.bouton:hover {
  background: var(--encre-survol);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.bouton--secondaire {
  background: transparent;
  color: var(--encre);
}

.bouton--secondaire:hover {
  background: var(--voile);
}

.bouton--petit {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: var(--t-petit);
}

.bouton--large {
  width: 100%;
}

.lien {
  font-weight: 500;
  text-decoration: underline;
}

.lien:hover {
  text-decoration-thickness: 2px;
}

.bouton-texte {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

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

.prix {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font: 300 clamp(3.5rem, 6vw, 5.25rem) / 1 var(--titrage);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.prix__devise {
  font: 500 1.0625rem / 1 var(--texte);
  letter-spacing: 0.02em;
}

.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 2rem 4rem;
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--trait);
  font-size: var(--t-petit);
}

.pied__note {
  max-width: 24rem;
  margin-top: 0.875rem;
  color: var(--secondaire);
}

.pied__liens {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.625rem 2.5rem;
}

.pied__liens a {
  text-decoration: none;
}

.pied__liens a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ formulaires */

.champ {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 2.25rem;
  padding: 0;
  border: 0;
}

.champ > label,
.champ > legend {
  padding: 0;
  font-weight: 500;
}

.champ > legend {
  margin-bottom: 0.5rem;
}

.aide {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.saisie {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--trait-fort);
  border-radius: 0;
  background: var(--champ);
  color: var(--encre);
  font: inherit;
  appearance: none;
}

textarea.saisie {
  min-height: 5.5rem;
  resize: vertical;
}

.saisie:focus-visible {
  outline-offset: 0;
  border-color: var(--encre);
}

.saisie[aria-invalid="true"] {
  border-color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--encre);
}

.erreur {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: var(--t-petit);
  font-weight: 500;
}

.erreur .icone {
  margin-top: 0.1em;
}

/* ------------------------------------------------------------ simulateur : dépôt et choix */

.creer {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(1.5rem, 3vw, 3rem) var(--section);
}

.creer h1 {
  font-size: var(--t-h2);
}

.creer .chapo {
  margin-top: 1rem;
}

.creer form {
  max-width: 38rem;
}

.depot__zone {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  padding: 2rem 1.25rem;
  border: 1px dashed var(--trait-fort);
  background: var(--champ);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.depot__zone:hover,
.depot--survol .depot__zone {
  background: var(--galerie);
}

.depot__zone .icone {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.25rem;
}

.depot__zone strong {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.depot__zone span {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.depot input:focus-visible + .depot__zone {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

.vignettes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.vignettes:empty {
  display: none;
}

.vignettes li {
  position: relative;
}

.vignettes img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--galerie);
}

.vignettes button {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--encre);
  color: var(--platre);
  cursor: pointer;
}

.compte-photos {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.choix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.choix label {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--trait-fort);
  background: var(--champ);
  font-size: var(--t-petit);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.choix label:hover {
  background: var(--galerie);
}

.choix .icone {
  width: 1.75rem;
  height: 1.75rem;
}

.choix label:has(input:checked) {
  border-color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--encre);
  background: var(--galerie);
}

.choix label:has(input:focus-visible) {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

.regle-photos {
  display: flex;
  gap: 0.625rem;
  margin-top: 2.25rem;
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.regle-photos .icone {
  margin-top: 0.15em;
  color: var(--encre);
}

.creer form > .bouton {
  margin-top: 1.5rem;
}

.creer form > .erreur {
  margin-top: 1rem;
}

/* Repli : l’aperçu ne peut pas être calculé, le visiteur laisse son e-mail. */
.repli {
  max-width: 38rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--trait);
}

.repli h2 {
  font-size: clamp(1.625rem, 1.6vw + 1.1rem, 2.125rem);
}

.repli h2 + p {
  margin-top: 0.75rem;
}

.repli > .bouton {
  margin-top: 1.5rem;
}

.repli > .erreur {
  margin-top: 1rem;
}

.creer__guide {
  position: sticky;
  top: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.creer__guide h2 {
  font-size: 1.625rem;
}

.angles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.angles img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* Les bustes sont détourés : leurs ombres s’éteignent avant le bord de l’image. */
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

.angles figcaption {
  margin-top: 0.375rem;
  font-size: var(--t-petit);
  font-weight: 500;
}

.creer__guide ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: var(--t-petit);
}

.creer__guide li {
  display: flex;
  gap: 0.625rem;
}

.creer__guide li .icone {
  margin-top: 0.15em;
}

/* ------------------------------------------------------------ page de l'aperçu */

.apercu {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "scene tete"
    "scene panneau";
  align-items: start;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1rem, 2.5vw, 2.5rem) var(--section);
}

.apercu__tete {
  grid-area: tete;
}

.apercu__panneau {
  grid-area: panneau;
}

.scene {
  grid-area: scene;
  position: sticky;
  top: 1.5rem;
}

.scene__cadre {
  position: relative;
  display: grid;
  /* Le cadre garde le format 3:4 de l'aperçu : le buste et son socle restent entiers. */
  aspect-ratio: 3 / 4;
  width: min(100%, min(78dvh, 50rem) * 0.75);
  background: var(--galerie);
  overflow: hidden;
}

.scene__cadre > * {
  grid-area: 1 / 1;
}

.scene__cadre img,
.scene__cadre model-viewer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--galerie);
}

.scene__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 0.875rem;
}

.scene__pied .legende {
  margin-top: 0;
  max-width: 24rem;
}

.bascule {
  display: inline-flex;
}

.bascule button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--encre);
  border-radius: 0;
  background: transparent;
  font-size: var(--t-petit);
  font-weight: 500;
  cursor: pointer;
}

.bascule button + button {
  border-left: 0;
}

.bascule button[aria-pressed="true"] {
  background: var(--encre);
  color: var(--platre);
}

.attente {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.attente__socle {
  width: 4.5rem;
  height: 1.125rem;
  background: var(--platre);
}

.attente__barre {
  position: relative;
  width: min(14rem, 70%);
  height: 2px;
  background: rgb(27 27 25 / 0.14);
  overflow: hidden;
}

.attente__barre::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: var(--encre);
}

@media (prefers-reduced-motion: no-preference) {
  .attente__barre::after {
    animation: glisse 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  }
}

@keyframes glisse {
  to {
    transform: translateX(163%);
  }
}

.attente p {
  max-width: 22rem;
  font-size: var(--t-petit);
  color: var(--pierre-sur-galerie);
}

.attente strong {
  display: block;
  font-size: var(--t-corps);
  font-weight: 500;
  color: var(--encre);
}

.geste {
  align-self: end;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--platre);
  font-size: var(--t-legende);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.geste[data-vu="oui"] {
  opacity: 0;
}

.apercu__tete h1 {
  font-size: var(--t-h2);
}

.apercu__tete .chapo {
  margin-top: 1rem;
}

.bloc {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--trait);
}

.bloc h2 {
  font-size: 1.625rem;
  line-height: 1.2;
}

.bloc > p {
  margin-top: 0.625rem;
  color: var(--secondaire);
}

.bloc .actions {
  margin-top: 1.25rem;
}

.lien-groupe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.lien-groupe .saisie {
  min-width: 0;
  font-size: var(--t-petit);
  text-overflow: ellipsis;
}

.retour {
  margin-top: 0.625rem;
  font-size: var(--t-petit);
  font-weight: 500;
}

.verdicts {
  display: grid;
  gap: 0.5rem;
}

.verdicts label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--trait-fort);
  background: var(--champ);
  font-weight: 500;
  cursor: pointer;
}

.verdicts label:has(input:checked) {
  border-color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--encre);
  background: var(--galerie);
}

.verdicts label:has(input:focus-visible) {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

.verdicts input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--encre);
}

.bloc form .champ:first-child {
  margin-top: 1.25rem;
}

.bloc form .champ {
  margin-top: 1.5rem;
}

.bloc form .bouton {
  margin-top: 1.5rem;
}

.bilan {
  margin-top: 0.625rem;
  color: var(--secondaire);
}

.liste-avis {
  display: grid;
  gap: 1.125rem;
  margin-top: 1.5rem;
}

.liste-avis li {
  display: grid;
  gap: 0.125rem;
}

.liste-avis .qui {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.liste-avis .qui strong {
  font-weight: 500;
}

.liste-avis .qui span {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.liste-avis p {
  color: var(--secondaire);
}

.vide {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px dashed var(--trait-fort);
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.commande__prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-top: 1rem;
}

.commande__prix .prix {
  font-size: 3rem;
}

.commande__prix span:last-child {
  color: var(--secondaire);
}

/* ------------------------------------------------------------ réservation sans paiement */

.sans-paiement {
  display: grid;
  gap: 0.375rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--encre);
}

.sans-paiement strong {
  font-weight: 500;
}

.sans-paiement p + p {
  color: var(--secondaire);
}

/* Le choix de la formule dans la réservation : deux formules (le buste, avec médaillon), le total en direct. */
.formule .champ:first-child {
  margin-top: 1.5rem;
}

.cases {
  display: grid;
  gap: 0.5rem;
}

.cases label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--trait-fort);
  background: var(--champ);
  cursor: pointer;
}

.cases label:has(input:checked) {
  border-color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--encre);
  background: var(--galerie);
}

.cases label:has(input:focus-visible) {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

.cases input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--encre);
}

.case__texte {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.case__titre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-weight: 500;
}

.case__titre span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.case__detail {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.formule > .aide {
  margin-top: 1rem;
}

.total {
  margin-top: 1.25rem;
  padding-block: 1rem;
  border-block: 1px solid var(--trait);
  font-size: var(--t-chapo);
}

.total strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.total span {
  color: var(--secondaire);
}

/* Barre d’actions de l’organisateur, sur petit écran seulement. */
.barre-actions {
  display: none;
}

/* ------------------------------------------------------------ pages de texte */

.texte {
  max-width: 44rem;
  padding-block: clamp(1.5rem, 3vw, 3rem) var(--section);
}

.texte h1 {
  font-size: var(--t-h2);
}

.texte > .chapo {
  margin-top: 1.25rem;
  max-width: none;
}

.texte h2 {
  margin-top: 3rem;
  font-size: 1.625rem;
  line-height: 1.2;
}

.texte h2 + p,
.texte p + p,
.texte ul {
  margin-top: 0.875rem;
}

.texte ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: square;
}

.a-valider {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px dashed var(--trait-fort);
}

.a-valider strong {
  font-weight: 500;
}

.a-valider p + p {
  margin-top: 0.375rem;
  color: var(--secondaire);
}

/* ------------------------------------------------------------ journal local */

.journal {
  padding-block: clamp(1.5rem, 3vw, 3rem) var(--section);
}

.journal h1 {
  font-size: var(--t-h2);
}

.journal h2 {
  margin-top: 3rem;
  font-size: 1.625rem;
}

.journal h2 + p {
  margin-top: 0.75rem;
  max-width: 44rem;
}

.compteurs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.compteurs div {
  padding-top: 1rem;
  border-top: 1px solid var(--encre);
}

.compteurs dt {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.compteurs dd {
  font: 300 3rem / 1.1 var(--titrage);
  font-variant-numeric: lining-nums tabular-nums;
}

.compteurs small {
  display: block;
  font-family: var(--texte);
  font-size: var(--t-legende);
  color: var(--secondaire);
}

.tableau {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: var(--t-petit);
}

.tableau th,
.tableau td {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 1px solid var(--trait);
  text-align: left;
  vertical-align: top;
}

.tableau th {
  font-weight: 500;
}

.defile {
  overflow-x: auto;
}

/* Page de l’aperçu : liens personnels des amis et souvenirs du groupe. */
.liens-amis {
  display: grid;
  margin-top: 1.25rem;
  border-top: 1px solid var(--trait);
}

.liens-amis li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--trait);
}

.liens-amis__qui {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.liens-amis__qui strong {
  font-weight: 500;
}

.liens-amis__qui span {
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.liens-amis code {
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font: var(--t-petit) / 1.4 var(--texte);
  color: var(--secondaire);
}

.liens-amis .bouton-texte {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.souvenirs {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.souvenirs li {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.souvenirs img {
  flex: none;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  background: var(--galerie);
}

.souvenirs strong {
  font-weight: 500;
}

.souvenirs__anecdote {
  margin-top: 0.25rem;
  font: 300 1.125rem / 1.4 var(--titrage);
}

.compteur {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.champ__titre {
  font-weight: 500;
}

.choisir-photo {
  justify-self: start;
  cursor: pointer;
}

#avis-photo:focus-visible + .choisir-photo {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

.micro {
  font-size: var(--t-legende);
  line-height: 1.4;
  color: var(--secondaire);
}

/* La garantie « reconnu ou refait », rappelée près des boutons de réservation. */
.garantie {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  max-width: 30rem;
  font-size: var(--t-petit);
  line-height: 1.45;
}

.garantie .icone {
  margin-top: 0.15em;
}

.bloc .garantie {
  margin-top: 1rem;
}

.quand__reponse {
  font-size: var(--t-petit);
  line-height: 1.45;
}

.quand__reponse:empty {
  display: none;
}

/* « Pas encore les photos ? » : un lien secondaire qui déplie un formulaire court. */
.plus-tard {
  width: 100%;
  max-width: 30rem;
}

.plus-tard summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  list-style: none;
}

.plus-tard summary::-webkit-details-marker {
  display: none;
}

.plus-tard summary .icone {
  transition: transform 0.2s ease;
}

.plus-tard[open] summary .icone {
  transform: rotate(180deg);
}

.rappel {
  padding-block: 0.5rem 0.25rem;
}

.rappel .champ {
  margin-top: 1.25rem;
}

.rappel > .bouton {
  margin-top: 1.5rem;
}

.rappel > .erreur {
  margin-top: 1rem;
}

.rappel__duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

/* Champ piège pour les robots : hors de l’écran, hors du parcours au clavier, ignoré par les lecteurs d’écran. */
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.creer .plus-tard {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
}

/* Page de l’aperçu : WhatsApp à côté du lien du groupe et de chaque lien personnel. */
.partage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.liens-amis__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  gap: 0.375rem;
  font-size: var(--t-petit);
}

.liens-amis .liens-amis__actions .bouton-texte {
  grid-column: auto;
  grid-row: auto;
  align-self: end;
}

/* En bas de la page d’un ami : une ligne discrète vers l’accueil. */
.boucle {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
  font-size: var(--t-petit);
  color: var(--secondaire);
}

.boucle .lien {
  color: var(--encre);
}

/* Barre fixe de l’accueil : le prix à gauche, le bouton principal à droite (téléphone seulement). */
.barre-actions__prix {
  display: grid;
  align-content: center;
  font-size: var(--t-legende);
  line-height: 1.3;
  color: var(--secondaire);
}

.barre-actions__prix strong {
  font-size: var(--t-petit);
  font-weight: 500;
  color: var(--encre);
}

@media (max-width: 860px) {
  :root {
    --entete: 4rem;
  }

  .entete {
    grid-template-columns: 1fr auto;
  }

  .entete__liens {
    display: none;
  }

  .creer,
  .apercu {
    grid-template-columns: minmax(0, 1fr);
  }

  .marque__logo {
    height: 2.75rem;
  }

  

  .barre-actions:not([hidden]) {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.625rem var(--marge) calc(0.625rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--trait);
    background: var(--platre);
  }

  .barre-actions--accueil:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }

  .barre-actions .bouton {
    min-height: 3rem;
    padding-inline: 0.5rem;
    font-size: var(--t-petit);
  }

  body:has(.barre-actions:not([hidden])) {
    padding-bottom: 4.5rem;
  }

  .apercu {
    grid-template-rows: auto;
    grid-template-areas:
      "tete"
      "scene"
      "panneau";
    row-gap: 1.5rem;
  }

  .scene,
  .creer__guide {
    position: static;
  }

  .creer__guide {
    order: 2;
  }

  .compteurs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene__cadre {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .choix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vignettes button {
    width: 1.625rem;
    height: 1.625rem;
  }

  .bandeau-maquette__detail {
    display: none;
  }

  .rappel__duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .lien-groupe {
    grid-template-columns: minmax(0, 1fr);
  }

  .pied__liens {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Les choix faits sur l’accueil, rappelés en haut de /creer (version 7). */
.choix-accueil {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--trait);
  background: var(--champ);
  font-size: var(--t-petit);
  line-height: 1.45;
}

/* ============================================================ accueil : page produit (version 7, 19.11.2026)

   Premier écran repris de la maquette validée par le porteur du projet (galerie à gauche, bloc d’achat à droite),
   puis les sections de la page de vente. Même charte (Plâtre, Encre, Titrage, Geist) ; la mise en page est celle
   d’une boutique : angles légèrement arrondis, cartes blanches, une colonne d’achat. Voir DESIGN.md, version 7.
   Toutes les règles portent sur la classe .vente (body de l’accueil) ou sur des classes propres à l’accueil. */

.vente {
  --largeur: 80rem;
  --marge: clamp(1rem, 3vw, 2.5rem);
  --vente-galerie: #E6E3DD;
  --vente-champ: #FFFFFF;
  --vente-trait: rgb(27 27 25 / 0.14);
  --vente-ok: #2F6B3F;
  --vente-alerte: #8A5A12;
  overflow-x: clip;
  font-size: 1rem;
  line-height: 1.5;
}

.vente h1,
.vente h2 {
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: 0;
}

.vente h3 {
  font: 600 1.0625rem / 1.3 var(--texte);
}

.vente fieldset {
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.vente legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Boutons de l’accueil : ceux de la maquette, 44 px de haut, angles de 4 px. */
.bouton--vente {
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 4px;
  font-weight: 550;
  letter-spacing: 0;
}

.bouton--grand {
  width: 100%;
  min-height: 58px;
  font-size: 17px;
}

/* ------------------------------------------------------------ bandeau de réassurance et en-tête */

.reassurance-bande {
  padding: 8px var(--marge);
  background: var(--encre);
  color: var(--platre);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.reassurance-bande span {
  white-space: nowrap;
}

.reassurance-bande span + span::before {
  content: "·";
  margin: 0 0.7em;
  opacity: 0.6;
}

.entete-vente {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--vente-trait);
  background: var(--platre);
}

.entete-vente__corps {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.entete-vente .marque__logo {
  height: 44px;
}

.entete-vente__liens {
  display: flex;
  gap: 1.5rem;
  margin-right: auto;
  font-size: 15px;
}

.entete-vente__liens a {
  text-decoration: none;
}

.entete-vente__liens a:hover {
  text-decoration: underline;
}

.vente [id] {
  scroll-margin-top: 80px;
}

.ariane {
  padding-block: 8px 10px;
  font-size: 13px;
  color: var(--pierre);
}

/* ------------------------------------------------------------ fiche produit */

.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 3rem;
}

/* Galerie : vignettes à gauche, grande vue à droite. */
.fiche__galerie {
  position: sticky;
  top: 80px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
}

/* Neuf vignettes depuis le 23.11.2026 (accessoires en couleur et médaillon) : 62 px et 8 px d’écart pour tenir à côté de la grande vue. */
.fiche__vignettes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fiche__vignettes button {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--vente-galerie);
  cursor: pointer;
}

.fiche__vignettes button[aria-current="true"] {
  border-color: var(--encre);
}

.fiche__vignettes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fiche__badge {
  position: absolute;
  inset: auto 4px 4px;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.9);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.fiche__vue {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--vente-galerie);
}

.fiche__vue > img,
.fiche__vue > video,
.fiche__vue > model-viewer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fiche__vue > model-viewer {
  --poster-color: transparent;
}

.fiche__etiquette {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border-radius: 3px;
  background: rgb(244 242 238 / 0.92);
  font-size: 12px;
  line-height: 1.4;
}

.fiche__pastille {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 3px;
  background: var(--encre);
  color: var(--platre);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.fiche__vue[data-etat="chargement"] {
  cursor: progress;
}

/* Bloc d’achat. */
.achat,
.achat__formulaire {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achat__surtitre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pierre);
}

.vente .achat h1 {
  margin: 4px 0 0;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.05;
}

.achat__sous {
  font-size: 17px;
  color: var(--pierre);
}

.achat__prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.achat__prix strong {
  font: 400 36px / 1 var(--titrage);
  font-variant-numeric: lining-nums;
}

.achat__livre {
  font-size: 15px;
  font-weight: 550;
  color: var(--vente-ok);
}

.part {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--vente-trait);
  border-radius: 6px;
  background: var(--vente-champ);
  font-size: 15px;
}

.part__pas {
  display: inline-flex;
  border: 1px solid var(--vente-trait);
  border-radius: 4px;
}

.part__pas button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.part__pas button[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.part__pas .icone {
  width: 16px;
  height: 16px;
}

.part output {
  width: 30px;
  align-self: center;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.part__montant {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

.formules-vente {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carte-formule {
  position: relative;
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--vente-trait);
  border-radius: 6px;
  background: var(--vente-champ);
  cursor: pointer;
}

.carte-formule:has(input:checked) {
  padding: 11px 13px;
  border: 2px solid var(--encre);
}

.carte-formule:has(input:focus-visible) {
  outline: 2px solid var(--encre);
  outline-offset: 2px;
}

.carte-formule input {
  position: absolute;
  opacity: 0;
}

.carte-formule b {
  display: block;
  font-size: 15px;
}

.carte-formule__prix {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
}

.carte-formule small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--pierre);
}

.carte-formule__ruban {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 1px 7px;
  border: 1px solid var(--beurre-soutenu);
  border-radius: 999px;
  background: var(--beurre);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.achat__date {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
}

.achat__date label {
  font-size: 14px;
  font-weight: 600;
}

.achat__date .saisie {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--vente-champ);
}

.achat__reponse,
.achat__note {
  grid-column: 1 / -1;
}

.achat__reponse {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
}

.achat__reponse:not([data-cas]),
.achat__reponse[data-cas=""] {
  display: none;
}

.achat__reponse[data-cas="a-temps"] {
  color: var(--vente-ok);
}

.achat__reponse[data-cas="court"],
.achat__reponse[data-cas="passee"] {
  color: var(--vente-alerte);
}

/* La note des délais provisoires suit la réponse : elle paraît dès qu’une date est saisie (premier écran plus court). */
.achat__reponse:not([data-cas]) + .achat__note,
.achat__reponse[data-cas=""] + .achat__note {
  display: none;
}

.vente .achat__note {
  margin: 0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.achat__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 14px;
  border-top: 1px solid var(--vente-trait);
  font-size: 15px;
}

.achat__total strong {
  font-size: 20px;
}

.achat__micro {
  margin-top: -8px;
  text-align: center;
  font-size: 13px;
}

.vente .plus-tard summary {
  min-height: 2.25rem;
  font-size: 14px;
}

.achat__plus-tard {
  max-width: none;
  margin-top: -6px;
  text-align: center;
}

.achat__plus-tard > div {
  text-align: left;
}

.garanties {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--vente-trait);
  font-size: 14px;
}

.garanties li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.garanties .icone {
  width: 20px;
  height: 20px;
}

.garanties b {
  display: block;
}

.garanties span {
  color: var(--pierre);
}

.achat__questions details {
  padding-block: 12px;
  border-top: 1px solid var(--vente-trait);
  font-size: 15px;
}

.achat__questions details:last-child {
  border-bottom: 1px solid var(--vente-trait);
}

.achat__questions summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}

.achat__questions summary::-webkit-details-marker {
  display: none;
}

.achat__questions summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.achat__questions details[open] summary::after {
  content: "\2212";
}

.achat__questions p {
  margin-top: 8px;
  color: var(--pierre);
}

/* Bande des quatre arguments, sous la fiche. */
.arguments {
  border-block: 1px solid var(--vente-trait);
  background: var(--vente-champ);
}

.arguments ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 26px;
}

.arguments li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.arguments b {
  display: block;
  font-size: 15px;
}

.arguments span {
  color: var(--pierre);
}

.arguments .icone {
  width: 26px;
  height: 26px;
}

/* ------------------------------------------------------------ sections de la page de vente */

.section-vente {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-vente--teinte {
  border-block: 1px solid var(--vente-trait);
  background: var(--vente-champ);
}

.section-vente__tete {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-vente__tete h2,
.faq-vente h2,
.appel-final h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
}

.section-vente__chapo {
  margin-top: 10px;
  font-size: 17px;
  color: var(--pierre);
}

.section-vente__tete .legende {
  margin-top: 12px;
  color: var(--pierre);
}

.vente .legende {
  color: var(--pierre);
}

/* Comment ça marche : trois étapes illustrées, sur une ligne. */
.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.etape {
  display: grid;
  align-content: start;
  gap: 10px;
}

.etape__visuel {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--vente-galerie);
}

.etape__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.etape__visuel--groupe {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: var(--lilas);
}

.etape__rang {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 6px;
  border: 1px solid var(--encre);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}

.etape p:last-child {
  font-size: 15px;
  color: var(--pierre);
}

.exemple-question {
  width: 100%;
  max-width: 15rem;
  padding: 14px;
  border-radius: 6px;
  background: var(--vente-champ);
}

.exemple-question p {
  font-size: 15px;
  font-weight: 600;
}

.exemple-question ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.exemple-question li {
  padding: 8px 12px;
  border: 1px solid var(--trait-fort);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.exemple-question .exemple-question__choisi {
  padding: 7px 11px;
  border: 2px solid var(--encre);
}

.appel-vente {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin-top: 2rem;
}

.appel-vente .garantie {
  margin-top: 0.5rem;
}

/* Le cadeau à plusieurs. */
.groupe-vente {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.points-vente {
  display: grid;
  gap: 18px;
}

.points-vente li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.points-vente .icone {
  width: 24px;
  height: 24px;
}

.points-vente b {
  display: block;
  font-size: 16px;
}

.points-vente span {
  font-size: 15px;
  color: var(--pierre);
}

.exemple-liens {
  width: 100%;
  max-width: 26rem;
  justify-self: center;
}

.exemple-liens__page {
  padding: 20px;
  border: 1px solid var(--vente-trait);
  border-radius: 8px;
  background: var(--platre);
}

.exemple-liens__titre {
  font: 400 22px / 1.2 var(--titrage);
}

.exemple-liens ul {
  margin-top: 12px;
  border-top: 1px solid var(--trait-fort);
}

.exemple-liens li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 12px;
  border-bottom: 1px solid var(--vente-trait);
}

.exemple-liens li span:first-child {
  font-weight: 600;
}

.exemple-liens li span:last-child {
  font-size: 14px;
  color: var(--pierre);
}

.exemple-liens__compte {
  margin-top: 12px;
  font-size: 14px;
  color: var(--pierre);
}

.exemple-liens__bouton {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 1rem;
  border: 1px solid var(--encre);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 550;
}

/* Les détails : gros plans, scènes, schéma à l’échelle, vidéo. */
.details__sous-titre {
  margin: 2.5rem 0 1rem;
}

.section-vente__tete + .details__sous-titre {
  margin-top: 0;
}

.vente .details__sous-titre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pierre);
}

.gros-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gros-plans img,
.scenes-vente img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: var(--vente-galerie);
}

.gros-plans img {
  aspect-ratio: 3 / 2;
}

.gros-plans figcaption,
.scenes-vente figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pierre);
}

.gros-plans b,
.scenes-vente b {
  display: block;
  color: var(--encre);
  font-weight: 600;
}

.scenes-vente {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.scenes-vente figure {
  grid-column: span 2;
}

.scenes-vente .scenes-vente__large {
  grid-column: span 4;
}

.scenes-vente img {
  aspect-ratio: 4 / 5;
}

.scenes-vente__large img {
  aspect-ratio: 3 / 2;
}

.scenes-vente__schema svg {
  width: 100%;
  height: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--vente-trait);
  border-radius: 6px;
  background: var(--vente-champ);
}

.deballage-vente {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 3rem;
}

.deballage-vente__cadre {
  overflow: hidden;
  border-radius: 6px;
  background: var(--vente-galerie);
}

.deballage__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 406 / 720;
  object-fit: cover;
}

.vente .deballage-vente h3 {
  font: 400 26px / 1.2 var(--titrage);
}

.deballage-vente figcaption {
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
}

.deballage-vente figcaption p:not(.legende) {
  color: var(--pierre);
}

/* Le comparatif. */
.comparatif {
  overflow-x: auto;
  border: 1px solid var(--vente-trait);
  border-radius: 6px;
  background: var(--vente-champ);
}

.comparatif table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparatif th,
.comparatif td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--vente-trait);
  text-align: left;
  vertical-align: middle;
}

.comparatif thead th {
  font: 400 22px / 1.2 var(--titrage);
}

.comparatif tbody th {
  width: 34%;
  font-weight: 500;
}

.comparatif tfoot td {
  border-bottom: 0;
}

.comparatif td .icone {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
}

.comparatif__prix {
  font: 400 26px / 1.1 var(--titrage);
  font-variant-numeric: lining-nums;
}

.comparatif tfoot .bouton {
  width: 100%;
}

.comparatif__suite {
  margin-top: 1rem;
  font-size: 15px;
}

/* Questions fréquentes. */
.faq-vente {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(1.5rem, 6vw, 5rem);
}

.faq-vente details {
  border-bottom: 1px solid var(--vente-trait);
}

.faq-vente details:first-child {
  border-top: 1px solid var(--vente-trait);
}

.faq-vente summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-vente summary::-webkit-details-marker {
  display: none;
}

.faq-vente summary .icone {
  transition: transform 0.2s ease;
}

.faq-vente details[open] summary .icone {
  transform: rotate(180deg);
}

.faq-vente details > div {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  padding-bottom: 1.25rem;
  color: var(--pierre);
}

/* Dernier appel, en jaune beurre. */
.appel-final {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--beurre);
  --secondaire: rgb(27 27 25 / 0.76);
}

.appel-final__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  align-items: end;
  gap: 1.5rem 3rem;
}

.appel-final h2 {
  max-width: 20ch;
}

.appel-final p:not(.garantie):not(.micro) {
  margin-top: 0.75rem;
  color: var(--secondaire);
}

.appel-final .garantie {
  margin-top: 1rem;
}

.appel-final .appel-vente {
  justify-items: stretch;
  margin-top: 0;
  text-align: center;
}

.appel-final__plus-tard {
  grid-column: 1 / -1;
}

/* ------------------------------------------------------------ accueil sur tablette et téléphone */

@media (max-width: 900px) {
  .entete-vente__liens {
    display: none;
  }

  .entete-vente__corps {
    justify-content: space-between;
  }

  .ariane {
    display: none;
  }

  .fiche {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }

  .fiche__galerie {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-inline: calc(-1 * var(--marge));
  }

  .fiche__vue {
    border-radius: 0;
  }

  .fiche__vignettes {
    order: 2;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px var(--marge);
  }

  .fiche__vignettes button {
    flex: none;
    width: 58px;
  }

  .arguments ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .groupe-vente,
  .faq-vente,
  .appel-final__corps {
    grid-template-columns: minmax(0, 1fr);
  }

  .etapes {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  /* Sur téléphone, chaque étape garde son image, à gauche du texte. */
  .etape {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 4px;
  }

  .etape__visuel {
    grid-row: 1 / span 3;
    aspect-ratio: 4 / 5;
  }

  .etape__visuel--groupe {
    padding: 0.5rem;
  }

  .etape__rang {
    margin-top: 0;
  }

  .exemple-question {
    padding: 6px;
  }

  .exemple-question p {
    font-size: 11px;
  }

  .exemple-question ul {
    gap: 3px;
    margin-top: 4px;
  }

  .exemple-question li,
  .exemple-question .exemple-question__choisi {
    padding: 2px 4px;
    font-size: 10px;
  }

  .gros-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenes-vente {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenes-vente figure {
    grid-column: span 1;
  }

  .scenes-vente .scenes-vente__large {
    grid-column: span 2;
  }

  .deballage-vente {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  }

  .appel-vente {
    justify-items: stretch;
    text-align: center;
  }

  .appel-vente .garantie {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .reassurance-bande span:not(:first-child) {
    display: none;
  }

  .comparatif table {
    font-size: 13px;
  }

  .comparatif th,
  .comparatif td {
    padding: 10px 8px;
  }

  .comparatif tbody th {
    width: 30%;
  }

  .comparatif thead th {
    font-size: 17px;
  }

  .comparatif__prix {
    font-size: 20px;
  }

  .comparatif tfoot .bouton {
    min-height: 44px;
    padding: 0.5rem;
    white-space: normal;
    font-size: 14px;
    line-height: 1.2;
  }
}

@media (max-width: 420px) {
  .formules-vente {
    grid-template-columns: minmax(0, 1fr);
  }
}
