/*
Theme Name: Sofako
Theme URI: https://www.sofako.fr/
Author: Sofako
Description: Thème du site Sofako, housses et accessoires pour canapés et fauteuils IKEA. Direction « Atelier » : l'atelier du tapissier.
Version: 0.5.2
Text Domain: sofako
*/

/* =========================================================================
   Polices (self-hébergées, préchargées dans functions.php)
   ========================================================================= */

@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-var-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* =========================================================================
   Tokens (rôles)
   ========================================================================= */

:root {
  --fond: #f3eee4;          /* écru, toile brute */
  --surface: #fbf8f2;       /* papier */
  --surface-alt: #e9dfcf;   /* lin */
  --surface-sombre: #2a201a;/* brun atelier */
  --encre: #3a2e26;
  --encre-douce: #75665a;
  --encre-forte: #241b15;
  --encre-inverse: #f3eee4;
  --filet: #d8cbb8;
  --filet-fort: #bfae96;
  --action: #b4532a;        /* terracotta */
  --action-fonce: #8f3f1e;
  --action-texte: #fffaf3;
  --accent: #b4532a;
  --repere: #8a6a4f;
  --ocre: #c9a77c;
  --sauge: #6f7b5c;
  --sauge-clair: #dfe2d3;
  --kraft: #d9c3a0;

  --police-titre: "Young Serif", Georgia, serif;
  --police-texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 4px;
  --rayon-carte: 6px;
  --rayon-bouton: 4px;
  --couture: 1.5px dashed rgba(58, 46, 38, .28);
  --couture-claire: 1.5px dashed rgba(243, 238, 228, .45);
  --ombre: 0 1px 0 rgba(36, 27, 21, .04), 0 10px 30px -18px rgba(36, 27, 21, .35);
  --ombre-forte: 0 2px 0 rgba(36, 27, 21, .05), 0 24px 48px -24px rgba(36, 27, 21, .45);

  --colonne: 1200px;
  --colonne-texte: 720px;
  --entete: 76px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================================
   Base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 17px/1.65 var(--police-texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-ouvert { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--action-fonce); text-decoration-color: rgba(180, 83, 42, .45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--action); text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 400;
  color: var(--encre-forte);
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; margin-top: 1.6em; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--encre-forte); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: -9999px; }
.saut:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 99; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.est-inerte { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--colonne); margin: 0 auto; padding-inline: 1.25rem; }
.colonne { max-width: calc(var(--colonne-texte) + 2.5rem); }

/* Surtitre */
.surtitre {
  display: block;
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600;
  color: var(--repere); margin: 0 0 1rem;
}

.bande--sombre .surtitre { color: var(--ocre); }

/* Coutures : bordure pointillée intérieure */
.cousu { position: relative; }
.cousu::after {
  content: ""; position: absolute; inset: 7px; border: var(--couture); border-radius: calc(var(--rayon-carte) - 2px);
  pointer-events: none;
}

/* =========================================================================
   Boutons, étiquettes
   ========================================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .65rem 1.35rem; line-height: 1.25;
  border-radius: var(--rayon-bouton); font: 600 .98rem/1.25 var(--police-texte);
  text-decoration: none; text-align: center; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ico { width: 1.05em; height: 1.05em; }
.btn-action, a.btn-action { background: var(--action); color: var(--action-texte); box-shadow: 0 2px 0 var(--action-fonce); position: relative; }
.btn-action:hover { background: var(--action-fonce); color: var(--action-texte); transform: translateY(-1px); }
.btn-second, a.btn-second { background: transparent; color: var(--encre-forte); border-color: var(--encre-forte); }
.btn-second:hover { background: var(--encre-forte); color: var(--surface); }
.btn-clair, a.btn-clair { background: var(--surface); color: var(--encre-forte); }
.btn-clair:hover { background: #fff; color: var(--action-fonce); }
.bande--sombre .btn-second { color: var(--encre-inverse); border-color: var(--encre-inverse); }
.bande--sombre .btn-second:hover { background: var(--encre-inverse); color: var(--encre-forte); }
.lien-fleche { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--action-fonce); }
.lien-fleche .ico { transition: transform .2s; }
.lien-fleche:hover .ico { transform: translateX(3px); }

/* Étiquette de prix : carton percé */
.etiquette {
  display: inline-flex; align-items: center; gap: .5rem; position: relative;
  padding: .35rem .8rem .35rem 1.55rem; font-size: .84rem; font-weight: 600; color: var(--encre-forte);
  background: var(--kraft); border-radius: 3px 6px 6px 3px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.etiquette::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 0 0 1px rgba(36,27,21,.3); }
.etiquette--action { background: var(--action); color: var(--action-texte); }
.etiquette--sauge { background: var(--sauge-clair); }

.puce { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-alt); color: var(--encre); }
.puce--sauge { background: var(--sauge-clair); color: #3f4a31; }
.puce--terre { background: #f2d9cb; color: var(--action-fonce); }

/* =========================================================================
   En-tête : barre principale
   ========================================================================= */

.entete {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 242, 1);
  border-bottom: 1px solid var(--filet);
  transition: box-shadow .3s, border-color .3s;
}
.entete-in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--entete); transition: min-height .3s; }
.entete.est-compacte .entete-in { min-height: 62px; }
.entete.est-compacte { box-shadow: 0 10px 30px -20px rgba(36,27,21,.5); border-color: transparent; }
.marque { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--encre-forte); flex: none; }
.marque-logo { height: 48px; width: auto; transition: height .3s; }
.est-compacte .marque-logo { height: 40px; }
.pied .marque-logo { height: 50px; }
.marque-nom { font-family: var(--police-titre); font-size: 1.6rem; letter-spacing: -.01em; line-height: 1; }
.marque-nom em { font-style: normal; color: var(--action); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav a, .nav span.est-inerte {
  display: block; position: relative; padding: .55rem .7rem;
  text-decoration: none; color: var(--encre); font-size: .93rem; font-weight: 500;
}
.nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 0;
  border-bottom: 1.5px dashed var(--action); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--action-fonce); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--encre-forte); font-weight: 600; }
