/* ==========================================================================
   Lore & Soul : « le codex noir »
   Chaque pièce de Mattéo reçoit sa page de codex. Cuir noir, encre os, filets acier, et un seul
   accent chaud, le cuivre, qui ne s'allume que là où la peinture est posée (titres, chiffres,
   action, focus, état actif). Couleurs relevées sur sa vraie figurine peinte (chevalier ailé) et sur
   son logo.

   Système de formes (règle unique) : coins vifs partout (2px au plus), filets doubles de reliure
   pour les planches et les boutons. Aucune carte arrondie, aucun verre dépoli.

   Mouvement : aucune animation décorative (demande de Mattéo, 2 octobre 2026). Seuls les retours de
   survol et de clic bougent, brièvement.

   Échelle des z-index :
     -1   fond de cuir fixe
     39   menu mobile plein écran
     40   barre de navigation
     100  lien d'évitement
     (le <dialog> vit dans la couche supérieure du navigateur)
   ========================================================================== */

/* ---------- Polices hébergées sur le site ---------- */
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../assets/fonts/grenze-gotisch-normal-600-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../assets/fonts/grenze-gotisch-normal-600-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../assets/fonts/alegreya-normal-400-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../assets/fonts/alegreya-normal-400-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/alegreya-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/alegreya-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya SC";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/alegreya-sc-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya SC";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/alegreya-sc-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya SC";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/alegreya-sc-normal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya SC";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/alegreya-sc-normal-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  color-scheme: dark;

  --cuir: #0E0D0F;            /* fond : cuir noir, jamais noir pur */
  --cuir-2: #151417;          /* surfaces posées (fiche, champs) */
  --cuir-3: #1C1B1F;          /* surfaces levées */
  --planche: #09090A;         /* fond des photos montées : planches, visionneuse, héros */
  --os: #D6CFC4;              /* encre principale : 12,4:1 sur --cuir */
  --os-vif: #F0E9DE;          /* encre os éclaircie : survol des liens */
  --os-2: #A59E94;            /* texte secondaire : 7,3:1 */
  --os-3: #8C857B;            /* aides, légendes : 5,2:1 */
  --acier: #565454;           /* filets */
  --acier-2: #2E2D31;         /* filets discrets */
  --field-border: #7A7672;    /* contour des champs : 4:1 contre --cuir-2 */
  --cuivre: #B48466;          /* L'UNIQUE accent : 5,9:1 sur --cuir */
  --cuivre-vif: #CA9B7C;      /* survol */
  --cuivre-voile: rgba(180, 132, 102, .16);
  --teinte: #391416;          /* deuxième fond, pour une section sur deux : bordeaux (essai de Mathieu) */
  --sur-cuivre: #0E0D0F;      /* texte sur un bouton cuivre : 5,9:1 */

  --erreur: #E7967F;          /* 7,6:1 sur --cuir-2 */
  --erreur-fond: rgba(231, 150, 127, .10);

  --tshadow: 0 1px 2px rgba(5, 5, 8, .95), 0 3px 12px rgba(5, 5, 8, .78), 0 10px 44px rgba(5, 5, 8, .8);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* sortie exponentielle : apparitions, survols */
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);    /* pressions, menu */
  --t-fast: 180ms;   /* retours de survol et de focus */
  --t-base: 320ms;   /* changements d'état */

  --font-display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --font-sc: "Alegreya SC", "Alegreya", Georgia, serif;

  --text-fine: .88rem;    /* petits caractères : aides des champs, consentement, bas de page */
  --text-label: .92rem;   /* étiquettes en petites capitales */
  --text-small: 1rem;     /* texte secondaire */

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --chapitre: clamp(4.5rem, 7.5vw, 7rem);
  --nav-h: 80px;

  --bar: 0px;             /* hauteur de la barre d'adresse des téléphones (0 sur ordinateur) */
}
@supports (height: 1svh) { :root { --bar: calc(100lvh - 100svh); } }
@media (max-width: 760px) { :root { --nav-h: 70px; } }

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

html {
  overflow-x: clip;   /* sans repli hidden : voir body */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--acier) var(--cuir);
  background: var(--cuir);
}
body {
  margin: 0;
  overflow-x: hidden;   /* repli des navigateurs sans clip : passé à la fenêtre, le héros collant tient */
  overflow-x: clip;
  background: transparent;   /* html porte le cuir ; le grain fixe (.cuir) se voit au travers */
  color: var(--os);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.62;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
::selection { background: rgba(180, 132, 102, .38); color: #F2ECE3; }
input, textarea, select { caret-color: var(--cuivre); }
button, input, select, textarea { font: inherit; color: inherit; }
p, ul, ol, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cuir); }
::-webkit-scrollbar-thumb { background: var(--acier); border: 3px solid var(--cuir); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; top: -100%; left: var(--gutter); z-index: 100;
  padding: .65rem 1.1rem; background: var(--cuivre); color: var(--sur-cuivre);
  font-family: var(--font-sc); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: .75rem; }
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
main:focus { outline: none; }

