/* ==========================================================================
   Info-Nana — feuille de style
   Esprit « atelier créatif / magazine lifestyle » : doux, élégant, aéré.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fbf7f2;
  --blanc: #fffdfb;
  --lin: #f4ece2;
  --lin-fonce: #e6d9ca;
  --poudre: #f3dfd9;
  --rose: #e5bdb5;
  --vieux-rose: #b76e79;
  --vieux-rose-fonce: #8f4d5a;   /* liens : contraste AA sur crème */
  --terracotta: #c0684a;
  --sauge: #8a9a7b;
  --sauge-clair: #e3e8da;
  --sauge-fonce: #56664a;
  --prune: #5e3a4a;
  --or: #b8925a;
  --texte: #3a2e2e;
  --texte-doux: #6b5e59;
  --trait: #eadfd3;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rayon: 14px;
  --rayon-petit: 9px;
  --ombre: 0 1px 2px rgba(94, 58, 74, .05), 0 8px 24px -12px rgba(94, 58, 74, .18);
  --ombre-forte: 0 2px 4px rgba(94, 58, 74, .06), 0 18px 40px -18px rgba(94, 58, 74, .28);
  --largeur: 1120px;
  --largeur-texte: 720px;

  /* Motif « maille » : petites mailles en V */
  --motif-maille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1.5c2 0 4.5 2.5 7 7M15 1.5c-2 0-4.5 2.5-7 7' fill='none' stroke='%23d9b3ab' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--vieux-rose-fonce); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--prune); }
:focus-visible { outline: 2px solid var(--vieux-rose); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--prune);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; color: var(--vieux-rose); font-weight: 400; }

.enveloppe { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--prune); color: #fff; padding: .6rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.surtitre {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.surtitre::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 5;
  background: rgba(251, 247, 242, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete__interieur {
  width: min(100% - 2rem, var(--largeur)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--prune); }
.logo__pelote {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--poudre); color: var(--vieux-rose-fonce);
}
.logo__pelote .icone { width: 22px; height: 22px; }
.logo__texte { font: italic 500 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.logo__tiret { color: var(--vieux-rose); margin: 0 .04em; }

.nav { display: flex; gap: .2rem; }
.nav a {
  font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--texte-doux);
  padding: .45rem .7rem; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--prune); background: var(--lin); }
.nav a[aria-current="page"] { color: var(--prune); background: var(--poudre); }
@media (max-width: 520px) {
  .logo__texte { font-size: 1.3rem; }
  .nav a { padding: .45rem .55rem; }
}