.entete-cta { flex: none; min-height: 42px; padding: .45rem 1rem; font-size: .9rem; }
.nav-bascule { display: none; background: none; border: 0; padding: .4rem; color: var(--encre-forte); cursor: pointer; margin-left: auto; }
.nav-bascule .ico { width: 28px; height: 28px; }
.nav-bascule .ico-fermer { display: none; }
.menu-ouvert .nav-bascule .ico-menu { display: none; }
.menu-ouvert .nav-bascule .ico-fermer { display: block; }
.nav-pied { display: none; }


/* =========================================================================
   Pied de page
   ========================================================================= */

.pied { background: var(--surface-sombre); color: #cdbfae; }
.pied-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-block: 3.5rem 2.5rem; }
.pied .marque { color: var(--encre-inverse); }
.pied-marque p { font-size: .93rem; margin-top: 1rem; max-width: 26em; }
.pied-titre { font-family: var(--police-titre); color: var(--encre-inverse); font-size: 1.1rem; margin: 0 0 .9rem; }
.pied-liens { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.pied-liens a, .pied-liens span { color: #cdbfae; text-decoration: none; font-size: .93rem; }
.pied-liens a:hover { color: var(--encre-inverse); text-decoration: underline dashed; }
.pied-mention { grid-column: 1 / -1; font-size: .8rem; color: #9e8f7f; border-top: var(--couture-claire); padding-top: 1.4rem; margin: 0; }

/* =========================================================================
   Hero d'accueil
   ========================================================================= */

.hero { padding: 3.5rem 0 4rem; position: relative; z-index: 2; overflow-x: clip; overflow-y: visible; }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--action); }
.chapo { font-size: 1.16rem; color: var(--encre-douce); max-width: 33em; }

/* Sélecteur de modèle */
.choix-modele {
  margin-top: 1.8rem; padding: 1.2rem; background: var(--surface); border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-forte); max-width: 560px;
}
.choix-modele label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--repere); margin: 0 0 .55rem .1rem; }
.choix-ligne { display: flex; gap: .6rem; }
.choix-champ { position: relative; flex: 1; min-width: 0; }
.choix-champ > .ico { position: absolute; left: .9rem; top: 25px; transform: translateY(-50%); pointer-events: none; color: var(--repere); width: 20px; height: 20px; }
.choix-champ input {
  width: 100%; min-height: 50px; font: 500 1rem var(--police-texte); color: var(--encre-forte);
  padding: .6rem 1rem .6rem 2.8rem; border: 1.5px solid var(--filet-fort); border-radius: var(--rayon-bouton); background: var(--fond);
}
.choix-champ input::placeholder { color: #9a8b7c; }
.choix-champ input:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px rgba(180,83,42,.15); background: #fff; }
.choix-liste {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto;
  margin: 0; padding: .35rem; list-style: none; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon-carte); box-shadow: var(--ombre-forte);
}
.choix-liste [role="option"] { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem .75rem; border-radius: 4px; cursor: pointer; font-weight: 500; color: var(--encre-forte); }
.choix-liste [role="option"] span { font-size: .78rem; font-weight: 500; color: var(--encre-douce); }
.choix-liste [role="option"]:hover, .choix-liste [aria-selected="true"] { background: var(--fond); color: var(--action-fonce); }
.choix-liste [hidden] { display: none; }
.choix-vide { padding: .7rem .75rem; font-size: .9rem; color: var(--encre-douce); }
.choix-vide a { font-weight: 600; }
.choix-aide { margin: .8rem 0 0 .1rem; font-size: .9rem; }
.choix-aide a { font-weight: 600; }


/* Visuel du hero : comparaison avant / après à faire glisser */
.hero-visuel { position: relative; }
.hero-visuel .visuel { border-radius: var(--rayon-carte); box-shadow: var(--ombre-forte); }
.avant-apres { border-radius: var(--rayon-carte); overflow: hidden; box-shadow: var(--ombre-forte); touch-action: pan-y; user-select: none; }
.avant-apres .visuel { box-shadow: none; border-radius: 0; }
.avant-apres-apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.avant-apres-apres .visuel { height: 100%; }
.avant-apres::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.25); pointer-events: none; }
.avant-apres-poignee {
  position: absolute; z-index: 2; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--encre-forte);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); pointer-events: none;
}
.avant-apres-poignee .ico { width: 22px; height: 22px; }
.avant-apres .repere-photo { z-index: 2; pointer-events: none; }
.avant-apres-curseur { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.avant-apres:has(.avant-apres-curseur:focus-visible) .avant-apres-poignee { box-shadow: 0 0 0 3px var(--action), 0 6px 18px -6px rgba(0,0,0,.45); }
.repere-photo {
  position: absolute; display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 99px; font-size: .78rem; font-weight: 600;
  background: rgba(251, 248, 242, .94); color: var(--encre-forte); box-shadow: var(--ombre);
}
.repere-photo--avant { left: 1rem; bottom: 1rem; }
.repere-photo--apres { right: 1rem; bottom: 1rem; background: var(--action); color: var(--action-texte); }

.visuel { display: block; border-radius: var(--rayon-carte); overflow: hidden; background: var(--surface-alt); }
.visuel img { display: block; }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel--vide { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-alt), var(--kraft)); color: var(--repere); }
.visuel--vide .ico { width: 56px; height: 56px; opacity: .55; }
.visuel--hero { aspect-ratio: 5 / 4; }
.visuel--carre { aspect-ratio: 1; }
.visuel--large { aspect-ratio: 16 / 10; }

/* =========================================================================
   Bandes
   ========================================================================= */

