/*
 * Clery Décor — direction « Fil et lin ».
 * Fond de lin tissé, points de couture garance, étiquette cousue pour le logo.
 * En ouverture de l'accueil : le nuancier, une liasse d'échantillons qu'on feuillette.
 *
 * Toutes les couleurs, polices et mesures sont des variables : aucune valeur en dur
 * dans les règles. Les requêtes média sont regroupées en fin de fichier.
 */

/* ── Polices (auto-hébergées) ─────────────────────────────────────────── */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/young-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/young-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/karla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/karla-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── Jetons ───────────────────────────────────────────────────────────── */
:root {
  --lin: #E2DACB;
  --lin-clair: #EEE8DD;
  --lin-fonce: #CFC5B2;
  --lin-trame: rgba(90, 74, 50, 0.07);
  --anthracite: #2C2A27;
  --anthracite-doux: #5B5650;
  --noir: #151413;
  /* Encres du texte : principale et secondaire. Sur les blocs à fond de toile (la trame
     baisse le contraste), les deux passent au noir ; voir « Fonds de toile » plus bas. */
  --encre: var(--anthracite);
  --encre-seconde: var(--anthracite-doux);
  --garance: #A11D21;
  --garance-fonce: #7E1519;
  --bleu: #2B4C7E;
  --ecru: #FAF7F1;
  --laiton: #B08A3E;
  --laiton-clair: #E2C98B;
  --whatsapp: #1A7F4B;
  --whatsapp-fonce: #146A3E;
  --ombre: rgba(44, 42, 39, 0.55);

  --titre: "Young Serif", Georgia, serif;
  --texte: "Karla", system-ui, sans-serif;

  --point: 2px dashed var(--garance);
  --point-fin: 1.5px dashed var(--garance);
  --conteneur: 1220px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 104px);
  /* Taille de TOUS les titres principaux (H1), identique sur toutes les pages (2026-09-26) : 50 px au plus
     sur ordinateur, plus petite sur téléphone (redéfinie plus bas). Le titre de l'accueil, le plus long,
     tient ainsi en 5 lignes au plus à toute largeur (mesuré de 320 à 2560 px). */
  --h1: clamp(34px, 3.9vw, 50px);
  /* Espace entre le bas de l'en-tête et le haut du titre (H1), identique sur toutes les pages (2026-09-26) :
     celui de l'accueil. Redéfini plus bas pour le téléphone. */
  --haut-page: 56px;
  --rayon: 6px;

  /* Nuancier : les angles (lus aussi par nuancier.js). Les tailles sont sur .nuancier-plateau. */
  --ecart: 9deg;          /* entre deux bandes ouvertes à droite du premier plan */
  --ecart-gauche: 5deg;   /* entre deux bandes rabattues à gauche (éventail serré) */
  --depart-gauche: 11deg; /* angle de la première bande rabattue à gauche */
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  font-family: var(--texte);
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--encre);
  background-color: var(--lin);
  /* Trame de lin : fils de chaîne et de trame croisés. */
  background-image:
    repeating-linear-gradient(0deg, var(--lin-trame) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--lin-trame) 0 1px, transparent 1px 5px);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
