/* =========================================================================
   cedrictaldu.com — design system
   -------------------------------------------------------------------------
   Extrait des maquettes de maquette/, sans réinterprétation : mêmes variables,
   mêmes classes, mêmes points de rupture. Trois écarts assumés, tous exigés
   par les specs :

     1. Polices AUTO-HÉBERGÉES. Les maquettes chargeaient Google Fonts ; une
        origine tierce est interdite par la CSP et par le RGPD (06-securite §2
        et §9).
     2. Aucun gestionnaire d'événement inline. La CSP est stricte et sans
        unsafe-inline : le menu burger vit dans nav.js.
     3. `.dessin` n'est plus un bloc décoratif mais le conteneur d'une vraie
        balise <picture>. La trame pointillée est conservée EN FOND : elle
        occupe la place pendant le chargement et prolonge le motif du site.

   Chemins de polices RELATIFS (`../fonts/…`) : le site tourne sous
   /cedric-taldu en préproduction et à la racine en production, et une URL
   absolue casserait l'un des deux (09-environnements §3.4).
   ========================================================================= */

/* ---------------------------------------------------------------- polices */

@font-face {
  font-family: 'Marcellus';
  src: url('../fonts/Marcellus-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  /* Le texte s'affiche immédiatement dans la police de repli, puis bascule :
     rien n'est invisible pendant le chargement. */
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-VariableFont_wght.woff2') format('woff2-variations');
  /* Fonte variable : les graisses 300, 400 et 500 des maquettes tiennent dans
     un seul fichier, donc une seule requête au lieu de trois. */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------- variables */

:root {
  --papier: #FAF9F6;
  --papier-chaud: #F1EEE8;
  --mur: #E7E3DB;
  --encre: #161513;
  --encre-70: #4A4843;
  --encre-40: #8C8983;
  --filet: #D8D4CB;
  --alerte: #8C2F1F;
  --max: 1180px;
  /* Largeur des pages de contenu (éditoriales, articles) : revue du 2026-09-24. */
  --contenu: 72rem;
  /* Largeur des blocs de texte courant : 1050 px, demandée par le client pour
     les pages (2026-09-29) puis pour les introductions, restées « serrées »
     à une cinquantaine de caractères (2026-10-12). */
  --mesure: 65.625rem;
  /* Teinte du style d'entrée active « couleur ». */
  --actif: #8C5A2B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  color: var(--encre);
  background: var(--papier);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1.2rem; }

/* Transitions de page natives, neutralisées si le visiteur les refuse. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------ utilitaires */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 5vw; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  /* 02-front-public §7 : --encre-40 sur --papier ne passe AA que pour du texte
     non essentiel ≥ 18,66 px. Un surtitre porte de l'information, il est donc
     renforcé à --encre-70. */
  color: var(--encre-70);
  margin-bottom: 1.1rem;
}

/* Séparateur pointillé — signature du site, écho du dessin point par point. */
.stipple {
  height: 5px;
  background-image: radial-gradient(circle, var(--encre-40) 1.1px, transparent 1.3px);
  background-size: 11px 5px;
  background-repeat: repeat-x;
  background-position: center;
  border: none;
  margin: 0 auto;
  width: min(240px, 40vw);
  opacity: .75;
}

/* Lien d'évitement : premier élément focalisable de chaque page. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: var(--papier);
  padding: .8rem 1.4rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Visible des seuls lecteurs d'écran. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ------------------------------------------------------------- navigation */

.site-tete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--filet);
}

.nav {
  max-width: var(--max); margin: 0 auto; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { font-family: 'Marcellus', Georgia, serif; font-size: 1.25rem; text-decoration: none; letter-spacing: .04em; }
.brand small {
  display: block; font-family: 'Jost', system-ui, sans-serif; font-weight: 300;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--encre-70);
}

nav ul { display: flex; gap: 1.9rem; list-style: none; align-items: center; }
nav a, .nav-bouton {
  text-decoration: none; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--encre-70);
  padding-bottom: .2rem;
  border: none; border-bottom: 1px solid transparent;
  background: none; font-family: inherit; font-weight: inherit; cursor: pointer;
  transition: color .2s, border-color .2s;
}
nav a:hover, nav a:focus-visible,
.nav-bouton:hover, .nav-bouton:focus-visible { color: var(--encre); border-bottom-color: var(--encre); }
/* Langue courante (texte, pas un lien) : même typographie que « English »
   (retour client du 2026-09-29). */
.langue-courante {
  font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre);
  padding-bottom: .2rem; border-bottom: 1px solid transparent;
}

/* Panier : lien global + pastille du nombre d'articles. */
.panier-lien {
  display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--encre-70); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.panier-lien:hover, .panier-lien:focus-visible { color: var(--encre); border-bottom-color: var(--encre); }
.pastille-panier {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--encre); color: var(--papier);
  font-size: .72rem; letter-spacing: 0; line-height: 1;
}
.pastille-panier[hidden] { display: none; }

/* Confirmation d'ajout, révélée par admin.js (masquée sans JavaScript). */
.achat-confirme { margin: .8rem 0 0; font-size: .9rem; color: var(--encre-70); }
.achat-confirme[hidden] { display: none; }
/* Entrée active : aria-current posé par l'en-tête, style choisi en réglage
   (nav.active_style) et porté par l'attribut data-actif de la navigation. */
nav a[aria-current], .nav-bouton[aria-current] { color: var(--encre); }
nav[data-actif="souligne"] a[aria-current],
nav[data-actif="souligne"] .nav-bouton[aria-current] { border-bottom-color: var(--encre); }
nav[data-actif="gras"] a[aria-current],
nav[data-actif="gras"] .nav-bouton[aria-current] { font-weight: 500; }
/* Inversé : la même marge intérieure pour TOUTES les entrées, sans quoi
   l'onglet actif dépasse des autres (retour client du 2026-09-29). */
nav[data-actif="inverse"] a,
nav[data-actif="inverse"] .nav-bouton { padding: .2rem .5rem; }
nav[data-actif="inverse"] a[aria-current],
nav[data-actif="inverse"] .nav-bouton[aria-current] { background: var(--encre); color: var(--papier); }
nav[data-actif="couleur"] a[aria-current],
nav[data-actif="couleur"] .nav-bouton[aria-current] { color: var(--actif); }

nav a.boutique {
  border: 1px solid var(--encre);
  padding: .5rem 1.15rem;
  color: var(--encre);
  transition: background .2s, color .2s;
}
nav a.boutique:hover, nav a.boutique:focus-visible { background: var(--encre); color: var(--papier); }

/* Sous-menu Galerie : alimenté depuis la base, jamais écrit en dur.
   Sans JavaScript, :focus-within suffit à l'ouvrir et à le parcourir. */
