/* Glavrek · club d'échecs éditorial
   Ivoire, encre, bordeaux, laiton, feutre. Cormorant Garamond (titres) + Work Sans (texte). */

:root {
  --ivoire: #F6F1E7;
  --papier: #FBF8F2;
  --parchemin: #ECE3D0;
  --encre: #1C1B18;
  --encre-2: #4A463D;
  --encre-3: #6B665B;
  --bordeaux: #7A1F2B;
  --bordeaux-fonce: #5E1520;
  --laiton: #B08D57;
  --laiton-fonce: #8A6A35;
  --feutre: #2F5D4A;
  --sauge: #A9BBA3;
  --case-claire: #F1E9D8;
  --case-foncee: #9FB39A;
  --filet: rgba(28, 27, 24, .14);
  --filet-fort: rgba(28, 27, 24, .32);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", Arial, sans-serif;
  --ombre: 0 1px 0 rgba(28, 27, 24, .04), 0 18px 40px -24px rgba(28, 27, 24, .35);
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bordeaux); }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.2vw, 82px); }
h2 { font-size: clamp(34px, 4.2vw, 54px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; }
em { font-style: italic; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--encre); color: var(--papier); padding: 10px 16px; }
.evitement:focus { left: 12px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* petits signes de la marque */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--laiton-fonce);
}
.carre-mini {
  width: 10px;
  height: 10px;
  flex: none;
  outline: 1px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 50% 50% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 50% 50% no-repeat;
}
.case {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--laiton);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--bordeaux);
  background: var(--papier);
  box-shadow: 3px 3px 0 var(--parchemin);
}
.frise {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--encre) 0 10px, transparent 10px 20px);
  opacity: .9;
}
.filet-double { border: 0; border-top: 1px solid var(--encre); position: relative; margin: 0; height: 4px; }
.filet-double::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--encre); }

/* boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--bordeaux);
  border-radius: 2px;
  background: var(--bordeaux);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  line-height: 1.2;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -14px rgba(122, 31, 43, .9);
}
.bouton:hover { background: var(--bordeaux-fonce); color: var(--papier); transform: translateY(-1px); }
.bouton-ligne { background: transparent; color: var(--encre); border-color: var(--encre); box-shadow: none; }
.bouton-ligne:hover { background: var(--encre); color: var(--papier); }
.bouton-petit { padding: 10px 18px; font-size: 14px; }
.fleche-svg { width: 18px; height: 12px; flex: none; }
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--laiton);
  padding-bottom: 2px;
}
.lien-fleche:hover { border-color: var(--bordeaux); }

/* ---------- en-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 231, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--encre);
  box-shadow: 0 3px 0 -2px var(--encre);
}
.entete-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.logo:hover { color: var(--encre); }
.logo-symbole { width: 38px; height: 38px; }
.logo-mot {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 2px;
}
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-color: var(--bordeaux); color: var(--bordeaux); }

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-papier { background: var(--papier); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.section-parchemin { background: var(--parchemin); }
.section-tete { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; max-width: 860px; margin-bottom: 56px; }
.section-tete .case { grid-row: span 3; margin-top: 4px; }
.section-tete .surtitre { margin-bottom: 10px; }
.section-tete h2 { margin-bottom: 14px; }
.section-tete p:last-child { color: var(--encre-2); font-size: 18px; margin: 0; max-width: 680px; }
.section-tete-centre { margin-left: auto; margin-right: auto; }

/* ---------- la une (accueil) ---------- */
.une { padding: 64px 0 88px; position: relative; overflow: hidden; }
.une-grille { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.une h1 { margin-bottom: 26px; }
.une h1 em { color: var(--bordeaux); font-weight: 500; }
.chapo { font-size: 19px; line-height: 1.6; color: var(--encre-2); max-width: 540px; margin-bottom: 34px; }
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: 40px; }
.une-faits { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--encre); border-bottom: 1px solid var(--filet); }
.une-faits li { padding: 16px 16px 16px 0; font-size: 14px; line-height: 1.4; color: var(--encre-2); }
.une-faits li + li { padding-left: 16px; border-left: 1px solid var(--filet); }
.une-faits strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--encre); margin-bottom: 2px; font-variant-numeric: lining-nums; }
.une-visuel { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.plateau-fond {
  position: absolute;
  inset: 6% 4% 8% 6%;
  background-color: var(--case-claire);
  background-image: conic-gradient(var(--case-foncee) 25%, transparent 0 50%, var(--case-foncee) 0 75%, transparent 0);
  background-size: 25% 25%;
  outline: 1px solid var(--encre);
  outline-offset: 10px;
  box-shadow: 0 0 0 10px var(--papier), 0 0 0 11px var(--laiton);
  opacity: .9;
}
.plateau-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246, 241, 231, .15), rgba(246, 241, 231, .55)); }
.une-visuel img { position: relative; width: 112%; max-width: none; filter: drop-shadow(0 26px 28px rgba(28, 27, 24, .28)); margin-top: 6%; }
.une-coords { position: absolute; left: 6%; right: 4%; bottom: -1%; display: flex; justify-content: space-around; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--encre-3); }

