/* L'Atelier Martelé · feuille du site public (V2).
   Couleurs : les sept cases choisies par Justine le 12/10/2026 dans couleurs.jpg (A1, A3, B2, C2, C5, C6, C7),
   relevées à la pipette sans retouche. Fond blanc, aplats de couleur grainés.
   Depuis le 15/10, palette, couleurs du site, textures et mise en page des textes se règlent dans la gestion :
   la feuille du thème (<style id="theme">, écrite par public/s/apparence.js) redonne les variables ci-dessous. */

@font-face { font-family: 'Instrument Serif'; src: url('polices/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('polices/instrument-serif-italique.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('polices/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('polices/instrument-sans-italique.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Main'; src: url('polices/main.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --blanc: #FFFFFF;      /* texte sur fond foncé */
  --page: #FFFFFF;       /* fond des pages */
  --bouton: #1F1B17; --bouton-texte: #FFFFFF;
  --papier: var(--page);
  --papier-clair: var(--page);
  --papier-2: #F7F3EC;
  --encre: #1F1B17;
  --encre-douce: #5F554B;
  --encre-douce: color-mix(in srgb, var(--encre) 72%, var(--page));
  --rose: #D37C66;      /* A1 */
  --moutarde: #CC9A26;  /* A3 */
  --corail: #DA7566;    /* B2 */
  --brique: #BF4221;    /* C2 */
  --sable: #BEA178;     /* C5 */
  --sauge: #A29F7F;     /* C6 */
  --vert: #486048;      /* C7 */
  /* texture des aplats (Grain fin par défaut) : remplacée par la feuille du thème */
  --tx-site: none; --tx-site-taille: 300px;
  --carte-marge: 11%;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --main: 'Main', 'Segoe Print', cursive;
  --marge: clamp(18px, 5vw, 72px);
  --ombre-bijou: drop-shadow(0 16px 14px rgb(74 48 22 / .2)) drop-shadow(0 2px 2px rgb(74 48 22 / .28));
  --courbe: cubic-bezier(.2, .75, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--encre);
  font: 400 18px/1.6 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
/* Aplat de couleur texturé : chaque bloc donne sa couleur dans --fond ; texture du site, sauf texture propre (feuille du thème) */
.grain, .annonce, .presente-medaillon { --tx: var(--tx-site); --tx-taille: var(--tx-site-taille); }
.grain { background-color: var(--fond, var(--sable)); background-image: var(--tx); background-size: var(--tx-taille); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--brique); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.005em; margin: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.evitement { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: var(--papier); padding: 10px 16px; z-index: 50; }
.evitement:focus { left: 8px; }

.annonce { margin: 0; background: var(--fond, var(--vert)) var(--tx) 0 0 / var(--tx-taille); color: var(--blanc); text-align: center; font-size: 15px; padding: 9px var(--marge); }

/* --- En-tête : le nom de l'atelier en lettres du logo, sans la martre, la barre de pages dessous ------ */
.tete { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--marge) 6px; }
.tete-logo { grid-column: 2; display: block; width: clamp(190px, 17vw, 250px); color: var(--encre); }
.tete-logo svg { width: 100%; height: auto; display: block; }
.tete-nav { grid-column: 1 / -1; }
.tete-nav ul { list-style: none; margin: 10px 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(14px, 2.6vw, 40px); border-top: 1px solid rgb(31 27 23 / .16); }
.tete-nav a { text-decoration: none; font: 400 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; display: inline-block; position: relative; }
.tete-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--courbe); }
.tete-nav a:hover::after, .tete-nav a[aria-current="page"]::after { transform: scaleX(1); }
.tete-menu { display: none; }

/* Les ailes battent depuis leur base (point de pivot calculé à la vectorisation). */
.martre .ailes { transform-box: view-box; transform-origin: var(--pivot); }
@keyframes battre {
  0%, 100% { transform: none; }
  35% { transform: scale(1.03, .74) skewX(-4deg); }
  70% { transform: scale(.99, 1.05); }
}
@keyframes repos {
  0%, 9%, 100% { transform: none; }
  3% { transform: scale(1.03, .76) skewX(-4deg); }
  6% { transform: scale(.99, 1.04); }
}