.sous-menu { position: relative; display: flex; align-items: center; gap: .35rem; }
/* Ouvreur du sous-menu, à côté du lien « Galerie » (revue du 2026-09-24). */
.sous-menu-ouvrir { font-size: .7rem; letter-spacing: 0; padding: .1rem .2rem; }
.galerie-tout { margin-top: 3rem; }
.gal-card .dessin { margin-bottom: 1.2rem; }
.sous-menu > ul {
  display: none;
  position: absolute; top: 100%; left: 0;
  z-index: 60;
  min-width: 12rem;
  flex-direction: column; gap: 0;
  background: var(--papier);
  border: 1px solid var(--filet);
  padding: .6rem 0;
}
.sous-menu > ul li { width: 100%; }
.sous-menu > ul a { display: block; padding: .5rem 1.1rem; border-bottom: none; }
.sous-menu[open] > ul,
.sous-menu:focus-within > ul,
.sous-menu > ul:hover { display: flex; }

/* Burger : trois barres, qui se croisent quand le menu est ouvert. */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; margin-left: 1rem;
  background: none; border: 1px solid var(--filet); cursor: pointer;
}
.burger-barres, .burger-barres::before, .burger-barres::after {
  display: block; width: 1.25rem; height: 1px; background: var(--encre);
  transition: transform .2s, background .2s;
}
.burger-barres { position: relative; }
.burger-barres::before, .burger-barres::after { content: ''; position: absolute; left: 0; }
.burger-barres::before { top: -.4rem; }
.burger-barres::after { top: .4rem; }
.burger[aria-expanded="true"] .burger-barres { background: transparent; }
.burger[aria-expanded="true"] .burger-barres::before { transform: translateY(.4rem) rotate(45deg); }
.burger[aria-expanded="true"] .burger-barres::after { transform: translateY(-.4rem) rotate(-45deg); }

/* Reprises du menu mobile (compte, langues, coordonnées) : la barre du haut
   les porte déjà sur grand écran. */
.menu-mobile { display: none; }

/* Menu mobile (demande du 2026-10-13). La barre ne garde que le logo, le
   panier et le burger ; le menu s'ouvre sous l'en-tête et reprend, après les
   pages, le compte, les langues puis les coordonnées. Les règles visent
   « .nav-bas », plus « nav » : elles s'appliquaient à toute balise <nav> et
   empilaient le fil d'Ariane sur quatre lignes. */
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .outils-entete .compte-lien, .outils-entete .langues { display: none; }
  .nav-bas > ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 100%); overflow-y: auto;
    background: var(--papier); border-bottom: 1px solid var(--filet);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 5vw 1.5rem;
  }
  .nav-bas > ul.open { display: flex; }
  .nav-bas li { width: 100%; }
  .nav-bas a { display: block; padding: .7rem 0; }
  .nav-bas a.boutique { display: inline-block; margin-top: .6rem; }
  .sous-menu { flex-wrap: wrap; }
  .sous-menu > ul { position: static; border: none; padding: 0 0 0 1rem; flex-basis: 100%; }

  .menu-mobile { display: block; }
  .menu-mobile-compte { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--filet); }
  .nav-bas .menu-mobile-langues { display: flex; align-items: baseline; gap: 1.4rem; padding: .7rem 0; }
  .nav-bas .menu-mobile-langues a { padding: 0 0 .2rem; }
  .menu-mobile-coordonnees {
    margin-top: .8rem; padding-top: 1.1rem; border-top: 1px solid var(--filet);
    font-size: .92rem; color: var(--encre-70); line-height: 1.6;
  }
  .menu-mobile-coordonnees address { font-style: normal; margin-bottom: .5rem; }
  .menu-mobile-coordonnees address span { display: block; }
  .nav-bas .menu-mobile-coordonnees a {
    padding: .25rem 0; text-transform: none; letter-spacing: .02em; font-size: .92rem;
    text-decoration: underline; text-underline-offset: .2em; border-bottom: none;
  }
}

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-block; text-decoration: none;
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .9rem 2rem; border: 1px solid var(--encre);
  transition: background .2s, color .2s;
}
.btn-plein { background: var(--encre); color: var(--papier); }
.btn-plein:hover, .btn-plein:focus-visible { background: transparent; color: var(--encre); }
.btn-vide { color: var(--encre); }
.btn-vide:hover, .btn-vide:focus-visible { background: var(--encre); color: var(--papier); }
button.btn { font-family: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- champs */

/* Contrôles de saisie du site public : grands, aérés, alignés — dans le
   vocabulaire éditorial de la vitrine (angles francs, comme les boutons). */
.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea,
.commande-form input[type='text'],
.commande-form input[type='email'],
.commande-form input[type='tel'],
.commande-form textarea,
.panier-quantite input[type='number'] {
  width: 100%; min-height: 3.4rem; padding: .95rem 1.1rem; font: inherit; font-size: 1rem;
  background: var(--papier); color: var(--encre); border: 1px solid var(--filet);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:hover, .contact-form textarea:hover,
.commande-form input:hover, .commande-form textarea:hover,
.panier-quantite input:hover { border-color: var(--encre-40); }
.contact-form input:focus, .contact-form textarea:focus,
.commande-form input:focus, .commande-form textarea:focus,
.panier-quantite input:focus {
  outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(22, 21, 19, .10);
}
.contact-form input::placeholder, .contact-form textarea::placeholder,
.commande-form input::placeholder, .commande-form textarea::placeholder { color: var(--encre-40); }
.panier-quantite input[type='number'] { width: 5.5rem; min-height: 0; text-align: center; padding: .7rem .6rem; }

/* ---------------------------------------------------------------- contact form */

.contact-form { max-width: 36rem; margin: 0 auto; text-align: left; }
.contact-form label {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre-70); margin: 1.7rem 0 .55rem;
}
.contact-form input[type='text'], .contact-form input[type='email'] { min-height: 3.4rem; }
.contact-form textarea { min-height: 12rem; resize: vertical; line-height: 1.6; }
.contact-form .btn { margin-top: 2.2rem; }
.contact-form .champ-erreur { display: block; font-size: .82rem; color: var(--alerte); margin-top: .5rem; }

/* ----------------------------------------------------------------- panier */

.panier { padding: clamp(2.5rem, 6vh, 4.5rem) 0; }
.panier > .wrap { max-width: 58rem; }
.panier h1 { margin-bottom: 2rem; }

.panier-message {
  background: var(--papier); border-left: 3px solid var(--encre);
  padding: .95rem 1.15rem; margin-bottom: 1.4rem; color: var(--encre-70);
}
.panier-vide { color: var(--encre-70); font-size: 1.05rem; }

.panier-lignes { width: 100%; border-collapse: collapse; }
.panier-lignes thead th {
  text-align: left; font-family: 'Jost', sans-serif; font-weight: 500;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-70);
  padding: 0 1rem .8rem; border-bottom: 1px solid var(--filet);
}
.panier-lignes tbody td { padding: 1.1rem 1rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.panier-article { font-size: 1.05rem; }
.panier-lignes th:nth-child(3), .panier-lignes th:last-child,
.panier-montant, .panier-retrait { text-align: right; }
.panier-montant { font-family: 'Marcellus', Georgia, serif; font-size: 1.2rem; white-space: nowrap; }
.panier-quantite { white-space: nowrap; }
.panier-form { display: flex; align-items: center; gap: .55rem; }

/* Petits boutons texte du panier (mettre à jour / retirer). */
.panier-form button, .panier-retrait button {
  background: none; border: none; font: inherit; font-size: .76rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--encre-70); cursor: pointer; padding: .3rem 0;
  border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.panier-form button:hover, .panier-retrait button:hover,
.panier-form button:focus-visible, .panier-retrait button:focus-visible {
  color: var(--encre); border-bottom-color: var(--encre); outline: none;
}

.panier-lignes tfoot th {
  padding: 1.3rem 1rem 0; text-align: left; font-family: 'Jost', sans-serif; font-weight: 500;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-70); border: none;
}
.panier-lignes tfoot td {
  padding: 1.3rem 1rem 0; text-align: right; border: none;
  font-family: 'Marcellus', Georgia, serif; font-size: 1.35rem; color: var(--encre);
}