.bande { padding: 5rem 0; position: relative; }
.bande--claire { background: var(--surface); }
.bande--lin { background: var(--surface-alt); }
.bande--sombre { background: var(--surface-sombre); color: #d9cdbd; }
.bande--sombre h2, .bande--sombre h3 { color: var(--encre-inverse); }
.bande--sombre a:not(.btn) { color: var(--ocre); }
/* En-tête de section : titre puis introduction empilés à gauche ; seul un lien se range à droite. */
.entete-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; margin-bottom: 2.2rem; }
.entete-section > div, .entete-section > p, .entete-section > span { grid-column: 1; }
.entete-section > p, .entete-section > span { margin-top: .5rem; max-width: 44em; }
.entete-section > .lien-fleche { grid-column: 2; grid-row: 1; }
.entete-section h2 { margin-bottom: .3em; max-width: 22em; }
.entete-section p { margin: 0; }
.intro-section { color: var(--encre-douce); max-width: 44em; font-size: 1.05rem; }
.bande--sombre .intro-section { color: #b9aa98; }
.note { font-size: .9rem; color: var(--encre-douce); margin-top: 1.6rem; }

/* Chiffres */
.chiffres { background: var(--surface); border-bottom: 1px solid var(--filet); }
.chiffres-in { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 2.2rem; }
.chiffre { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; padding: .2rem 1.6rem; border-left: 1px solid var(--filet); }
.chiffre:first-child { border-left: 0; padding-left: 0; }
.chiffre-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #f4e3d6; color: var(--action); }
.chiffre-ico .ico { width: 24px; height: 24px; stroke-width: 1.75; }
.chiffre p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--encre-douce); }
.chiffre strong { display: block; font-family: var(--police-titre); font-weight: 400; font-size: 1.2rem; line-height: 1.2; color: var(--encre-forte); margin: .15rem 0 .3rem; white-space: nowrap; }

/* Mosaïque des rayons (accueil) */
.rayons { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.rayon {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--rayon-carte); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  background: var(--surface-sombre);
}
.rayon .visuel { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.rayon .visuel img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rayon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,27,21,0) 35%, rgba(36,27,21,.82)); }
.rayon::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255,255,255,.4); border-radius: 4px; opacity: 0; transition: opacity .3s; pointer-events: none; }
a.rayon:hover .visuel img { transform: scale(1.05); }
a.rayon:hover::after { opacity: 1; }
.rayon-texte { padding: 1.2rem 1.3rem; }
.rayon-nom { font-family: var(--police-titre); font-size: 1.45rem; line-height: 1.15; display: block; }
.rayon-desc { font-size: .88rem; opacity: .88; display: block; margin-top: .25rem; }
.rayon-fleche { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,248,242,.92); color: var(--encre-forte); transition: background .2s, color .2s; }
a.rayon:hover .rayon-fleche { background: var(--action); color: #fff; }
.rayon--grand { grid-column: span 2; grid-row: span 2; }
.rayon--grand .rayon-nom { font-size: 2.1rem; }
.rayon--large { grid-column: span 2; }
span.rayon { cursor: not-allowed; }

/* Cartes de modèles (étiquettes de tailleur) */
.modeles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.modeles--4 { grid-template-columns: repeat(4, 1fr); }
.modeles li[hidden] { display: none; }
.modele {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--rayon-carte);
  text-decoration: none; color: var(--encre-forte); box-shadow: var(--ombre); height: 100%;
  transition: transform .2s, box-shadow .2s;
}
a.modele:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); color: var(--encre-forte); }
.modele-pastille {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-alt); color: var(--action); font-family: var(--police-titre); font-size: 1.35rem;
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--filet-fort);
}
.modele-nom { font-family: var(--police-titre); font-size: 1.25rem; display: block; line-height: 1.2; }
.modele-pastille:is(img) { width: 64px; height: 64px; object-fit: cover; padding: 0; background: #f3eee4; box-shadow: 0 0 0 1px var(--filet-fort); }
/* Macaron de modèle dans les tableaux */
.macaron { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; background: #f3eee4; box-shadow: 0 0 0 1px var(--filet-fort); }
.macaron--initiale { display: grid; place-items: center; color: var(--action); font-family: var(--police-titre); font-size: 1.1rem; background: var(--surface-alt); }
.cellule-modele { display: flex; align-items: center; gap: .8rem; }

.modele-type { font-size: .82rem; color: var(--encre-douce); display: block; }
.modele-prix { font-size: .82rem; color: var(--action-fonce); font-weight: 600; display: block; margin-top: .15rem; }
.modele .ico { color: var(--filet-fort); transition: color .2s, transform .2s; }
a.modele:hover .ico { color: var(--action); transform: translateX(2px); }
span.modele { opacity: .55; }

/* Cartes vedettes */
.modeles--vedettes .modele { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 0; overflow: hidden; gap: 0; position: relative; }
.modeles--vedettes .modele-pastille { display: none; }
.modeles--vedettes .modele > span:not(.modele-pastille) { padding: 1.3rem 1.4rem 1.4rem; }
.modeles--vedettes .modele-nom { font-size: 1.7rem; }
.modeles--vedettes .modele-prix { margin-top: .7rem; display: inline-flex; padding: .25rem .7rem; border-radius: 99px; background: #f6e3d8; }
.modeles--vedettes .modele > .ico { align-self: end; margin: 0 1.4rem 1.6rem 0; width: 22px; height: 22px; }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; align-items: center; }
.filtres button {
  font: 600 .88rem var(--police-texte); cursor: pointer;
  padding: .5rem 1rem; border-radius: 99px; min-height: 40px;
  background: var(--surface); color: var(--encre); border: 1.5px solid var(--filet);
}
.filtres button[aria-pressed="true"] { background: var(--encre-forte); color: var(--surface); border-color: var(--encre-forte); }
.recherche-modele { position: relative; margin-left: auto; }
.recherche-modele input { font: 500 .95rem var(--police-texte); min-height: 40px; padding: .45rem 1rem .45rem 2.4rem; border: 1.5px solid var(--filet); border-radius: 99px; background: var(--surface); color: var(--encre-forte); width: 240px; }
.recherche-modele input:focus { outline: none; border-color: var(--action); }
.recherche-modele .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--repere); width: 16px; }
.compte-modeles { font-size: .88rem; color: var(--encre-douce); margin: 0 0 1rem; }