/* --- Boutons, liens ---------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--bouton);
  background: var(--bouton); color: var(--bouton-texte); text-decoration: none; cursor: pointer;
  font: 600 15px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s var(--courbe);
}
.bouton:hover { background: var(--bouton-survol, var(--brique)); border-color: var(--bouton-survol, var(--brique)); }
.bouton:active { transform: translateY(1px); }
.bouton-clair { background: transparent; color: var(--encre); }
.bouton-clair:hover { background: var(--encre); color: var(--papier-clair); border-color: var(--encre); }
.lien-fleche { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 10px 0; }
.lien-fleche::after { content: ''; width: 34px; height: 1px; background: currentColor; transition: width .35s var(--courbe); }
.lien-fleche:hover::after { width: 56px; }

/* --- Accueil : la planche -------------------------------------------------------------- */
.planche { padding: clamp(14px, 2vw, 28px) var(--marge) clamp(48px, 6vw, 90px); text-align: center; }
.planche-scene { position: relative; max-width: 1240px; margin: 0 auto; aspect-ratio: 16 / 11; }
/* Titre net : aucune transformation (un demi-pixel de décalage floute le texte), centré par ses marges */
.planche-titre { position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; width: 48%; font-size: clamp(30px, 3.9vw, 58px); line-height: 1.08; text-wrap: balance; z-index: 1; }
/* Martre remontée : un vide franc la sépare du bijou du bas */
.planche-martre { position: absolute; left: 39%; top: 17.5%; width: 22%; color: var(--encre); --fond-aile: var(--page); display: block; }
.planche-martre svg { width: 100%; height: auto; display: block; overflow: visible; }
.js .planche-martre .ailes { animation: battre .6s ease-in-out .5s 3, repos 8s ease-in-out 3s infinite; }
.planche-martre:hover .ailes { animation: battre .5s ease-in-out infinite; }
.planche-specimens { list-style: none; margin: 0; padding: 0; }
.specimen { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%) rotate(var(--r)); }
.specimen a { display: block; position: relative; text-decoration: none; color: var(--encre); }
.specimen-photo { width: 100%; box-shadow: 0 18px 30px -16px rgb(31 27 23 / .45); transition: transform .55s var(--courbe), box-shadow .55s; }
.specimen a:hover .specimen-photo, .specimen a:focus-visible .specimen-photo { transform: translateY(-8px) rotate(calc(var(--r) * -.6)); box-shadow: 0 30px 40px -18px rgb(31 27 23 / .45); }
.specimen .forme-efface { box-shadow: none; }
.etiquette { position: absolute; left: 50%; top: 100%; transform: translateX(-50%) rotate(calc(var(--r) * -1)); padding-top: 22px; white-space: nowrap; font: 400 clamp(17px, 1.65vw, 23px)/1.15 var(--main); }
.etiquette::before { content: ''; position: absolute; left: 50%; top: 4px; width: 1px; height: 14px; background: currentColor; opacity: .55; transform-origin: top; }
.etiquette-prix { color: var(--brique); margin-left: .25em; white-space: nowrap; }
.specimen a:hover .etiquette-nom, .specimen a:focus-visible .etiquette-nom { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.js .specimen { animation: poser 1s var(--courbe) both; animation-delay: calc(.35s + var(--i) * .13s); }
.js .etiquette { animation: apparaitre .6s ease both; animation-delay: calc(1s + var(--i) * .13s); }
.js .etiquette::before { animation: tracer .5s var(--courbe) both; animation-delay: calc(.9s + var(--i) * .13s); }
@keyframes poser { from { opacity: 0; transform: translate(-50%, -64%) rotate(calc(var(--r) - 10deg)) scale(1.08); } }
@keyframes apparaitre { from { opacity: 0; } }
@keyframes tracer { from { transform: scaleY(0); } }
.planche-tout { margin-top: clamp(56px, 6vw, 90px); }
.planche-tout { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 14px 0; border-bottom: 1px solid currentColor; }

/* --- Accueil : présentation (médaillon rond, comme le logo rond) ---------------------- */
.presente { --fond: var(--vert); color: var(--blanc); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(64px, 9vw, 130px) var(--marge); }
.presente-medaillon { position: relative; width: min(100%, 460px); justify-self: center; }
.presente-medaillon > .forme, .presente-medaillon > img { position: relative; }
.presente-medaillon .forme { --ratio: 1; }
.presente-medaillon .forme img { object-position: 50% 30%; }
/* aplat rose décalé derrière la photo, de la même forme qu'elle */
.presente-medaillon::before { content: ''; position: absolute; inset: -4% -4% 4% 4%; border-radius: 50%; background: var(--fond-medaillon, var(--rose)) var(--tx) 0 0 / var(--tx-taille); }
.presente-medaillon:has(.forme-arche)::before { border-radius: 999px 999px 0 0; }
.presente-medaillon:has(.forme-rectangle)::before { border-radius: 3px; }
.presente-medaillon:has(.forme-arrondi)::before { border-radius: clamp(14px, 2.4vw, 32px); }
.presente-medaillon:has(.forme-efface)::before { display: none; }
.presente-texte p { font-size: 18px; color: color-mix(in srgb, var(--blanc) 88%, transparent); max-width: 58ch; }
.presente-texte p:first-child { font: 400 clamp(26px, 2.7vw, 40px)/1.18 var(--serif); color: var(--blanc); margin-bottom: .8em; }

/* --- Accueil : index des catégories ------------------------------------------------------ */
.index { padding: clamp(72px, 9vw, 140px) var(--marge); }
.index-titre { font-size: clamp(20px, 1.6vw, 24px); font-family: var(--sans); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.index-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(31 27 23 / .2); }
.index-liste li { border-bottom: 1px solid rgb(31 27 23 / .2); }
.index-liste a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; -webkit-tap-highlight-color: transparent; gap: 12px clamp(20px, 3vw, 48px); padding: clamp(10px, 1.4vw, 20px) 0; text-decoration: none; }
.index-mot { display: flex; align-items: baseline; gap: 14px; }
.index-nom { font: 400 clamp(46px, 7.6vw, 124px)/.98 var(--serif); }
.index-mot { transition: transform .5s var(--courbe); }
/* Flèche dans un cercle : dit que la ligne s'ouvre, se remplit au survol et à l'appui. */
.index-fleche { grid-column: 2; display: grid; place-items: center; width: clamp(44px, 4vw, 58px); aspect-ratio: 1; border: 1px solid rgb(31 27 23 / .35); border-radius: 50%; color: var(--encre); transition: background .3s, color .3s, border-color .3s, transform .5s var(--courbe); }
.index-fleche svg { transition: transform .5s var(--courbe); }
.index-liste a:hover .index-fleche, .index-liste a:focus-visible .index-fleche, .index-liste a:active .index-fleche { background: var(--encre); border-color: var(--encre); color: var(--papier-clair); }
.index-liste a:hover .index-fleche svg, .index-liste a:focus-visible .index-fleche svg { transform: translateX(3px); }
.index-liste a:active .index-mot { transform: translateX(6px); }
@media (hover: hover) {
  .index-liste a:hover .index-mot, .index-liste a:focus-visible .index-mot { transform: translateX(clamp(10px, 2vw, 28px)); }
  .index-liste a:hover .index-nom, .index-liste a:focus-visible .index-nom { font-style: italic; }
}