.panier-rappel { color: var(--encre-40); font-size: .9rem; margin: 1.6rem 0 0; max-width: 54ch; }
.panier-actions { display: flex; justify-content: flex-end; margin-top: 2rem; }

@media (max-width: 34rem) {
  .panier-lignes thead { display: none; }
  .panier-lignes tbody tr { display: block; padding: .6rem 0; border-bottom: 1px solid var(--filet); }
  .panier-lignes tbody td { display: flex; justify-content: space-between; align-items: center; border: none; padding: .45rem 0; }
  .panier-montant, .panier-retrait { text-align: left; }
  .panier-lignes tfoot th, .panier-lignes tfoot td { display: inline-block; padding-top: 1rem; }
}

/* ------------------------------------------------------- page éditoriale */

.page-editoriale { max-width: var(--contenu); padding-top: clamp(2.5rem, 6vh, 4.5rem); padding-bottom: clamp(3rem, 8vh, 5rem); }
.page-tete { margin-bottom: 2.5rem; }
.page-tete h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-langue { color: var(--encre-40); font-style: italic; margin-bottom: 1.5rem; }

.page-visuel { margin: 0 0 2.5rem; }
.page-corps { color: var(--encre-70); line-height: 1.75; font-size: 1.02rem; }
.page-corps > :first-child { margin-top: 0; }
.page-corps h2 { font-size: 1.55rem; margin: 2.6rem 0 1rem; color: var(--encre); }
.page-corps h3 { font-size: 1.2rem; margin: 2rem 0 .7rem; color: var(--encre); }
.page-corps p { margin-bottom: 1.3rem; }
.page-corps ul, .page-corps ol { margin: 0 0 1.3rem 1.4rem; }
.page-corps li { margin-bottom: .5rem; }
.page-corps a { color: var(--encre); text-decoration: underline; text-underline-offset: .2em; }
.page-corps a:hover, .page-corps a:focus-visible { color: var(--encre-70); }
.page-corps blockquote {
  border-left: 3px solid var(--filet); padding-left: 1.2rem; margin: 1.6rem 0;
  color: var(--encre-40); font-style: italic;
}
.page-corps img { max-width: 100%; height: auto; }
.page-pdf { margin-top: 2.6rem; }

/* --------------------------------------------------- blocs éditoriaux */

.bloc { margin: 0 0 1.6rem; }
.bloc:last-child { margin-bottom: 0; }
.bloc-titre { font-family: 'Marcellus', Georgia, serif; margin: 2.4rem 0 1rem; }
.bloc-texte { color: var(--encre-70); line-height: 1.75; }
.bloc-texte p { margin-bottom: 1.1rem; }

.bloc-image { margin: 2rem 0; }
.bloc-image img { display: block; width: 100%; height: auto; }
.bloc-image figcaption { margin-top: .6rem; font-size: .85rem; color: var(--encre-40); }

.bloc-citation {
  border-left: 3px solid var(--filet); padding-left: 1.4rem; margin: 2rem 0;
  font-family: 'Marcellus', Georgia, serif; font-size: 1.3rem; color: var(--encre);
}
.bloc-citation cite { display: block; margin-top: .8rem; font-family: 'Jost', sans-serif; font-size: .85rem; font-style: normal; color: var(--encre-40); }

.bloc-separateur { border: 0; margin: 2.6rem 0; }
.bloc-separateur--line { border-top: 1px solid var(--filet); }
.bloc-separateur--dots { border-top: 2px dotted var(--filet); }
.bloc-separateur--space { margin: 1.6rem 0; }

.bloc-cta { margin: 2rem 0; }

.bloc-colonnes { display: grid; gap: 1.6rem; }
.bloc-colonnes--2 { grid-template-columns: repeat(2, 1fr); }
.bloc-colonnes--3 { grid-template-columns: repeat(3, 1fr); }
.bloc-colonnes--4 { grid-template-columns: repeat(4, 1fr); }
.bloc-gap--sm { gap: .8rem; }
.bloc-gap--lg { gap: 2.6rem; }
@media (max-width: 700px) { .bloc-colonnes { grid-template-columns: 1fr; } }

.bloc-section { margin: 2rem 0; }
.bloc-pad--sm { padding: 1rem; }
.bloc-pad--md { padding: 2rem; }
.bloc-pad--lg { padding: 3rem; }
.bloc-pad--xl { padding: 4.5rem; }
.bloc-max--content { max-width: 960px; margin-inline: auto; }
.bloc-max--wide { max-width: 1200px; margin-inline: auto; }
.bloc-max--full { max-width: none; }

/* Design des blocs (retours du 2026-09-25) : classes en liste blanche, la CSP
   interdisant style=. Une image de fond est une <picture> étirée sous le texte. */