/* ---------- Le cuir : un seul fond fixe, au grain très fin ---------- */
.cuir {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: var(--cuir);
}
.cuir::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .84 0 0 0 0 .81 0 0 0 0 .77 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Boutons : plaques estampées, filet double ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 52px; padding: .75rem 1.35rem .72rem 1.5rem;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--font-sc); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em;
  line-height: 1.1; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn::after {   /* le filet intérieur de la plaque */
  content: ""; position: absolute; inset: 3px; z-index: -1; pointer-events: none;
  border: 1px solid transparent; border-radius: 1px; transition: border-color var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn__label { text-align: start; }
.btn .icone { transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .btn:hover .icone { transform: translateX(3px); } }
.btn--primary { background: var(--cuivre); color: var(--sur-cuivre); }
.btn--primary::after { border-color: rgba(14, 13, 15, .35); }
@media (hover: hover) { .btn--primary:hover { background: var(--cuivre-vif); } }
.btn--ghost { background: transparent; color: var(--os); border-color: var(--acier); }
.btn--ghost::after { border-color: var(--acier-2); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--os-3); background: rgba(214, 207, 196, .05); } }
.btn--sm { min-height: 44px; padding: .55rem 1rem .52rem 1.15rem; font-size: .95rem; gap: .6rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .7; cursor: progress; }
@media (pointer: coarse) { .btn { min-height: 48px; } }

/* ---------- Barre du haut : un titre courant de codex ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.nav.is-solid { background: rgba(14, 13, 15, .94); box-shadow: 0 1px 0 var(--acier-2); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.brand__mark { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.25rem + .8vw, 1.95rem); line-height: 1; letter-spacing: .005em; }
@media (max-width: 760px) {
  .brand { gap: .7rem; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 1.5rem; }
}
.nav__links { display: flex; gap: .2rem; }
.nav__links a {
  position: relative; padding: .6rem .85rem; text-decoration: none;
  font-family: var(--font-sc); font-weight: 500; font-size: 1rem; letter-spacing: .05em; color: var(--os-2);
  transition: color var(--t-fast) var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 1px;
  background: var(--cuivre); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease);
}
.nav__links a.is-active { color: var(--os); }
.nav__links a.is-active::after { transform: scaleX(1); }
@media (hover: hover) { .nav__links a:hover { color: var(--os); } .nav__links a:hover::after { transform: scaleX(1); } }
.nav__toggle {
  display: none; place-items: center; flex: none;
  width: 46px; height: 46px; border: 1px solid var(--acier); border-radius: 2px;
  background: rgba(14, 13, 15, .6); cursor: pointer;
}
.nav__burger { position: relative; display: block; width: 20px; height: 12px; }
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--os);
  transition: transform var(--t-base) var(--ease-soft);
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__toggle[aria-expanded="true"] .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
/* Seuil du menu : la barre complète demande environ 980 px (mesuré). Même valeur plus 1 dans js/main.js. */
@media (max-width: 1060px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
}

.menu {
  position: fixed; inset: 0; z-index: 39; padding-top: var(--nav-h);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--cuir); opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__inner { display: grid; gap: .25rem; padding-block: 2rem 3rem; }
.menu__inner > a:not(.btn) {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1.15;
  text-decoration: none; padding: .7rem 0; border-bottom: 1px solid var(--acier-2);
}
.menu__inner .btn { margin-top: 1.75rem; justify-self: start; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--cuir); }

/* ==========================================================================
   Héros : sa pièce finie montée en planche au centre, la marque gravée à gauche, l'offre et les
   boutons à droite (choix de Mathieu, 6 octobre 2026). Depuis le 17 octobre 2026, la photo de
   l'archange est celle sur fond noir que Mattéo a ajoutée à son Drive.
   Rien ne bouge, tout est là dès l'arrivée (demande de Mattéo, 2 octobre 2026). Le héros fait au
   moins la hauteur de l'écran et grandit si un petit écran manque de place, sans rien couper.
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; min-height: max(560px, 100vh); min-height: max(560px, 100svh);
  /* la lampe de l'atelier au-dessus de la planche */
  background: radial-gradient(ellipse 46% 60% at 50% 42%, rgba(214, 196, 170, .09), rgba(214, 196, 170, 0) 72%), var(--planche);
}

/* Voile de base : le haut reste sombre sous la barre transparente */
.hero__voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, .72) 0%, rgba(8, 8, 10, 0) 18%),
    radial-gradient(ellipse 120% 90% at 50% 46%, rgba(8, 8, 10, 0) 38%, rgba(8, 8, 10, .6) 100%);
}

.hero__contenu {
  position: relative; z-index: 2; min-height: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
  padding: calc(var(--nav-h) + 2rem) max(var(--gutter), 4vw) 2.5rem;
  color: var(--os); text-shadow: var(--tshadow);
}
.hero__titre { grid-column: 1; grid-row: 1; display: grid; gap: .9rem; position: relative; }
.hero__bloc { grid-column: 3; grid-row: 1; display: grid; gap: 1.6rem; justify-items: start; position: relative; }
.hero__titre::before, .hero__bloc::before {   /* voile local derrière les mots */
  content: ""; position: absolute; inset: -40% -45%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(6, 6, 9, .7) 0%, rgba(6, 6, 9, .45) 50%, rgba(6, 6, 9, 0) 78%);
}
.hero__marque {
  font-family: var(--font-display); font-weight: 800; color: var(--cuivre);
  font-size: clamp(3rem, 1.4rem + 4.4vw, 6rem); line-height: .92; letter-spacing: -.005em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 236, 214, .08), var(--tshadow);
}
.hero__offre { font-family: var(--font-sc); font-weight: 500; font-size: clamp(1.05rem, .9rem + .4vw, 1.3rem); letter-spacing: .05em; color: var(--os); max-width: 22ch; text-wrap: balance; }
.hero__texte { font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); line-height: 1.45; max-width: 24ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__actions .btn { text-shadow: none; }