/* --- Accueil : engagement ----------------------------------------------------------------- */
.engage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; padding: 0 var(--marge) clamp(72px, 9vw, 140px); }
.engage-photo .forme { --ratio: 1; }
.engage-texte { --fond: var(--corail); padding: clamp(28px, 4vw, 56px); margin-left: calc(-1 * clamp(40px, 7vw, 120px)); position: relative; border-radius: 3px; }
.engage-texte p { font: 400 clamp(22px, 2.1vw, 31px)/1.25 var(--serif); }
.engage-texte p:last-child { margin: 0; font: 500 17px/1.6 var(--sans); }

/* --- Accueil : services ----------------------------------------------------------------- */
.services { padding: 0 var(--marge) clamp(72px, 9vw, 140px); }
.services-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.service a { display: flex; flex-direction: column; height: 100%; text-decoration: none; padding: 14px 14px 28px; border-radius: 3px; color: var(--encre); }
.service-photo { display: block; }
.service-photo .forme img { transition: transform .8s var(--courbe); }
.service a:hover .service-photo .forme img { transform: scale(1.04); }
.service-titre { font: 400 clamp(28px, 2.4vw, 38px)/1.05 var(--serif); margin: 22px 6px 10px; }
.service-texte { margin: 0 6px; font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Pied ------------------------------------------------------------------------------ */
.pied { --fond: var(--vert); color: var(--blanc); display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding: clamp(56px, 7vw, 96px) var(--marge); font-size: 16px; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Logo entier, martre couchée sur le nom ; ses ailes prennent le vert du pied */
.pied-logo { display: block; width: clamp(200px, 19vw, 260px); color: var(--blanc); --fond-aile: var(--fond, var(--vert)); margin-bottom: 18px; }
.pied-logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.pied-logo:hover .ailes, .pied-logo:focus-visible .ailes { animation: battre .55s ease-in-out infinite; }
.pied-marque p:last-child { color: color-mix(in srgb, var(--blanc) 78%, transparent); margin: 0; }
.pied-titre { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: color-mix(in srgb, var(--blanc) 70%, transparent); margin-bottom: 14px; }

/* --- Créations ---------------------------------------------------------------------------- */
.catalogue { padding: clamp(28px, 4vw, 60px) var(--marge) clamp(72px, 8vw, 120px); }
.catalogue-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); gap: 24px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.catalogue-tete h1 { font-size: clamp(54px, 9vw, 140px); line-height: .9; }
.catalogue-intro { color: var(--encre-douce); font-size: 16px; margin: 0; }
.catalogue-vide { color: var(--encre-douce); font-size: 18px; margin: 0; padding: 40px 0 80px; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.filtres a { text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid rgb(31 27 23 / .3); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.filtres a:hover { border-color: var(--encre); }
.filtres a[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: var(--papier-clair); }

.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(14px, 2vw, 32px); }
.carte a { display: block; text-decoration: none; color: var(--encre); }
.carte-vitrine { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; padding: var(--carte-marge); }
.carte-cadre { width: 100%; }
.carte-cadre > img { transition: transform 1.2s var(--courbe); }
.carte-photo-survol { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease, transform 1.2s var(--courbe); transform: scale(1.04); }
@media (hover: hover) {
  .carte a:hover .carte-photo-survol, .carte a:focus-visible .carte-photo-survol { opacity: 1; transform: scale(1); }
  .carte a:hover .carte-cadre > img { transform: scale(1.04); }
}
.carte-pastille { position: absolute; left: 12px; top: 12px; background: var(--blanc); color: var(--encre); font: 400 17px/1 var(--main); padding: 7px 11px 6px; border-radius: 2px; transform: rotate(-3deg); z-index: 1; }
.carte-nom { display: block; font: 400 clamp(25px, 2vw, 31px)/1.08 var(--serif); margin: 16px 0 6px; }
.carte-ligne { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.carte-matiere { color: var(--encre-douce); font-size: 15px; }
.carte-prix { font-weight: 600; font-size: 17px; white-space: nowrap; }
.carte-prix s, .fiche-prix s { font-weight: 400; color: var(--encre-douce); margin-right: 4px; }

/* --- Fiche création -------------------------------------------------------------------------- */
.fiche { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 80px); padding: clamp(20px, 3vw, 40px) var(--marge) clamp(56px, 7vw, 100px); align-items: start; }
.fil { grid-column: 1 / -1; font-size: 15px; color: var(--encre-douce); }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fiche-grande img { width: 100%; border-radius: 3px; background: var(--papier-2); }
.js .fiche-grande img:not([hidden]) { animation: apparaitre .45s ease; }
.fiche-vignettes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fiche-vignettes button { padding: 0; border: 0; background: none; cursor: pointer; width: 78px; border-radius: 3px; overflow: hidden; opacity: .62; outline-offset: 2px; transition: opacity .2s; position: relative; }
.fiche-vignettes button img { width: 78px; height: 78px; object-fit: cover; }
.fiche-vignettes button:hover, .fiche-vignettes button[aria-current="true"] { opacity: 1; }
.fiche-vignettes button[aria-current="true"]::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--encre); border-radius: 3px; }
.fiche-infos { position: sticky; top: 24px; }
.fiche-titre { font-size: clamp(42px, 4.6vw, 72px); line-height: .98; margin-bottom: 14px; }
.fiche-prix { font: 400 clamp(28px, 2.4vw, 36px)/1 var(--serif); margin: 0 0 22px; }
.fiche-faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; border-top: 1px solid rgb(31 27 23 / .2); }
.fiche-faits div { padding: 12px 0; border-bottom: 1px solid rgb(31 27 23 / .2); }
.fiche-faits dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.fiche-faits dd { margin: 2px 0 0; font-weight: 500; }
.fiche-options { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.fiche-options legend { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); margin-bottom: 8px; padding: 0; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgb(31 27 23 / .28); border-radius: 4px; cursor: pointer; transition: background .2s, border-color .2s; }
.option input { accent-color: var(--brique); width: 18px; height: 18px; margin: 0; }
.option-prix { margin-left: auto; font-weight: 600; }
.option:has(input:checked) { border-color: var(--encre); background: var(--papier-clair); }
.fiche-achat { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.fiche-achat .bouton { flex: 1 1 100%; }
.fiche-note { flex-basis: 100%; font-size: 14px; color: var(--encre-douce); margin: 4px 0 0; }
.fiche-description { font-size: 17px; border-top: 1px solid rgb(31 27 23 / .2); padding-top: 22px; }
.fiche-question { background: var(--papier-2); padding: clamp(48px, 6vw, 90px) var(--marge); }
.fiche-question-ouvrir { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; }
.fiche-question-ouvrir::-webkit-details-marker { display: none; }
.fiche-question-ouvrir .demande-titre { margin: 0; }
.fiche-question[open] .fiche-question-ouvrir { margin-bottom: 26px; }
.fiche-question-signe { flex: none; position: relative; width: 46px; height: 46px; border: 1.5px solid var(--encre); border-radius: 50%; transition: background .25s, color .25s; }
.fiche-question-signe::before, .fiche-question-signe::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; transition: transform .35s var(--courbe); }
.fiche-question-signe::after { transform: rotate(90deg); }
.fiche-question[open] .fiche-question-signe::after { transform: rotate(0); }
.fiche-question-ouvrir:hover .fiche-question-signe { background: var(--encre); color: var(--papier-clair); }
.fiche-question-ouvrir:focus-visible { outline: 2px solid var(--encre); outline-offset: 6px; border-radius: 4px; }
.autres { padding: clamp(56px, 7vw, 100px) var(--marge); }
.autres h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 28px; }