/* ---------- cartes ebooks ---------- */
.etagere { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--accent, var(--encre));
  transition: transform .25s, box-shadow .25s;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte-visuel {
  display: block;
  padding: 22px 16px 10px;
  background-color: var(--parchemin);
  background-image: conic-gradient(rgba(28, 27, 24, .05) 25%, transparent 0 50%, rgba(28, 27, 24, .05) 0 75%, transparent 0);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--filet);
}
.carte-visuel img { width: 92%; margin: 0 auto; filter: drop-shadow(0 12px 12px rgba(28, 27, 24, .22)); transition: transform .3s; }
.carte:hover .carte-visuel img { transform: rotate(-1.5deg) translateY(-3px); }
.carte-corps { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px; }
.carte-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); }
.carte-num { color: var(--accent, var(--bordeaux)); }
.carte-titre { font-size: 23px; line-height: 1.1; margin: 0 0 8px; }
.carte-titre a { text-decoration: none; }
.carte-titre a::after { content: ""; position: absolute; inset: 0; }
.carte-sous { font-size: 14px; line-height: 1.45; color: var(--encre-2); margin: 0 0 16px; }
.carte-prix { margin: auto 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--filet); }
.prix { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1; font-variant-numeric: lining-nums; color: var(--encre); white-space: nowrap; }
.carte-lien { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--bordeaux); }

/* ---------- packs ---------- */
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pack {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--papier);
  border: 1px solid var(--encre);
  box-shadow: 8px 8px 0 var(--parchemin);
}
.pack-visuel {
  display: block;
  padding: 30px 28px 18px;
  background-color: #E4EBE1;
  background-image: conic-gradient(rgba(47, 93, 74, .08) 25%, transparent 0 50%, rgba(47, 93, 74, .08) 0 75%, transparent 0);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--encre);
}
.pack-collection-complete .pack-visuel { background-color: #EFE1E0; background-image: conic-gradient(rgba(122, 31, 43, .07) 25%, transparent 0 50%, rgba(122, 31, 43, .07) 0 75%, transparent 0); }
.pack-visuel img { width: 100%; max-width: 470px; margin: 0 auto; filter: drop-shadow(0 16px 16px rgba(28, 27, 24, .22)); }
.pack-corps { padding: 28px 30px 30px; display: flex; flex-direction: column; }
.pack-corps h3 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 10px; }
.pack-corps h3 a { text-decoration: none; }
.pack-logique { color: var(--encre-2); font-size: 16px; }
.pack-liste { list-style: none; margin: 4px 0 20px; border-top: 1px solid var(--filet); }
.pack-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--filet); font-size: 15px; }
.pack-liste li a { text-decoration: none; }
.pack-liste li a::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--laiton); vertical-align: 1px; }
.pack-liste li span { color: var(--encre-3); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.pack-compare { font-size: 15px; color: var(--encre-2); margin-bottom: 22px; padding: 14px 16px; background: var(--ivoire); border-left: 3px solid var(--feutre); }
.pack-compare strong { color: var(--encre); }
.pack-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- méthode ---------- */
.methode-grille { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.figure-diag { margin: 0; }
.figure-diag .diagramme { width: 100%; filter: drop-shadow(0 20px 26px rgba(28, 27, 24, .16)); }
.figure-diag figcaption { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--encre-2); padding-left: 16px; border-left: 2px solid var(--bordeaux); }
.figure-diag figcaption b { font-style: normal; font-weight: 700; color: var(--encre); }
.principes { list-style: none; counter-reset: p; display: grid; gap: 0; border-top: 1px solid var(--encre); }
.principes li { counter-increment: p; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--filet); }
.principes li::before {
  content: counter(p, upper-roman) ".";
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--bordeaux);
  line-height: 1.1;
}
.principes h3 { font-size: 24px; margin: 0 0 6px; }
.principes p { margin: 0; color: var(--encre-2); font-size: 16px; }