/* La planche : passe-partout et double filet, comme la galerie. La photo garde son fond noir d'origine.
   Largeur : celle de la colonne, et au plus ce qui fait tenir la photo (4:5) dans 66 % de la hauteur. */
.hero__planche { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; width: min(100%, calc(52.8vh + 24px), 584px); }
.hero__cadre {
  display: block; padding: 11px; border: 1px solid var(--acier); background: var(--planche);
  box-shadow: inset 0 0 0 5px var(--planche), inset 0 0 0 6px var(--acier-2), 0 28px 70px rgba(0, 0, 0, .55);
}
.hero__cadre img { display: block; width: 100%; height: auto; }
.hero__legende { margin-top: .85rem; text-align: center; text-wrap: balance; font-style: italic; font-size: var(--text-fine); color: var(--os-2); }

/* Téléphone et tablette en hauteur : la marque en haut, la planche au milieu, l'offre en bas */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse) {
  .hero__contenu { grid-template-columns: minmax(0, 1fr); align-content: space-between; align-items: start; row-gap: 1.4rem; }
  .hero__titre, .hero__bloc, .hero__planche { grid-column: 1; grid-row: auto; }
  .hero__planche { width: min(100%, calc(32vh + 24px), 424px); }
  .hero__cadre { padding: 8px; box-shadow: inset 0 0 0 4px var(--planche), inset 0 0 0 5px var(--acier-2), 0 20px 50px rgba(0, 0, 0, .55); }
  .hero__legende { margin-top: .6rem; }
}
/* Téléphone : une planche plus petite, pour que les boutons restent dans le premier écran */
@media (max-width: 600px) { .hero__planche { width: min(100%, calc(24vh + 18px), 258px); } }
@media (max-height: 560px) { .hero__legende { display: none; } }

/* ==========================================================================
   Chapitres
   ========================================================================== */
.chapitre {
  position: relative; padding-block: var(--chapitre);
  /* la lampe de l'atelier au-dessus du titre : de la lumière, pas un halo qui flotte */
  background: radial-gradient(ellipse 46rem 30rem at 24% 0, rgba(214, 196, 170, .06), rgba(214, 196, 170, 0) 100%);
}
/* Un lien vers un chapitre le place en haut de l'écran : sa propre marge garde le titre sous la barre,
   et la fin du héros ne reste pas visible sous la barre encore transparente. */
.chapitre[id] { scroll-margin-top: calc(-1 * (var(--nav-h) + 1.5rem)); }
.chapitre + .chapitre::before {   /* le vide noir entre deux chapitres, marqué d'un filet de reliure */
  content: ""; position: absolute; top: 0; left: 50%; width: min(240px, 40vw); height: 5px;
  transform: translateX(-50%);
  border-top: 1px solid var(--acier); border-bottom: 1px solid var(--acier-2);
}
.chapitre__tete { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.chapitre__chapo { margin-top: 1.4rem; font-size: 1.22rem; line-height: 1.55; color: var(--os-2); max-width: 46ch; text-wrap: pretty; }

/* Chapitres teintés : la deuxième couleur, avec la lampe et le grain du cuir repris par-dessus.
   Le gris d'aide (os-3) n'y tient pas 4,5:1 : on y prend l'os secondaire. */
.chapitre--teinte {
  --os-3: var(--os-2);
  background:
    radial-gradient(ellipse 46rem 30rem at 24% 0, rgba(214, 196, 170, .06), rgba(214, 196, 170, 0) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .84 0 0 0 0 .81 0 0 0 0 .77 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 220px 220px,
    var(--teinte);
}

/* Titres peints : en cuivre, la couleur de la peinture posée (sans animation : demande de Mattéo) */
.titre-peint {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 1.5rem + 4vw, 5.4rem); line-height: 1.02; letter-spacing: .002em;
  color: var(--cuivre);
}

/* ---------- La galerie : toutes les pièces ensemble, montées en planches ----------
   Les photos sont en couleurs dès l'arrivée, sans rien à faire pour les voir (demande de Mattéo). */
.galerie { display: grid; gap: clamp(2.25rem, 4vw, 3.25rem); }
.consigne--toucher { display: none; }
@media (hover: none) { .consigne--survol { display: none; } .consigne--toucher { display: inline; } }
/* Le genre du groupe, en petites capitales, suivi d'un filet de reliure */
.galerie__titre {
  display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(1rem, 2vw, 1.4rem);
  font-family: var(--font-sc); font-weight: 500; font-size: var(--text-label); letter-spacing: .06em; color: var(--os-2);
}
.galerie__titre::after { content: ""; flex: 1; height: 1px; background: var(--acier-2); }
/* Trois planches par rangée, deux sur tablette et téléphone ; une rangée incomplète se centre */
.galerie__grille {
  --par-rangee: 3; --ecart: clamp(.9rem, 2vw, 1.6rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ecart);
}
.galerie__grille li { flex: 0 0 calc((100% - (var(--par-rangee) - 1) * var(--ecart)) / var(--par-rangee)); min-width: 0; }
@media (max-width: 900px) { .galerie__grille { --par-rangee: 2; } }
.tuile {   /* passe-partout : filet, retrait, filet intérieur */
  position: relative; display: block; aspect-ratio: 1; padding: 9px;
  border: 1px solid var(--acier-2); background: var(--planche);
  box-shadow: inset 0 0 0 4px var(--planche), inset 0 0 0 5px var(--acier-2);
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t-fast) var(--ease);
}
/* Une seule case, de la taille de la planche : sans elle, le max-height de la photo ne se calcule pas et une
   photo en hauteur (l'archange, 4:5) déborde de la planche */