/* --- Formulaires de demande --------------------------------------------------------------- */
.demande { max-width: 820px; margin: 0 auto; }
.demande-titre { font-size: clamp(34px, 3.8vw, 56px); margin-bottom: 26px; }
.demande-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.facultatif { font-weight: 400; color: var(--encre-douce); font-size: 14px; }
.champ input, .champ textarea { width: 100%; font: 400 17px/1.45 var(--sans); color: var(--encre); background: var(--blanc); border: 1px solid rgb(31 27 23 / .32); border-radius: 4px; padding: 13px 14px; }
.champ textarea { resize: vertical; min-height: 150px; }
.champ input:hover, .champ textarea:hover { border-color: rgb(31 27 23 / .6); }
.champ [aria-invalid="true"] { border-color: var(--brique); background: #FBEDE7; }
.champ-erreur { color: var(--brique); font-size: 15px; margin: 6px 0 0; font-weight: 500; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demande-alerte { background: #FBEDE7; border-left: 3px solid var(--brique); padding: 12px 16px; }
.page-demande { background: var(--papier-2); padding: clamp(56px, 7vw, 100px) var(--marge); }

/* --- La créatrice ---------------------------------------------------------------------------- */
.creatrice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); padding: clamp(24px, 3vw, 48px) var(--marge) clamp(72px, 9vw, 130px); align-items: start; }
.creatrice-photo .forme { --ratio: 4 / 5; }
.creatrice-photo { position: sticky; top: 24px; }
.creatrice-texte h1 { font-size: clamp(60px, 9vw, 150px); line-height: .88; margin: clamp(0px, 3vw, 40px) 0 clamp(28px, 3vw, 44px); }
.creatrice-texte p { max-width: 56ch; }
.creatrice-texte p:first-of-type { font: 400 clamp(25px, 2.4vw, 36px)/1.2 var(--serif); max-width: 30ch; }

/* Carrousel de l'atelier, à la place de la grande photo : bande de photos qui défile, légende du lieu */
.carrousel { padding: 0 0 clamp(56px, 7vw, 100px); }
.carrousel-piste { list-style: none; margin: 0; padding: 0 var(--marge); display: flex; gap: clamp(10px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--marge); scrollbar-width: none; overscroll-behavior-x: contain; }
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste:focus-visible { outline: 2px solid var(--brique); outline-offset: 4px; }
.carrousel-vue { flex: 0 0 auto; scroll-snap-align: start; height: clamp(300px, 64vh, 640px); }
.carrousel-vue img { height: 100%; width: auto; max-width: 86vw; object-fit: cover; border-radius: 3px; }
.carrousel-pied { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--marge) 0; }
.carrousel-lieu { margin: 0; font: 400 clamp(19px, 1.6vw, 23px)/1.2 var(--main); }
.carrousel-fleches { display: flex; gap: 10px; }
.carrousel-fleches button { display: grid; place-items: center; width: 52px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgb(31 27 23 / .35); background: none; color: var(--encre); cursor: pointer; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.carrousel-fleches button:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.carrousel-fleches button:disabled { opacity: .3; cursor: default; background: none; color: var(--encre); border-color: rgb(31 27 23 / .35); }

/* --- Sur mesure : le texte directement, les photos dessous ----------------------------------------- */
.lecture { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(32px, 6vw, 96px); padding: clamp(28px, 4vw, 60px) var(--marge) clamp(56px, 7vw, 100px); align-items: start; }
.lecture-titre { grid-column: 1 / -1; font-size: clamp(54px, 8vw, 128px); line-height: .9; max-width: 14ch; margin-bottom: clamp(28px, 4vw, 56px); }
.lecture-texte p { font-size: 19px; line-height: 1.75; max-width: 62ch; }
.lettrine p:first-child::first-letter { float: left; font: 400 5.4em/.78 var(--serif); margin: .06em .1em 0 0; color: var(--brique); }
.lecture-exergue { margin: 0; position: sticky; top: 30px; border-left: 2px solid var(--rose); padding: 6px 0 6px clamp(18px, 2vw, 30px); }
.lecture-exergue p { font: italic 400 clamp(25px, 2.3vw, 34px)/1.22 var(--serif); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); padding: 0 var(--marge) clamp(64px, 8vw, 110px); }
.duo figure { margin: 0; }
.duo .forme { --ratio: 4 / 5; }
.duo-legende { grid-column: 1 / -1; font: 400 clamp(19px, 1.6vw, 23px)/1.2 var(--main); margin: 6px 0 0; text-align: center; }