/* ---------- feuille de partie (comment ça marche) ---------- */
.feuille { width: 100%; border-collapse: collapse; background: var(--papier); border: 1px solid var(--encre); box-shadow: 8px 8px 0 var(--parchemin); }
.feuille th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-bottom: 2px solid var(--encre);
  color: var(--encre-2);
}
.feuille th:first-child, .feuille td:first-child { width: 76px; text-align: center; border-right: 1px solid var(--filet-fort); }
.feuille td { padding: 22px; vertical-align: top; border-bottom: 1px solid var(--filet); font-size: 16px; color: var(--encre-2); }
.feuille td + td + td { border-left: 1px solid var(--filet); }
.feuille td:first-child { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--bordeaux); line-height: 1; font-variant-numeric: lining-nums; }
.feuille td strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--encre); margin-bottom: 4px; line-height: 1.15; }
.feuille tr:last-child td { border-bottom: 0; }
.feuille-note { margin-top: 22px; font-size: 14.5px; color: var(--encre-3); }

/* ---------- par où commencer ---------- */
.depart-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--encre); background: var(--papier); }
.depart { padding: 34px 30px 30px; display: flex; flex-direction: column; }
.depart + .depart { border-left: 1px solid var(--encre); }
.depart .case { margin-bottom: 20px; }
.depart h3 { font-size: 27px; }
.depart p { color: var(--encre-2); font-size: 16px; }
.depart .lien-fleche { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--encre); }
.question { border-bottom: 1px solid var(--filet-fort); }
.question summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--bordeaux);
  border-bottom: 2px solid var(--bordeaux);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s;
}
.question[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.question summary:hover { color: var(--bordeaux); }
.reponse { padding: 0 48px 24px 0; color: var(--encre-2); }
.reponse p:last-child { margin-bottom: 0; }
.faq-groupe { margin-bottom: 64px; }
.faq-groupe h2 { font-size: clamp(30px, 3.4vw, 40px); }

/* ---------- appel final ---------- */
.appel { padding: 96px 0; background: var(--papier); border-top: 1px solid var(--encre); text-align: center; position: relative; }
.appel h2 { max-width: 760px; margin: 0 auto 16px; }
.appel p { max-width: 620px; margin: 0 auto 32px; color: var(--encre-2); font-size: 18px; }
.appel-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- pages intérieures ---------- */
.tete-page { padding: 72px 0 56px; border-bottom: 1px solid var(--encre); position: relative; }
.tete-page h1 { max-width: 900px; margin-bottom: 18px; }
.tete-page .chapo { max-width: 720px; margin-bottom: 0; }
.fil { font-size: 13px; color: var(--encre-3); padding-top: 26px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil span { margin: 0 6px; }

/* catalogue : lignes */
.lignes { display: grid; gap: 22px; }
.ligne {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr 230px;
  gap: 36px;
  align-items: center;
  padding: 26px 32px 26px 26px;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-left: 4px solid var(--accent, var(--encre));
  transition: box-shadow .25s, transform .25s;
}
.ligne:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.ligne-visuel { display: block; padding: 14px; background-color: var(--parchemin); background-image: conic-gradient(rgba(28, 27, 24, .05) 25%, transparent 0 50%, rgba(28, 27, 24, .05) 0 75%, transparent 0); background-size: 20px 20px; }
.ligne-visuel img { filter: drop-shadow(0 10px 10px rgba(28, 27, 24, .2)); }
.ligne-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); }
.ligne-meta .carte-num { color: var(--accent); }
.ligne h3 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 6px; }
.ligne h3 a { text-decoration: none; }
.ligne h3 a::after { content: ""; position: absolute; inset: 0; }
.ligne-sous { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--encre-2); margin-bottom: 10px; }
.ligne-resume { font-size: 15px; color: var(--encre-2); margin: 0; }
.ligne-achat { text-align: right; display: grid; gap: 12px; justify-items: end; }
.ligne-achat .prix { font-size: 36px; }
.ligne-achat .bouton { position: relative; z-index: 1; }