/* Trois solutions */
.trois-solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.trois-solutions--deux { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.solution {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border-radius: var(--rayon-carte); padding: 2rem 1.7rem 1.7rem; box-shadow: var(--ombre);
}
.solution h3 { margin: 1rem 0 .4rem; font-size: 1.45rem; }
.solution-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); color: var(--action); }
.solution-ico .ico { width: 26px; height: 26px; }
.solution-prix { font-family: var(--police-titre); font-size: 1.55rem; color: var(--encre-forte); margin: .2rem 0 .8rem; line-height: 1.2; }
.solution-prix small { display: block; font-family: var(--police-texte); font-size: .8rem; color: var(--encre-douce); }
.solution ul { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: .95rem; display: grid; gap: .45rem; }
.solution li { display: flex; gap: .55rem; align-items: flex-start; }
.solution li .ico { margin-top: .25em; width: 16px; height: 16px; }
.solution li.plus .ico { color: var(--sauge); }
.solution li.moins .ico { color: var(--action); }
.solution-verdict { font-size: .93rem; color: var(--encre-douce); flex: 1; padding-top: .9rem; border-top: 1px solid var(--filet); }
.solution .btn { align-self: stretch; margin-top: 1rem; position: relative; z-index: 1; }
.solution--avant { background: var(--surface-sombre); color: #d9cdbd; box-shadow: var(--ombre-forte); transform: translateY(-10px); }
.solution--avant::after { border-color: rgba(243,238,228,.35); }
.solution--avant h3, .solution--avant .solution-prix { color: var(--encre-inverse); }
.solution--avant .solution-prix small, .solution--avant .solution-verdict { color: #b9aa98; }
.solution--avant .solution-ico { background: var(--action); color: #fff; }
.solution--avant .solution-verdict { border-top-color: rgba(243,238,228,.3); }
.solution-ruban { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; }

/* Bloc éditorial avec image */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.duo--inverse .duo-visuel { order: 2; }
.duo-visuel { position: relative; }
.duo-visuel .visuel { aspect-ratio: 4 / 3.4; box-shadow: var(--ombre-forte); }
.points { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.points .point-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); color: var(--action); }
.bande--claire .points .point-ico { background: var(--fond); }
.bande--sombre .points .point-ico { background: rgba(201,167,124,.18); color: #e2c79f; box-shadow: inset 0 0 0 1px rgba(201,167,124,.35); }
.points strong { display: block; }
.points p { margin: .1rem 0 0; font-size: .95rem; color: var(--encre-douce); }
.bande--sombre .points p { color: #b9aa98; }
.bande--sombre .points strong { color: var(--encre-inverse); }

/* Cartes tissus */
.cartes-photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cartes-photo--2 { grid-template-columns: repeat(2, 1fr); }
.carte-photo { background: var(--surface); border-radius: var(--rayon-carte); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.carte-photo .visuel { aspect-ratio: 4 / 3; border-radius: 0; }
.carte-photo-texte { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.carte-photo h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.carte-photo p { font-size: .95rem; color: var(--encre-douce); margin-bottom: .8rem; }
.carte-photo .lien-fleche { margin-top: auto; }
.carte-photo .puce { align-self: flex-start; margin-bottom: .7rem; }

/* Étapes numérotées */
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 1.6rem 0; display: grid; gap: 1.1rem; }
.etapes > li { counter-increment: etape; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.etapes > li::before {
  content: counter(etape); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--police-titre); font-size: 1.3rem; color: var(--action); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--action); outline: 1.5px dashed rgba(180,83,42,.4); outline-offset: 3px;
}
.etapes strong { display: block; font-size: 1.05rem; margin-top: .55rem; }
.etapes p { margin: .2rem 0 0; color: var(--encre-douce); font-size: .97rem; }
.etapes--grille { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.etapes--grille > li { grid-template-columns: 1fr; }

/* Bande « anciens modèles » */
.bande-patron { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.bande-patron .visuel { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.noms-modeles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.8rem; padding: 0; list-style: none; }
.noms-modeles li { font-family: var(--police-titre); font-size: 1rem; padding: .3rem .85rem; border: 1px dashed rgba(243,238,228,.5); border-radius: 99px; color: var(--encre-inverse); }

/* FAQ */
.faq-liste { border-top: 1px solid var(--filet); }
.faq { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; font-family: var(--police-titre); font-size: 1.15rem; color: var(--encre-forte); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4532a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.3rem; color: var(--encre-douce); max-width: 46em; }
.faq-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }

/* Appel final */
.appel { background: var(--action); color: #fff3ea; border-radius: var(--rayon-carte); padding: 3rem; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.appel::after { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(255,243,234,.45); border-radius: 4px; pointer-events: none; }
.appel h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.appel p { margin: 0; color: #fbe3d6; }
.appel .btn { position: relative; z-index: 1; }

/* =========================================================================
   Pages intérieures : hero de page
   ========================================================================= */

.page-hero { padding: 3rem 0 3.5rem; }
.page-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.page-hero--simple .page-hero-in { grid-template-columns: 1fr; max-width: 820px; }
.page-hero .chapo { margin-bottom: 1.4rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.page-hero .visuel { aspect-ratio: 3 / 2; box-shadow: var(--ombre-forte); }
.page-hero-visuel { position: relative; }

/* Sommaire en pastilles */
.sommaire { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sommaire a { display: inline-block; padding: .35rem .85rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--filet); font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--encre); }
.sommaire a:hover { border-color: var(--action); color: var(--action-fonce); }

/* Corps éditorial */
.corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.corps--seul { grid-template-columns: minmax(0, var(--colonne-texte)); justify-content: center; }
.prose > h2 { margin-top: 2.4em; padding-top: 1.6rem; border-top: 1px solid var(--filet); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--action); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; background: var(--surface); border-radius: var(--rayon-carte); overflow: hidden; box-shadow: var(--ombre); }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose th { background: var(--surface-alt); font-weight: 600; color: var(--encre-forte); font-size: .85rem; letter-spacing: .03em; }
.prose tr:last-child td { border-bottom: 0; }
.prose figure { margin: 2rem 0; }
.prose figure .visuel { aspect-ratio: 16 / 9; }
.prose figcaption { font-size: .85rem; color: var(--encre-douce); margin-top: .6rem; }
.encadre { background: var(--surface); border-radius: var(--rayon-carte); padding: 1.5rem 1.6rem; margin: 1.8rem 0; box-shadow: var(--ombre); position: relative; border-left: 4px solid var(--sauge); }
.encadre p:last-child { margin: 0; }
.encadre-titre { font-family: var(--police-titre); font-size: 1.1rem; color: var(--encre-forte); margin: 0 0 .4rem; display: flex; gap: .5rem; align-items: center; }
.encadre-titre .ico { color: var(--sauge); }
.encadre--terre { border-left-color: var(--action); }
.encadre--terre .encadre-titre .ico { color: var(--action); }

/* Rail latéral */
.rail { position: sticky; top: calc(var(--entete) + 1.5rem); display: grid; gap: 1.2rem; }
.rail-bloc { background: var(--surface); border-radius: var(--rayon-carte); padding: 1.4rem; box-shadow: var(--ombre); position: relative; }
.rail-titre { font-family: var(--police-titre); font-size: 1.1rem; color: var(--encre-forte); margin: 0 0 .7rem; }
.rail-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.rail-liens a { display: block; padding: .4rem 0 .4rem .8rem; border-left: 2px solid var(--filet); text-decoration: none; color: var(--encre); font-size: .92rem; }
.rail-liens a:hover, .rail-liens a.est-actif { border-left-color: var(--action); color: var(--action-fonce); }
.rail-offre { background: var(--surface-sombre); color: #d9cdbd; }
.rail-offre .rail-titre { color: var(--encre-inverse); }
.rail-offre p { font-size: .9rem; margin-bottom: 1rem; }
.rail-offre .btn { width: 100%; }

/* =========================================================================
   Fiche modèle
   ========================================================================= */

.fiche-hero { padding: 3rem 0 3.5rem; background: linear-gradient(180deg, #ebe2d3 0%, #efe8dc 100%); border-bottom: 1px solid var(--filet); }
.fiche-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.fiche-identite { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--filet); }
.fiche-identite dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--repere); font-weight: 600; margin-bottom: .2rem; }
.fiche-identite dd { margin: 0; font-weight: 600; font-size: 1.15rem; color: var(--encre-forte); font-variant-numeric: lining-nums tabular-nums; }
.offre-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.offre-hero-prix { font-size: .9rem; color: var(--encre-douce); }
.offre-hero-prix strong { display: block; font-family: var(--police-titre); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--action); }
.offre-hero-prix { line-height: 1.3; }

/* Planche de cotes (schéma sur papier kraft quadrillé) */
.planche {
  position: relative; border-radius: var(--rayon-carte); padding: 2.2rem 2rem 1.6rem;
  background:
    linear-gradient(rgba(36,27,21,.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(36,27,21,.06) 1px, transparent 1px) 0 0 / 22px 22px,
    #eadbc2;
  box-shadow: var(--ombre-forte);
}
.planche-titre { position: absolute; top: 1rem; left: 1.4rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--repere); }
.planche-ref { position: absolute; top: .85rem; right: 1.4rem; }
.planche svg { width: 100%; height: auto; color: var(--encre-forte); }
.planche-legende { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--encre-douce); margin-top: .6rem; position: relative; z-index: 1; }
.planche-onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; position: relative; z-index: 1; }
.planche-onglets button { font: 600 .8rem var(--police-texte); padding: .35rem .75rem; border-radius: 99px; border: 1px solid rgba(36,27,21,.25); background: rgba(251,248,242,.6); color: var(--encre); cursor: pointer; }
.planche-onglets button[aria-pressed="true"] { background: var(--encre-forte); color: var(--surface); border-color: var(--encre-forte); }

/* Illustration du modèle, avec aperçu de la housse en plusieurs teintes */
.illustration { margin: 0; background: #f3eee4; border-radius: var(--rayon-carte); box-shadow: var(--ombre-forte); overflow: hidden; }
.illustration .visuel { aspect-ratio: 16 / 10; border-radius: 0; background: #f3eee4; }
.illustration figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--surface); border-top: 1px solid var(--filet); }
.teinte-legende { font-size: .85rem; color: var(--encre-douce); line-height: 1.3; }
.teinte-legende strong { display: block; font-family: var(--police-titre); font-weight: 400; font-size: 1.15rem; color: var(--encre-forte); }
.teintes { display: flex; gap: .55rem; }
.teintes button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); background: var(--teinte); box-shadow: 0 0 0 1px var(--filet-fort); cursor: pointer; padding: 0; transition: box-shadow .2s; }
.teintes button:hover { box-shadow: 0 0 0 1px var(--encre-douce); }
.teintes button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--encre-forte); }