/* « pretty » et non « balance » : balance égalise les lignes et arrête le titre à mi-page.
   Les titres vont jusqu'au bord du conteneur ; pretty évite seulement un mot seul en fin. */
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.1; text-wrap: pretty; }
h2 { font-size: clamp(30px, 3.4vw, 48px); }
h3 { font-size: 24px; line-height: 1.18; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

.conteneur { width: min(var(--conteneur), 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.saut-contenu { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ecru); padding: 12px 18px; }
.saut-contenu:focus { left: 12px; top: 12px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: var(--section) 0; }
.intro { margin-top: 14px; font-size: 18.5px; color: var(--encre-seconde); }
.section-ecru { background: var(--ecru); border-top: var(--point); border-bottom: var(--point); }
.suite { margin-top: 34px; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 16.5px/1 var(--texte);
  text-decoration: none;
  padding: 17px 24px;
  border: 0;
  border-radius: var(--rayon);
  white-space: nowrap;
  cursor: pointer;
}
.bouton svg { width: 20px; height: 20px; flex: none; }
/* La couture intérieure du bouton, comme un galon piqué. */
.bouton::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed rgba(250, 247, 241, 0.55); border-radius: 3px; pointer-events: none; }
.bouton-appel { background: var(--garance); color: var(--ecru); }
.bouton-appel:hover { background: var(--garance-fonce); }
.bouton-wa { background: var(--whatsapp); color: var(--ecru); }
.bouton-wa:hover { background: var(--whatsapp-fonce); }
.bouton-clair { background: var(--ecru); color: var(--garance); }
.bouton-clair::after { border-color: rgba(161, 29, 33, 0.4); }
.bouton-clair:hover { background: var(--lin-clair); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* « Appeler » et « Envoyer une photo » côte à côte, à parts égales, tant qu'ils tiennent sur
   une ligne (sinon l'un sous l'autre) ; « Découvrez nos éditeurs » prend la ligne suivante. */
.actions .bouton { flex: 1 1 0; min-width: max-content; }
.actions .bouton-large { flex-basis: 100%; }
.lien-souligne { font-weight: 700; text-decoration: none; border-bottom: var(--point); padding-bottom: 2px; }
.lien-souligne:hover { color: var(--garance); }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.etiquette-tissee {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 18px 8px;
  background: var(--garance);
  color: var(--ecru);
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.etiquette-tissee::before { content: ""; position: absolute; inset: 4px; border: 1.5px dashed rgba(250, 247, 241, 0.7); }
.etiquette-tissee b { font-family: var(--titre); font-weight: 400; font-size: 21px; line-height: 1.1; }
.etiquette-tissee span { font-size: 11px; letter-spacing: 0.12em; }

.entete { position: sticky; top: 0; z-index: 30; background: var(--lin-clair); border-bottom: var(--point); }
.entete .conteneur { display: flex; align-items: center; gap: 28px; height: 82px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15.5px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom: var(--point); color: var(--garance); }
.entete .bouton { padding: 13px 18px; font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: var(--rayon); background: transparent; color: var(--anthracite); cursor: pointer; place-items: center; }
.menu-mobile { border-top: var(--point-fin); background: var(--lin-clair); }
.menu-mobile a { display: block; padding: 14px var(--gouttiere); font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--lin-fonce); }
.menu-mobile[hidden] { display: none; }

/* ── Ouverture de l'accueil ───────────────────────────────────────────── */
.ouverture { padding: var(--haut-page) 0 40px; overflow: hidden; }
/* Ordinateur : titre, chapeau, boutons et zone empilés à gauche ; le nuancier à droite, son
   bas calé sur le bas des boutons d'appel (demande du 2026-09-25), jamais plus bas. Il occupe
   les trois premières lignes et s'y aligne en bas ; sa marge haute négative l'empêche
   d'agrandir ces lignes (le texte garde son rythme) : s'il est plus haut qu'elles, il déborde
   vers le haut, dans la marge de la section — le haut de son cadre est vide (au-dessus des talons). */
.ouverture .conteneur { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: 40px; align-items: start; }
.ouverture-texte { display: contents; }
.ouverture h1, .ouverture .chapo, .ouverture .actions, .ouverture .zone-ligne { grid-column: 1; }
.ouverture .nuancier {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  margin-top: -400px;
  /* Le cadre du plateau garde 10 px sous les bandes : on les rattrape pour que le bas des
     crans tombe au niveau du bas des boutons, un pixel au-dessus pour ne jamais le dépasser. */
  margin-bottom: -9px;
}
/* Le titre (choisi le 2026-09-26 pour le référencement) tient en 5 lignes au plus, à toutes les largeurs,
   à la taille commune --h1 (mesuré de 320 à 2560 px). Un titre plus long demande de refaire la mesure. */
.ouverture h1, .page-tete h1 { font-size: var(--h1); line-height: 1.05; letter-spacing: -0.005em; }
.ouverture .chapo { margin-top: 22px; font-size: 19px; color: var(--encre-seconde); }
.zone-ligne { margin-top: 24px; font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.zone-ligne svg { flex: none; width: 20px; height: 20px; color: var(--garance); }
.zone-ligne + .zone-ligne { margin-top: 10px; }
/* Ouverture, ordinateur : la phrase tient sur une seule ligne (demande du 2026-09-25) ; le
   corps se resserre un peu sur les écrans étroits plutôt que de passer à la ligne. */
@media (min-width: 1080px) {
  .ouverture .zone-ligne, .page-tete .zone-ligne { white-space: nowrap; font-size: clamp(13px, 1.1vw, 15.5px); }
}

/* ── Le nuancier ──────────────────────────────────────────────────────── */
/*
 * Tenu par le haut, comme un vrai nuancier : le rivet et le talon (le nom) en haut, les
 * bandes de tissu pendent, crans en bas. L'éventail s'ouvre vers la droite : les bas des
 * bandes s'écartent, et les talons se déploient au-dessus, chacun dépassant du suivant.
 * Le nom est calé à DROITE du talon : c'est le bout qui dépasse, donc celui qu'on lit.
 */
.nuancier { position: relative; user-select: none; -webkit-user-select: none; container-type: inline-size; }
.nuancier-plateau {
  position: relative;
  /* Une seule mesure, la largeur de carte ; tout le reste en découle. Elle suit la place
     réellement disponible (unités de conteneur), plafonnée à 250 px sur ordinateur.
     Dans toutes les positions de la liasse (quelle que soit la bande au premier plan),
     l'éventail tient dans 2,5 largeurs de carte : 39 % de la colonne suffit. */
  --carte-max: 250px;
  --carte-part: 39cqi;
  --carte-l: var(--carte-max);
  --carte-h: calc(var(--carte-l) * 1.68);
  --talon-h: calc(var(--carte-l) * 0.22);
  --pivot-x: calc(var(--carte-l) * 0.136);
  --pivot-y: calc(var(--carte-l) * 0.109);
  --dent: calc(var(--carte-l) * 0.038);
  /* Au-dessus du rivet : les talons qui se relèvent (approché ici, exact ci-dessous). */
  --haut: calc(var(--carte-l) * 0.95);
  width: 100%;
  height: calc(var(--haut) + var(--carte-h) + 10px);
  touch-action: pan-y; /* défilement vertical libre, les gestes horizontaux tournent les bandes */
}
@supports (width: 1cqi) {
  .nuancier-plateau { --carte-l: min(var(--carte-max), var(--carte-part)); }
}
@supports (width: calc(1px * sin(10deg))) {
  .nuancier-plateau {
    --ouverture: calc(var(--ecart) * (var(--n) - 1));
    --haut: calc(var(--carte-l) * sin(var(--ouverture)) + 8px);
  }
}
/* La liasse (bandes et rivet) glisse horizontalement pour rester centrée quelle que soit la
   bande au premier plan : nuancier.js calcule l'étendue réelle de l'éventail et pose le
   décalage. Sans script : centrage approché de l'éventail de départ. */
.nuancier-liasse {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--carte-l);
  height: 100%;
  transform: translateX(calc((100cqi - var(--carte-l) * 2) / 2));
}
.nuancier-liasse.est-anime { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.echantillon {
  --i: 0;
  position: absolute;
  left: 0;
  top: var(--haut);
  width: var(--carte-l);
  height: var(--carte-h);
  display: flex;
  flex-direction: column;
  transform-origin: var(--pivot-x) var(--pivot-y);
  /* Éventail posé d'emblée en CSS (sans script, il est déjà ouvert) : sens inverse des
     aiguilles, le bas des bandes part vers la droite. */
  transform: rotate(calc((var(--n) - 1 - var(--i)) * var(--ecart) * -1));
  /* Ombre portée qui épouse la découpe (crans compris) : une ombre de boîte, rectangulaire,
     dessinait un trait sous les dents de scie. */
  filter: drop-shadow(0 12px 12px rgba(44, 42, 39, 0.32));
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.echantillon.est-tenu { cursor: grabbing; filter: drop-shadow(0 22px 18px rgba(44, 42, 39, 0.4)); }
.echantillon-tissu {
  flex: 1;
  min-height: 0;
  background: var(--ecru);
  /* Crans en bas : le bout libre, découpé aux ciseaux à cranter. */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--dent)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--dent)) 100%;
}
.echantillon-tissu picture, .echantillon-tissu img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.echantillon-talon {
  position: relative;
  height: var(--talon-h);
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: calc(var(--carte-l) * 0.03) calc(var(--carte-l) * 0.05) 0 calc(var(--pivot-x) * 2);
  font-weight: 700;
  font-size: max(10.5px, calc(var(--carte-l) * 0.058));
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--ecru);
  color: var(--anthracite);
}
.echantillon-talon::before { content: ""; position: absolute; inset: 4px; border: 1.5px dashed currentColor; opacity: 0.35; pointer-events: none; }
.echantillon:nth-child(4n+1) .echantillon-talon { background: var(--bleu); color: var(--ecru); }
.echantillon:nth-child(4n+2) .echantillon-talon { background: var(--lin-clair); }
.echantillon:nth-child(4n+3) .echantillon-talon { background: var(--anthracite); color: var(--ecru); }
.echantillon:nth-child(4n) .echantillon-talon { background: var(--ecru); }
.echantillon:last-of-type .echantillon-talon { background: var(--garance); color: var(--ecru); }
.nuancier-rivet {
  position: absolute;
  z-index: 20; /* au-dessus de la bande mise au premier plan (z-index 10, posé par le script) */
  /* Exactement sur le point de pivot commun : coin haut gauche de la carte + pivot. */
  left: var(--pivot-x);
  top: calc(var(--haut) + var(--pivot-y));
  width: calc(var(--carte-l) * 0.11);
  height: calc(var(--carte-l) * 0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 32%, var(--laiton-clair), var(--laiton) 55%, #6E5320);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 7px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.nuancier-rivet::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: #5A4318; }

/* ── Parcours : la couture qui relie les étapes ───────────────────────── */
.couture { margin-top: 50px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; position: relative; }
.couture::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; border-top: 3px dashed var(--garance); }
.couture li { position: relative; }
.noeud { width: 56px; height: 56px; border-radius: 50%; background: var(--ecru); border: 3px solid var(--garance); display: grid; place-items: center; font-family: var(--titre); font-size: 24px; color: var(--garance); position: relative; }
.couture h3 { margin-top: 20px; font-size: 23px; line-height: 1.2; }
.couture p { margin-top: 10px; color: var(--encre-seconde); font-size: 16.5px; }

/* ── Prestations ──────────────────────────────────────────────────────── */
.presta { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.presta a { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px 0; align-items: center; text-decoration: none; }
.presta img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid var(--ecru); box-shadow: 0 0 0 2px var(--garance); }
.presta h3 { font-size: 24px; }
.presta p { margin-top: 6px; color: var(--encre-seconde); font-size: 16px; }
.presta .plus { margin-top: 8px; display: inline-block; font-weight: 700; font-size: 15px; color: var(--garance); }
.presta a:hover h3 { color: var(--garance); }

/* ── Réfection pas à pas ──────────────────────────────────────────────── */
.pas-a-pas { margin-top: 44px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; counter-reset: pas; }
.pas-a-pas li { counter-increment: pas; }
.cadre-cousu { position: relative; background: var(--ecru); padding: 8px; }
.cadre-cousu::after { content: ""; position: absolute; inset: 4px; border: var(--point); pointer-events: none; }
.pas-a-pas img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pas-a-pas p { margin-top: 12px; font-size: 15.5px; line-height: 1.35; font-weight: 600; }
.pas-a-pas p::before { content: counter(pas) ". "; color: var(--garance); font-family: var(--titre); font-weight: 400; }

/* ── Réalisations : photos épinglées ──────────────────────────────────── */
.epingles { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.piece { position: relative; background: var(--ecru); padding: 12px 12px 0; box-shadow: 0 16px 30px -18px var(--ombre); }
.piece::after { content: ""; position: absolute; inset: 5px; border: var(--point); pointer-events: none; }
.piece img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.piece figcaption { font-family: var(--titre); font-size: 15.5px; padding: 10px 4px 14px; text-align: center; line-height: 1.3; }
.epingles .piece:nth-child(4n+1) { transform: rotate(-2deg); }
.epingles .piece:nth-child(4n+2) { transform: rotate(1.5deg); }
.epingles .piece:nth-child(4n+3) { transform: rotate(-1deg); }
.epingles .piece:nth-child(4n) { transform: rotate(2deg); }
/* Page Réalisations : 3 par ligne, photos plus grandes (3 lignes de 3, demande du 2026-09-25).
   Double classe : elle l'emporte sur le passage à 2 colonnes des écrans moyens. */
.epingles.epingles-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; }

/* ── La loupe de la page Réalisations (loupe.js, souris seulement) ────────
   Une loupe ronde, cerclée d'écru et de garance, avec son manche ; elle suit le pointeur et montre
   la photo agrandie. La photo survolée se redresse (on la « prend en main ») : le zoom tombe alors
   exactement sous le pointeur. Classe .a-loupe posée par le script : sans lui, rien ne change. */
.a-loupe .piece { transition: transform 0.25s ease; }
.a-loupe .piece:hover { transform: none; }
.a-loupe .piece img { cursor: none; }
.loupe {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border: 5px solid var(--ecru);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--garance), 0 18px 36px -12px rgba(0, 0, 0, 0.5), inset 0 0 22px rgba(0, 0, 0, 0.22);
  background-color: var(--ecru);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.loupe.est-visible { opacity: 1; transform: scale(1); }
/* Le manche, vers le bas à droite. */
.loupe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 70px;
  margin-left: -8px;
  border-radius: 8px;
  background: var(--garance);
  box-shadow: inset 0 0 0 3px rgba(250, 247, 241, 0.25), 0 8px 16px -6px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 0;
  transform: rotate(-45deg) translateY(100px);
}
@media (prefers-reduced-motion: reduce) {
  .a-loupe .piece, .loupe { transition: none; }
}
.epingle { position: absolute; z-index: 2; top: -7px; left: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #E7646A, var(--garance) 60%, #5E0E10); box-shadow: 0 3px 3px rgba(0, 0, 0, 0.25); }

/* ── Éditeurs : étiquettes cousues ────────────────────────────────────── */
.etiquettes { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.etiquettes li { position: relative; padding: 13px 22px; background: var(--lin-clair); font-family: var(--titre); font-size: 20px; line-height: 1.2; }
.etiquettes li::before { content: ""; position: absolute; inset: 4px; border: 1.5px dashed var(--anthracite-doux); opacity: 0.55; pointer-events: none; }
.etiquettes li:nth-child(3n+1) { background: var(--bleu); color: var(--ecru); }
.etiquettes li:nth-child(3n+1)::before { border-color: var(--ecru); }
.etiquettes li:nth-child(5n+2) { background: var(--garance); color: var(--ecru); }
.etiquettes li:nth-child(5n+2)::before { border-color: var(--ecru); }
.note { margin-top: 24px; color: var(--encre-seconde); font-size: 16.5px; }

/* ── Avis ─────────────────────────────────────────────────────────────── */
.avis-grille { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(36px, 5vw, 72px); align-items: stretch; }
.avis-grille .cadre-cousu img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.avis-lien { justify-self: start; }
.avis-google { display: flex; flex-direction: column; min-height: 0; }
.avis-google-cadre { position: relative; flex: 1 1 0; min-height: 300px; background: var(--ecru); }
.avis-google-cadre::after { content: ""; position: absolute; inset: 5px; border: var(--point); pointer-events: none; z-index: 1; }
.avis-google-cadre::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: linear-gradient(var(--ecru), rgba(250, 247, 241, 0)); }
.avis-google.est-defile .avis-google-cadre::before { opacity: 1; }
.avis-google-composant { position: absolute; inset: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.avis-google-composant::-webkit-scrollbar { width: 0; height: 0; }
.avis-google.est-indisponible .avis-google-cadre { display: none; }
.avis-google gmp-place-details {
  display: block; width: 100%; border: 0;
  --gmp-mat-color-outline: transparent;
  --gmp-mat-color-outline-variant: transparent;
  --gmp-mat-color-primary: var(--garance);
  --gmp-mat-color-surface: var(--ecru);
  --gmp-mat-color-on-surface: var(--anthracite);
  --gmp-mat-color-on-surface-variant: var(--anthracite-doux);
  --gmp-mat-font-family: "Karla", system-ui, sans-serif;
}
.avis-google-defiler { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--garance); color: var(--ecru); cursor: pointer; }
.avis-google-defiler[hidden] { display: none; }

/* ── Contact et zone ──────────────────────────────────────────────────── */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.zone-bloc { border: 2px dashed var(--garance); padding: 32px; background: var(--lin-clair); }
.zone-bloc h3 { font-size: 26px; }
.zone-bloc ul { margin-top: 16px; columns: 2; font-size: 16.5px; }
.zone-bloc li { padding: 5px 0; }
.zone-bloc p { margin-top: 16px; font-size: 15.5px; color: var(--encre-seconde); }
.zone-bloc p + p { margin-top: 4px; }

/* ── Pages intérieures ────────────────────────────────────────────────── */
.page-tete { padding: var(--haut-page) 0 var(--section); }
/* Texte et photo calés en haut : le titre commence toujours à la même hauteur, quelle que soit la photo. */
.page-tete .conteneur { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.page-tete .chapo { margin-top: 20px; font-size: 19px; color: var(--encre-seconde); }
.page-tete .cadre-cousu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-seule .conteneur { display: block; }
/* Sur une page à une seule colonne, les deux boutons gardent la largeur qu'ils ont ailleurs
   (colonne de l'accueil, bloc de contact) au lieu de s'étirer sur toute la page. */
.page-seule .actions { max-width: 640px; }

.bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.bloc + .bloc { margin-top: var(--section); }
.bloc.inverse .bloc-visuel { order: -1; }
.bloc h2 { font-size: clamp(28px, 3vw, 40px); }
.bloc p { margin-top: 14px; color: var(--encre-seconde); }
.bloc .cadre-cousu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Photo montrée entière, sans le recadrage 4:3 (siège ou têtes de lit à voir en entier). */
.cadre-cousu.cadre-entier img { aspect-ratio: auto; }
.puces { margin-top: 18px; display: grid; gap: 10px; }
.puces li { position: relative; padding-left: 28px; }
.puces li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--garance); }
/* Deux colonnes seulement si chacune loge la plus longue puce du site sur une ligne (« Tringles cintrées
   sur mesure » : 14,6 em, mesuré le 2026-09-25) ; sinon une seule. */