.niveaux { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 34px; padding: 16px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); font-size: 14.5px; color: var(--encre-2); }
.niveaux b { font-family: var(--serif); font-size: 19px; color: var(--encre); margin-right: 6px; }

/* ---------- page produit ---------- */
.fiche { padding: 28px 0 96px; }
.fiche-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.fiche-visuel { position: sticky; top: 104px; }
.fiche-socle {
  position: relative;
  padding: 44px 40px 30px;
  background-color: var(--parchemin);
  background-image: conic-gradient(rgba(28, 27, 24, .055) 25%, transparent 0 50%, rgba(28, 27, 24, .055) 0 75%, transparent 0);
  background-size: 12.5% 12.5%;
  border: 1px solid var(--encre);
  box-shadow: 0 0 0 8px var(--papier), 0 0 0 9px var(--laiton);
  margin: 9px;
}
.fiche-socle img { width: 86%; margin: 0 auto; filter: drop-shadow(0 26px 24px rgba(28, 27, 24, .3)); }
.fiche-legende { margin: 22px 9px 0; font-size: 13px; color: var(--encre-3); text-align: center; letter-spacing: .04em; }
.fiche-infos h1 { font-size: clamp(40px, 4.2vw, 54px); margin-bottom: 12px; }
.fiche-sous { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--encre-2); margin-bottom: 14px; }
.fiche-resume { color: var(--encre-2); font-size: 15.5px; line-height: 1.6; margin-bottom: 0; }
.fiche-prix { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; margin: 18px 0 14px; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--filet); }
.fiche-prix .prix { font-size: 44px; }
.fiche-prix-note { font-size: 13.5px; color: var(--encre-3); letter-spacing: .04em; }
.fiche-format { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 20px; font-size: 14px; color: var(--encre-2); }
.fiche-format li { display: flex; gap: 10px; align-items: baseline; }
.fiche-format li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--feutre); transform: translateY(-2px); }
.fiche-compare { font-size: 15.5px; color: var(--encre-2); margin: 0 0 22px; padding: 14px 16px; background: var(--papier); border-left: 3px solid var(--feutre); }
.fiche-compare strong { color: var(--encre); }