.tuile__image { position: relative; display: grid; grid-template: 100% / 100%; place-items: center; height: 100%; overflow: hidden; }
/* La photo garde ses proportions ; ses bords se fondent dans le noir de la planche */
.tuile__image img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
/* Une figurine petite dans sa photo : la tuile se recadre sur elle (--zoom, puis --dx et --dy, en % de
   la photo, la ramènent au centre). Les bords se fondent alors au bord de la tuile. La visionneuse
   montre toujours la photo entière. */
.tuile--cadree .tuile__image {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.tuile--cadree .tuile__image img { transform: scale(var(--zoom, 1)) translate(var(--dx, 0%), var(--dy, 0%)); }
/* Une pièce pas encore finie le dit, en toutes lettres */
.tuile__etat {
  position: absolute; top: 16px; left: 16px; z-index: 1; pointer-events: none;
  padding: .2rem .6rem .25rem; border: 1px solid var(--acier); background: rgba(14, 13, 15, .88);
  font-family: var(--font-sc); font-weight: 500; font-size: .85rem; letter-spacing: .06em; line-height: 1.2; color: var(--os);
}
/* Une pièce à vendre (atelier de Mattéo) : l'étiquette prend le cuivre de l'action */
.tuile__etat--vente { border-color: var(--cuivre); color: var(--cuivre-vif); }
/* La lampe au-dessus de la pièce survolée ou choisie au clavier */
.tuile__image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(214, 196, 170, .16), rgba(214, 196, 170, 0) 70%);
  transition: opacity var(--t-base) var(--ease);
}
@media (hover: hover) {
  .tuile:hover { border-color: var(--cuivre); }
  .tuile:hover .tuile__image::after { opacity: 1; }
}
.tuile:focus-visible { border-color: var(--cuivre); }
.tuile:focus-visible .tuile__image::after { opacity: 1; }
@media (max-width: 480px) {
  .tuile { padding: 6px; box-shadow: inset 0 0 0 3px var(--planche), inset 0 0 0 4px var(--acier-2); }
  .tuile__etat { top: 11px; left: 11px; font-size: .8rem; }
}

/* ---------- La visionneuse : une pièce en grand avec sa fiche, puis la précédente ou la suivante ---------- */
.fiche {
  width: min(100% - 2rem, 1120px); max-height: min(94vh, 980px); max-height: min(94dvh, 980px); margin: auto; padding: 0;
  border: 1px solid var(--acier); border-radius: 2px; background: var(--cuir-2); color: var(--os);
  overflow: hidden;
}
.fiche::backdrop { background: rgba(6, 6, 8, .86); }
.fiche[open] { animation: fondu var(--t-fast) var(--ease); }
@keyframes fondu { from { opacity: 0; } }
.fiche__page { display: grid; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.fiche__planche { position: relative; display: grid; place-items: center; background: var(--planche); }
.fiche__image { width: 100%; height: min(76vh, 800px); object-fit: contain; }
.fiche__nav, .fiche__fermer {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--acier); border-radius: 2px; background: rgba(14, 13, 15, .82); color: var(--os); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.fiche__nav { top: 50%; transform: translateY(-50%); }
.fiche__nav:active { transform: translateY(-50%) scale(.96); }
.fiche__nav--prec { left: .75rem; }
.fiche__nav--suiv { right: .75rem; }
.fiche__fermer { top: .75rem; right: .75rem; }
@media (hover: hover) { .fiche__nav:hover, .fiche__fermer:hover { border-color: var(--os-3); } }
.fiche__pied {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 1.6rem); border-top: 1px solid var(--acier-2);
}
.fiche__compte {
  margin-right: auto; font-family: var(--font-sc); font-weight: 500; font-size: var(--text-label);
  letter-spacing: .06em; color: var(--os-2); font-variant-numeric: tabular-nums;
}
/* La fiche de la pièce (nom, modèle, jeu, taille) : un petit encadré à filet double, comme les planches */
.fiche__infos { flex: 1 1 100%; display: grid; gap: .8rem; justify-items: start; align-content: start; }
.fiche__infos:empty { display: none; }
.fiche__etat {
  padding: .2rem .6rem .25rem; border: 1px solid var(--acier);
  font-family: var(--font-sc); font-weight: 500; font-size: .85rem; letter-spacing: .06em; line-height: 1.2; color: var(--os);
}
.fiche__fiche {
  justify-self: stretch; display: grid; gap: .85rem; margin: 0; padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--acier); box-shadow: inset 0 0 0 4px var(--cuir-2), inset 0 0 0 5px var(--acier-2);
}
.fiche__info { display: grid; gap: .1rem; }
.fiche__info dt { font-family: var(--font-sc); font-weight: 500; font-size: var(--text-label); letter-spacing: .06em; color: var(--os-2); }
.fiche__info dd { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--os); }
/* Une info pas encore connue garde sa place : « À confirmer », en italique plus pâle que les vraies valeurs */
.fiche__info dd.fiche__vide { font-style: italic; color: var(--os-2); }
.fiche__vues { display: flex; flex-wrap: wrap; gap: .5rem; }
.fiche__vues:empty { display: none; }
.fiche__vue {
  width: 56px; height: 56px; padding: 0; border: 1px solid var(--acier-2); border-radius: 2px;
  background: var(--planche); cursor: pointer; overflow: hidden; transition: border-color var(--t-fast) var(--ease);
}
.fiche__vue img { width: 100%; height: 100%; object-fit: cover; }
.fiche__vue[aria-pressed="true"] { border-color: var(--cuivre); }
@media (hover: hover) { .fiche__vue:hover { border-color: var(--os-3); } }
/* Ordinateur : la photo à gauche, la fiche à droite (la place du bouton de fermeture est gardée en haut) */
@media (min-width: 900px) {
  .fiche__page { grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); }
  .fiche__image { height: min(82vh, 780px); }
  .fiche__pied {
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1.1rem;
    padding: 4.6rem 1.5rem 1.5rem; border-top: 0; border-left: 1px solid var(--acier-2);
  }
  .fiche__compte { margin-right: 0; }
  .fiche__infos { flex: none; }   /* en colonne, la fiche garde sa hauteur naturelle */
  .fiche__cta { margin-top: auto; }
}
@media (max-width: 640px) {
  .fiche { width: calc(100% - 1rem); }
  .fiche__image { height: min(60vh, 520px); }
  .fiche__nav { width: 44px; height: 44px; }
  .fiche__nav--prec { left: .5rem; }
  .fiche__nav--suiv { right: .5rem; }
  .fiche__cta { width: 100%; justify-content: center; }
}