.ariane { font-size: .8125rem; color: var(--texte-doux); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.ariane a { color: var(--texte-doux); }

/* ---------- Boutons ---------- */
.bouton {
  --fond: var(--prune);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1px solid var(--fond); border-radius: 999px;
  background: var(--fond); color: #fff;
  font: 600 .9375rem/1.2 var(--sans); text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.bouton:hover { color: #fff; background: #4b2d3b; transform: translateY(-1px); box-shadow: var(--ombre); }
.bouton .icone { width: 20px; height: 20px; }
.bouton--doux { background: var(--blanc); color: var(--prune); border-color: var(--lin-fonce); }
.bouton--doux:hover { background: var(--poudre); color: var(--prune); border-color: var(--rose); }
.bouton--petit { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Accueil ---------- */
.heros { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.heros__grille { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .heros__grille { grid-template-columns: 1.15fr .85fr; } }
.heros__texte p { font-size: 1.15rem; color: var(--texte-doux); max-width: 34em; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.heros__fil { position: absolute; inset: auto -5% -10px -5%; width: 110%; height: 120px; color: var(--rose); opacity: .7; pointer-events: none; }
.heros__visuel { position: relative; max-width: min(420px, 82vw); justify-self: center; width: 100%; }
.heros__visuel svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(94, 58, 74, .18)); }
.heros__etiquette {
  position: absolute; left: -4%; bottom: -1.2rem;
  background: var(--blanc); border-radius: var(--rayon-petit); box-shadow: var(--ombre-forte);
  padding: .7rem .95rem; font-size: .8125rem; line-height: 1.35; color: var(--texte-doux);
}
.heros__etiquette strong { display: block; font: italic 500 1.05rem/1.2 var(--serif); color: var(--prune); }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--lin { background: var(--lin); }
.section__tete { max-width: 40rem; margin-bottom: 2.5rem; }
.section__tete p { color: var(--texte-doux); }

.cartes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.carte {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--ombre);
  text-decoration: none; color: var(--texte);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: var(--rose); color: var(--texte); }
.carte__icone {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--poudre); color: var(--vieux-rose-fonce); margin-bottom: .6rem;
}
.carte__icone .icone { width: 28px; height: 28px; }
.carte h3 { margin: 0; }
.carte p { margin: 0; color: var(--texte-doux); font-size: .975rem; line-height: 1.55; flex: 1; }
.carte__lien { margin-top: .9rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--vieux-rose-fonce); }
.carte__lien .icone { width: 18px; height: 18px; transition: transform .2s ease; }
a.carte:hover .carte__lien .icone { transform: translateX(3px); }
.carte--bientot { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--lin-fonce); }
.carte--bientot .carte__icone { background: var(--sauge-clair); color: var(--sauge-fonce); }
.badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font: 600 .6875rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .6rem; border-radius: 999px; background: var(--sauge-clair); color: var(--sauge-fonce);
}
.badge--nouveau { background: var(--poudre); color: var(--vieux-rose-fonce); }

.atouts { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.atout .icone { width: 30px; height: 30px; color: var(--terracotta); margin-bottom: .6rem; }
.atout h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.atout p { margin: 0; color: var(--texte-doux); font-size: .975rem; }

.citation {
  max-width: 44rem; margin: 0 auto; text-align: center;
  font: italic 400 clamp(1.35rem, 3.4vw, 1.9rem)/1.4 var(--serif); color: var(--prune);
}
.citation footer { margin-top: 1rem; font: 500 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }

/* ---------- Motif maille (séparateur) ---------- */
.maille { height: 10px; background: var(--motif-maille) repeat-x center / 16px 10px; opacity: .9; }

/* ---------- Pages outil ---------- */
.outil-tete { padding: clamp(1.5rem, 5vw, 3rem) 0 1.5rem; max-width: 46rem; }
.outil-tete p { font-size: 1.1rem; color: var(--texte-doux); margin: 0; }
.rassurance { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; padding: 0; list-style: none; font-size: .875rem; color: var(--texte-doux); }
.rassurance li { display: inline-flex; align-items: center; gap: .4rem; }
.rassurance .icone { width: 18px; height: 18px; color: var(--sauge); }

.atelier {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 6px);
  box-shadow: var(--ombre); padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}
.etape + .etape { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--trait); }
.etape__titre { display: flex; align-items: baseline; gap: .7rem; font-size: 1.35rem; margin-bottom: 1rem; }
.etape__num { font: italic 400 1rem/1 var(--serif); color: var(--vieux-rose); }

.depot {
  position: relative; display: grid; place-items: center; text-align: center; gap: .5rem;
  min-height: 210px; padding: 2rem 1.25rem;
  border: 1.5px dashed var(--rose); border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(243, 223, 217, .35), rgba(243, 223, 217, .12));
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.depot:hover, .depot.est-survole { border-color: var(--vieux-rose); background: rgba(243, 223, 217, .55); }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot .icone { width: 40px; height: 40px; color: var(--vieux-rose); }
.depot strong { font: 500 1.2rem/1.3 var(--serif); color: var(--prune); }
.depot span { font-size: .875rem; color: var(--texte-doux); }
.depot.a-image { min-height: 0; grid-template-columns: auto 1fr; text-align: left; padding: 1rem; justify-items: start; }
.depot__apercu { width: 88px; height: 88px; object-fit: cover; border-radius: var(--rayon-petit); box-shadow: var(--ombre); }
.depot:not(.a-image) .depot__apercu { display: none; }