.contenu-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.liste-cases { list-style: none; border-top: 1px solid var(--encre); }
.liste-cases li { position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--filet); font-size: 17px; }
.liste-cases li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 16px;
  height: 16px;
  outline: 1px solid var(--encre);
  background:
    linear-gradient(var(--accent, var(--bordeaux)), var(--accent, var(--bordeaux))) 0 0 / 50% 50% no-repeat,
    linear-gradient(var(--accent, var(--bordeaux)), var(--accent, var(--bordeaux))) 100% 100% / 50% 50% no-repeat;
}
.pourqui { background: var(--papier); border: 1px solid var(--filet); padding: 30px; }
.pourqui h3 { font-size: 25px; margin-bottom: 12px; }
.pourqui ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.pourqui ul:last-child { margin-bottom: 0; }
.pourqui li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--encre-2); line-height: 1.5; }
.pourqui .oui li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--feutre); border-bottom: 2px solid var(--feutre); transform: rotate(-45deg); }
.pourqui .non li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 2px; background: var(--bordeaux); }

.detail-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.detail-texte p { font-size: 17.5px; color: var(--encre-2); }
.avertissement {
  position: relative;
  padding: 26px 28px 24px 28px;
  background: #F3E6E3;
  border: 1px solid rgba(122, 31, 43, .35);
  border-left: 4px solid var(--bordeaux);
}
.avertissement .surtitre { color: var(--bordeaux); margin-bottom: 10px; }
.avertissement p:last-child { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--encre); }

.format-grille { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--encre); background: var(--papier); }
.format-grille > div { padding: 28px 28px 26px; }
.format-grille > div + div { border-left: 1px solid var(--filet-fort); }
.format-grille h3 { font-size: 23px; margin-bottom: 8px; }
.format-grille p { margin: 0; color: var(--encre-2); font-size: 15.5px; }
.format-ico { width: 36px; height: 36px; margin-bottom: 16px; color: var(--bordeaux); }

.voisins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.packs-produit { display: grid; gap: 22px; }
.pack-ligne {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px 26px 18px 18px;
  background: var(--papier);
  border: 1px solid var(--encre);
  box-shadow: 6px 6px 0 var(--parchemin);
}
.pack-ligne img { filter: drop-shadow(0 10px 12px rgba(28, 27, 24, .2)); }
.pack-ligne h3 { font-size: 27px; margin-bottom: 6px; }
.pack-ligne h3 a { text-decoration: none; }
.pack-ligne h3 a::after { content: ""; position: absolute; inset: 0; }
.pack-ligne p { margin: 0; font-size: 15px; color: var(--encre-2); }
.pack-ligne .prix { font-size: 32px; }

.cta-fin { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 34px 38px; border: 1px solid var(--encre); background: var(--papier); box-shadow: 8px 8px 0 var(--parchemin); }
.cta-fin h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 0 0 6px; }
.cta-fin p { margin: 0; color: var(--encre-2); }

/* cartes dans les pages produit */
.voisins .carte-visuel img { width: 64%; }
.etagere-pack { display: flex; flex-wrap: wrap; gap: 22px; }
.etagere-pack .carte { width: calc((100% - 88px) / 5); }
.fiche-socle-pack { padding: 40px 18px 26px; }
.fiche-socle-pack img { width: 100%; }
.introuvable .appel-actions { justify-content: flex-start; }

/* barre d'achat mobile */
.barre-achat {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 242, .97);
  border-top: 1px solid var(--encre);
  box-shadow: 0 -10px 24px -18px rgba(28, 27, 24, .5);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s, visibility 0s linear .3s;
}
.barre-achat.visible { transform: translateY(0); visibility: visible; transition: transform .3s, visibility 0s; }
.barre-achat-titre { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.15; }
.barre-achat-titre span { display: block; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--bordeaux); }