.bloc-section, .bloc-hero { position: relative; isolation: isolate; }
.bloc-section-contenu, .bloc-hero-contenu { position: relative; z-index: 2; }
.bloc-fond { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bloc-fond .dessin, .bloc-fond picture { width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
.bloc-fond img { width: 100%; height: 100%; object-fit: cover; }
.bloc-voile--dark::after, .bloc-voile--light::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bloc-voile--dark::after { background: rgba(22, 21, 19, .55); }
.bloc-voile--light::after { background: rgba(250, 249, 246, .6); }

.bloc-couleur--paper { background: var(--papier-chaud); }
.bloc-couleur--light { background: var(--mur); }
.bloc-couleur--dark { background: var(--encre); color: var(--papier); }
.bloc-couleur--accent { background: var(--actif); color: var(--papier); }
.bloc-ton--light, .bloc-ton--light .bloc-texte, .bloc-ton--light .bloc-titre,
.bloc-couleur--dark .bloc-texte, .bloc-couleur--accent .bloc-texte { color: var(--papier); }
.bloc-ton--dark, .bloc-ton--dark .bloc-texte, .bloc-ton--dark .bloc-titre { color: var(--encre); }
.bloc-ton--light .btn-plein, .bloc-couleur--dark .btn-plein { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.bloc-align--center { text-align: center; }
.bloc-align--right { text-align: right; }

.bloc-hero { display: flex; align-items: center; margin: 0 0 2rem; padding: 3rem clamp(1.2rem, 5vw, 4rem); overflow: hidden; }
.bloc-hero--small { min-height: 30vh; }
.bloc-hero--medium { min-height: 50vh; }
.bloc-hero--large { min-height: 70vh; }
.bloc-hero--full { min-height: 100vh; min-height: 100svh; }
.bloc-hero.bloc-align--center { justify-content: center; }
.bloc-hero.bloc-align--right { justify-content: flex-end; }
.bloc-hero-contenu { max-width: 44rem; }
.bloc-hero-titre { font-family: 'Marcellus', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1rem; }
.bloc-hero-texte { font-size: 1.15rem; margin-bottom: 1.6rem; }
.bloc-hero-texte p + p { margin-top: .8rem; }

.bloc-media-texte { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; margin: 2rem 0; }
.bloc-media-texte.bloc-ratio--1-2 { grid-template-columns: 1fr 2fr; }
.bloc-media-texte.bloc-ratio--2-1 { grid-template-columns: 2fr 1fr; }
.bloc-media-texte--right .bloc-media-texte-image { order: 2; }
.bloc-media-texte--right.bloc-ratio--1-2 { grid-template-columns: 2fr 1fr; }
.bloc-media-texte--right.bloc-ratio--2-1 { grid-template-columns: 1fr 2fr; }
.bloc-media-texte-texte p + p { margin-top: 1rem; }
.bloc-colonnes--2.bloc-ratio--2-1 { grid-template-columns: 2fr 1fr; }
.bloc-colonnes--2.bloc-ratio--1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 700px) {
  .bloc-media-texte, .bloc-media-texte[class*="bloc-ratio"], .bloc-colonnes--2[class*="bloc-ratio"] { grid-template-columns: 1fr; }
  .bloc-media-texte--right .bloc-media-texte-image { order: 0; }
}

/* --------------------------------------------------------------- commande */

.commande { padding: clamp(2.5rem, 6vh, 4.5rem) 0; }
.commande > .wrap { max-width: 60rem; }
.commande h1 { margin-bottom: 2rem; }
.pot-de-miel { position: absolute; left: -9999px; top: -9999px; }

.commande-erreur {
  background: var(--papier); border-left: 3px solid var(--alerte); color: var(--alerte);
  padding: .95rem 1.15rem; margin-bottom: 1.8rem;
}

/* Trois sections en cartes ; sur grand écran, le bilan colle à droite. */
.commande-section {
  background: var(--papier); border: 1px solid var(--filet);
  padding: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 1.4rem;
}
.commande-section h2 {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem;
  font-family: 'Jost', sans-serif; font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--encre);
}
.commande-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; flex: none; border: 1px solid var(--encre);
  border-radius: 50%; font-size: .85rem;
}

.commande-form label {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre-70); margin: 1.3rem 0 .5rem;
}
.commande-section > label:first-of-type,
.commande-adresse > label:first-of-type { margin-top: 0; }

/* Modes de remise : des lignes cliquables, prix à droite. */
.commande-modes { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.commande-mode {
  display: flex; align-items: center; gap: .8rem; margin: 0;
  padding: 1rem 1.15rem; border: 1px solid var(--filet); cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.commande-mode:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.commande-mode input[type='radio'] { flex: none; width: 1.15rem; height: 1.15rem; accent-color: var(--encre); }
.commande-mode-nom { flex: 1; font-size: 1rem; color: var(--encre); }
.commande-mode-prix { font-variant-numeric: tabular-nums; color: var(--encre-70); }
.commande-mode:has(input:checked) .commande-mode-prix { color: var(--encre); font-weight: 500; }

.commande-adresse[hidden] { display: none; }
.commande-ligne { display: grid; grid-template-columns: 8rem 1fr 6rem; gap: 0 1rem; }
.commande-ligne .champ label { margin-top: 1.3rem; }
.commande-adresse .champ-aide { font-size: .82rem; color: var(--encre-40); margin-top: .9rem; }

/* Bilan : lignes, sous-total, port, total. */
.commande-lignes { list-style: none; margin-bottom: 1rem; }
.commande-lignes li {
  display: flex; justify-content: space-between; gap: 1.2rem;
  padding: .6rem 0; border-bottom: 1px solid var(--filet); font-size: .95rem;
}
.commande-lignes li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.commande-detail {
  display: flex; justify-content: space-between; gap: 1.2rem;
  padding: .35rem 0; color: var(--encre-70); font-size: .95rem;
}
.commande-detail span:last-child { font-variant-numeric: tabular-nums; }
.commande-total {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: baseline;
  margin-top: .7rem; padding-top: .9rem; border-top: 1px solid var(--filet); font-size: 1.3rem;
}
.commande-total span:first-child {
  font-family: 'Jost', sans-serif; font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--encre-70);
}
.commande-total span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }

.commande-reception {
  margin-top: 1.2rem; padding: .9rem 1.1rem; background: var(--papier-chaud);
  font-size: .9rem; color: var(--encre-70);
}
.commande-reception[hidden] { display: none; }

.commande-cgv {
  display: flex; align-items: flex-start; gap: .7rem; margin: 1.5rem 0 0;
  padding-top: 1.4rem; border-top: 1px solid var(--filet);
  font-size: .92rem; color: var(--encre-70); line-height: 1.5;
}
.commande-cgv input[type='checkbox'] {
  flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--encre); cursor: pointer;
}
.commande-cgv a { text-underline-offset: 3px; }
.commande-paiement { margin: 1.2rem 0 0; font-size: .82rem; color: var(--encre-40); }
.commande-payer { display: block; width: 100%; text-align: center; margin-top: 1.2rem; font-variant-numeric: tabular-nums; }
.commande-bilan > label[for='note'] { margin-top: 1.6rem; }

@media (min-width: 60rem) {
  .commande-form {
    display: grid; grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: 2rem; align-items: start;
  }
  .commande-etapes { grid-column: 1; }
  .commande-bilan { grid-column: 2; grid-row: 1; position: sticky; top: 5.5rem; margin-bottom: 0; }
}