/* --- Réparation et Stages : même mise en page. Texte à gauche, photo dans sa forme à droite ----------- */
.service-tete { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(28px, 4vw, 60px) var(--marge) clamp(64px, 8vw, 120px); }
.service-tete-texte h1 { font-size: clamp(54px, 7.4vw, 120px); line-height: .9; margin-bottom: clamp(24px, 3vw, 40px); }
.service-tete-texte p { font: 400 clamp(23px, 2.1vw, 31px)/1.3 var(--serif); max-width: 30ch; }
.service-tete-photo { justify-self: center; width: min(100%, 460px); }
.service-tete-photo .forme { --ratio: 4 / 5; }
/* Réparation : un reflet passe sur le bijou à l'entrée dans l'écran (l'éclat retrouvé) */
.eclat-reflet { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .55) 48%, rgb(255 255 255 / .12) 55%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 140% 0; mix-blend-mode: soft-light; pointer-events: none; }
.js .eclat.vu .eclat-reflet { animation: reflet 2.2s ease-in-out .3s 1 both, reflet 2.2s ease-in-out 6s infinite; }
.eclat:hover .eclat-reflet { animation: reflet 1.6s ease-in-out both; }
@keyframes reflet { from { background-position: 140% 0; } to { background-position: -40% 0; } }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding: 0 var(--marge) clamp(56px, 7vw, 100px); }
.info { background: var(--papier-2); padding: 28px; border-radius: 3px; }
.info h2 { font-size: 34px; margin-bottom: 12px; }
.bandeau-photo { margin: 0; overflow: hidden; }
.bandeau-photo img { width: 100%; max-height: 72vh; object-fit: cover; object-position: 50% 62%; }