/* ---------- Commande : le récit, puis les quatre temps ---------- */
.commande { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.commande__recit { grid-column: 1 / 6; position: sticky; top: calc(var(--nav-h) + 3rem); }
.lettrine { margin-top: 2rem; max-width: 36ch; color: var(--os); font-size: 1.2rem; text-wrap: pretty; }
.lettrine::first-letter {
  float: left; margin: .12em .14em 0 0; font-family: var(--font-display); font-weight: 800;
  font-size: 4.4em; line-height: .78; color: var(--cuivre);
}
.etapes { grid-column: 7 / 13; counter-reset: etape; }
.etapes li {
  counter-increment: etape; position: relative; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 1.25rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--acier-2);
}
.etapes li::before {
  content: counter(etape, upper-roman); grid-row: 1 / span 2; padding-top: .35rem;
  font-family: var(--font-sc); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: .06em; color: var(--cuivre);
}
.etapes h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.etapes p { margin-top: .5rem; color: var(--os-2); max-width: 44ch; text-wrap: pretty; }
@media (max-width: 900px) {
  .commande { grid-template-columns: minmax(0, 1fr); }
  .commande__recit, .etapes { grid-column: 1; position: static; }
}
@media (max-width: 480px) { .etapes li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: .9rem; } }

/* ---------- Tarifs : la grille de prix de Mattéo ---------- */
.tarifs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.tarifs__prix { grid-column: 1 / 8; display: grid; gap: 1.8rem; justify-items: start; }
.tarifs__texte { color: var(--os-2); font-size: 1.2rem; max-width: 46ch; }
.tarifs__note { color: var(--os-2); max-width: 52ch; }
/* Pièces à vendre : plus en vue depuis l'appel du 4 octobre 2026, avec son bouton d'achat */
.tarifs__vente {
  grid-column: 8 / 13; align-self: center; display: grid; gap: 1.1rem; justify-items: start;
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  border: 1px solid var(--acier); background: rgba(14, 13, 15, .5);
  box-shadow: inset 0 0 0 5px rgba(14, 13, 15, 0), inset 0 0 0 6px var(--acier-2);
}
.tarifs__vente h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 1.8rem + 1.3vw, 3rem); line-height: 1.05; color: var(--cuivre); }
.tarifs__vente p { color: var(--os-2); font-size: 1.15rem; max-width: 34ch; }
.tarifs__vente .btn { margin-top: .35rem; }
/* Ses pièces à vendre en ce moment (atelier de Mattéo) : chacune ouvre sa fiche */
.tarifs__a-vendre { justify-self: stretch; display: grid; gap: .6rem; }
.a-vendre {
  width: 100%; display: grid; grid-template-columns: 4rem minmax(0, 1fr); align-items: center; gap: .9rem;
  padding: .5rem; border: 1px solid var(--acier-2); border-radius: 2px; background: rgba(14, 13, 15, .55);
  color: var(--os); font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
@media (hover: hover) { .a-vendre:hover { border-color: var(--cuivre); } }
.a-vendre img { width: 4rem; height: 5rem; object-fit: contain; background: var(--planche); }
.a-vendre__texte { display: grid; gap: .1rem; min-width: 0; }
.a-vendre__nom { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; overflow-wrap: anywhere; }
.a-vendre__prix { color: var(--cuivre-vif); font-variant-numeric: lining-nums tabular-nums; }
.a-vendre__voir { font-family: var(--font-sc); font-weight: 500; font-size: var(--text-label); letter-spacing: .06em; color: var(--os-2); }
@media (max-width: 900px) {
  .tarifs { grid-template-columns: minmax(0, 1fr); }
  .tarifs__prix, .tarifs__vente { grid-column: 1; }
}
.grille-prix { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.grille-prix th, .grille-prix td {
  padding: .9rem 1rem .9rem 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--acier-2);
}
.grille-prix tr > :last-child { padding-right: 0; }
.grille-prix thead th {
  padding-top: 0; font-family: var(--font-sc); font-weight: 500; font-size: var(--text-label); letter-spacing: .06em;
  line-height: 1.3; color: var(--os-2); border-bottom-color: var(--acier);
}
.grille-prix tbody th { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--os); }
.grille-prix td { font-size: 1.12rem; color: var(--os); }
/* Téléphone : un bloc par niveau de détail, chaque prix précédé du titre de sa colonne. Les rôles ARIA
   du tableau (index.html) gardent sa lecture de tableau ; le titre ajouté ici n'est pas relu. */