/* Corps de fiche : contenu + rail collant, dès la sortie du hero */
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4.5rem; align-items: start; padding-block: 1.5rem 4rem; }
.fiche-section { padding-block: 3rem; border-top: 1px solid var(--filet); scroll-margin-top: calc(var(--entete) + 1rem); }
.fiche-section:first-child { border-top: 0; padding-top: 1.5rem; }
.fiche-section h2 { margin-bottom: .5em; }
.fiche-section .surtitre { margin-bottom: .6rem; }
.fiche-intro { color: var(--encre-douce); font-size: 1.05rem; max-width: 40em; margin: 0 0 2rem; }
.fiche-suite { margin: 2rem 0 0; }
.fiche-section [id], .prose > h2 { scroll-margin-top: calc(var(--entete) + 1rem); }

.reperes-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin: 0; }
.reperes-liste > div { border-top: 2px solid var(--encre-forte); padding-top: 1rem; }
.reperes-liste dt { font-weight: 600; color: var(--encre-forte); font-size: 1.02rem; }
.repere-valeur { display: block; font-family: var(--police-titre); font-size: 2.6rem; line-height: 1; color: var(--action); margin-bottom: .5rem; font-variant-numeric: lining-nums; }
.reperes-liste dd { margin: .3rem 0 0; color: var(--encre-douce); font-size: .95rem; }

