/* Atelier la Rosée — le carnet à spirale. Feuille de style unique. */

/* Polices hébergées sur le site (sous-ensemble latin, qui couvre le français) :
   aucun appel à Google Fonts, donc rien de bloquant et aucune adresse IP transmise à un tiers. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/polices/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/polices/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/polices/bodoni-moda.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/polices/bodoni-moda-italique.woff2") format("woff2");
}
/* Polices de secours calées sur les dimensions de Bodoni Moda et de Barlow (mesurées dans le navigateur) :
   pendant le chargement, le texte occupe déjà la bonne place, et rien ne saute à l'arrivée de la vraie police. */
@font-face {
  font-family: "Bodoni repli";
  font-style: normal;
  src: local("Georgia");
  size-adjust: 105%;
  ascent-override: 107%;
  descent-override: 38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bodoni repli";
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 96%;
  ascent-override: 117%;
  descent-override: 42%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Barlow repli";
  src: local("Arial"), local("ArialMT");
  size-adjust: 97.3%;
  ascent-override: 103%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* Dans Bodoni Moda (romain comme italique), le trait d'union est un filet presque invisible à l'écran :
   on emprunte ce seul signe (et le tiret) à une police système. */
@font-face {
  font-family: "Tiret";
  font-style: normal;
  src: local("Barlow Medium"), local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Roboto");
  unicode-range: U+2D, U+2010-2011, U+2013;
}
@font-face {
  font-family: "Tiret";
  font-style: italic;
  src: local("Barlow Medium Italic"), local("Arial Italic"), local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Roboto Italic");
  unicode-range: U+2D, U+2010-2011, U+2013;
}

:root {
  --prune: #5b2d50;
  --prune-fonce: #3e1a38;
  --prune-clair: #74406a;
  --texte: #5e4458;
  --lien: #8a5f86;
  --mauve: #a27ba0;
  --lavis: #eadcea;
  --crayon: #8c7f88;
  --trait: #d6c8d1;
  --papier: #fbf8f9;
  --calque: rgb(252 249 251 / 0.72);

  --titre: "Tiret", "Bodoni Moda", "Bodoni repli", Georgia, serif;
  --corps: "Barlow", "Barlow repli", "Segoe UI", system-ui, sans-serif;

  /* La spirale est le rail : la marge intérieure de la page part du premier anneau. */
  --marge: clamp(20px, 6.5vw, 88px);
  --anneau: 34px;
  --rythme: clamp(4rem, 9vw, 7rem);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .37 0 0 0 0 .27 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --spirale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='56' viewBox='0 0 34 56'%3E%3Crect x='11' y='33' width='12' height='8' rx='2' fill='%233e1a38'/%3E%3Crect x='12' y='2' width='10' height='38' rx='5' fill='none' stroke='%231d171b' stroke-width='3.4'/%3E%3Cpath d='M14 6 v24' stroke='%23ffffff' stroke-opacity='.35' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--mauve) var(--prune-fonce);
  accent-color: var(--prune);
}

body {
  margin: 0;
  background: var(--prune-fonce);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Le lavis prune sur lequel le carnet est posé ; calque fixe (y compris sur mobile). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #683460 url("assets/web/lavis-prune.jpg") center / cover no-repeat;
  background-image: image-set(url("assets/web/lavis-prune.webp") type("image/webp"), url("assets/web/lavis-prune.jpg") type("image/jpeg"));
}

::selection { background: var(--lavis); color: var(--prune); }

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

a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--prune); }

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

.lien-evitement {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-120%);
  background: var(--papier);
  color: var(--prune);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 10;
}
.lien-evitement:focus { transform: none; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 500;
  color: var(--prune);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  margin-bottom: 1.5rem;
}

/* Bodoni Moda affine ses déliés avec la taille (axe « opsz ») : en grand, certains traits
   devenaient presque invisibles (le premier « A » du titre). On plafonne la taille optique
   des grands textes pour épaissir très légèrement ces déliés ; les petits textes gardent le réglage auto. */
