/* ════════════════════════════════════════════════════════════════════
   QRFree — feuille de style commune à tout le site (« éditorial papier »)
   ────────────────────────────────────────────────────────────────────
   1. Variables          6. Boutons, champs, cartes     11. Accueil
   2. Base               7. Sections et surtitres       12. Générateur (accueil)
   3. Typographie        8. Ligne de chiffres           13. Tarifs
   4. Navigation         9. FAQ, encadrés, citations    14. Espace client
   5. Pied de page      10. Apparitions au défilement   15. Articles et guides
                                                        16. Pages légales
   ════════════════════════════════════════════════════════════════════ */

/* ─── 1. Variables ─────────────────────────────────────────────────── */
:root {
  --paper: #f5f2eb;
  --cream: #ede9df;
  --ink: #0d0d0d;
  --accent: #e8440a;          /* grands titres, filets, décor */
  --accent-strong: #cf3c08;   /* fond des boutons orange (texte blanc lisible) */
  --accent-text: #bf3a0a;     /* petits textes orange (contraste AA sur papier) */
  --accent2: #1a6bff;
  --muted: #6b6457;
  --line: rgba(13, 13, 13, .12);
  --line-strong: rgba(13, 13, 13, .25);
  --card: #ffffff;
  --ok: #15803d;
  --danger: #c2280a;
  --muted-dark: var(--muted);

  --f-display: 'Syne', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'DM Sans', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --w: 1080px;
  --pad: 1.5rem;

  /* anciens noms encore utilisés par certains scripts ou styles en ligne */
  --border: var(--line);
  --border-strong: var(--line-strong);
  --font-display: var(--f-display);
  --font-body: var(--f-body);
  --font-mono: var(--f-mono);
}