.fiche-rail { position: sticky; top: calc(var(--entete) + 1.5rem); display: grid; gap: 1.8rem; padding-top: 1.5rem; }
.rail-offre { background: var(--surface-sombre); color: #d9cdbd; border-radius: var(--rayon-carte); padding: 1.5rem; box-shadow: var(--ombre-forte); }
.rail-offre .rail-offre-quoi { margin: 0 0 .3rem; font-size: .85rem; color: #b9aa98; }
.rail-offre .rail-offre-prix { margin: 0 0 1.1rem; font-family: var(--police-titre); font-size: 1.9rem; line-height: 1.1; color: var(--encre-inverse); }
.rail-offre-prix span { display: block; font-family: var(--police-texte); font-size: .82rem; color: #b9aa98; margin-top: .3rem; }
.rail-atouts { list-style: none; margin: 0 0 1.3rem; padding: 1rem 0 0; border-top: 1px solid rgba(243,238,228,.15); display: grid; gap: .5rem; font-size: .9rem; }
.rail-atouts li { display: flex; gap: .55rem; align-items: flex-start; }
.rail-atouts .ico { width: 16px; height: 16px; margin-top: .2em; color: var(--ocre); flex: none; }
.rail-offre .btn { width: 100%; justify-content: center; font-size: .92rem; padding-inline: 1rem; }
.rail-sommaire ul { list-style: none; margin: 0; padding: 0; }
.rail-sommaire .rail-titre { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--repere); margin: 0 0 .7rem; font-family: var(--police-texte); }
.rail-sommaire a { display: block; padding: .38rem 0 .38rem .9rem; border-left: 2px solid var(--filet); text-decoration: none; color: var(--encre-douce); font-size: .92rem; transition: color .2s, border-color .2s; }
.rail-sommaire a:hover { color: var(--encre-forte); }
.rail-sommaire a.est-actif { border-left-color: var(--action); color: var(--encre-forte); font-weight: 600; }

/* Trois solutions en lignes (colonne de fiche) */
.trois-solutions--liste { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.trois-solutions--liste .solution { display: grid; grid-template-columns: 210px 1fr; grid-template-areas: "titre liste" "prix liste" "vide verdict" "vide cta"; grid-template-rows: auto auto 1fr auto; gap: 0 2rem; padding: 1.6rem; transform: none; }
.trois-solutions--liste .solution::after, .trois-solutions--liste .solution-ico, .trois-solutions--liste .solution-ruban { display: none; }
.trois-solutions--liste .solution h3 { grid-area: titre; margin: 0; font-size: 1.3rem; }
.trois-solutions--liste .solution-prix { grid-area: prix; align-self: start; margin: .5rem 0 0; font-size: 1.4rem; }
.trois-solutions--liste .solution ul { grid-area: liste; margin-bottom: .9rem; align-self: start; }
.trois-solutions--liste .solution-verdict { grid-area: verdict; padding-top: .8rem; border-top: 1px solid var(--filet); margin: 0; }
.trois-solutions--liste .solution--avant .solution-verdict { border-top-color: rgba(243,238,228,.2); }
.trois-solutions--liste .solution .btn { grid-area: cta; justify-self: start; align-self: start; }

.planche--croquis { background: #f8e7d1; padding: 2.4rem 1rem 1.2rem; }
.planche .croquis { width: 100%; height: auto; display: block; }

/* Tableau des configurations */
.configs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--rayon-carte); box-shadow: var(--ombre); overflow: hidden; font-size: .95rem; }
.configs th, .configs td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--filet); }
.configs thead th { background: var(--surface-sombre); color: var(--encre-inverse); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.configs tbody tr:last-child td { border-bottom: 0; }
.configs tbody tr:hover td { background: #fffaf1; }
.configs td:first-child { font-weight: 600; color: var(--encre-forte); }
.configs .cotes { font-variant-numeric: tabular-nums; color: var(--encre-douce); white-space: nowrap; }
.configs .prix { font-family: var(--police-titre); color: var(--action-fonce); white-space: nowrap; }
.configs td:last-child { text-align: right; }
.configs a { font-weight: 600; white-space: nowrap; }
.configs--anciens td:nth-child(2), .configs--chaises td:nth-child(2), .configs--coussins td:nth-child(3) { font-weight: 400; color: var(--encre-douce); }
.configs--anciens td small, .configs--chaises td small { color: var(--encre-douce); font-size: .82rem; }
.etiq-mobile { display: none; }
.configs--chaises td:nth-child(n+3) small { text-transform: none; }
.configs--pieds tr.debut-serie td { border-top: 2px solid var(--filet-fort, var(--filet)); }
.configs--pieds tbody tr:first-child td { border-top: 0; }
.configs--pieds td:nth-child(2) { font-weight: 400; }
/* Plan du site */
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.plan-groupe h2 { font-size: 1.3rem; margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--filet); }
.plan-groupe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.plan-groupe a { color: var(--encre-forte); text-decoration: none; }
.plan-groupe a:hover { color: var(--action); text-decoration: underline; }
.titre-liste { margin: 3rem 0 1.2rem; font-size: 1.35rem; }

/* Relooker ou racheter : prix rapportés au canapé neuf. */
.verdict-prix { background: var(--surface); border-radius: var(--rayon-carte); box-shadow: var(--ombre); padding: .4rem 1.4rem; }
.verdict-ligne { display: grid; grid-template-columns: minmax(0, 15rem) 1fr 7.5rem; align-items: center; gap: 1.2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--filet); }
.verdict-ligne:last-child { border-bottom: 0; }
.verdict-nom, .verdict-montant { margin: 0; line-height: 1.3; }
.verdict-nom strong { display: block; color: var(--encre-forte); }
.verdict-nom span, .verdict-montant span { display: block; font-size: .82rem; color: var(--encre-douce); font-family: var(--police-texte, inherit); }
.verdict-montant { text-align: right; font-family: var(--police-titre); font-size: 1.35rem; color: var(--action-fonce); white-space: nowrap; }
.verdict-barre { display: block; height: 10px; border-radius: 999px; background: var(--fond); overflow: hidden; }
.verdict-barre span { display: block; height: 100%; border-radius: 999px; background: var(--action); }
.verdict-ligne--neuf .verdict-barre span { background: var(--encre-douce); }
.verdict-ligne--neuf .verdict-montant { color: var(--encre-forte); }
.verdict-cas { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; margin-top: 2.4rem; }
.verdict-titre { font-family: var(--police-titre); font-size: 1.3rem; color: var(--encre-forte); margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 2px solid var(--action); }
.verdict-cas > div:last-child .verdict-titre { border-bottom-color: var(--encre-douce); }
.verdict-cas ul { list-style: none; margin: 0; padding: 0; }
.verdict-cas li { padding: .6rem 0; border-bottom: 1px solid var(--filet); }
.verdict-cas li:last-child { border-bottom: 0; }
.verdict-conclusion { margin: 2.2rem 0 0; font-family: var(--police-titre); font-size: 1.3rem; line-height: 1.45; color: var(--encre-forte); max-width: 36em; }