@media (max-width: 560px) {
  .grille-prix, .grille-prix tbody, .grille-prix tr, .grille-prix th, .grille-prix td { display: block; }
  .grille-prix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .grille-prix tbody tr { padding: 1rem 0 .8rem; border-bottom: 1px solid var(--acier-2); }
  .grille-prix tbody tr:first-child { border-top: 1px solid var(--acier); }
  .grille-prix tbody th { padding: 0 0 .45rem; border: 0; }
  .grille-prix td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .3rem 0; border: 0; }
  .grille-prix td::before {
    content: attr(data-label); content: attr(data-label) / "";
    font-family: var(--font-sc); font-weight: 500; font-size: var(--text-label); letter-spacing: .06em; color: var(--os-2);
  }
}
/* Ce qui attend une réponse de Mattéo se voit tout de suite (aperçu seulement) */
.a-confirmer {
  display: grid; gap: .45rem; padding: 1.2rem 1.4rem; max-width: 44ch;
  border: 1px dashed var(--os-3); color: var(--os-2);
}
.a-confirmer__etiquette { font-family: var(--font-sc); font-weight: 700; font-size: var(--text-label); letter-spacing: .06em; color: var(--os); }
.a-confirmer--ligne { display: block; padding: .8rem 1rem; }
.a-confirmer--ligne .a-confirmer__etiquette { margin-right: .5rem; }