/* ---------- bloc d'achat Whop ---------- */
.achat {
  max-width: none;
  gap: 16px;
  padding: 24px 24px 20px;
  background: var(--papier);
  border: 1px solid var(--encre);
  box-shadow: 6px 6px 0 var(--parchemin);
}
.achat-consentement { font-size: 13.5px; color: var(--encre-2); gap: 12px; }
.achat-consentement input { accent-color: var(--bordeaux); width: 19px; height: 19px; }
.achat-bouton {
  border-radius: 2px;
  background: var(--bordeaux);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .02em;
  padding: 17px 22px;
  box-shadow: 0 12px 26px -16px rgba(122, 31, 43, .95);
}
.achat-bouton:not(:disabled):hover { background: var(--bordeaux-fonce); }
.achat-bouton:disabled { opacity: .42; box-shadow: none; }
.achat-pret .achat-bouton { box-shadow: 0 12px 26px -12px rgba(122, 31, 43, .95); }
.achat-paiement:empty { min-height: 0; }
.achat-mentions { font-size: 12.5px; color: var(--encre-3); opacity: 1; }
.achat-mentions a { color: var(--encre-2); }
.achat-lien { border-radius: 2px; background: var(--encre); color: var(--papier); }
.achat-lien:hover { background: var(--bordeaux); color: var(--papier); }
.achat-info { padding: 14px 16px; background: var(--ivoire); border-left: 3px solid var(--laiton); font-size: 14.5px; color: var(--encre-2); }
.achat-info a { color: var(--bordeaux); font-weight: 600; }
.achat-attention { animation: glavrek-attention 1.6s ease; }
@keyframes glavrek-attention { 0%, 100% { box-shadow: 6px 6px 0 var(--parchemin); } 30% { box-shadow: 6px 6px 0 var(--parchemin), 0 0 0 5px rgba(176, 141, 87, .55); } }

/* ---------- contact, à propos, merci, 404 ---------- */
.contact-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.contact-carte { padding: 36px; background: var(--papier); border: 1px solid var(--encre); box-shadow: 8px 8px 0 var(--parchemin); }
.contact-mail { display: block; width: fit-content; max-width: 100%; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: var(--bordeaux); text-decoration: none; border-bottom: 1px solid var(--laiton); margin: 6px 0 18px; overflow-wrap: anywhere; }
.contact-liste { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--filet); margin-top: 8px; }
.contact-liste li { padding: 12px 0; border-bottom: 1px solid var(--filet); font-size: 15.5px; color: var(--encre-2); }
.contact-liste b { color: var(--encre); }
.texte-courant { max-width: 720px; }
.texte-courant p { font-size: 18px; color: var(--encre-2); }
.texte-courant h2 { margin-top: 1.1em; }
.texte-courant h2:first-child { margin-top: 0; }
.apropos-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.apropos-figure { position: sticky; top: 110px; }
.merci-statut { max-width: 760px; padding: 40px; background: var(--papier); border: 1px solid var(--encre); box-shadow: 8px 8px 0 var(--parchemin); }
.merci-statut h1 { font-size: clamp(38px, 4.6vw, 58px); }
.etapes-merci { list-style: none; counter-reset: e; display: grid; gap: 0; border-top: 1px solid var(--encre); margin: 20px 0 26px; }
.etapes-merci li { counter-increment: e; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filet); color: var(--encre-2); }
.etapes-merci li::before { content: counter(e) "."; font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--bordeaux); line-height: 1.1; font-variant-numeric: lining-nums; }
.introuvable { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; padding: 72px 0 104px; }
.introuvable .diagramme { max-width: 440px; filter: drop-shadow(0 18px 22px rgba(28, 27, 24, .16)); }

/* ---------- pages légales ---------- */
.legal-grille { display: grid; grid-template-columns: 250px 1fr; gap: 64px; padding-top: 64px; padding-bottom: 104px; align-items: start; }
.legal-sommaire { position: sticky; top: 108px; font-size: 14.5px; }
.legal-sommaire ul { list-style: none; border-top: 1px solid var(--encre); }
.legal-sommaire li { border-bottom: 1px solid var(--filet); }
.legal-sommaire li a { display: block; padding: 10px 0; text-decoration: none; }
.legal-sommaire li a:hover { color: var(--bordeaux); }
.legal-aide { margin-top: 20px; font-size: 13.5px; color: var(--encre-3); }
.texte-legal { max-width: 760px; }
.texte-legal h1 { font-size: clamp(38px, 4.4vw, 56px); padding-bottom: 22px; border-bottom: 1px solid var(--encre); margin-bottom: 30px; }
.texte-legal h2 { font-size: 28px; margin-top: 1.6em; }
.texte-legal p, .texte-legal li { font-size: 16px; color: var(--encre-2); }
.texte-legal .surtitre { font-size: 12.5px; color: var(--laiton-fonce); }
.texte-legal ul, .texte-legal ol { padding-left: 22px; margin: 0 0 1em; }
.texte-legal li { margin-bottom: 6px; }
.texte-legal a { color: var(--bordeaux); }
.legal-mise-a-jour { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--filet); font-size: 14px !important; color: var(--encre-3) !important; }