.exemples { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .875rem; color: var(--texte-doux); }
.exemples button {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem .35rem .4rem;
  border: 1px solid var(--trait); border-radius: 999px; background: var(--creme); color: var(--texte);
  font: 500 .8125rem/1 var(--sans); cursor: pointer;
}
.exemples button:hover { border-color: var(--rose); background: var(--poudre); }
.exemples svg { width: 22px; height: 22px; border-radius: 50%; }

.reglages { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .reglages { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }
.champ label, .champ legend { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .9375rem; margin-bottom: .55rem; padding: 0; }
.champ output { font: italic 500 1.1rem/1 var(--serif); color: var(--vieux-rose-fonce); }
.champ small { display: block; margin-top: .4rem; color: var(--texte-doux); font-size: .8125rem; line-height: 1.45; }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--vieux-rose) var(--p, 50%), var(--lin-fonce) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--lin-fonce); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--vieux-rose); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--vieux-rose); box-shadow: 0 2px 6px rgba(94, 58, 74, .2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--vieux-rose); box-shadow: 0 2px 6px rgba(94, 58, 74, .2); }

.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--lin); }
.segments input { position: absolute; opacity: 0; pointer-events: none; }
.segments label { justify-content: center; margin: 0; padding: .6rem .5rem; border-radius: 999px; font-weight: 500; font-size: .875rem; color: var(--texte-doux); cursor: pointer; text-align: center; }
.segments input:checked + label { background: var(--blanc); color: var(--prune); box-shadow: 0 1px 3px rgba(94, 58, 74, .15); font-weight: 600; }
.segments input:focus-visible + label { outline: 2px solid var(--vieux-rose); }

.case { display: flex; align-items: flex-start; gap: .65rem; font-size: .9375rem; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--vieux-rose); flex: none; }

input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  border: 1px solid var(--lin-fonce); border-radius: var(--rayon-petit);
  background: var(--blanc); color: var(--texte); font: 400 1rem/1.5 var(--sans);
}
input:focus, textarea:focus { border-color: var(--vieux-rose); outline: 2px solid rgba(183, 110, 121, .25); outline-offset: 0; }