/* ----------------------------------------------------------- confirmation */

.confirmation { padding: clamp(3rem, 8vh, 6rem) 0; }
.confirmation > .wrap { max-width: 38rem; }
.confirmation h1 { margin-bottom: 1rem; }
.confirmation > .wrap > p { color: var(--encre-70); }
.confirmation-attente {
  background: var(--papier-chaud); padding: 1rem 1.2rem; margin-bottom: 1.5rem;
}
.confirmation-reference, .confirmation-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  background: var(--papier); border: 1px solid var(--filet);
  padding: 1rem 1.2rem; margin: 1.4rem 0 0;
}
.confirmation-reference strong, .confirmation-total strong {
  font-family: 'Jost', sans-serif; font-weight: 500; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--encre-70);
}
.confirmation-reference { font-variant-numeric: tabular-nums; }
.confirmation-total { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.confirmation-tva { font-size: .85rem; color: var(--encre-40); margin-top: 1rem; }
.confirmation .wrap > p:last-child { margin-top: 2rem; }

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(4rem, 9vh, 7rem) 0 clamp(3rem, 7vh, 5rem); text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 20ch; margin: 0 auto 1.6rem; }
.hero .baseline { max-width: 52ch; margin: 0 auto 2.4rem; font-size: 1.1rem; color: var(--encre-70); }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* CTA paramétrable : alignement choisi en back-office. */
.cta-row--gauche { justify-content: flex-start; }
.cta-row--droite { justify-content: flex-end; }
.article-cta { margin: 3rem 0 1rem; }

/* Hero habillé : image de la médiathèque et/ou couleur (--hero-fond, servie
   par le <style> à nonce), texte sombre ou clair selon data-ton. */
.hero--fond {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero-fond, var(--papier-chaud));
}
.hero-fond { position: absolute; inset: 0; z-index: -1; }
.hero-fond picture, .hero-fond img { width: 100%; height: 100%; }
.hero-fond img { object-fit: cover; }
.hero--fond[data-ton="papier"] { color: var(--papier); }
.hero--fond[data-ton="papier"] .baseline,
.hero--fond[data-ton="papier"] .eyebrow { color: rgba(250, 249, 246, .86); }
.hero--fond[data-ton="papier"] .hero-fond::after {
  content: ''; position: absolute; inset: 0; background: rgba(22, 21, 19, .38);
}
.hero--fond[data-ton="papier"] .btn-plein { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.hero--fond[data-ton="papier"] .btn-vide { color: var(--papier); border-color: var(--papier); }

/* --------------------------------------------------------- œuvres, cadres */

.vitrine { padding: 0 0 clamp(3.5rem, 8vh, 6rem); padding-top: 3.125rem; /* 50px sous le hero (2026-09-29) */ }
/* Colonnes de largeur fixe par palier : engendrées par ThumbnailLayout::css(). */
.vitrine-grid { display: grid; gap: 1.4rem; align-items: end; }

.oeuvre { position: relative; display: block; text-decoration: none; }

.cadre {
  background: #fff;
  border: 1px solid var(--filet);
  box-shadow: 0 18px 40px -22px rgba(22, 21, 19, .28);
  padding: 7%;
  transition: transform .25s, box-shadow .25s;
}
a.oeuvre:hover .cadre, a.oeuvre:focus-visible .cadre {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(22, 21, 19, .32);
}

/* Conteneur du visuel. La trame pointillée reste en fond : elle occupe la
   place pendant le chargement et prolonge le motif du site. */
.dessin {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 30% 35%, rgba(22, 21, 19, .10) 0 18%, transparent 40%),
    radial-gradient(circle at 65% 60%, rgba(22, 21, 19, .08) 0 22%, transparent 46%),
    radial-gradient(circle, rgba(22, 21, 19, .32) .7px, transparent .9px);
  background-size: 100% 100%, 100% 100%, 4px 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Image présente : fond blanc, pas la trame d'attente, là où elle ne remplit
   pas sa vignette (retour client du 2026-09-29). */
.dessin:has(picture) { background: #fff; }
.dessin img {
  width: 100%; height: 100%; object-fit: contain;
  /* Point focal (classes fx-/fy-) et facteur de zoom réglable en back-office. */
  object-position: var(--fx, 50%) var(--fy, 50%);
  scale: var(--vignette-zoom, 1);
}
/* Gabarit fixe par orientation (revue du 2026-09-24) : l'œuvre tient entière
   dans son cadre, jamais rognée ni agrandie au-delà de sa résolution. */
.dessin--portrait { aspect-ratio: 3 / 4; }
.dessin--paysage { aspect-ratio: 4 / 3; }
.dessin--carre { aspect-ratio: 1 / 1; }
/* Vignette d'œuvre nette (2026-09-30) : affichée à la taille de son fichier,
   choisi à la largeur exacte (ThumbnailLayout) — le facteur de zoom y est déjà.
   max-* : filet de sécurité si la police racine n'est pas de 16 px. */
.oeuvre .dessin img { width: auto; height: auto; max-width: 100%; max-height: 100%; scale: 1; }
/* Le zoom ne vise que les vignettes : pas la fiche, ni les visuels de mise en page. */
.visuel .dessin img, .bloc-image .dessin img, .portrait .dessin img, .hero-fond .dessin img { scale: 1; }
/* Fond du hero et portrait : l'image couvre son cadre (point focal respecté). */
.hero-fond .dessin, .portrait .dessin { aspect-ratio: auto; width: 100%; height: 100%; background: none; }
.hero-fond .dessin img, .portrait .dessin img { object-fit: cover; }
.fx-0 { --fx: 0%; } .fx-10 { --fx: 10%; } .fx-20 { --fx: 20%; } .fx-30 { --fx: 30%; }
.fx-40 { --fx: 40%; } .fx-50 { --fx: 50%; } .fx-60 { --fx: 60%; } .fx-70 { --fx: 70%; }
.fx-80 { --fx: 80%; } .fx-90 { --fx: 90%; } .fx-100 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-10 { --fy: 10%; } .fy-20 { --fy: 20%; } .fy-30 { --fy: 30%; }
.fy-40 { --fy: 40%; } .fy-50 { --fy: 50%; } .fy-60 { --fy: 60%; } .fy-70 { --fy: 70%; }
.fy-80 { --fy: 80%; } .fy-90 { --fy: 90%; } .fy-100 { --fy: 100%; }
.dessin span {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--encre-70); background: rgba(255, 255, 255, .85); padding: .3rem .7rem;
}
.oeuvre.large .dessin { aspect-ratio: 3 / 4.4; }
.oeuvre.carre .dessin { aspect-ratio: 1 / 1; }
.oeuvre.haut .dessin { aspect-ratio: 5 / 8; }

.legende {
  margin-top: .8rem;
  font-size: .82rem; letter-spacing: .05em; color: var(--encre-70);
  text-align: left;
}
.legende strong {
  display: block; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; color: var(--encre);
}
.legende .dispo {
  display: inline-block; margin-top: .35rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--encre); color: var(--encre);
}