/* Calculateur relooker ou racheter */
.calcul-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.6rem; background: var(--surface); border-radius: var(--rayon-carte); box-shadow: var(--ombre); padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; }
.calcul-champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.calcul-champ > span, .calcul-champ legend { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--repere); margin-bottom: .6rem; padding: 0; }
.calcul-champ select { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--filet); border-radius: 6px; background: #fff; font: inherit; color: var(--encre-forte); }
.calcul-champ label { display: flex; gap: .5rem; align-items: flex-start; padding: .25rem 0; cursor: pointer; }
.calcul-champ input[type=radio] { margin-top: .3rem; accent-color: var(--action); }
.calcul-attente { color: var(--encre-douce); }
.calcul-verdict { font-family: var(--police-titre); font-size: 1.7rem; color: var(--action-fonce); margin: 0 0 .3rem; }
.calcul-texte { max-width: 42em; }
.calcul-resultat .verdict-prix { margin: 1.2rem 0; }
.calcul-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-top: 1.2rem; }
@media (max-width: 900px) { .calcul-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .verdict-prix { padding: .2rem 1rem; }
  .verdict-ligne { grid-template-columns: 1fr auto; gap: .6rem 1rem; }
  .verdict-barre { grid-column: 1 / -1; grid-row: 2; }
  .verdict-cas { grid-template-columns: 1fr; gap: 1.6rem; }
  .verdict-conclusion { font-size: 1.15rem; }
}