/* --- Stages et ateliers : informations pratiques dans les cartes ------------------------------------- */
.stage-faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgb(31 27 23 / .2); }
.stage-faits div { padding: 14px 0; border-bottom: 1px solid rgb(31 27 23 / .2); }
.stage-faits dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.stage-faits dd { margin: 2px 0 0; font: 400 24px/1.2 var(--serif); }
.stage-dates { list-style: none; padding: 0; margin: 0; }
.stage-dates li { padding: 10px 0; border-bottom: 1px solid rgb(31 27 23 / .16); font: 400 20px/1.3 var(--main); }
/* --- Contact ------------------------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding: clamp(28px, 4vw, 60px) var(--marge) clamp(64px, 8vw, 110px); align-items: center; }
.contact h1 { font-size: clamp(60px, 9vw, 150px); line-height: .88; margin-bottom: clamp(24px, 3vw, 40px); }
.contact-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(31 27 23 / .2); }
.contact-liste li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgb(31 27 23 / .2); font: 400 clamp(22px, 2vw, 30px)/1.2 var(--serif); }
.contact-liste span { font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.contact-liste a { text-decoration: none; overflow-wrap: anywhere; }
.contact-liste a:hover { color: var(--brique); text-decoration: underline; }
.contact-photo .forme { --ratio: 4 / 5; }

/* --- Bloc vers la page Contact (sur mesure, réparation, stages) ----------------------------------- */
.question { --fond: var(--rose); text-align: center; padding: clamp(56px, 7vw, 100px) var(--marge); }
.question-titre { font-size: clamp(38px, 4.6vw, 68px); margin-bottom: 28px; }