h1, h2, .feuille strong, .tache span { font-variation-settings: "opsz" 28; }

p { margin: 0 0 1rem; text-wrap: pretty; }

/* ——— Le carnet ——— */

.carnet {
  position: relative;
  width: min(1120px, 100% - 32px);
  margin: 56px auto 72px;
  background: var(--papier) var(--grain);
  border-radius: 3px 3px 6px 6px;
  /* L'épaisseur du bloc : quelques feuilles décalées sous la page. */
  box-shadow:
    0 3px 0 -1px #efe6ec,
    0 6px 0 -2px #e2d4dd,
    0 9px 0 -3px #d4c3cf,
    0 40px 70px -30px rgb(20 4 18 / 0.75);
  padding: clamp(56px, 7vw, 88px) var(--marge) clamp(32px, 4vw, 48px);
}

.carnet::before {
  content: "";
  position: absolute;
  top: -28px;
  left: calc(var(--marge) - 12px);
  right: calc(var(--marge) - 12px);
  height: 56px;
  background: var(--spirale) left top / var(--anneau) 56px space no-repeat;
  pointer-events: none;
}

/* Les feuilles suivantes du carnet, légèrement de biais une sur deux */
.carnet + .carnet { margin-top: clamp(64px, 9vw, 112px); }
@media (min-width: 860px) {
  .carnet:nth-of-type(2) { rotate: -0.5deg; }
}

@media (max-width: 640px) {
  :root { --anneau: 26px; }
  .carnet { width: calc(100% - 32px); margin-top: 44px; }
  .carnet::before { top: -21px; height: 43px; background-size: var(--anneau) 43px; }
}

section { margin-top: var(--rythme); }
.carnet > section:first-child { margin-top: 0; }

.mesure { max-width: 36em; }

/* ——— Photos scotchées et légendes sur calque ——— */

.colle {
  position: relative;
  margin: 0;
  rotate: var(--biais, 0deg);
}
.colle > a,
.colle > .tirage {
  display: block;
  background: #fff;
  padding: clamp(6px, 1vw, 10px);
  box-shadow: 0 1px 2px rgb(62 26 56 / 0.18), 0 14px 28px -16px rgb(62 26 56 / 0.55);
  transition: box-shadow 0.25s ease-out, translate 0.25s ease-out;
}
@media (hover: hover) {
  .colle > a:hover {
    translate: 0 -3px;
    box-shadow: 0 2px 3px rgb(62 26 56 / 0.18), 0 22px 36px -18px rgb(62 26 56 / 0.6);
  }
}
.colle img { width: 100%; }

/* Ruban de masquage, posé de travers sur le bord haut */
.colle::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 50%;
  width: clamp(64px, 44%, 170px);
  aspect-ratio: 320 / 72;
  translate: -50% 0;
  rotate: var(--ruban-biais, -4deg);
  background: url("assets/web/ruban.png") center / 100% 100% no-repeat;
  background-image: image-set(url("assets/web/ruban.webp") type("image/webp"), url("assets/web/ruban.png") type("image/png"));
  filter: drop-shadow(0 1px 1.5px rgb(62 26 56 / 0.28));
  pointer-events: none;
}

.calque {
  display: inline-block;
  background: var(--calque);
  backdrop-filter: blur(2px);
  border: 1px solid rgb(214 200 209 / 0.8);
  padding: 0.35em 0.8em 0.4em;
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--prune);
  box-shadow: 0 6px 14px -10px rgb(62 26 56 / 0.5);
}
.colle .calque {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: -1.1em;
  max-width: 84%;
  rotate: -1.5deg;
}

/* ——— En-tête ——— */

.entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .entete { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); }
}

.logo {
  width: min(250px, 70%);
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem) -10px;
}
@media (prefers-reduced-motion: no-preference) {
  .logo { animation: fondu 0.5s ease-out both; }
  @keyframes fondu { from { opacity: 0; } }
}