/* ---------- Questions ---------- */
.questions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.questions .titre-peint { grid-column: 1 / 5; }
.faq { grid-column: 6 / 13; }
.faq details { border-bottom: 1px solid var(--acier-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.22rem; line-height: 1.35; transition: color var(--t-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icone { color: var(--os-3); transition: transform var(--t-base) var(--ease), color var(--t-fast) var(--ease); }
.faq details[open] summary .icone { transform: rotate(180deg); color: var(--cuivre); }
@media (hover: hover) { .faq summary:hover { color: var(--os-vif); } }
.faq details > p { padding: 0 0 1.5rem; color: var(--os-2); max-width: 56ch; }
@media (max-width: 900px) {
  .questions { grid-template-columns: minmax(0, 1fr); }
  .questions .titre-peint, .faq { grid-column: 1; }
}

/* ---------- Avis : la bannière (demande de Mattéo, appel du 4 octobre 2026) ----------
   Une bande de velours plus sombre que le cuir, entre deux filets doubles, au bas de la page. Les avis
   y défilent doucement : la seule chose qui bouge seule sur le site. Elle s'arrête au survol, au
   toucher, au clavier et par son bouton, et reste immobile sous mouvement réduit (js/main.js). */
.avis {
  position: relative; padding-block: clamp(3.75rem, 6.5vw, 5.75rem);
  border-block: 1px solid var(--acier);
  background:
    linear-gradient(var(--acier-2), var(--acier-2)) left 0 top 4px / 100% 1px no-repeat,
    linear-gradient(var(--acier-2), var(--acier-2)) left 0 bottom 4px / 100% 1px no-repeat,
    var(--planche);
}
/* Au bas de la page (choix de Mathieu) : le filet double de la bande ferme la page, le pied de page n'en ajoute pas */
main:has(> .avis:last-child) + .footer { border-top-color: transparent; }
.avis__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; }
.avis__intro { max-width: 42rem; }
.avis__titre { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.4rem); }
.avis__intro .chapitre__chapo { margin-top: 1.1rem; }
.avis__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.avis__sans-js { color: var(--os-2); }
.avis__ouvrir .icone { transition: transform var(--t-base) var(--ease); }
@media (hover: hover) { .avis__ouvrir:hover .icone { transform: none; } }
.avis__ouvrir[aria-expanded="true"] .icone, .avis__ouvrir[aria-expanded="true"]:hover .icone { transform: rotate(180deg); }
/* Le formulaire d'avis s'ouvre sous le bouton, monté comme celui des soumissions */
.avis__zone {
  max-width: 46rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--acier); background: var(--cuir-2);
  box-shadow: inset 0 0 0 5px var(--cuir-2), inset 0 0 0 6px var(--acier-2);
  animation: fondu var(--t-base) var(--ease);
}
.field label.avis__accord { align-items: flex-start; padding-block: .5rem; font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; letter-spacing: 0; line-height: 1.45; }
.avis__accord input { margin-top: .12rem; }
/* La bande : on la fait glisser au doigt, au pavé, à la souris ou au clavier ; ses bords se fondent */
.avis__bande {
  margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; cursor: grab; outline-offset: -3px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.avis__bande::-webkit-scrollbar { display: none; }
.avis__bande.is-defile, .avis__bande.is-saisie { -webkit-user-select: none; user-select: none; }
.avis__bande.is-saisie { cursor: grabbing; }
.avis__liste { position: relative; display: flex; gap: clamp(1rem, 2vw, 1.5rem); width: max-content; margin-inline: auto; padding: .5rem var(--gutter) 1rem; }
.avis__bande.is-defile .avis__liste { margin-inline: 0; }
.avis__carte {
  flex: none; width: min(24rem, 80vw); display: grid; grid-template-rows: 1fr auto; gap: 1.25rem;
  padding: 1.4rem 1.6rem 1.35rem; border: 1px solid var(--acier); border-radius: 2px; background: var(--cuir-2);
  box-shadow: inset 0 0 0 4px var(--cuir-2), inset 0 0 0 5px var(--acier-2);
}
.avis__carte blockquote { margin: 0; }
.avis__carte blockquote::before {   /* le guillemet ouvrant, peint en cuivre comme une lettrine */
  content: "«"; content: "«" / ""; display: block; height: .5em; margin-bottom: .35rem;
  font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: .8; color: var(--cuivre);
}
.avis__carte blockquote p { font-size: 1.08rem; line-height: 1.55; color: var(--os); text-wrap: pretty; overflow-wrap: anywhere; }
.avis__signature { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding-top: .9rem; border-top: 1px solid var(--acier-2); }
.avis__nom { font-family: var(--font-sc); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; color: var(--os); }
.avis__client {
  padding: .1rem .5rem .15rem; border: 1px solid var(--acier);
  font-family: var(--font-sc); font-weight: 500; font-size: .82rem; letter-spacing: .06em; line-height: 1.2; color: var(--os);
}
.avis__date { margin-left: auto; font-size: var(--text-fine); color: var(--os-3); }

/* ---------- Écrire ---------- */
.ecrire { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.ecrire__texte { grid-column: 1 / 6; }
.ecrire__formulaire { grid-column: 6 / 13; padding: clamp(1.5rem, 3.5vw, 2.75rem); border: 1px solid var(--acier); background: var(--cuir-2); box-shadow: inset 0 0 0 5px var(--cuir-2), inset 0 0 0 6px var(--acier-2); }
.direct { margin-top: 2.6rem; display: grid; gap: .55rem; justify-items: start; }
.direct p { color: var(--os-2); margin-bottom: .3rem; }
.direct a, .footer__contact a, .footer__contact p:not(.footer__titre) {
  display: inline-flex; align-items: center; gap: .65rem; max-width: 100%; overflow-wrap: anywhere;
  text-decoration: none; padding: .3rem 0; color: var(--os); transition: color var(--t-fast) var(--ease);
}
.direct a { font-size: 1.12rem; }
.direct a span { border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
@media (hover: hover) { .direct a:hover span { border-bottom-color: var(--cuivre); } }
.direct .icone { color: var(--os-3); }
@media (max-width: 960px) {
  .ecrire { grid-template-columns: minmax(0, 1fr); }
  .ecrire__texte, .ecrire__formulaire { grid-column: 1; }
}

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.3rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-family: var(--font-sc); font-weight: 500; font-size: 1rem; letter-spacing: .04em; }
.field .optional { font-family: var(--font-body); font-style: italic; letter-spacing: 0; color: var(--os-3); }
.field .hint { font-size: var(--text-fine); color: var(--os-3); }
.field .error { display: none; font-size: var(--text-fine); font-weight: 500; color: var(--erreur); }
.field.is-invalid .error { display: block; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--field-border); border-radius: 2px;
  background: var(--cuir); color: var(--os); transition: border-color var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cuivre); outline-offset: 2px; border-color: var(--cuivre); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--erreur); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select option { background: var(--cuir-2); color: var(--os); }