/* Résultat */
.resultat[hidden] { display: none; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.chiffre { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: .8rem 1rem; }
.chiffre b { display: block; font: 500 1.45rem/1.15 var(--serif); color: var(--prune); }
.chiffre span { font-size: .8125rem; color: var(--texte-doux); }

.visionneuse { position: relative; border-radius: var(--rayon); background: var(--lin); border: 1px solid var(--trait); }
.visionneuse__barre { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-bottom: 1px solid var(--trait); font-size: .8125rem; color: var(--texte-doux); }
.visionneuse__zoom { display: flex; gap: .3rem; }
.visionneuse__zoom button {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--lin-fonce); background: var(--blanc); color: var(--prune); cursor: pointer;
}
.visionneuse__zoom button:hover { background: var(--poudre); }
.visionneuse__zoom .icone { width: 18px; height: 18px; }
.visionneuse__zone { overflow: auto; max-height: 72vh; padding: 1rem; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.visionneuse__zone svg { display: block; margin: 0 auto; max-width: none; background: #fff; box-shadow: var(--ombre); }

.palette { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.palette li { display: flex; align-items: center; gap: .75rem; padding: .5rem .7rem .5rem .5rem; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--creme); }
.palette__pastille { position: relative; width: 42px; height: 42px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); display: grid; place-items: center; font: 600 .9rem/1 var(--sans); cursor: pointer; overflow: hidden; }
.palette__pastille input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.palette__infos { font-size: .8125rem; color: var(--texte-doux); line-height: 1.35; }
.palette__infos b { display: block; color: var(--texte); font-size: .9375rem; font-weight: 600; }

.bloc-titre { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 .9rem; }
.bloc-titre h3 { margin: 0; }
.bloc-titre p { margin: 0; font-size: .8125rem; color: var(--texte-doux); }

.patron { max-height: 420px; overflow: auto; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--creme); }
.patron ol { list-style: none; margin: 0; padding: .3rem; }
.patron li + li { border-top: 1px solid var(--trait); }
.patron button {
  display: grid; grid-template-columns: 6.2rem 1fr; gap: .75rem; width: 100%; padding: .55rem .6rem;
  border: 0; border-radius: 6px; background: none; text-align: left; font: 400 .875rem/1.5 var(--sans); color: var(--texte); cursor: pointer;
}
.patron button:hover { background: var(--lin); }
.patron button[aria-pressed="true"] { background: var(--poudre); }
.patron .rang { font-weight: 600; color: var(--prune); white-space: nowrap; }
.patron .phase { display: block; font-size: .75rem; color: var(--texte-doux); font-style: italic; }
.patron .pastille { display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .25em; vertical-align: baseline; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.telechargements { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.telechargements .bouton { flex-direction: column; gap: .1rem; min-height: 64px; border-radius: var(--rayon); }
.telechargements .bouton small { font-weight: 400; font-size: .75rem; opacity: .8; }
.note { font-size: .8125rem; color: var(--texte-doux); margin-top: .8rem; }

/* ---------- Article ---------- */
.article { max-width: var(--largeur-texte); margin: 0 auto; padding-bottom: 4rem; }
.article h2 { margin-top: 2.6rem; }
.article h3 { margin-top: 1.8rem; }
.article p, .article li { color: #463938; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .35rem; }
.article li::marker { color: var(--vieux-rose); }
.article .chapo { font-size: 1.2rem; line-height: 1.65; color: var(--texte); }
.article figure { margin: 2rem 0; }
.article figcaption { font-size: .8125rem; color: var(--texte-doux); text-align: center; margin-top: .6rem; font-style: italic; }
.encadre { background: var(--sauge-clair); border-radius: var(--rayon); padding: 1.2rem 1.4rem; margin: 1.8rem 0; }
.encadre p:last-child { margin-bottom: 0; }
.encadre strong { color: var(--sauge-fonce); }
.tableau { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 1.5rem 0; }
.tableau th, .tableau td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--trait); }
.tableau th { font-weight: 600; color: var(--prune); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }

.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font: 500 1.1rem/1.4 var(--serif); color: var(--prune);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--vieux-rose); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0; }

.maillage { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 1rem; }
.maillage .carte { padding: 1.1rem 1.2rem; }