/* --- Mise en forme des textes (gestion et éditeur visuel) : surligné, listes, liens dans le texte --- */
mark { background: rgb(204 154 38 / .42); color: inherit; padding: 0 .08em; border-radius: 2px; }
.ton-sombre mark, .presente mark, .pied mark { background: rgb(204 154 38 / .7); }
.texte-liste { margin: 0 0 1em; padding-left: 1.25em; }
.texte-liste li { margin: 0 0 .35em; }
.texte-liste li::marker { color: currentColor; }

/* --- Ton du texte sur un aplat : clair ou foncé, celui qui se lit le mieux sur la couleur choisie --- */
.ton-sombre, .service.ton-sombre a { color: var(--blanc); }
.ton-clair, .service.ton-clair a { color: var(--encre); }
.presente.ton-clair .presente-texte p { color: color-mix(in srgb, var(--encre) 82%, transparent); }
.presente.ton-clair .presente-texte p:first-child { color: var(--encre); }
.pied.ton-clair .pied-logo { color: var(--encre); }
.pied.ton-clair .pied-titre { color: color-mix(in srgb, var(--encre) 66%, transparent); }
.pied.ton-clair .pied-marque p:last-child { color: color-mix(in srgb, var(--encre) 76%, transparent); }
.question.ton-sombre .bouton { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.question.ton-sombre .bouton:hover { background: color-mix(in srgb, var(--blanc) 86%, var(--encre)); border-color: color-mix(in srgb, var(--blanc) 86%, var(--encre)); }

/* --- Formes des photos (réglées dans la gestion) ----------------------------------------------------- */
.forme { display: block; position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4 / 5); isolation: isolate; }
.forme > img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--point, 50% 50%); }
/* Bijou rapproché sur la planche et les cartes : la photo grandit autour du point de cadrage */
.specimen-photo > img, .carte-cadre > img:first-child { scale: 1.45; }
.eclat .forme > img { scale: 1.9; }
.forme-rectangle { border-radius: 3px; }
.forme-arrondi { border-radius: clamp(14px, 2.4vw, 32px); }
.forme-arche { border-radius: 999px 999px 3px 3px; }
.forme-rond { aspect-ratio: 1; border-radius: 50%; }
/* Effacé : bord déchiré façon aquarelle (scripts/pinceau.py), masque étiré à la taille de la photo, trois tirages */
.forme-efface { -webkit-mask: var(--masque) center / 100% 100% no-repeat; mask: var(--masque) center / 100% 100% no-repeat; }
.efface-1 { --masque: url(efface-1.png); }
.efface-2 { --masque: url(efface-2.png); }
.efface-3 { --masque: url(efface-3.png); }

/* --- Merci, 404, mentions ------------------------------------------------------------------------ */
.merci { text-align: center; padding: clamp(40px, 6vw, 90px) var(--marge) clamp(80px, 10vw, 140px); }
.merci-martre { display: block; width: clamp(160px, 18vw, 240px); margin: 0 auto 20px; color: var(--encre); --fond-aile: var(--page); }
.merci-martre svg { width: 100%; height: auto; overflow: visible; }
.js .merci-martre .ailes { animation: battre .55s ease-in-out .3s 4; }
.merci h1 { font-size: clamp(48px, 6vw, 90px); margin-bottom: 16px; }
.merci p { margin-bottom: 28px; }
.mentions { max-width: 760px; margin: 0 auto; padding: clamp(28px, 4vw, 60px) var(--marge) clamp(64px, 8vw, 110px); }
.mentions h1 { font-size: clamp(48px, 6vw, 84px); margin-bottom: 32px; }
.mentions h2 { font-size: 30px; margin: 28px 0 8px; }