/* ─── 2. Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { width: 100%; }
/* « clip » et non « hidden » : hidden casserait position: sticky (navigation, sommaire) */
body { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* les vagues d'origine, deux fois plus discrètes */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='200'%3E%3Cpath d='M0 100 C100 60 200 140 400 100 C600 60 700 140 800 100' stroke='rgba(13,13,13,0.06)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0 130 C100 90 200 170 400 130 C600 90 700 170 800 130' stroke='rgba(13,13,13,0.035)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 70 C100 30 200 110 400 70 C600 30 700 110 800 70' stroke='rgba(13,13,13,0.035)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 800px 200px;
}
body > main, body > .page-wrap, body > .page { flex: 1 0 auto; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(232, 68, 10, .18); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
main { width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
/* liens dans le texte courant (sans classe) : orange lisible */
:where(main) a:where(:not([class])) { color: var(--accent-text); text-underline-offset: 3px; }

/* ─── 3. Typographie ───────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-text);
}
.kicker::after { content: ''; width: 2.2rem; height: 1px; background: currentColor; opacity: .5; }
.kicker.no-rule::after { display: none; }
.display {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: .98; letter-spacing: -.045em;
}
.serif, .display em, .sec-title em, h1 em, h2 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--accent);
}
.display .serif, .display em { font-size: 1.08em; }
.lede { font-size: 18px; color: var(--muted); max-width: 36rem; font-weight: 300; line-height: 1.55; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }

/* ─── 4. Navigation ────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 242, 235, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 var(--pad);
  height: 64px; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px;
  margin-right: auto;
}
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none; position: relative;
  transition: color .15s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.nav-pro {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); padding: 6px 14px; border-radius: 100px;
  transition: background .15s, color .15s;
}
.nav-pro:hover { background: var(--ink); color: #fff; }
.nav-badge {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; background: var(--accent-strong); color: #fff;
  padding: 3px 9px; border-radius: 100px;
}
.nav-email { font-family: var(--f-mono); font-size: 12px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link-btn { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--muted); }
.nav-link-btn:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) {
  .site-nav .nav-inner { height: 58px; gap: 1rem; padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-email { display: none; }
}

/* ─── 5. Pied de page ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: #d8d2c2; margin-top: 5rem;
  padding: 4.5rem 0 1.75rem; font-size: 14px;
}
.site-footer a { color: #d8d2c2; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-logo {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.75rem); line-height: .9; letter-spacing: -.05em; color: #fff !important;
}
.footer-logo span { color: var(--accent); }
.footer-brand p { margin-top: 1rem; max-width: 22rem; color: #a39d8f; line-height: 1.55; }
.footer-col .kicker { color: #f0703f; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--f-mono); font-size: 12px; color: #a39d8f;
}
@media (max-width: 760px) {
  .site-footer { padding-top: 3.25rem; margin-top: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─── 6. Boutons, champs, cartes ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: 100px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .12s, background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-accent { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: #b83407; border-color: #b83407; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-primary:not(:disabled):hover { background: #b83407; border-color: #b83407; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:not(:disabled):hover { border-color: var(--ink); }
/* petit bouton « pastille » (actions des lignes du tableau de bord) */
.btn-sm {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0; padding: 7px 13px;
  background: #fff; color: var(--ink); border-color: var(--line-strong);
}
.btn-sm:not(:disabled):hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; }
.btn-sm.danger:not(:disabled):hover { background: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:not(:disabled):hover { background: #a0230a; border-color: #a0230a; }

.field { display: block; margin-bottom: 1.1rem; }
.field > span, .field-label {
  display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px;
}
.input, .field input, .field textarea, .field select {
  width: 100%; font-family: var(--f-mono); font-size: 14px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; outline: none; transition: border-color .15s, background .15s;
}
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #fff; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pill {
  display: inline-block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 100px;
  background: var(--ink); color: #fff;
}
.pill-new { background: var(--accent2); }
.pill-line { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

/* ─── 7. Sections et surtitres ─────────────────────────────────────── */
.section { padding-top: 5.5rem; }
.section-head { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-bottom: 2.5rem; max-width: 52rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.035em;
}
.sec-title em { font-size: 1.06em; }
.section-head p { color: var(--muted); font-size: 16.5px; max-width: 36rem; }
.rule { border: 0; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .section { padding-top: 4rem; } :root { --pad: 1.1rem; } }

/* ─── 8. Ligne de chiffres ─────────────────────────────────────────── */
.figures {
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.figure { padding: 1.1rem 1.25rem; border-left: 1px solid var(--line); text-align: left; }
.figure:first-child { border-left: 0; }
.fig-num { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.04em; line-height: 1.1; }
.fig-lbl { display: block; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .2rem; }
@media (max-width: 560px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures[style*="--n:3"] .figure:nth-child(3), .figures[style*="--n: 3"] .figure:nth-child(3) { grid-column: 1 / -1; }
}

/* ─── 9. FAQ, encadrés, citations ──────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; padding: 1.3rem 0;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--f-mono); font-weight: 400; font-size: 22px; line-height: 1;
  color: var(--accent); flex-shrink: 0; transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--accent-text); }
.faq .faq-a { padding: 0 3rem 1.4rem 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq .faq-a p + p { margin-top: .7rem; }

.retenir {
  background: var(--cream); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.35rem; margin: 1.75rem 0;
}
.retenir::before {
  content: 'À retenir'; display: block; font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: .35rem;
}
blockquote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 2px solid var(--accent);
  font-family: var(--f-serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--ink);
}

/* ─── 10. Apparitions au défilement ────────────────────────────────── */
/* masqué seulement si JavaScript tourne (classe « js » posée dans <head>) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── 11. Accueil ──────────────────────────────────────────────────── */
.home-hero { padding-top: 5.5rem; text-align: center; }
.home-hero .kicker { justify-content: center; }
.home-hero .kicker::before { content: ''; width: 2.2rem; height: 1px; background: currentColor; opacity: .5; }
.home-hero h1 { margin: 1.4rem auto 1.4rem; max-width: 15ch; }
.home-hero .lede { margin: 0 auto; }
.hero-links { font-size: 13.5px; color: var(--muted); margin: 1rem 0 0; }
.hero-links a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.hero-links a:hover { text-decoration-color: var(--accent); }
.quick-form {
  display: flex; gap: 6px; max-width: 34rem; margin: 2.25rem auto 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px;
  box-shadow: 0 1px 0 rgba(13, 13, 13, .04), 0 18px 40px -24px rgba(13, 13, 13, .25);
  transition: border-color .15s;
}
.quick-form:focus-within { border-color: var(--ink); }
.quick-form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: var(--f-mono); font-size: 14px; padding: 0 .5rem 0 1.1rem; color: var(--ink);
}
.quick-form .btn { flex-shrink: 0; }
.home-hero .figures { margin: 3.5rem auto 0; max-width: 46rem; }
.home-hero .figure { text-align: center; }
@media (max-width: 560px) {
  .home-hero { padding-top: 3.25rem; }
  .home-hero .kicker::before, .home-hero .kicker::after { display: none; }
  .quick-form { border-radius: 18px; flex-direction: column; padding: 8px; }
  .quick-form input { padding: .7rem .6rem; }
}

/* encart QRFree Pro */
.pro-strip { margin-top: 1.5rem; }
.pro-strip a {
  display: flex; align-items: center; gap: .9rem 1.25rem; flex-wrap: wrap;
  padding: 1rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); text-decoration: none; color: var(--ink); font-size: 14.5px;
  transition: border-color .15s, transform .15s;
}
.pro-strip a:hover { border-color: var(--ink); }
.pro-strip .new { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--accent2); color: #fff; padding: 3px 9px; border-radius: 100px; }
.pro-strip .txt { flex: 1 1 18rem; }
.pro-strip .more { font-family: var(--f-display); font-weight: 700; white-space: nowrap; }
.pro-strip a:hover .more { color: var(--accent-text); }

/* mode d'emploi en 3 temps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { padding: 1.75rem 1.75rem 0 0; }
.step + .step { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.step-num { font-family: var(--f-serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--accent); }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin: .8rem 0 .6rem; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.step strong { color: var(--ink); font-weight: 500; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.5rem 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* atouts : grille à filets */
.features-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.feature-item { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.feature-item:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.feature-icon { font-size: 22px; margin-bottom: .6rem; }
.feature-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin-bottom: .35rem; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 800px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feature-item:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-item:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* tableau comparatif */
.compare { margin-top: 3.5rem; }
.compare h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.compare > p { color: var(--muted); margin: .5rem 0 1.5rem; max-width: 40rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.table th {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line-strong);
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .c { text-align: center; }
.table th.us, .table td.us { background: rgba(232, 68, 10, .05); }
.table th.us { color: var(--accent-text); }
.table td.us { color: var(--ok); font-weight: 500; }
.table td.them { color: var(--muted); }

/* usages : grille de cartes vers les guides */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.usage-card {
  display: block; background: var(--card); padding: 1.35rem 1.4rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.usage-card:hover { background: #fffaf5; }
.usage-ico { font-size: 22px; display: block; margin-bottom: .5rem; }
.usage-tag { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.usage-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; margin: .3rem 0 .35rem; }
.usage-card h3::after { content: ' →'; color: var(--accent); opacity: 0; transition: opacity .15s; }
.usage-card:hover h3::after { opacity: 1; }
.usage-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* contextes d'utilisation */
.contexts-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 3rem; margin: 4.5rem 0 2rem; align-items: end; }
.contexts-intro h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.05; }
.contexts-intro p { color: var(--muted); }
.contexts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.context { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.context .ico { font-size: 20px; }
.context h4 { font-family: var(--f-display); font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; margin: .35rem 0 .35rem; }
.context p { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 800px) {
  .contexts-intro { grid-template-columns: 1fr; }
  .contexts { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
}
@media (max-width: 520px) { .contexts { grid-template-columns: 1fr; } }

/* FAQ de l'accueil : titre à gauche, questions à droite */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 2rem 4rem; align-items: start; }
.faq-layout .section-head { position: sticky; top: 96px; margin-bottom: 0; }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
}

/* nos autres outils */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tool {
  position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); transition: border-color .15s;
}
a.tool:hover { border-color: var(--ink); }
.tool-ico { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-name { font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.tool p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: .3rem 0 .6rem; }
.tool-cta { font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.tool-soon { display: inline-block; margin-bottom: .45rem; font-family: var(--f-mono); font-size: 10px; padding: 2px 8px; border-radius: 100px; background: var(--cream); color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

/* ─── 12. Générateur de l'accueil (classes et id d'origine conservés) ─ */
.generator-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  min-height: 600px; max-width: 100%;
  box-shadow: 0 30px 60px -40px rgba(13, 13, 13, .3);
}
.left-panel { padding: 2rem; border-right: 1px solid var(--line); min-width: 0; }
.type-tabs { display: flex; gap: 6px; margin-bottom: 1.75rem; flex-wrap: wrap; }
.type-tab {
  font-family: var(--f-body); font-size: 13px; font-weight: 500; padding: 7px 15px;
  border-radius: 100px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 6px;
}
.type-tab:hover { border-color: var(--ink); color: var(--ink); }
.type-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.type-tab svg { width: 14px; height: 14px; }
.field-group { margin-bottom: 1.25rem; }
.field-group label {
  display: block; font-size: 11px; font-weight: 500; font-family: var(--f-mono); color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.field-group input, .field-group textarea, .field-group select {
  width: 100%; max-width: 100%; font-family: var(--f-mono); font-size: 13.5px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; outline: none; transition: border-color .15s, background .15s; resize: vertical;
}
.field-group input:focus, .field-group textarea:focus, .field-group select:focus { border-color: var(--accent); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
dialog .section-title, .left-panel .section-title {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); margin: 1.6rem 0 .9rem;
  display: flex; align-items: center; gap: 10px;
}
dialog .section-title::after, .left-panel .section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.option-box label {
  font-size: 11px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 8px;
}
.color-pick { display: flex; align-items: center; gap: 8px; }
.color-pick input[type=color] { width: 34px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px; cursor: pointer; background: #fff; }
.color-pick span { font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
.size-display { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
input[type=range] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.logo-upload-box {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 14px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; position: relative;
}
.logo-upload-box:hover { border-color: var(--accent); background: rgba(232, 68, 10, .03); }
.logo-upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-upload-box .up-icon { font-size: 20px; margin-bottom: 4px; }
.logo-upload-box p { font-size: 12.5px; color: var(--muted); margin: 0; }
.logo-preview { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.logo-preview img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); }
.remove-logo { font-size: 11px; color: var(--accent-text); cursor: pointer; text-decoration: underline; font-family: var(--f-mono); }
.generate-btn {
  width: 100%; margin-top: 1.75rem; padding: 15px; font-family: var(--f-display); font-weight: 800;
  font-size: 15.5px; letter-spacing: .01em; color: #fff; background: var(--accent-strong); border: none;
  border-radius: 100px; cursor: pointer; transition: transform .1s, background .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.generate-btn:hover { background: #b83407; }
.generate-btn:active { transform: scale(.99); }
.right-panel { padding: 2rem; display: flex; flex-direction: column; align-items: center; min-width: 0; background: #fcfbf8; }
.preview-label {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink); align-self: flex-start; margin-bottom: 1rem;
}
.qr-stage {
  width: 100%; flex: 1; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; min-height: 300px; position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(13, 13, 13, .07) 1px, transparent 1px); background-size: 14px 14px;
}
.qr-stage-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.qr-stage-empty .big-icon { font-size: 48px; opacity: .3; }
.qr-stage-empty p { font-size: 13px; font-family: var(--f-mono); text-align: center; max-width: 180px; }
#qr-render { display: none; position: relative; }
#qr-render canvas, #qr-render img { border-radius: 8px; display: block; box-shadow: 0 12px 30px -18px rgba(13, 13, 13, .45); }
.qr-error { font-size: 13px; font-family: var(--f-mono); color: var(--accent-text); text-align: center; padding: 1rem; display: none; }
.dl-section { width: 100%; margin-top: 1.25rem; }
.dl-section label, .history-section label {
  font-size: 11px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 8px;
}
.dl-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dl-btn {
  padding: 10px 6px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; background: #fff;
  color: var(--ink); border: 1px solid var(--line-strong); border-radius: 100px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; text-align: center;
}
.dl-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dl-btn:disabled { opacity: .35; cursor: not-allowed; }
.history-section { width: 100%; margin-top: 1.5rem; }
.history-section label { display: flex; align-items: center; justify-content: space-between; }
.clear-hist { font-size: 10px; cursor: pointer; color: var(--accent-text); text-decoration: underline; }
.history-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.history-empty { font-size: 12px; font-family: var(--f-mono); color: var(--muted); text-align: center; padding: 10px 0; }
.hist-item {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; transition: border-color .15s; font-size: 12px;
}
.hist-item:hover { border-color: var(--ink); }
.hist-type { font-family: var(--f-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 100px; flex-shrink: 0; }
.hist-val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.template-grid {
  display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: .25rem; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.template-grid::-webkit-scrollbar { display: none; }
.tpl-card {
  flex: 0 0 auto; width: 62px; cursor: pointer; border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: border-color .15s, background .15s; background: var(--cream);
}
.tpl-card:hover { border-color: var(--ink); }
.tpl-card.active { border-color: var(--accent); background: rgba(232, 68, 10, .06); }
.tpl-thumb { width: 36px; height: 36px; border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tpl-thumb svg { width: 100%; height: 100%; }
.tpl-name { font-family: var(--f-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; line-height: 1.2; }
.tpl-card.active .tpl-name { color: var(--accent-text); }
.tpl-label-wrap { margin-top: 8px; display: none; }
.tpl-label-wrap.visible { display: block; }
@media (max-width: 760px) {
  .generator-card { grid-template-columns: 1fr; min-height: unset; }
  .left-panel { padding: 1.25rem 1rem; border-right: none; border-bottom: 1px solid var(--line); width: 100%; }
  .right-panel { padding: 1.25rem 1rem; width: 100%; }
  .options-grid { grid-template-columns: 1fr; }
  .option-box { padding: 10px 12px; max-width: 100%; }
  .type-tabs { gap: 4px; }
  .type-tab { font-size: 12px; padding: 6px 10px; }
  .dl-btns { gap: 6px; }
  .dl-btn { font-size: 11px; padding: 8px 4px; }
  .qr-stage { min-height: 220px; }
}


/* ─── 13. Tarifs ───────────────────────────────────────────────────── */
.t-hero { padding-top: 5rem; text-align: center; }
.t-hero .kicker { justify-content: center; }
.t-hero .kicker::before { content: ''; width: 2.2rem; height: 1px; background: currentColor; opacity: .5; }
.t-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); max-width: 16ch; margin: 1.3rem auto 1.3rem; }
.t-hero .lede { margin: 0 auto; }
.billing-switch { display: flex; justify-content: center; align-items: center; gap: .75rem; margin: 2.25rem 0 2.5rem; flex-wrap: wrap; }
.save { font-family: var(--f-mono); font-size: 11px; color: #116a32; background: #e9f5ee; border: 1px solid rgba(21, 128, 61, .25); padding: 3px 10px; border-radius: 100px; }
.price-block {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--card); max-width: 920px; margin: 0 auto;
}
.plan { padding: 2.25rem; display: flex; flex-direction: column; }
.plan.pro { background: var(--ink); color: #f5f2eb; }
.plan-name { font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; display: flex; align-items: center; gap: .75rem; }
.plan .ribbon { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; background: var(--accent-strong); color: #fff; padding: 3px 9px; border-radius: 100px; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; letter-spacing: -.05em; line-height: 1; margin: 1rem 0 .4rem; }
.price small { font-family: var(--f-body); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.plan.pro .price small, .plan.pro .price-note { color: #b5ae9f; }
.price-note { font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.plan ul { list-style: none; margin: 1.6rem 0 1.8rem; display: grid; gap: .7rem; flex: 1; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.plan.pro ul { border-top-color: rgba(255, 255, 255, .14); }
.plan li { display: flex; gap: 10px; font-size: 14.5px; }
.plan li i { font-style: normal; font-weight: 700; color: var(--ok); flex-shrink: 0; }
.plan.pro li i { color: #f0703f; }
.plan li.no, .plan li.no i { color: var(--muted); }
.plan.pro strong { color: #fff; }
.legal-note { text-align: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin: 1.25rem 0 0; }
.legal-note.left { text-align: left; }
.promise {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem 4rem; align-items: start;
  border-top: 1px solid var(--ink); padding-top: 2.5rem;
}
.promise h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; margin: .9rem 0 1rem; }
.promise h2::before { content: '«\00a0'; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.promise h2::after { content: '\00a0»'; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.promise-quote > p:last-child { color: var(--muted); }
.promise ol { list-style: none; counter-reset: step; }
.promise li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: .75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.promise li:first-child { padding-top: 0; }
.promise li::before { content: counter(step); font-family: var(--f-serif); font-style: italic; font-size: 2.4rem; line-height: .9; color: var(--accent); }
.plans-table td.us { color: var(--ok); font-weight: 500; }
.plans-table td.us.plain { color: var(--ink); font-weight: 400; }
.plans-table td.yes { color: var(--ok); }
.bottom-cta { text-align: center; padding: 5.5rem 0 1rem; }
.bottom-cta .sec-title { margin-bottom: .75rem; }
.bottom-cta > p:not(.legal-note) { color: var(--muted); margin-bottom: 1.6rem; }
@media (max-width: 760px) {
  .t-hero { padding-top: 3.25rem; }
  .t-hero .kicker::before, .t-hero .kicker::after { display: none; }
  .price-block, .promise { grid-template-columns: 1fr; }
  .plan { padding: 1.6rem; }
  .price { font-size: 2.7rem; }
  .plans-table { font-size: 13px; }
  .plans-table th, .plans-table td { padding: .7rem .6rem; }
}

/* ─── 14. Espace client (connexion, tableau de bord, fenêtres) ──────── */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-strong); border-radius: 100px; padding: 3px; }
.seg button {
  border: none; background: none; font-family: var(--f-mono); font-size: 12px; padding: 7px 16px; border-radius: 100px;
  cursor: pointer; color: var(--muted);
}
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.field label, .lbl {
  display: block; font-size: 11px; font-weight: 500; font-family: var(--f-mono); color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.field input:focus { box-shadow: 0 0 0 3px rgba(232, 68, 10, .12); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 8px; font-family: var(--f-mono); }
.link-btn {
  background: none; border: none; color: var(--accent-text); font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-family: var(--f-mono);
}
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* connexion */
.auth-wrap { max-width: 480px; margin: 0 auto; padding: 5rem var(--pad) 2rem; }
.auth-wrap h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: -.045em; line-height: 1; margin: 1.1rem 0 .9rem; }
.auth-wrap .sub { color: var(--muted); font-size: 16px; }
.auth-card { padding: 2rem; margin-top: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -45px rgba(13, 13, 13, .35); }
.auth-card p { color: var(--muted); font-size: 14px; }
.auth-sent { text-align: center; }
.auth-sent .big { font-size: 40px; margin-bottom: .5rem; }
.auth-sent h2 { font-size: 1.4rem; }
.auth-sent strong { color: var(--ink); word-break: break-all; }
.auth-points { list-style: none; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.auth-points li { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; }
.auth-points li i { color: var(--accent); font-weight: 700; font-style: normal; }

/* tableau de bord */
.dash-head { padding-top: 4rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.045em; line-height: 1; margin-top: 1rem; }
.dash-head .kicker strong { font-weight: 500; color: var(--ink); }
.dash { padding-bottom: 1rem; }
.dash .figures { margin: 2.25rem 0 1.25rem; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap;
  padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); margin-bottom: 2.25rem;
}
.banner.pro { border-color: rgba(21, 128, 61, .3); background: #f3f9f4; }
.banner.free { border-color: rgba(232, 68, 10, .3); background: #fdf4ef; }
.banner-text { font-size: 14.5px; }
.banner-text strong { font-family: var(--f-display); }
.banner-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.banner-actions .btn { font-size: 13.5px; padding: 9px 16px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.list-head h2 { font-size: 1.35rem; }
.count { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.qr-list { border-top: 1px solid var(--ink); }
.qr-item {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center;
  padding: 1rem .25rem; border-bottom: 1px solid var(--line);
}
.qr-thumb {
  width: 60px; height: 60px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-thumb canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-info { min-width: 0; }
.qr-name { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; }
.qr-short { font-family: var(--f-mono); font-size: 12.5px; color: #1556d6; display: inline-flex; align-items: center; gap: 6px; }
.qr-short button { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--muted); font-family: var(--f-mono); text-decoration: underline; }
.qr-dest { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 4px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.qr-meta .scans strong { color: var(--ink); }
.tag { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 100px; }
.tag.blocked { background: var(--danger); color: #fff; }
.qr-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
/* menu « ⋯ » (Télécharger, Supprimer) */
.menu-more { position: relative; }
.menu-more > summary {
  list-style: none; cursor: pointer; width: 34px; height: 32px; border-radius: 100px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; background: #fff; user-select: none;
}
.menu-more > summary::-webkit-details-marker { display: none; }
.menu-more > summary:hover, .menu-more[open] > summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-more .menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(13, 13, 13, .35);
  display: grid; gap: 2px;
}
.menu-more .menu button {
  text-align: left; background: none; border: none; border-radius: 8px; padding: 9px 12px; font-size: 14px; cursor: pointer; color: var(--ink);
}
.menu-more .menu button:not(:disabled):hover { background: var(--cream); }
.menu-more .menu button.danger { color: var(--danger); }
.menu-more .menu button:disabled { color: var(--muted); cursor: not-allowed; opacity: .6; }
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.qr-list .empty { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.empty .big { font-size: 42px; opacity: .35; }
.empty p { max-width: 420px; margin: .5rem auto 1.25rem; }
.loading { text-align: center; padding: 3rem; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.account-zone {
  margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.account-zone .link-btn { color: var(--danger); }

/* fenêtres */
dialog {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; background: var(--card); color: var(--ink);
  width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); margin: auto;
  box-shadow: 0 30px 60px -20px rgba(13, 13, 13, .35);
}
dialog.wide { width: min(920px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(13, 13, 13, .5); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.3rem; }
.dlg-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px; }
.dlg-close:hover { color: var(--ink); }
.dlg-body { padding: 1.5rem; overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); background: var(--cream); border-radius: var(--radius); padding: .75rem 1rem; line-height: 1.5; }
.note.warn { background: #fdf3ee; color: #8a2a06; border: 1px solid rgba(232, 68, 10, .25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 1rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--danger); width: 16px; height: 16px; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; }
.studio-preview { display: flex; flex-direction: column; gap: .75rem; }
.stage {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 1rem;
  background-image: radial-gradient(rgba(13, 13, 13, .07) 1px, transparent 1px); background-size: 14px 14px;
}
.stage canvas { max-width: 100%; max-height: 100%; height: auto; display: block; border-radius: 6px; }
dialog .section-title:first-child { margin-top: 0; }
dialog .template-grid { flex-wrap: wrap; overflow: visible; }
button.tpl-card { font: inherit; color: inherit; }
.tpl-card[aria-pressed=true] { border-color: var(--accent); background: rgba(232, 68, 10, .06); }
.tpl-card[aria-pressed=true] .tpl-name { color: var(--accent-text); }
.tpl-thumb svg { display: block; }
.options-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-box {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 12px; text-align: center;
  cursor: pointer; position: relative; font-size: 12.5px; color: var(--muted);
}
.logo-box:hover { border-color: var(--accent); }
.logo-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-chip { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.logo-chip img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
dialog .dl-btns { grid-template-columns: 1fr 1fr; }
.stat-total { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.chart { width: 100%; height: 180px; display: block; margin-top: .5rem; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--ink); }
.chart .axis { fill: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.rows { list-style: none; display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; }
.rows .bar-bg { grid-column: 1 / -1; height: 6px; background: var(--cream); border-radius: 100px; overflow: hidden; }
.rows .bar-fg { height: 100%; background: var(--accent2); border-radius: 100px; }
.rows .num { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 100px; font-size: 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transition: opacity .2s, transform .2s; z-index: 1000;
  max-width: calc(100vw - 2rem); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
@media (max-width: 760px) {
  .auth-wrap { padding-top: 3rem; }
  .auth-card { padding: 1.5rem; }
  .dash-head { padding-top: 2.75rem; }
  .qr-item { grid-template-columns: 52px minmax(0, 1fr); }
  .qr-thumb { width: 52px; height: 52px; }
  .qr-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .menu-more .menu { right: auto; left: 0; }
  .studio { grid-template-columns: 1fr; }
  .studio-preview { order: -1; }
  .stage { max-width: 280px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .dlg-body { padding: 1.1rem; }
}

/* ─── 15. Articles et guides (14 guides + À propos) ─────────────────── */
.page-wrap {
  max-width: var(--w); margin: 0 auto; padding: 3.5rem var(--pad) 0;
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 4.5rem; align-items: start;
}
.page-wrap > article { min-width: 0; max-width: 46rem; grid-column: 2; grid-row: 1; }
.sidebar { grid-column: 1; grid-row: 1; align-self: stretch; }
.toc-sticky { position: sticky; top: 96px; padding-top: .4rem; }
.toc .kicker { margin-bottom: .9rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 1.7rem 1fr; padding: .45rem 0 .45rem .9rem; margin-left: -1px;
  border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none;
  transition: color .15s, border-color .15s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; padding-top: .15em; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc a.actif { color: var(--ink); border-left-color: var(--accent); }
.toc a.actif::before { color: var(--accent-text); }
.toc-cta { margin-top: 1.4rem; width: 100%; }
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 2.25rem; }
  .page-wrap > article { grid-column: 1; max-width: none; }
  .sidebar { display: none; }
}

.breadcrumb { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }
.article-tag {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text);
}
.article-tag::after { content: ''; width: 2.2rem; height: 1px; background: currentColor; opacity: .5; }
.article-title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.02; letter-spacing: -.045em; margin: 1.1rem 0 1.4rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .8rem 0; margin-bottom: 2.25rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

.prose { font-size: 17px; line-height: 1.75; color: #2b2824; counter-reset: h2; }
.prose > p:first-child { font-size: 19.5px; line-height: 1.6; color: var(--ink); }
.prose p { margin-bottom: 1.25rem; }
.prose h2 {
  counter-increment: h2; font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -.035em; line-height: 1.12;
  margin: 3.5rem 0 1.1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 84px;
}
.prose h2::before {
  content: counter(h2, decimal-leading-zero); display: block; margin-bottom: .7rem;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--accent-text);
}
.prose h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 2rem 0 .7rem; }
.prose h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a:not([class]) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not([class]):hover { text-decoration-thickness: 2px; }
.prose code, .legal code {
  background: var(--cream); padding: 2px 7px; border-radius: 4px; font-family: var(--f-mono);
  font-size: .82em; word-break: break-all;
}
.prose blockquote { font-size: 1.3rem; line-height: 1.45; margin: 2.25rem 0; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* encadrés « highlight-box » : même style que « À retenir », avec leur propre titre */
.highlight-box {
  background: var(--cream); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; margin: 2rem 0;
}
.highlight-box h4 {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-text); margin-bottom: .5rem;
}
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box a[href="#generateur"][style] { border-radius: 100px !important; background: var(--accent-strong) !important; padding: 12px 22px !important; }

/* étapes numérotées */
.step-list { list-style: none; padding: 0 !important; margin: 1.75rem 0; border-top: 1px solid var(--ink); }
.step-list li { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; padding: 1.1rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.step-list li::marker { content: none; }
.step-num { font-family: var(--f-serif); font-style: italic; font-size: 2.2rem; line-height: .95; color: var(--accent); }
.step-text h4 { margin-bottom: .25rem; }
.step-text p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

/* grilles de cartes des guides */
.use-case-grid, .prose .usage-grid, .dest-grid, .tip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin: 1.75rem 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.use-case-card, .prose .usage-card, .dest-card, .tip-card { background: var(--card); padding: 1.2rem 1.25rem; text-align: left; border-radius: 0; }
.use-case-card .icon, .prose .usage-card .icon, .dest-icon, .tip-icon { font-size: 22px; margin-bottom: .45rem; }
.use-case-card h4, .prose .usage-card h4, .dest-card h4, .tip-card h4 { font-family: var(--f-display); font-size: 15px; font-weight: 700; margin-bottom: .3rem; }
.use-case-card p, .prose .usage-card p, .dest-card p, .tip-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
.pros, .cons { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ok); border-radius: var(--radius); padding: 1.2rem 1.25rem; }
.cons { border-top-color: var(--danger); }
.pros h4 { color: var(--ok); margin-bottom: .6rem; }
.cons h4 { color: var(--danger); margin-bottom: .6rem; }
.pros li, .cons li { font-size: 14px; margin-bottom: .35rem; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* FAQ des guides (<details class="faq">) */
.faq-list { margin: 1.25rem 0 2rem; border-bottom: 1px solid var(--line); }
details.faq > summary { padding: 1.15rem 0; font-size: 16.5px; }
details.faq[open] > summary::after { content: '−'; }
details.faq > p { padding: 0 2.5rem 1.2rem 0; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* mini-générateur des guides (assets/qr-tool.js) */
.qrt {
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-lg); padding: 1.5rem;
  margin: 2rem 0 2.5rem; box-shadow: 0 30px 60px -45px rgba(13, 13, 13, .45); scroll-margin-top: 84px;
  font-size: 15px; line-height: 1.5;
}
.qrt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.qrt-head strong { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.qrt-badge { background: var(--accent-strong); color: #fff; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 100px; }
.qrt-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1.5rem; align-items: start; }
.qrt-form { display: flex; flex-wrap: wrap; gap: .8rem; }
.qrt-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100%; min-width: 0; }
.qrt-field.qrt-half { flex: 1 1 calc(50% - .5rem); }
.qrt-field span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.qrt-field input, .qrt-field textarea, .qrt-field select {
  width: 100%; font: inherit; font-family: var(--f-mono); font-size: 14px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--cream); color: var(--ink); outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.qrt-field input:focus, .qrt-field textarea:focus, .qrt-field select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(232, 68, 10, .12); }
.qrt-field textarea { resize: vertical; min-height: 64px; }
.qrt-check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.qrt-check input { width: auto; }
.qrt-hint { flex: 1 1 100%; font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.qrt-out { display: flex; flex-direction: column; gap: .7rem; }
.qrt-stage {
  aspect-ratio: 1; background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-image: radial-gradient(rgba(13, 13, 13, .07) 1px, transparent 1px); background-size: 12px 12px;
}
.qrt-stage canvas { width: 100%; height: auto; display: block; }
.qrt-empty { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: center; padding: 1rem; line-height: 1.5; }
.qrt-err { color: var(--danger); }
.qrt-colors { display: flex; gap: .5rem; }
.qrt-colors label { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 4px 6px 4px 12px; }
.qrt-colors input { width: 26px; height: 22px; border: none; background: none; padding: 0; cursor: pointer; }
.qrt-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.qrt-dl { font-family: var(--f-display); font-weight: 700; font-size: 14px; padding: 11px; border: none; border-radius: 100px; background: var(--accent-strong); color: #fff; cursor: pointer; transition: background .15s; }
.qrt-dl[data-f="svg"] { background: var(--ink); }
.qrt-dl:disabled { opacity: .35; cursor: not-allowed; }
.qrt-dl:not(:disabled):hover { background: #b83407; }
.qrt-dl[data-f="svg"]:not(:disabled):hover { background: #333; }
.qrt-more { font-size: 12.5px; color: var(--accent-text); text-decoration: none; text-align: center; }
.qrt-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .qrt { padding: 1.1rem; }
  .qrt-body { grid-template-columns: 1fr; }
  .qrt-out { max-width: 260px; margin: 0 auto; width: 100%; }
  .qrt-field.qrt-half { flex-basis: 100%; }
}

/* fin d'article : guide suivant, QRFree Pro, autres usages */
.article-end { margin-top: 4rem; display: grid; gap: 1rem; }
.next-guide {
  display: grid; gap: .4rem; padding: 1.6rem 1.75rem; border: 1px solid var(--ink); border-radius: var(--radius-lg);
  background: var(--card); text-decoration: none; color: var(--ink); transition: background .15s;
}
.next-guide:hover { background: #fffaf5; }
.next-guide .ng-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.03em; line-height: 1.15; }
.next-guide .ng-title::after { content: ' →'; color: var(--accent); }
.pro-mini {
  display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: 1.1rem 1.4rem;
  background: var(--ink); color: #e9e4d8; border-radius: var(--radius-lg); text-decoration: none; font-size: 14.5px;
}
.pro-mini .pill-new { flex-shrink: 0; }
.pro-mini .txt { flex: 1 1 16rem; }
.pro-mini .more { font-family: var(--f-display); font-weight: 700; color: #fff; white-space: nowrap; }
.pro-mini:hover .more { color: #f0703f; }
.related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.related .kicker { margin-bottom: 1rem; }
.related-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 1.5rem; }
.related-link {
  display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink);
  text-decoration: none; transition: color .15s;
}
.related-link::after { content: ' →'; color: var(--accent); opacity: 0; transition: opacity .15s; }
.related-link:hover { color: var(--accent-text); }
.related-link:hover::after { opacity: 1; }

/* ─── 16. Pages légales (mentions légales, CGV) ─────────────────────── */
main.legal { max-width: 800px; margin: 0 auto; padding: 4rem var(--pad) 0; }
.legal .page-title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  letter-spacing: -.045em; line-height: 1.02; margin: 1.1rem 0 .9rem;
}
.legal .page-date { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-bottom: 2rem; margin-bottom: .5rem; border-bottom: 1px solid var(--ink); }
.legal .section { padding: 2rem 0 1.75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.legal h2 { display: flex; align-items: baseline; gap: .9rem; font-size: 1.4rem; letter-spacing: -.03em; margin-bottom: 1rem; }
.legal h2 .num { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--accent-text); min-width: 1.5rem; letter-spacing: .06em; }
.legal p { margin-bottom: .8rem; color: #2b2824; font-size: 15.5px; line-height: 1.7; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { padding-left: 1.3rem; margin-bottom: .8rem; }
.legal li { margin-bottom: .35rem; color: #2b2824; font-size: 15.5px; line-height: 1.65; }
.legal li::marker { color: var(--accent); }
.legal a:not([class]) { color: var(--accent-text); }
.info-grid { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.info-label, .info-val { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.info-label { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: .75rem; }
.info-val { color: var(--ink); }
/* informations à compléter par l'éditeur avant la mise en ligne */
.a-completer { background: #fff3a3; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-weight: 500; }
@media (max-width: 600px) {
  main.legal { padding-top: 2.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .info-label { border-bottom: 0; padding-bottom: 0; }
}
.toc-cta { font-size: 13.5px; padding: 10px 16px; }