/* ---------- pied de page ---------- */
.pied { margin-top: 0; background: var(--parchemin); border-top: 1px solid var(--encre); }
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 48px; }
.pied-marque p { font-size: 15px; color: var(--encre-2); max-width: 380px; margin: 18px 0 12px; }
.pied-mail a { font-weight: 600; color: var(--bordeaux); }
.pied-titre { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton-fonce); margin-bottom: 14px; }
.pied-col ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.pied-col a { text-decoration: none; }
.pied-col a:hover { text-decoration: underline; }
.pied-infos li { color: var(--encre-2); }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--filet-fort); font-size: 13px; color: var(--encre-3); }
.pied-bas p { margin: 0; }

/* ---------- apparition douce ---------- */
.js .apparait { transform: translateY(18px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .apparait.vu { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .apparait { transform: none; }
}

/* ---------- tablette ---------- */
@media (max-width: 1100px) {
  .etagere { grid-template-columns: repeat(3, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .ligne { grid-template-columns: 170px 1fr; }
  .ligne-achat { grid-column: 2; text-align: left; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: 22px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .entete-cta { margin-left: auto; }
  .une-grille, .methode-grille, .fiche-grille, .contenu-grille, .detail-grille, .contact-grille, .apropos-grille, .introuvable { grid-template-columns: 1fr; gap: 44px; }
  .une-visuel { max-width: 560px; margin: 0 auto; width: 100%; }
  .packs { grid-template-columns: 1fr; }
  .fiche-visuel, .apropos-figure { position: static; }
  .fiche-socle { max-width: 520px; margin: 9px auto; }
  .depart-grille { grid-template-columns: 1fr; }
  .depart + .depart { border-left: 0; border-top: 1px solid var(--encre); }
  .format-grille { grid-template-columns: 1fr; }
  .format-grille > div + div { border-left: 0; border-top: 1px solid var(--filet-fort); }
  .voisins { grid-template-columns: 1fr 1fr 1fr; }
  .etagere-pack .carte { width: calc((100% - 44px) / 3); }
  .legal-grille { grid-template-columns: 1fr; gap: 32px; }
  .legal-sommaire { position: static; order: 2; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .conteneur { padding-left: 20px; padding-right: 20px; }
  .entete-in { height: auto; flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .logo-symbole { width: 32px; height: 32px; }
  .logo-mot { font-size: 21px; letter-spacing: .22em; }
  .entete-cta { padding: 9px 14px; font-size: 13px; }
  .nav { display: flex; order: 3; width: 100%; margin: 10px 0 0; gap: 0; justify-content: space-between; border-top: 1px solid var(--filet); }
  .nav a { font-size: 12px; letter-spacing: .12em; padding: 10px 0 11px; }
  .section { padding: 72px 0; }
  .section-tete { grid-template-columns: 1fr; margin-bottom: 36px; }
  .section-tete .case { grid-row: auto; margin-bottom: 18px; }
  .section-tete p:last-child { font-size: 16.5px; }
  .une { padding: 36px 0 64px; }
  .chapo { font-size: 17px; }
  .une-actions { gap: 16px 20px; }
  .une-actions .bouton { width: 100%; }
  .une-faits { grid-template-columns: 1fr; }
  .une-faits li, .une-faits li + li { padding: 12px 0; border-left: 0; }
  .une-faits li + li { border-top: 1px solid var(--filet); }
  .une-faits li { display: flex; gap: 12px; align-items: baseline; }
  .une-faits strong { display: inline; font-size: 21px; min-width: 104px; }
  .etagere { grid-template-columns: 1fr; gap: 16px; }
  .carte { display: grid; grid-template-columns: 124px 1fr; border-top-width: 1px; border-left: 3px solid var(--accent, var(--encre)); }
  .carte-visuel { padding: 16px 8px 10px; border-bottom: 0; border-right: 1px solid var(--filet); display: grid; align-items: center; }
  .carte-corps { padding: 14px 14px 14px 16px; }
  .carte-titre { font-size: 21px; }
  .carte-sous { font-size: 13.5px; margin-bottom: 12px; }
  .prix { font-size: 24px; }
  .pack { box-shadow: 5px 5px 0 var(--parchemin); }
  .pack-visuel { padding: 20px 14px 12px; }
  .pack-corps { padding: 22px 20px 24px; }
  .methode-grille { gap: 36px; }
  .principes li { grid-template-columns: 42px 1fr; gap: 10px; }
  .feuille, .feuille tbody, .feuille tr, .feuille td { display: block; width: 100%; }
  .feuille thead { display: none; }
  .feuille tr { display: grid; grid-template-columns: 52px 1fr; border-bottom: 1px solid var(--encre); }
  .feuille tr:last-child { border-bottom: 0; }
  .feuille td { padding: 16px; border-bottom: 0; font-size: 15px; }
  .feuille td:first-child { grid-row: span 2; width: auto; padding: 18px 0; font-size: 26px; }
  .feuille td + td + td { border-left: 0; border-top: 1px dashed var(--filet-fort); padding-top: 12px; }
  .feuille td + td + td::before { content: "Glavrek · "; font-weight: 600; color: var(--feutre); }
  .feuille td strong { font-size: 21px; }
  .question summary { font-size: 21px; padding: 18px 0; }
  .reponse { padding-right: 0; }
  .appel { padding: 72px 0; }
  .appel-actions .bouton { width: 100%; }
  .tete-page { padding: 44px 0 40px; }
  .ligne { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; border-left-width: 3px; }
  .ligne-visuel { padding: 8px; }
  .ligne h3 { font-size: 23px; }
  .ligne-sous { font-size: 17px; }
  .ligne-resume { display: none; }
  .ligne-achat { grid-column: 1 / -1; justify-content: space-between; width: 100%; }
  .ligne-achat .prix { font-size: 30px; }
  .ligne-achat .bouton { padding: 12px 18px; }
  .fiche { padding-bottom: 72px; }
  .fiche-socle { padding: 28px 22px 20px; }
  .fiche-sous { font-size: 20px; }
  .fiche-prix .prix { font-size: 40px; }
  .achat { padding: 18px 16px 16px; box-shadow: 4px 4px 0 var(--parchemin); }
  .pourqui { padding: 22px 20px; }
  .avertissement p:last-child { font-size: 19px; }
  .voisins { grid-template-columns: 1fr; }
  .voisins .carte-visuel img { width: 92%; }
  .etagere-pack .carte { width: 100%; }
  .pack-ligne { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .pack-ligne img { max-width: 300px; margin: 0 auto; }
  .cta-fin { padding: 24px 20px; }
  .cta-fin .bouton { width: 100%; }
  .barre-achat { display: flex; }
  .produit .pied { padding-bottom: 76px; }
  .contact-carte { padding: 24px 20px; }
  .merci-statut { padding: 26px 20px; }
  .introuvable { padding: 44px 0 72px; gap: 36px; }
  .pied-grille { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 44px; }
  .pied-marque { grid-column: 1 / -1; }
  .legal-grille { padding-top: 40px; padding-bottom: 72px; }
  .texte-legal h2 { font-size: 24px; }
}