.puces.deux { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15em), 1fr)); gap: 10px 28px; }

.mosaique { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mosaique .cadre-cousu img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mosaique figcaption { margin-top: 10px; font-family: var(--titre); font-size: 16px; }

/* ── Nos éditeurs : un diaporama par maison ───────────────────────────── */
/* Piste horizontale aimantée (scroll-snap) : on la fait glisser au doigt, au pavé tactile ou
   au clavier ; diaporama.js ajoute les flèches (en boucle) et les points. Photos au format 3:2. */
.editeurs { padding-top: 0; }
.editeurs-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
.editeur-carte-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.editeur-carte-tete h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.editeur-carte-tete p { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--garance); }
.diapo { position: relative; }
.diapo-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-piste:focus-visible { outline: 3px solid var(--garance); outline-offset: 3px; }
.diapo-vue { flex: 0 0 100%; position: relative; scroll-snap-align: start; scroll-snap-stop: always; }
.diapo-vue figure { margin: 0; }
.diapo-vue img { display: block; width: 100%; height: auto; aspect-ratio: var(--diapo-ratio, 3 / 2); object-fit: cover; }
/* Dans les blocs (page Stores), le format des autres photos de la page, qui est aussi celui des photos. */
.bloc .diapo { --diapo-ratio: 4 / 3; }
.diapo-vue figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 140px); padding: 5px 12px; background: rgba(250, 247, 241, 0.92); color: var(--noir); font-family: var(--titre); font-size: 15px; line-height: 1.3; }
.diapo-bouton { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(250, 247, 241, 0.92); color: var(--garance); cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45); }
.diapo-bouton:hover { background: var(--ecru); }
.diapo-bouton:focus-visible, .diapo-points button:focus-visible { outline: 3px solid var(--garance); outline-offset: 2px; }
.diapo-prec { left: 18px; }
.diapo-suiv { right: 18px; }
.diapo-points { position: absolute; right: 14px; bottom: 14px; display: flex; padding: 0 4px; border-radius: 999px; background: rgba(250, 247, 241, 0.92); }
.diapo-points button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.diapo-points button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--garance); }
.diapo-points button[aria-current="true"]::before { background: var(--garance); }
.diapo-bouton[hidden], .diapo-points[hidden] { display: none; }
.editeurs-autres { margin-top: 64px; font-size: clamp(26px, 2.6vw, 34px); }
.editeurs .note { margin-top: 48px; }