/* -------------------------------------------------------------- triptyque */

.triptyque { background: var(--papier-chaud); padding: clamp(4rem, 9vh, 6.5rem) 0; text-align: center; }
.triptyque .intro { max-width: var(--mesure); margin: 0 auto 3rem; color: var(--encre-70); }
/* Le bouton suivait la grille sans aucun espace : il touchait son filet du bas
   (compte rendu client du 2026-10-12). */
.triptyque .cta-row { margin-top: 2.6rem; }
.tri-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.tri-cell { padding: 2.4rem 2rem; border-left: 1px solid var(--filet); }
.tri-cell:first-child { border-left: none; }
.tri-cell h3 { font-size: 1.25rem; margin-bottom: .7rem; letter-spacing: .03em; }
.tri-cell p { font-size: .98rem; color: var(--encre-70); }

@media (max-width: 760px) {
  .tri-grid { grid-template-columns: 1fr; }
  .tri-cell { border-left: none; border-top: 1px solid var(--filet); }
  .tri-cell:first-child { border-top: none; }
}

/* --------------------------------------------------------------- galeries */

.galeries { padding: clamp(4rem, 9vh, 6.5rem) 0; }
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.5rem; }

/* Au-delà de deux rubriques, la grille s'adapte d'elle-même : ajouter une
   rubrique en back-office ne demande aucune retouche (02-front-public §2). */
.gal-grid.auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.gal-card {
  position: relative; display: block; text-decoration: none;
  background: var(--mur);
  padding: 2.2rem 2.2rem 2rem;
  border: 1px solid var(--filet);
  transition: transform .25s;
}
.gal-card:hover, .gal-card:focus-visible { transform: translateY(-4px); }
.gal-card .dessin { aspect-ratio: 4 / 3; background-color: #fff; border: 1px solid var(--filet); }
.gal-card h3 { font-size: 1.4rem; margin: 1.4rem 0 .4rem; }
.gal-card p { color: var(--encre-70); font-size: .98rem; margin-bottom: 1rem; }
.gal-card .lien {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--encre); padding-bottom: .15rem;
}

@media (max-width: 760px) { .gal-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- bandes contrastées */

.boutique, .passerelle {
  background: var(--encre); color: var(--papier);
  padding: clamp(4rem, 9vh, 6.5rem) 0; text-align: center;
}
.boutique .eyebrow, .passerelle .eyebrow { color: rgba(250, 249, 246, .72); }
.boutique p, .passerelle p { max-width: var(--mesure); margin: 0 auto 2.2rem; color: rgba(250, 249, 246, .82); }
.boutique .btn, .passerelle .btn { border-color: var(--papier); color: var(--papier); }
.boutique .btn:hover, .boutique .btn:focus-visible,
.passerelle .btn:hover, .passerelle .btn:focus-visible { background: var(--papier); color: var(--encre); }
.boutique .stipple, .passerelle .stipple {
  background-image: radial-gradient(circle, rgba(250, 249, 246, .5) 1.1px, transparent 1.3px);
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------- atelier */

.atelier { padding: clamp(4rem, 9vh, 6.5rem) 0; }
.atelier-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--mur); border: 1px solid var(--filet);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--encre-70); }
.atelier p { margin-bottom: 1.1rem; color: var(--encre-70); }
.atelier p.forte { color: var(--encre); font-size: 1.12rem; }

@media (max-width: 760px) { .atelier-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ actus */

.actus { background: var(--papier-chaud); padding: clamp(4rem, 9vh, 6.5rem) 0; }
.actu-liste { margin-top: 2.2rem; border-top: 1px solid var(--filet); }
.actu {
  display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--filet); align-items: baseline;
}
.actu time { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-70); }
.actu h3 { font-size: 1.15rem; }
.actu .lieu { font-size: .92rem; color: var(--encre-70); }

@media (max-width: 640px) { .actu { grid-template-columns: 1fr; } }

/* Liste des actus (retour client du 2026-09-29) : chaque actu tombait dans la
   première colonne (8,5rem) de la grille compacte de l'accueil. Ici : photo à
   gauche, date, titre, lieu et extrait sur toute la largeur restante.
   Compte rendu du 2026-10-12 : plus de bande beige — la page portait la classe
   de la section « Actualités » de l'accueil, qui annulait aussi ses marges
   latérales — et chaque actu dans un cadre au filet gris léger (30 %). */
.actus-page { padding-bottom: clamp(4rem, 9vh, 6.5rem); }
.actus-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.actus-liste .actu { display: block; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid rgba(128, 128, 128, .3); }
.actus-liste .actu-lien {
  display: grid; grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start; text-decoration: none; color: inherit;
}
/* Fiche d'exposition dans l'article (2026-09-30). */
.article-adresse { font-size: .92rem; color: var(--encre-70); margin: .2rem 0 0; }
.article-expo-description { max-width: var(--mesure); margin: .9rem 0 0; }
.article-expo-lien { margin: .9rem 0 0; font-size: .92rem; }
.actu-date { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-70); margin-bottom: .5rem; }
.actu-titre { font-family: 'Marcellus', Georgia, serif; font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .5rem; }
.actu-lien:hover .actu-titre, .actu-lien:focus-visible .actu-titre { text-decoration: underline; text-underline-offset: .2em; }
.actu-lieu { font-size: .92rem; color: var(--encre-70); margin-bottom: .9rem; }
.actu-extrait { color: var(--encre-70); line-height: 1.7; }
@media (max-width: 40rem) { .actus-liste .actu-lien { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- contact */

.contact { padding: clamp(4rem, 9vh, 6rem) 0; text-align: center; }
.contact p { margin: 0 auto 2rem; color: var(--encre-70); }
/* Section contact de l'accueil : texte centré, à la mesure commune (50ch
   jusqu'au 2026-10-12). La page contact, elle, prend toute la largeur
   (retour client du 2026-09-29). */
section.contact p { max-width: var(--mesure); }
/* Page contact (retour client du 2026-09-29) : formulaire et coordonnées en
   vis-à-vis dès 54rem, empilés en dessous. */
.contact-intro { max-width: 60rem; }
.contact-colonnes { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: start; text-align: left; }
.contact-colonnes .contact-form { max-width: none; margin: 0; }
.contact-coordonnees { border-left: 1px solid var(--filet); padding-left: 1.6rem; }
.contact-coordonnees h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-coordonnees p { margin: 0 0 .9rem; max-width: none; }
.contact-coordonnees a { color: var(--encre); }
@media (min-width: 54rem) { .contact-colonnes { grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); } }

/* -------------------------------------------------------- page rubrique */

.page-head { padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(2.5rem, 6vh, 4rem); text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 24ch; margin: 0 auto 1.5rem; }
.page-head .intro { max-width: var(--mesure); margin: 0 auto; color: var(--encre-70); }
.page-head .intro p { margin-bottom: 1rem; }
/* Titre du texte explicatif de la page Galerie (compte rendu du 2026-10-12). */
.page-head .intro h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0 0 1rem; color: var(--encre); }