/* ---------- Publicité ---------- */
.pub { position: relative; margin: 2.5rem auto; max-width: var(--largeur-texte); text-align: center; }
.pub__label { display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #9a8c86; margin-bottom: .4rem; }

/* ---------- Pages simples & formulaire ---------- */
.page-simple { max-width: var(--largeur-texte); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) 0 4rem; }
.page-simple h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.formulaire { display: grid; gap: 1.1rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--ombre); }
.formulaire label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .4rem; }
.formulaire textarea { min-height: 170px; resize: vertical; }
.piege { position: absolute; left: -9999px; }
.message { border-radius: var(--rayon-petit); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.message--ok { background: var(--sauge-clair); color: var(--sauge-fonce); }
.message--erreur { background: #f7e1dc; color: #8a3a2a; }
.message ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* ---------- Pied de page ---------- */
.pied { margin-top: 0; background: var(--lin); color: var(--texte-doux); font-size: .9375rem; }
.pied__interieur { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
@media (min-width: 760px) { .pied__interieur { grid-template-columns: 1.6fr 1fr 1fr; } }
.pied__marque p { max-width: 26rem; margin: .9rem 0 0; }
.logo--pied .logo__pelote { background: var(--blanc); }
.pied__titre { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; }
.pied__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied__liste a, .pied__liste .lien-bouton { color: var(--texte); text-decoration: none; font-size: .9375rem; }
.pied__liste a:hover, .pied__liste .lien-bouton:hover { color: var(--vieux-rose-fonce); text-decoration: underline; }
.pied__bientot { color: #8d807a; }
.pied__bientot small { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; margin-left: .3rem; color: var(--sauge-fonce); }
.pied__copyright { border-top: 1px solid var(--lin-fonce); padding: 1.2rem 0 1.6rem; margin: 0 auto; font-size: .8125rem; }

/* ---------- 404 ---------- */
.introuvable { text-align: center; padding: 5rem 0; }
.introuvable p { color: var(--texte-doux); }

/* Cases à cocher dans un bloc de réglages */
.champ .case { justify-content: flex-start; align-items: flex-start; font-weight: 500; margin-bottom: .7rem; }
.champ .case:last-child { margin-bottom: 0; }

/* Patron lisible pour les débutantes */
.patron .rang small { display: block; font-weight: 400; font-size: .75rem; color: var(--texte-doux); font-style: italic; }
.segs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.seg { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 500; }
.seg__c { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: 6px; font-weight: 700; font-size: .8rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.patron .phase { margin-top: .25rem; font-style: normal; }
.aide { background: var(--sauge-clair); border-radius: var(--rayon-petit); padding: .2rem 1.1rem; margin-bottom: 1rem; font-size: .9rem; }
.aide summary { cursor: pointer; padding: .7rem 0; font-weight: 600; color: var(--sauge-fonce); }
.aide ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.aide li { margin-bottom: .4rem; }
.aide .seg__c { min-width: 1.4rem; height: 1.4rem; vertical-align: middle; }

/* ---------- Leçons : fiche, pas à pas, parcours ---------- */
.fiche { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.fiche li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: var(--blanc); border: 1px solid var(--trait); font-size: .875rem; color: var(--texte); }
.fiche span { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.fiche svg { color: var(--prune); }

.pas-a-pas { background: var(--blanc); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 6px); box-shadow: var(--ombre); padding: clamp(1rem, 3vw, 2rem); margin-bottom: 2.5rem; }
.pas-a-pas__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.pas-a-pas__etape { display: grid; gap: 1rem 2rem; align-items: center; }
@media (min-width: 860px) { .pas-a-pas__etape { grid-template-columns: 1.25fr 1fr; } }
.pas-a-pas__figure { margin: 0; border-radius: var(--rayon); overflow: hidden; background: #fffdfb; border: 1px solid var(--trait); }
.pas-a-pas__figure img { display: block; width: 100%; height: auto; }
.pas-a-pas__num { margin: 0 0 .4rem; font: italic 500 1rem/1 var(--serif); color: var(--vieux-rose); }
.pas-a-pas__num span { color: var(--texte-doux); font-size: .875rem; }
.pas-a-pas__texte h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-bottom: .4rem; }
.pas-a-pas__texte p:last-child { margin: 0; color: #463938; }
/* Mode diaporama (activé par JavaScript) */
.pas-a-pas.est-diaporama .pas-a-pas__liste { display: block; }
.pas-a-pas.est-diaporama .pas-a-pas__etape { display: none; }
.pas-a-pas.est-diaporama .pas-a-pas__etape.est-active { display: grid; animation: apparition .35s ease; }
@keyframes apparition { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pas-a-pas__commandes { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.pas-a-pas__points { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.pas-a-pas__points button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lin-fonce); background: var(--blanc); color: var(--texte-doux); font: 600 .8125rem/1 var(--sans); cursor: pointer; }
.pas-a-pas__points button[aria-current="step"] { background: var(--prune); border-color: var(--prune); color: #fff; }
.pas-a-pas__commandes .bouton { min-height: 44px; padding: .55rem 1rem; }
.pas-a-pas__commandes .icone { width: 18px; height: 18px; }
.pas-a-pas__prec .icone { transform: rotate(180deg); }
@media (max-width: 520px) {
  .pas-a-pas__commandes .bouton span { display: none; }
  .pas-a-pas__points { gap: .3rem; flex-wrap: nowrap; }
  .pas-a-pas__points button { width: 30px; height: 30px; }
}

.parcours { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); counter-reset: none; }
.etape-parcours { flex-direction: row; gap: 1.1rem; align-items: flex-start; height: 100%; }
.etape-parcours__num { font: italic 400 2rem/1 var(--serif); color: var(--vieux-rose); min-width: 2.6rem; }
.carte--bientot .etape-parcours__num { color: #b9aaa3; }
.etape-parcours h2 { font-size: 1.2rem; margin: .1rem 0 .3rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.etape-parcours p { margin: 0; color: var(--texte-doux); font-size: .95rem; line-height: 1.5; }
.badge--en-ligne { position: static; font-size: .625rem; padding: .3rem .5rem; }

.suite { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 3rem 0 1.5rem; }
.suite .carte { padding: 1.1rem 1.3rem; }
.suite small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.suite h3 { margin: .2rem 0 0; }
.suite .carte:last-child { text-align: right; }

.apprendre-accueil { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .apprendre-accueil { grid-template-columns: 1fr 1fr; } }
.apprendre-accueil img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre-forte); border: 1px solid var(--trait); }
.apprendre-accueil p:not(.surtitre) { color: var(--texte-doux); }
.apprendre-accueil .bouton { margin: .3rem .3rem 0 0; }

.epingle { max-width: 380px; margin-inline: auto; }
.epingle img { border-radius: var(--rayon); box-shadow: var(--ombre-forte); }

/* ==========================================================================
   Perles (novembre 2026) : générateur de grilles, légende, choix des perles
   ========================================================================== */
:root {
  /* Séparateur : une rangée de petites perles sur un fil */
  --motif-maille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h18' stroke='%23e2cbc2' stroke-width='.8'/%3E%3Crect x='4.5' y='1.5' width='9' height='7' rx='2.4' fill='%23ecc9c3'/%3E%3Crect x='6.4' y='2.7' width='3' height='1.4' rx='.7' fill='%23fff' fill-opacity='.7'/%3E%3C/svg%3E");
}
.maille, .rangee-perles { height: 10px; background: var(--motif-maille) repeat-x center / 18px 10px; opacity: .95; }

.nav__long { display: none; }
@media (min-width: 760px) { .nav__long { display: inline; } }

.heros__visuel--boucle { max-width: min(300px, 70vw); }
.heros__visuel--boucle svg { filter: drop-shadow(0 18px 24px rgba(94, 58, 74, .2)); }
.heros__visuel--boucle .heros__etiquette { left: -12%; bottom: 8%; }

.section--article { padding-top: 0; }
.carte__icone--petite { width: 42px; height: 42px; margin-bottom: .3rem; }
.carte__icone--petite .icone { width: 24px; height: 24px; }
.carte__lien--doux { color: var(--sauge-fonce); font-weight: 500; }

/* Réglages */
.champ--large { grid-column: 1 / -1; }
.segments--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .segments--3 label { font-size: .8125rem; padding-inline: .2rem; } }
.note-champ { display: block; font-size: .75rem; font-weight: 400; color: var(--texte-doux); }
.pivoter { margin-top: .9rem; }
.pivoter .icone { width: 18px; height: 18px; }
.technique-info { margin: -.3rem 0 1rem; font-size: .875rem; color: var(--texte-doux); }
.technique-info strong { color: var(--prune); }
.reglages--serres { gap: 1rem 1.5rem; margin-top: .8rem; }
.reglages-quantites { margin-top: .9rem; }
.reglages-quantites summary, .aide summary { cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--vieux-rose-fonce); }

/* Visionneuse : fond lin, perles sur papier crème */
.visionneuse__zone--perles svg { background: var(--blanc); border-radius: var(--rayon-petit); }

/* Pastille « perle de verre » */
.perle-pastille {
  --c: #d6979d;
  display: inline-grid; place-items: center; width: 46px; height: 38px; flex: none;
  border-radius: 11px; font: 700 .875rem/1 var(--sans);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0 18%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(0deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0) 35%),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(43, 26, 34, .14), 0 1px 2px rgba(94, 58, 74, .12);
}
.perle-pastille--petite { width: 30px; height: 25px; border-radius: 8px; }

/* Légende des perles */
.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.legende li { display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--creme); }
.legende__perle { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; }
.legende__infos { flex: 1; min-width: 0; font-size: .8125rem; line-height: 1.4; color: var(--texte-doux); }
.legende__infos b { color: var(--texte); font-size: .9375rem; }
.legende__nom { display: inline; }
.legende__qte { display: block; margin-top: .1rem; }
.legende__totaux { margin: .8rem 0 0; font-size: .875rem; font-weight: 600; color: var(--prune); }
.bouton--mini { min-height: 34px; padding: .35rem .75rem; font-size: .8125rem; flex: none; }
@media (max-width: 420px) { .legende .bouton--mini { display: none; } }

/* Instructions à cocher */
.patron--perles { max-height: 460px; }
.patron--perles li { display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; }
.patron__coche { display: grid; place-items: center; height: 100%; cursor: pointer; }
.patron__coche input { width: 20px; height: 20px; margin: 0; accent-color: var(--sauge-fonce); cursor: pointer; }
.patron--perles button { grid-template-columns: 7rem 1fr; padding-left: .2rem; }
.patron--perles li.est-fait button { opacity: .5; }
.patron--perles li.est-fait .rang { text-decoration: line-through; text-decoration-color: var(--sauge); }

/* Choix d'une perle (fenêtre) */
.choix {
  width: min(560px, calc(100% - 1.5rem)); max-height: min(86vh, 720px); padding: 1.2rem;
  border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 4px);
  background: var(--blanc); color: var(--texte); box-shadow: var(--ombre-forte);
}
.choix[open] { display: flex; flex-direction: column; gap: .7rem; }
.choix::backdrop { background: rgba(58, 46, 46, .35); backdrop-filter: blur(2px); }
.choix__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.choix__tete h2 { font-size: 1.3rem; margin: 0; }
.choix__fermer { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lin-fonce); background: var(--blanc); color: var(--prune); cursor: pointer; flex: none; }
.choix__fermer .icone { width: 18px; height: 18px; }
.choix input[type="search"] { width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1px solid var(--lin-fonce); border-radius: var(--rayon-petit); font: 400 1rem/1.4 var(--sans); background: var(--creme); }
.choix .note { margin: 0; }
.choix__liste { list-style: none; margin: 0; padding: .2rem; overflow: auto; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choix__liste button {
  display: flex; align-items: center; gap: .55rem; width: 100%; padding: .45rem .5rem;
  border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--creme);
  text-align: left; font: 400 .75rem/1.25 var(--sans); color: var(--texte-doux); cursor: pointer;
}
.choix__liste button:hover { border-color: var(--rose); background: var(--poudre); }
.choix__liste button[aria-current="true"] { border-color: var(--vieux-rose); box-shadow: 0 0 0 2px rgba(183, 110, 121, .25); }
.choix__liste b { display: block; color: var(--texte); font-size: .8125rem; }
.choix__liste small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92px; }
.choix__vide { padding: 1rem; color: var(--texte-doux); }

/* En-tête sur petit téléphone : logo sur une ligne, navigation compacte */
.logo__texte { white-space: nowrap; }
@media (max-width: 440px) {
  .logo__pelote { display: none; }
  .nav { gap: 0; }
  .nav a { padding: .4rem .45rem; font-size: .8125rem; }
}