/* --- Apparition au défilement ------------------------------------------------------------------- */
.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--courbe); transition-delay: var(--delai, 0s); }
.js .revele.vu { opacity: 1; transform: none; }

/* --- Tablettes ---------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-liste { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .service a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 20px; padding: 14px; }
  .service-photo { grid-row: span 2; }
  .service-titre { margin: 6px 0 8px; }
  .service-texte { margin: 0; }
  .pied { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche-infos { position: static; }
}

/* --- Téléphones ---------------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .tete { grid-template-columns: auto 1fr; padding-top: 14px; padding-bottom: 14px; }
  .tete-logo { grid-column: 1; width: 150px; }
  .js .tete-menu { display: inline-flex; grid-column: 2; justify-self: end; align-self: center; align-items: center; gap: 10px; background: none; border: 1px solid var(--encre); color: var(--encre); border-radius: 999px; padding: 10px 16px; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .tete-menu-trait { width: 16px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .js .tete-nav { position: fixed; inset: 0; z-index: 40; background: var(--papier); padding: 90px var(--marge) 40px; overflow: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .js .tete.ouvert .tete-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .js .tete.ouvert .tete-menu { position: fixed; top: 22px; right: var(--marge); z-index: 41; }
  .js .tete-nav ul { flex-direction: column; align-items: flex-start; gap: 0; border: 0; margin: 0; }
  .js .tete-nav li { width: 100%; border-bottom: 1px solid rgb(31 27 23 / .16); }
  .js .tete-nav a { font: 400 44px/1 var(--serif); letter-spacing: 0; text-transform: none; padding: 16px 0; }
  .js .tete-nav a::after { display: none; }
  .tete-nav ul { gap: 2px 18px; }

  .planche { padding-top: 22px; }
  .planche-titre { position: static; width: auto; font-size: clamp(32px, 9vw, 44px); }
  .planche-scene { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
  .planche-martre { position: relative; left: auto; top: auto; transform: none; width: 52vw; margin: 18px 0 8px; }
  .planche-specimens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; width: 100%; }
  .specimen { position: relative; left: auto; top: auto; width: auto; transform: rotate(calc(var(--r) * .5)); }
  .specimen:nth-child(odd):last-child { grid-column: 1 / -1; width: 72%; justify-self: center; }
  .specimen a { display: flex; flex-direction: column; align-items: center; }
  .specimen .specimen-photo { width: 86%; }
  .etiquette { position: relative; left: auto; top: auto; transform: rotate(calc(var(--r) * -.5)); padding-top: 22px; white-space: normal; text-align: center; }
  .etiquette::before { height: 16px; }
  .js .specimen { animation-name: poser-mobile; }
  @keyframes poser-mobile { from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--r) * .5 - 8deg)); } }

  .presente, .engage, .creatrice, .lecture, .service-tete, .contact { grid-template-columns: minmax(0, 1fr); }
  .presente-medaillon { width: 76%; }
  .engage-texte { margin: -48px 18px 0; }
  .index-liste a { gap: 10px 14px; padding: 14px 0; }
  .index-fleche { width: 34px; }
  .index-fleche svg { width: 16px; height: 16px; }
  .index-nom { font-size: clamp(40px, 11vw, 52px); }
  .catalogue-tete { grid-template-columns: minmax(0, 1fr); }
  .cartes { gap: 30px 12px; }
  .carte-nom { font-size: 22px; margin-top: 12px; }
  .carte-ligne { flex-direction: column; gap: 2px; }
  .carte-matiere { font-size: 14px; }
  .demande-grille { grid-template-columns: minmax(0, 1fr); }
  .creatrice-photo { position: static; }
  .carrousel-vue { height: 62vh; max-height: 460px; }
  .carrousel-fleches button { width: 44px; }
  .lecture-exergue { position: static; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .service-tete-photo { width: 86%; }
  .contact-liste li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pied { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .revele { opacity: 1; transform: none; }
}