/* Fil d'Ariane : à gauche, discret, en casse naturelle. Les niveaux parents
   sont soulignés et cliquables ; le niveau courant reste texte simple. */
.fil { font-size: .8rem; letter-spacing: .01em; text-transform: none; color: var(--encre-40); margin-bottom: 1.4rem; }
.fil ol { list-style: none; display: flex; gap: .5rem; justify-content: flex-start; flex-wrap: wrap; }
.fil li + li::before { content: '/'; margin-right: .5rem; color: var(--encre-40); }
.fil a { color: var(--encre-70); text-decoration: underline; text-underline-offset: .18em; }
.fil a:hover, .fil a:focus-visible { color: var(--encre); }

.series { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 2.4rem 0 0; }
.serie {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--filet); padding: .5rem 1.1rem; color: var(--encre-70);
  transition: border-color .2s, color .2s;
}
.serie:hover, .serie:focus-visible { border-color: var(--encre); color: var(--encre); }
.serie[aria-current] { background: var(--encre); border-color: var(--encre); color: var(--papier); }

.grille { padding: clamp(3rem, 7vh, 5rem) 0 clamp(4rem, 9vh, 6rem); }
/* Colonnes de largeur fixe par palier : engendrées par ThumbnailLayout::css(). */
.oeuvres { display: grid; gap: 2.4rem 1.8rem; }

.vide { text-align: center; color: var(--encre-70); padding: 3rem 0; }

.pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 3rem; }
.pagination a, .pagination span {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--filet); padding: .5rem 1.1rem; color: var(--encre-70);
}
.pagination a:hover, .pagination a:focus-visible { border-color: var(--encre); color: var(--encre); }
.pagination .courante { background: var(--encre); border-color: var(--encre); color: var(--papier); }

.methode { background: var(--papier-chaud); padding: clamp(3.5rem, 8vh, 5.5rem) 0; text-align: center; }
.methode h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
.methode p { max-width: var(--mesure); margin: 0 auto 1rem; color: var(--encre-70); }
.methode .stipple { margin: 1.8rem auto 0; }

/* ----------------------------------------------------------- fiche œuvre */

.fiche {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(4rem, 9vh, 6rem);
  align-items: start;
}
/* Visuel (retours du 2026-09-28) : l'œuvre a une largeur FIXE par point de
   rupture (ImageBreakpoints), servie par des dérivés exacts en 1x/2x. L'image
   s'affiche à la taille native du fichier choisi (width: auto) : ni rognage,
   ni gabarit imposé, ni redimensionnement — les points restent nets. Le cadre
   épouse l'image ; la colonne de la fiche suit le cadre. */
.visuel .cadre {
  display: block; width: fit-content; max-width: 100%; margin: 0 auto;
  padding: 1.5rem; box-shadow: 0 22px 50px -26px rgba(22, 21, 19, .3);
}
.visuel .dessin { display: block; aspect-ratio: auto; background: none; overflow: visible; }
.visuel picture { display: block; }
.visuel .dessin img { width: auto; height: auto; max-width: 100%; object-fit: fill; scale: 1; }
@media (min-width: 54rem) {
  .fiche { grid-template-columns: auto minmax(0, 1fr); }
  .visuel { position: sticky; top: 96px; }
  .visuel .cadre { padding: 2.5rem; }
}
.vue-detail { margin-top: 1rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-70); text-align: center; }
.vues { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.vues .cadre { padding: 6%; width: 5.5rem; box-shadow: none; }
.vues .dessin { aspect-ratio: 1 / 1; max-height: none; }

.infos h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .5rem; }
.specs { font-size: .95rem; color: var(--encre-70); letter-spacing: .04em; margin-bottom: 1.6rem; }
.prix { font-family: 'Marcellus', Georgia, serif; font-size: 1.6rem; margin-bottom: .4rem; }
.dispo {
  display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--encre); border: 1px solid var(--filet); padding: .35rem .9rem; margin-bottom: 2rem;
}
.dispo.vendue { background: var(--mur); }
.texte p { margin-bottom: 1rem; color: var(--encre-70); }
.texte p.forte { color: var(--encre); }
.achat { margin: 1.2rem 0 0; display: flex; gap: .8rem; flex-wrap: wrap; }

/* Zone commerciale : les trois natures, clairement séparées. */
.achat-oeuvre { margin: 1.5rem 0 2rem; }
.achat-oeuvre h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.achat-oeuvre .prix, .achat-oeuvre .dispo { margin-bottom: .6rem; }

.reproductions { border-top: 1px solid var(--filet); padding-top: 1.8rem; }
.reproductions > h2 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.repro-groupe { margin-bottom: 1.8rem; }
.repro-groupe:last-child { margin-bottom: 0; }
.repro-groupe h3 { font-family: 'Marcellus', Georgia, serif; font-size: 1.05rem; margin-bottom: .2rem; }
.repro-desc { font-size: .9rem; color: var(--encre-40); margin-bottom: .9rem; }
.edition { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-70); margin-bottom: .6rem; }

.variantes { list-style: none; }
.variante {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: .7rem 0; border-bottom: 1px solid var(--filet);
}
.variante-taille { flex: 1 1 7rem; font-size: .95rem; }
.variante-prix { font-family: 'Marcellus', Georgia, serif; font-size: 1.15rem; }
.variante form { margin: 0; }

.poser-question { margin-top: 1.8rem; }
.lien-question {
  font-size: .9rem; color: var(--encre-70);
  text-decoration: underline; text-underline-offset: .2em;
}
.lien-question:hover, .lien-question:focus-visible { color: var(--encre); }

.garanties { border-top: 1px solid var(--filet); padding-top: 1.6rem; }
.garanties ul { list-style: none; }
.garanties li {
  padding: .45rem 0 .45rem 1.4rem; font-size: .95rem; color: var(--encre-70);
  background-image: radial-gradient(circle, var(--encre-40) 1.6px, transparent 1.9px);
  background-repeat: no-repeat; background-position: left center;
}


/* Mention de repli linguistique (05-i18n-seo §3). */
.repli-langue {
  font-size: .82rem; color: var(--encre-70);
  border-left: 2px solid var(--filet); padding: .3rem .9rem; margin-bottom: 1.4rem;
}

/* ---------------------------------------------------------- œuvres liées */