.entete h1 {
  /* « personnalisées, » doit tenir sur une ligne jusqu'à 320 px de large */
  font-size: clamp(2.1rem, 10.5vw, 2.75rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
.entete h1 span { color: var(--lien); }
@media (min-width: 860px) {
  .entete h1 { font-size: clamp(3rem, 1rem + 3.4vw, 4.3rem); }
  .entete h1 span { white-space: nowrap; }
}

.intro { font-size: 1.1875rem; max-width: 30em; }

.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 2rem 0 0;
}

/* Bouton : une pastille de pigment prune peinte (assets/web/pastille.png, outils/matieres.mjs) */
.pastille {
  position: relative;
  isolation: isolate;
  display: inline-block;
  color: #fff;
  font-family: var(--corps);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 1em 1.9em;
}
/* Le pigment et son ombre sont sur un calque à part : un filter posé sur le lien lui-même
   effaçait son texte dans Chrome quand la feuille du carnet est inclinée. */
.pastille::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/web/pastille.png") center / 100% 100% no-repeat;
  background-image: image-set(url("assets/web/pastille.webp") type("image/webp"), url("assets/web/pastille.png") type("image/png"));
  filter: drop-shadow(0 6px 7px rgb(30 6 26 / 0.22));
  transition: filter 0.2s ease-out;
}
.pastille:hover { color: #fff; }
.pastille:hover::before { filter: brightness(1.15) drop-shadow(0 6px 7px rgb(30 6 26 / 0.22)); }
.pastille:active { translate: 0 1px; }

.reassurance {
  flex: 1 1 14em;
  margin: 0;
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--lien);
}

.entete .colle { --biais: 2deg; width: min(480px, 92%); justify-self: center; }

/* ——— Réalisations ——— */

.realisations-tete {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .realisations-tete { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  /* Le Pamplepoulpe déborde du carnet, sur le lavis */
  .monumental { margin-right: calc(-1 * var(--marge) - 28px); }
}
.monumental { --biais: -1deg; --ruban-biais: 3deg; }
.monumental .calque { right: auto; left: 6%; }

.lien-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--prune);
}
.lien-instagram svg { width: 1.3em; height: 1.3em; flex: none; }

.collage {
  list-style: none;
  margin: clamp(3.5rem, 7vw, 5rem) 0 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(20px, 3vw, 40px);
}
@media (min-width: 860px) { .collage { columns: 3; } }
.collage li {
  break-inside: avoid;
  padding: 18px 0 clamp(2.25rem, 4vw, 3rem);
}
.collage li:nth-child(3n + 1) .colle { --biais: -1.2deg; --ruban-biais: 5deg; }
.collage li:nth-child(3n + 2) .colle { --biais: 0.8deg; --ruban-biais: -6deg; }
.collage li:nth-child(3n) .colle { --biais: -0.4deg; --ruban-biais: 2deg; }
/* Dans le collage, le calque est posé sur le bas du tirage : on devine la peinture à travers. */
.collage .calque {
  position: relative;
  right: auto;
  bottom: auto;
  /* bloc (pas inline-block) : sinon la marge négative ne remonte pas la légende */
  display: block;
  width: fit-content;
  max-width: 92%;
  margin: -2.2em 0 0 6%;
  padding: 0.25em 0.6em 0.3em;
  font-size: 0.8125rem;
}
@media (min-width: 860px) {
  .collage .calque { margin: -2.9em 0 0 10%; padding: 0.35em 0.8em 0.4em; font-size: 0.9375rem; }
  .collage li:nth-child(even) .calque { margin-left: 22%; rotate: 1.2deg; }
}