/* Fiches sœurs */
.soeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Barre d'offre fixe (mobile seulement : voir la fin de la feuille) */
.barre-offre {
  position: fixed; left: 50%; bottom: 1rem; z-index: 35; width: min(720px, calc(100% - 2rem));
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex; align-items: center; gap: 1rem; padding: .7rem .7rem .7rem 1.2rem;
  background: var(--surface-sombre); color: #d9cdbd; border-radius: 10px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.55);
}
.barre-offre.est-visible { transform: translate(-50%, 0); }
.barre-offre p { margin: 0; font-size: .92rem; flex: 1; line-height: 1.35; }
.barre-offre strong { color: var(--encre-inverse); }
.barre-offre .btn { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; flex: none; }
.barre-offre-fermer { background: none; border: 0; color: #b9aa98; cursor: pointer; padding: .3rem; flex: none; }
.barre-offre-fermer .ico { width: 18px; height: 18px; }

/* Boîte produit (guides) */
.produit { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.4rem; align-items: center; background: var(--surface); border-radius: var(--rayon-carte); padding: 1.3rem 1.5rem; box-shadow: var(--ombre); margin: 1.8rem 0; position: relative; }
.produit-ico { width: 120px; height: 96px; border-radius: 4px; display: grid; place-items: center; background: var(--surface-alt); color: var(--action); }
.produit-ico .ico { width: 40px; height: 40px; }
.produit h3, .produit-nom { margin: 0 0 .3rem; font-family: var(--police-titre); font-size: 1.2rem; color: var(--encre-forte); }
.produit p { margin: 0; font-size: .92rem; color: var(--encre-douce); }
.produit .btn { position: relative; z-index: 1; }

/* Pages utilitaires */
.contenu { padding-block: 3rem 5rem; }
.contenu--utilitaire { max-width: calc(var(--colonne-texte) + 2.5rem); }

/* Révélation au défilement */
.js .revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .revele.est-revele { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* =========================================================================
   Responsive (toujours en dernier)
   ========================================================================= */

@media (max-width: 1140px) {
  .nav a, .nav span.est-inerte { padding: .55rem .5rem; font-size: .9rem; }
  .entete-in { gap: 1rem; }
  .rayons { grid-template-columns: repeat(3, 1fr); }
  .rayon--grand { grid-column: span 2; }
  .rayon--large { grid-column: span 1; }
  .rayon--large:last-child { grid-column: span 3; }
  .modeles--4 { grid-template-columns: repeat(3, 1fr); }
  .corps { grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; }
}

@media (max-width: 1020px) {
  :root { --entete: 66px; }
  .entete-cta { display: none; }
  .nav-bascule { display: block; }
  .nav {
    position: fixed; inset: var(--haut-nav, 100px) 0 0 0; margin: 0; z-index: 39;
    background: var(--surface); overflow-y: auto; padding: 1.2rem 1.25rem 2rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.est-ouverte { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: var(--couture); }
  .nav a, .nav span.est-inerte { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; font-family: var(--police-titre); font-size: 1.6rem; font-weight: 400; color: var(--encre-forte); }
  .nav a::after { display: none; }
  .nav-pied { display: grid; gap: .8rem; margin-top: 1.6rem; }
  .nav .nav-pied .btn { width: 100%; display: inline-flex; justify-content: center; gap: .55rem; padding: .65rem 1.35rem; font: 600 .98rem/1.25 var(--police-texte); color: var(--action-texte); }
  .nav .nav-pied .btn .ico { width: 1.05em; }
  .hero-in, .page-hero-in, .fiche-hero-in { grid-template-columns: 1fr; gap: 2.4rem; }
  .duo, .bande-patron, .faq-grille { grid-template-columns: 1fr; gap: 2.4rem; }
  .duo--inverse .duo-visuel { order: 0; }
  .trois-solutions { grid-template-columns: 1fr; max-width: 560px; }
  .solution--avant { transform: none; order: -1; }
  .cartes-photo { grid-template-columns: 1fr 1fr; }
  .chiffres-in { grid-template-columns: repeat(2, 1fr); }
  .chiffres-in { gap: 1.6rem 0; }
  .chiffre:nth-child(3) { border-left: 0; padding-left: 0; }
  .pied-in { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
  .corps { grid-template-columns: 1fr; }
  .rail { position: static; }
  .modeles, .modeles--4, .soeurs { grid-template-columns: repeat(2, 1fr); }
  .etapes--grille { grid-template-columns: 1fr; }
  .fiche-corps { grid-template-columns: 1fr; padding-top: 0; }
  .fiche-rail { display: none; }
  .appel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 1rem; }
  .marque-logo, .est-compacte .marque-logo { height: 38px; }
  .hero { padding: 2rem 0 3rem; }
  .bande { padding: 3.4rem 0; }
  .choix-ligne { flex-direction: column; }
  .choix-ligne .btn { width: 100%; }
  .hero-visuel::before, .page-hero-visuel::before { inset: -8px 8px 8px -8px; }
  .rayons { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: .7rem; }
  .rayon--grand { grid-column: span 2; grid-row: span 1; }
  .rayon--large, .rayon--large:last-child { grid-column: span 1; }
  .rayon--grand .rayon-nom { font-size: 1.6rem; }
  .rayon-nom { font-size: 1.15rem; }
  .rayon-desc { display: none; }
  .rayon-texte { padding: .9rem; }
  .rayon-fleche { width: 32px; height: 32px; top: .7rem; right: .7rem; }
  .modeles, .modeles--4, .soeurs { grid-template-columns: 1fr; }
  .cartes-photo, .cartes-photo--2 { grid-template-columns: 1fr; }
  .reperes-liste { grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
  .repere-valeur { font-size: 2rem; }
  .fiche-section { padding-block: 2.4rem; }
  .trois-solutions--liste .solution { grid-template-columns: 1fr; grid-template-areas: "titre" "prix" "liste" "verdict" "cta"; grid-template-rows: none; padding: 1.3rem; }
  .trois-solutions--liste .solution-prix { grid-area: prix; margin: .3rem 0 .9rem; }
  .trois-solutions--liste .solution .btn { justify-self: stretch; }
  .illustration figcaption { padding: .8rem 1rem; }
  .teintes { gap: .4rem; }
  .entete-section { grid-template-columns: 1fr; }
  .entete-section > .lien-fleche { grid-column: 1; grid-row: auto; margin-top: .8rem; }
  .recherche-modele { margin-left: 0; width: 100%; }
  .recherche-modele input { width: 100%; }
  .chiffres-in { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 1.8rem; }
  .chiffre { border-left: 0; padding: 0; grid-template-columns: 44px 1fr; }
  .chiffre-ico { width: 44px; height: 44px; }
  .chiffre strong { font-size: 1.15rem; }
  .pied-in { grid-template-columns: 1fr; gap: 2rem; }
  .appel { padding: 2rem 1.5rem; }
  .fiche-identite { grid-template-columns: repeat(3, auto); gap: .2rem 1.2rem; }
  .fiche-identite dd { font-size: 1.05rem; }
  .planche { padding: 2.4rem 1rem 1.2rem; }
  .configs thead { display: none; }
  .configs, .configs tbody, .configs tr, .configs td { display: block; width: 100%; }
  .configs tr { padding: .9rem 1rem; border-bottom: 1px solid var(--filet); display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; }
  .configs td { padding: 0; border: 0; text-align: left !important; }
  .configs td:last-child { grid-column: 1 / -1; margin-top: .4rem; }
  .configs--anciens tr, .configs--chaises tr, .configs--coussins tr { grid-template-columns: 1fr auto; }
  .configs--coussins td:nth-child(3) { grid-column: 1 / -1; }
  .configs--coussins td:last-child { grid-column: auto; margin-top: 0; }
  .configs--pieds tr { grid-template-columns: 1fr auto; }
  .configs--pieds td:nth-child(1), .configs--pieds td:nth-child(2) { grid-column: 1 / -1; }
  .configs--pieds td:last-child { grid-column: auto; margin-top: 0; }
  .configs--pieds tr:not(.debut-serie) td:first-child { display: none; }
  .configs--pieds-canape tr { grid-template-columns: 1fr auto; }
  .plan { grid-template-columns: 1fr; gap: 1.8rem; }
  .configs--pieds-canape td:nth-child(1), .configs--pieds-canape td:nth-child(2) { grid-column: 1 / -1; }
  .configs--pieds-canape td:last-child { grid-column: auto; margin-top: 0; }
  .configs--chaises td:nth-child(1), .configs--chaises td:nth-child(2) { grid-column: 1 / -1; }
  .configs--chaises td:last-child { grid-column: auto; margin-top: 0; }
  .etiq-mobile { display: inline; font-size: .82rem; color: var(--encre-douce); font-weight: 400; }
  .configs--anciens td:nth-child(1), .configs--anciens td:nth-child(2) { grid-column: 1 / -1; }
  .configs--anciens td:last-child { grid-column: auto; margin-top: 0; align-self: end; }
  .produit { grid-template-columns: 1fr; text-align: left; }
  .produit-ico { width: 64px; height: 64px; }
  .barre-offre { bottom: .6rem; padding: .6rem .6rem .6rem .9rem; }
  .barre-offre p { font-size: .82rem; }
  .barre-offre .btn { padding: .45rem .8rem; }
}

/* La barre d'offre ne sert qu'en mobile : en desktop, le rail de la fiche porte l'offre. */
@media (min-width: 1021px) { .barre-offre { display: none; } }

/* Sommaire collant : mobile et tablette seulement, collé sous l'en-tête au défilement. */
.sommaire-collant { position: sticky; top: var(--haut-entete, 62px); z-index: 39; background: var(--fond); border-bottom: 1px solid var(--filet); box-shadow: 0 8px 18px -16px rgba(36,27,21,.45); }
.sommaire-collant ul { display: flex; gap: .4rem; margin: 0; padding: .6rem 16px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sommaire-collant ul::-webkit-scrollbar { display: none; }
.sommaire-collant a { display: block; white-space: nowrap; padding: .4rem .85rem; border-radius: 99px; border: 1px solid var(--filet); background: var(--surface); font-size: .86rem; font-weight: 500; color: var(--encre); text-decoration: none; }
.sommaire-collant a.est-actif { background: var(--encre-forte); border-color: var(--encre-forte); color: var(--encre-inverse); }
@media (min-width: 1021px) { .sommaire-collant { display: none; } }
@media (max-width: 1020px) {
  html:has(.sommaire-collant) { scroll-padding-top: calc(var(--entete) + 64px); }
  html:has(.sommaire-collant) .fiche-section, html:has(.sommaire-collant) [id] { scroll-margin-top: calc(var(--entete) + 64px); }
}