.select .icone { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--os-3); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Une question oui ou non : un groupe de boutons radio, sa légende tient lieu d'étiquette */
.choix { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.choix legend { padding: 0; margin-bottom: .5rem; font-family: var(--font-sc); font-weight: 500; font-size: 1rem; letter-spacing: .04em; line-height: 1.4; }
.choix__options { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.choix__option { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding-right: .5rem; cursor: pointer; }
.choix__option input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; padding: 0; accent-color: var(--cuivre); cursor: pointer; }
.form__alert {
  display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1rem;
  background: var(--erreur-fond); color: var(--erreur); font-size: var(--text-small); font-weight: 500;
  overflow-wrap: anywhere; animation: fondu var(--t-base) var(--ease);
}
.form__alert .icone { margin-top: .15em; }
.form__consent { font-size: var(--text-fine); color: var(--os-3); text-align: center; text-wrap: balance; }
.form__success { display: grid; gap: .8rem; padding: 1.5rem 0; animation: fondu var(--t-base) var(--ease); }
.form__success h3 { display: flex; align-items: baseline; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; }
.form__success h3 .icone { width: .8em; height: .8em; color: var(--cuivre); align-self: center; }
.form__success p { color: var(--os-2); }

/* ---------- Pied de page : le colophon ---------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--acier-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2.5rem; }
.footer__logo-lien { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.footer__logo { width: 72px; height: 72px; border-radius: 50%; }
.footer__marque { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.footer__brand p { margin-top: 1.2rem; color: var(--os-2); max-width: 32ch; }
.footer__titre { font-family: var(--font-sc); font-weight: 700; font-size: var(--text-label); letter-spacing: .06em; color: var(--os-2); margin-bottom: .4rem; }
.footer__nav, .footer__contact { display: grid; gap: .3rem; align-content: start; justify-items: start; }
.footer__nav a { padding: .3rem 0; color: var(--os); text-decoration: none; }
.footer__contact .icone { color: var(--os-3); }
@media (hover: hover) { .footer__nav a:hover, .footer__contact a:hover { color: var(--os-vif); text-decoration: underline; text-decoration-color: var(--cuivre); } }
.footer__bottom {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--acier-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem;
  font-size: var(--text-fine); color: var(--os-3);
}
.footer__bottom p { max-width: 80ch; }
.footer__bottom a { padding-block: .7rem; margin-block: -.7rem; color: var(--os-2); }   /* 45 px à toucher, même mise en page */
.footer__liens { display: flex; flex-wrap: wrap; gap: .8rem 1.75rem; }
.form__consent a { color: var(--os-2); white-space: nowrap; }
@media (hover: hover) { .form__consent a:hover, .footer__bottom a:hover { color: var(--os-vif); text-decoration-color: var(--cuivre); } }
@media (pointer: coarse) {
  .direct a, .footer__nav a, .footer__contact a { min-height: 44px; }
  .footer__nav a { display: inline-flex; align-items: center; }
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; } }

/* ---------- Pages simples : politique de confidentialité et page introuvable ----------
   Même cuir, même marque, sans la barre du haut ni le script de la page d'accueil. */
.page-tete { border-bottom: 1px solid var(--acier-2); }
.page-tete__inner { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
.page-tete__retour { font-family: var(--font-sc); font-weight: 700; font-size: var(--text-label); letter-spacing: .06em; color: var(--os-2); padding-block: .7rem; }
@media (hover: hover) { .page-tete__retour:hover { color: var(--os-vif); text-decoration-color: var(--cuivre); } }
.legal { padding-block: clamp(3rem, 6vw, 5rem) var(--chapitre); }
.legal__colonne { max-width: 46rem; }
.legal__titre { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.2rem); }
.legal__date { margin-top: 1rem; font-size: var(--text-small); color: var(--os-2); }
.legal h2 { margin-top: 3rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.45rem + .9vw, 2.2rem); line-height: 1.1; color: var(--os-vif); }
.legal h3 { margin-top: 1.6rem; font-family: var(--font-sc); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; color: var(--cuivre); }
.legal p, .legal ul { margin-top: 1rem; max-width: 66ch; text-wrap: pretty; }
.legal ul { display: grid; gap: .55rem; }
.legal li { position: relative; padding-left: 1.3rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--cuivre); }
.legal a { text-decoration-color: var(--cuivre); }
@media (hover: hover) { .legal a:hover { color: var(--os-vif); } }
.legal__resume { margin-top: 2.5rem; padding: 1.4rem 1.5rem 1.6rem; background: var(--cuir-2); border: 1px solid var(--acier-2); border-left: 2px solid var(--cuivre); }
.legal__resume h2 { margin-top: 0; font-size: 1.6rem; }
.page-pied { border-top: 1px solid var(--acier-2); padding-block: 1.6rem 2rem; font-size: var(--text-fine); color: var(--os-3); }
.page-pied__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; }
.page-pied a { color: var(--os-2); padding-block: .7rem; margin-block: -.7rem; }
.introuvable { min-height: calc(100svh - var(--nav-h) - 2px); display: grid; align-content: center; padding-block: 4rem; }
.introuvable__code { font-family: var(--font-sc); font-weight: 700; font-size: var(--text-label); letter-spacing: .12em; color: var(--os-2); margin-bottom: .8rem; }
.introuvable__bouton { margin-top: 2.2rem; }

/* ---------- Utilitaires ---------- */
[hidden] { display: none !important; }

/* ---------- Mouvement réduit ----------
   Le site n'a plus d'animation décorative. Restent les retours de survol et de clic : sous mouvement
   réduit, ils gardent leurs fondus de couleur et d'opacité, sans déplacement. La bannière des avis,
   seule chose qui bouge seule, ne défile pas : js/main.js la laisse à faire glisser à la main. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
  .btn .icone, .faq summary .icone, .nav__links a::after, .nav__burger span { transition: none; }
  .btn:hover .icone { transform: none; }
  .fiche__nav:active { transform: translateY(-50%); }
}