/* Agrandissement */
.visionneuse {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  overflow: visible;
}
.visionneuse::backdrop { background: rgb(36 10 32 / 0.86); }
.visionneuse img {
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  background: #fff;
  padding: 10px;
}
.visionneuse p {
  text-align: center;
  color: #fff;
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.125rem;
  margin: 0.9rem 0 0;
}
.visionneuse button {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--papier);
  color: var(--prune);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.visionneuse button svg { width: 20px; height: 20px; }

/* ——— Comment ça marche : du crayon à la peinture ——— */

.etapes ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .etapes ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.etape {
  display: grid;
  grid-template-columns: clamp(76px, 9vw, 104px) 1fr;
  gap: 1.25rem;
  align-items: center;
  color: var(--texte);
  text-decoration: none;
}
.etape:hover { color: var(--texte); }
.etape h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-bottom: 0.3rem; }
.etape p { margin: 0; }
.etape:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Taches peintes (outils/matieres.mjs) : 1 esquisse au crayon · 2 premier lavis · 3 couleur posée · 4 peinture achevée */
.tache {
  display: grid;
  place-items: center;
  aspect-ratio: 12 / 11;
  background: url("assets/web/tache-1.png") center / contain no-repeat;
  background-image: image-set(url("assets/web/tache-1.webp") type("image/webp"), url("assets/web/tache-1.png") type("image/png"));
}
.etapes li:nth-child(2) .tache { background-image: url("assets/web/tache-2.png"); background-image: image-set(url("assets/web/tache-2.webp") type("image/webp"), url("assets/web/tache-2.png") type("image/png")); }
.etapes li:nth-child(3) .tache { background-image: url("assets/web/tache-3.png"); background-image: image-set(url("assets/web/tache-3.webp") type("image/webp"), url("assets/web/tache-3.png") type("image/png")); }
.etapes li:nth-child(4) .tache { background-image: url("assets/web/tache-4.png"); background-image: image-set(url("assets/web/tache-4.webp") type("image/webp"), url("assets/web/tache-4.png") type("image/png")); }
.tache span {
  position: relative;
  font-family: var(--titre);
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  line-height: 1;
  color: var(--prune);
}
.etapes li:nth-child(4) .tache span { color: #fff; }
.etapes li:nth-child(1) .tache span { color: var(--crayon); }

.etapes .legende-processus {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-family: var(--titre);
  font-style: italic;
  color: var(--lien);
}

/* ——— Tarifs : les formats à leur vraie proportion ——— */

.tarifs-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: end; }
/* Quatre feuilles + le texte et le bouton : côte à côte seulement s'il y a la place. */
@media (min-width: 1100px) {
  .tarifs-grille { grid-template-columns: auto minmax(17rem, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .tarifs-grille .formats { margin-bottom: 0; }
}

.formats {
  /* largeur d'un A4 ; A5, A3 et « autre » en découlent (4 feuilles côte à côte) */
  --u: min(150px, 15vw);
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.format { margin: 0; }
.feuille {
  --l: var(--u);
  width: var(--l);
  aspect-ratio: 210 / 297;
  background: #fff var(--grain);
  box-shadow: 0 1px 2px rgb(62 26 56 / 0.15), 0 16px 26px -16px rgb(62 26 56 / 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--prune);
}
.format-a3 .feuille { --l: calc(var(--u) * 1.4142); rotate: 1.2deg; }
.format-a4 .feuille { rotate: -1.5deg; }
.format-a5 .feuille { --l: calc(var(--u) * 0.7071); rotate: 1deg; }
.format-autre .feuille {
  --l: calc(var(--u) * 0.7071);
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--crayon);
}
.feuille small {
  font-family: var(--titre);
  font-style: italic;
  font-size: max(12px, calc(var(--l) * 0.085));
  color: var(--lien);
}
.feuille strong {
  font-family: var(--titre);
  font-weight: 500;
  font-size: max(13px, calc(var(--l) * 0.24));
  line-height: 1.05;
  font-variant-numeric: lining-nums;
}
.format figcaption {
  margin-top: 0.9rem;
  width: var(--l, auto);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.format-a5 figcaption { --l: calc(var(--u) * 0.7071); }
.format-a4 figcaption { --l: var(--u); }
.format-a3 figcaption { --l: calc(var(--u) * 1.4142); }
.format-autre figcaption { --l: calc(var(--u) * 0.7071); }
/* Sur téléphone : A5, A4 et A3 côte à côte ; « autre format » devient une simple ligne. */
@media (max-width: 640px) {
  .formats { --u: calc(24vw - 14px); gap: 12px; flex-wrap: wrap; }
  .format figcaption { width: calc(var(--l) + 8px); font-size: 0.75rem; }
  /* « Petit format » ne tient pas sous la feuille A5 : sous le titre « Tarifs », « Petit » suffit. */
  .mot-format { display: none; }
  .format-autre .feuille { display: none; }
  .format-autre figcaption { width: auto; margin-top: 0; }
  .format-autre figcaption b { display: inline; }
  .format-autre figcaption b::after { content: " : "; }
}
.format figcaption b { display: block; color: var(--prune); font-weight: 500; }

/* ——— Questions fréquentes : filets et signe tracés au crayon ——— */

.faq {
  --trait-crayon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='10' viewBox='0 0 600 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 90 3, 160 8, 250 5 S 420 2, 520 6 S 580 7, 598 4' fill='none' stroke='%238c7f88' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  max-width: 52rem;
  background: var(--trait-crayon) left top / 100% 10px no-repeat;
  padding-top: 4px;
}
.faq details { background: var(--trait-crayon) left bottom / 100% 10px no-repeat; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0.25rem 1.25rem;
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.35rem);
  line-height: 1.3;
  color: var(--prune);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2 9.4 C6 8.6 11 9.2 16.2 8.7 M9.2 1.8 C8.7 6 9.4 11 8.8 16.3' fill='none' stroke='%23a27ba0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: rotate 0.25s ease-out;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--prune-clair); }
.faq details p { padding: 0 0.25rem 1.25rem; margin: 0; max-width: 40em; }

/* ——— À propos ——— */

.a-propos-grille {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 860px) {
  .a-propos-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.a-propos .colle { --biais: -1.8deg; --ruban-biais: 4deg; width: min(400px, 88%); justify-self: center; }
.a-propos strong { color: var(--prune); font-weight: 500; }
.signature {
  font-family: var(--titre);
  font-style: italic;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.3;
  color: var(--prune);
  margin: 2rem 0 0;
}

/* ——— Pied de page ——— */

.pied {
  margin-top: var(--rythme);
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}
.pied p { margin: 0; }

/* ——— Pages légales ——— */

.legal .retour {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 500;
  text-decoration: none;
}
.legal .retour svg { width: 1em; height: 1em; }
.legal-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.legal-tete img { width: 150px; }
.legal h1 {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  margin: clamp(2rem, 5vw, 3.5rem) 0 0.5rem;
  max-width: 18em;
}
.legal .mise-a-jour {
  font-family: var(--titre);
  font-style: italic;
  color: var(--lien);
  margin-bottom: 2.5rem;
}
.legal main { max-width: 44rem; }
.legal h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  margin: 2.5rem 0 0.75rem;
}
.legal ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.35rem; }
.legal li::marker { color: var(--mauve); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 1rem;
}
.legal th, .legal td {
  border-bottom: 1px solid var(--trait);
  padding: 0.65rem 0.6rem 0.65rem 0;
  vertical-align: top;
  text-align: left;
}
.legal th { color: var(--prune); font-weight: 500; }
/* Encadré légal obligatoire des CGV (garanties) : une vraie boîte, comme l'exige le modèle. */
.legal .encadre {
  border: 1.5px solid var(--mauve);
  padding: 1.1rem 1.25rem 0.4rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.9375rem;
}
.a-completer {
  background: #fff3c4;
  color: #5c4500;
  padding: 0 0.25em;
  border-radius: 3px;
}