.liees { background: var(--papier-chaud); padding: clamp(3.5rem, 8vh, 5.5rem) 0; }
.liees h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2rem; text-align: center; }
.liees-grid { display: grid; gap: 1.8rem; } /* colonnes : ThumbnailLayout::css() */
.liee { display: block; text-decoration: none; }
.liee .cadre { padding: 8%; box-shadow: 0 14px 30px -20px rgba(22, 21, 19, .22); }
.liee .dessin { aspect-ratio: 3 / 4; max-height: none; }
.liee .legende { margin-top: .8rem; font-size: .8rem; color: var(--encre-70); }
.liee .legende strong { display: block; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; color: var(--encre); }


/* ----------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--filet); padding: 2.5rem 0; font-size: .85rem; color: var(--encre-70); }
.foot {
  max-width: var(--max); margin: 0 auto; padding: 0 5vw;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
footer a { color: var(--encre-70); text-decoration: none; }
footer a:hover { text-decoration: underline; }
/* Menu du pied de page (retour client du 2026-09-29) : il héritait du style du
   menu principal (capitales, bordure au survol) en plus du soulignement —
   deux traits. Ici : soulignés, en minuscules, un seul trait. */
.foot-legal a {
  text-transform: none; letter-spacing: normal; font-size: inherit; padding-bottom: 0;
  text-decoration: underline; text-underline-offset: .2em; border-bottom: 0;
}
.foot-legal a:hover, .foot-legal a:focus-visible { color: var(--encre); border-bottom: 0; }

/* Bandeau d'environnement — jamais visible en production
   (09-environnements §7). */
.bandeau-env {
  background: #8a2f2f; color: #fff; text-align: center;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem 1rem;
}

/* --------------------------------------------------- visionneuse de zoom */

/* Injectée par zoom.js. Sans JavaScript, ces règles ne servent jamais : le
   visuel reste un lien vers l'image en pleine taille. */
.zoom {
  border: none; padding: 0; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
  background: var(--encre);
  overflow: hidden;
}
.zoom[open] { display: block; }
.zoom::backdrop { background: rgba(22, 21, 19, .92); }
/* Explorateur (2026-09-30) : zoom.js calcule taille et position à partir du
   coin haut gauche ; réduite pour tenir à l'écran, jamais agrandie à
   l'ouverture, agrandie au plus jusqu'à la résolution native. */
.zoom img {
  position: absolute; top: 0; left: 0;
  max-width: none; max-height: none;
  transform-origin: 0 0;
  transition: transform .12s ease-out, opacity .2s;
  opacity: 0;
  cursor: zoom-in;
  user-select: none; touch-action: none;
}
.zoom--pret img { opacity: 1; }
.zoom--agrandi img { cursor: grab; }
.zoom--glisse img { cursor: grabbing; transition: opacity .2s; }
.zoom-outils {
  position: absolute; bottom: 1.2rem; left: 50%; translate: -50% 0; z-index: 2;
  display: flex; gap: .4rem;
}
.zoom-outil {
  min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem;
  background: rgba(22, 21, 19, .6); border: 1px solid rgba(250, 249, 246, .5); color: var(--papier);
  font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.zoom-outil--texte { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.zoom-outil:hover, .zoom-outil:focus-visible { background: var(--papier); color: var(--encre); }
.zoom-outil:disabled { opacity: .35; cursor: default; background: rgba(22, 21, 19, .6); color: var(--papier); }
.zoom-fermer {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: none; border: 1px solid rgba(250, 249, 246, .5); color: var(--papier);
  font: inherit; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem 1.1rem; cursor: pointer;
}
.zoom-fermer:hover, .zoom-fermer:focus-visible { background: var(--papier); color: var(--encre); }

@media (prefers-reduced-motion: reduce) {
  .zoom img { transition: none; }
}

/* ---------------------------------------------------- espace client (2026-09) */

.compte-lien { margin: 0; }
.compte-bloc { margin: 2.5rem 0 0; }
.compte-bloc h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.compte-adresses { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.adresse-bloc { white-space: pre-line; }
.compte-commandes { width: 100%; }
@media (max-width: 900px) {
  .outils-entete { gap: .8rem; }
}

/* En-tête sur deux lignes (retours du 2026-09-25) : logo, compte, panier et
   langues en haut ; menu de navigation dessous, séparé par un filet. */
.nav-haut { height: 64px; }
.outils-entete { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-bas { max-width: var(--max); margin: 0 auto; padding: 0 5vw; }
.nav-bas > ul { height: 48px; border-top: 1px solid var(--filet); }
@media (max-width: 900px) {
  .burger { margin-left: 1rem; }
  /* Le nom du site et son sous-titre passent sur plusieurs lignes : la barre
     grandit avec eux au lieu de déborder sur le bandeau (2026-10-13). */
  .nav-haut { height: auto; min-height: 64px; padding-top: .6rem; padding-bottom: .6rem; }
  .nav-bas { padding: 0; }
  .nav-bas > ul { height: auto; border-top: none; }
}

/* Mode de livraison unique (retours du 2026-09-25) : pas de choix à faire. */
.commande-mode-unique { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.4rem; }

/* Carte interactive (retours du 2026-09-25) : la zone ne prend sa hauteur
   qu'une fois la carte affichée, à la demande du visiteur. */
.bloc-carte { margin: 2rem 0; }
.bloc-carte-zone--active { width: 100%; border: 1px solid var(--filet); }
.bloc-carte--small .bloc-carte-zone--active { height: 280px; }
.bloc-carte--medium .bloc-carte-zone--active { height: 420px; }
.bloc-carte--large .bloc-carte-zone--active { height: 600px; }
.bloc-carte-action { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .8rem 0; }
.bloc-carte-note { font-size: .85rem; color: var(--encre-40); }
.bloc-carte-lieux { list-style: none; padding: 0; }
.bloc-carte-lieux li { padding: .5rem 0; border-bottom: 1px solid var(--filet); }
.bloc-carte-lieux a { margin-left: .5rem; font-size: .85rem; }

/* Réseaux sociaux du pied de page (Paramètres › Global, retours du 2026-09-25). */
.foot-reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; }

/* Gouttière latérale garantie (contrôle du rendu, 2026-10-12). Les sections
   « X wrap » — .page-head, .contact, .grille, .fiche, .galeries, .atelier,
   .vitrine… — déclarent leur padding par un raccourci vertical, hérité de la
   maquette, qui ANNULE les 5vw du .wrap : sous la largeur du site, leur contenu
   touchait les bords de l'écran. Cette règle DOIT rester la dernière : à
   spécificité égale, c'est la dernière déclarée qui l'emporte. Au-delà de
   82rem, les marges automatiques du .wrap suffisent et rien ne change. */
@media (max-width: 82rem) { .wrap { padding-left: 5vw; padding-right: 5vw; } }