.questions { margin-top: 36px; border-top: var(--point); }
.questions details { border-bottom: var(--point); }
.questions summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--titre); font-size: 21px; line-height: 1.3; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--texte); font-weight: 700; font-size: 26px; color: var(--garance); }
.questions details[open] summary::after { content: "–"; }
.questions details p { padding: 0 0 22px; color: var(--encre-seconde); }

.texte-legal h2 { font-size: 26px; margin-top: 40px; }
.texte-legal p, .texte-legal li { margin-top: 12px; color: var(--encre-seconde); }
.texte-legal a { color: var(--garance); }
.texte-legal dl { margin-top: 14px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; }
.texte-legal dt { font-weight: 700; }
.texte-legal dd { color: var(--encre-seconde); }

.page-404 { text-align: left; }

/* ── Fonds de toile : texte en noir ──────────────────────────────────── */
main > section:not(.section-ecru) { --encre: var(--noir); --encre-seconde: var(--noir); color: var(--encre); }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.pied { background: var(--anthracite); color: #D9D3C8; padding: 64px 0 40px; font-size: 15.5px; }
.pied a { text-decoration: none; }
.pied a:not(.etiquette-tissee):hover { color: var(--ecru); text-decoration: underline; text-underline-offset: 4px; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.pied h2 { font-family: var(--texte); font-size: 15px; font-weight: 700; color: var(--ecru); margin-bottom: 14px; }
.pied li { padding: 4px 0; }
.pied .etiquette-tissee { margin-bottom: 18px; }
.pied-bas { margin-top: 48px; padding-top: 22px; border-top: 1px dashed rgba(217, 211, 200, 0.4); display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 14px; color: #B4AD9F; }
.pied-bas .signature { margin-left: auto; }

.barre-mobile { display: none; }

/* ── Écrans moyens ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --ecart: 10deg; }
  .nuancier-plateau { --carte-max: 210px; }
  .nav { gap: 18px; font-size: 15px; }
  .pas-a-pas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .epingles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  /* Colonnes plus étroites : boutons resserrés pour qu'« Appeler » et « Envoyer une photo »
     restent côte à côte (mesuré de 360 à 1100 px). */
  .actions .bouton { padding-inline: 14px; font-size: 15.5px; }
}

/* ── En-tête, écrans moyens : les huit entrées du menu tiennent sur une ligne si le bouton
   d'appel se réduit à son icône (le numéro reste lu par les lecteurs d'écran). ───────── */
@media (max-width: 1000px) {
  .entete .bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .entete .bouton { padding: 12px; }
}

/* ── Téléphone ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Petites cartes : écartement plus grand, pour que chaque nom dépasse du talon suivant. */
  :root { --ecart: 12deg; --h1: clamp(27px, 8.6vw, 38px); --haut-page: 30px; }
  .nuancier-plateau { --carte-max: 150px; }
  body { font-size: 16.5px; }
  .nav { display: none; }
  .entete .conteneur { height: 70px; justify-content: space-between; gap: 12px; }
  .entete .bouton { margin-left: auto; padding: 12px; }
  .etiquette-tissee b { font-size: 18px; }
  .burger { display: grid; }

  .ouverture { padding-bottom: 24px; }
  .ouverture .conteneur, .page-tete .conteneur, .bloc, .contact-grille, .avis-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* Téléphone : le nuancier remonte entre le titre et le texte. La barre d'appel fixe
     garde « Appeler » et « WhatsApp » sous le doigt pendant ce temps. */
  .ouverture .conteneur { gap: 0; }
  .ouverture-texte { display: contents; }
  .ouverture h1 { order: 1; }
  .ouverture .nuancier { order: 2; margin: 18px 0 4px; grid-column: auto; grid-row: auto; align-self: auto; }
  .ouverture h1, .ouverture .chapo, .ouverture .actions, .ouverture .zone-ligne { grid-column: auto; }
  .ouverture .chapo { order: 3; }
  .ouverture .actions { order: 4; }
  .ouverture .zone-ligne { order: 5; }
  .ouverture .chapo, .page-tete .chapo { font-size: 17px; }

  .couture { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .couture::before { top: 0; bottom: 0; left: 27px; right: auto; border-top: 0; border-left: 3px dashed var(--garance); }
  .couture li { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; }
  .couture .noeud { grid-row: span 2; }
  .couture h3 { margin-top: 10px; }
  .presta { grid-template-columns: minmax(0, 1fr); }
  .presta a { grid-template-columns: 84px 1fr; gap: 18px; }
  .presta img { width: 84px; height: 84px; }
  .presta h3 { font-size: 21px; }
  .pas-a-pas p { font-size: 13.5px; }
  .epingles { gap: 26px 16px; }
  .piece { padding: 8px 8px 0; }
  .piece figcaption { font-size: 14px; }
  /* Téléphone : 2 par ligne ; une photo seule sur la dernière ligne se centre. */
  .epingles.epingles-trois { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .epingles-trois .piece:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .etiquettes li { font-size: 16.5px; padding: 11px 16px; }
  .bloc.inverse .bloc-visuel { order: 0; }
  .puces.deux { grid-template-columns: 1fr; }
  .texte-legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .texte-legal dd { margin-bottom: 10px; }
  .mosaique { grid-template-columns: 1fr 1fr; }
  .avis-google-cadre { min-height: 480px; }
  .zone-bloc { padding: 24px; }
  .editeurs-grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .diapo-bouton { width: 40px; height: 40px; margin-top: -20px; }
  .diapo-prec { left: 12px; }
  .diapo-suiv { right: 12px; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .pied { padding-bottom: 110px; }
  .pied-bas .signature { margin-left: 0; }

  .barre-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px; background: var(--lin-clair); border-top: var(--point); }
  .barre-mobile .bouton { padding: 16px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nuancier-liasse.est-anime { transition: none; }
}
