/* ==========================================================================
   TocToc — feuille de style unique.
   Mobile d'abord (le public cible cherche depuis son téléphone), le desktop
   arrive au point de rupture 900px. Jetons repris de l'identité de marque :
   Fredoka / Karla, Toc Orange, Impact Yellow, Ink, Paper.
   ========================================================================== */

:root {
  --paper:      #FBF2E3;
  --paper-2:    #F3E7D1;
  --card:       #FFFDF8;
  --ink:        #1E1712;
  --ink-soft:   #5B4E42;
  --ink-faint:  #8A7B6B;
  --orange:     #FF5A2E;
  --orange-ink: #5C1E0B;
  --orange-link:#B2361A;
  --yellow:     #FFC93F;
  --yellow-ink: #5C4300;

  --border: 3px solid var(--ink);
  --radius: 16px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  --wrap: 1180px;
  --gap: 18px;

  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(30, 23, 18, .08) 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 8.5vw, 70px); font-weight: 700; }
h2 { font-size: clamp(30px, 6vw, 52px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p  { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--orange-link); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

mark { background: var(--yellow); color: inherit; box-shadow: 0 0 0 4px var(--yellow); border-radius: 1px; }

.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;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gap); }
@media (min-width: 900px) { :root { --gap: 40px; } }

/* ---------------------------------------------------------------- topbar */
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 18px 26px; }
.brand { display: flex; align-items: flex-start; gap: 5px; color: var(--yellow); }
.brand__word {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(25px, 5vw, 30px);
  color: var(--orange); text-shadow: 2.5px 2.5px 0 var(--ink); letter-spacing: -.01em;
}
.brand__burst { width: 16px; height: 16px; flex: none; }
.topbar__meta { display: flex; align-items: center; gap: 12px; }
.topbar__audience { font-size: 14.5px; color: var(--ink-soft); display: none; }
@media (min-width: 620px) { .topbar__audience { display: inline; } }

/* ----------------------------------------------------------------- bits */
.pill {
  display: inline-block; width: max-content; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 12px; letter-spacing: .05em;
}
.pill--yellow { background: var(--yellow); color: var(--yellow-ink); text-transform: uppercase; }
.pill--orange { background: var(--orange); color: #FFF8F0; text-transform: uppercase; }
.pill--outline { background: var(--card); color: var(--ink); font-size: 12.5px; letter-spacing: .03em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  border: var(--border); border-radius: 14px; background: var(--card); color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--primary { background: var(--orange); color: #FFF8F0; box-shadow: var(--shadow); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--orange); }
.btn--onDark { background: var(--orange); color: #FFF8F0; border-color: var(--yellow); box-shadow: 5px 5px 0 var(--yellow); }
.btn--primary:hover, .btn--ink:hover, .btn--onDark:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 currentColor; }
.btn--ink:hover, .btn--onDark:hover { box-shadow: 2px 2px 0 var(--orange); }
.btn--block { width: 100%; }
.btn--link {
  min-height: 44px; border: 0; background: none; box-shadow: none; padding: 8px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink-soft);
  text-decoration: underline; width: 100%;
}
.btn--back {
  min-height: 44px; border: 0; background: none; box-shadow: none; padding: 4px 0;
  font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); width: max-content; gap: 6px;
}
.btn--back svg { width: 17px; height: 17px; }
.btn[disabled] { background: var(--paper-2); color: var(--ink-faint); box-shadow: 5px 5px 0 rgba(30,23,18,.25); cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }

.card { border: var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 22px 18px; }
.card--yellow { background: var(--yellow); }
.card--sand   { background: var(--paper-2); }
@media (min-width: 900px) { .card { padding: 26px 24px; } }

.lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--ink-soft); }
.micro { font-size: 14px; color: var(--ink-soft); }
.micro--center { text-align: center; }
.micro--onDark { color: #C7B7A4; }
.muted { color: var(--ink-faint); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow--muted { color: var(--ink-faint); }
.source { font-size: 12.5px; color: var(--ink-soft); }
.todo { color: var(--orange-ink); background: rgba(255,201,63,.45); padding: 0 4px; border-radius: 3px; font-weight: 700; font-size: .92em; }
.u { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--orange); }

.section { padding-block: 44px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) { .section { padding-block: 84px; gap: 34px; } }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.section__head--inline { max-width: none; }
@media (min-width: 900px) {
  .section__head--inline { flex-direction: row; align-items: baseline; gap: 18px; flex-wrap: wrap; }
}
.section__note { font-size: 16px; color: var(--ink-soft); }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid { gap: 22px; } }

/* ------------------------------------------------------------------ hero */
.hero { padding-bottom: 34px; }
.hero__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.06fr .94fr; gap: 56px; } .hero { padding-bottom: 80px; } }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
@media (min-width: 900px) { .hero__copy { gap: 26px; } }
.hero__copy .lede { max-width: 33em; }
.hero__copy .btn { width: 100%; }
@media (min-width: 520px) { .hero__copy .btn { width: auto; } }
.hero__demo { position: relative; padding-top: 14px; }
.tag-example {
  position: absolute; top: 0; right: 6px; z-index: 2;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 4px 12px;
  font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(3deg);
}
.card--demo { box-shadow: var(--shadow-lg); transform: rotate(-1.4deg); display: flex; flex-direction: column; gap: 10px; }
.bignum { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 6vw, 39px); line-height: 1.05; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--stack { flex-direction: column; flex-wrap: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 2.5px solid var(--ink); border-radius: 10px; background: var(--card);
  padding: 8px 12px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
}
.chip--yellow { background: var(--yellow); color: var(--yellow-ink); }
.chip svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chips--stack .chip { box-shadow: 4px 4px 0 var(--ink); padding: 12px 13px; font-size: 16px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); padding: 11px 13px;
}
.row span { display: flex; flex-direction: column; }
.row strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.row small { font-size: 12.5px; color: var(--ink-soft); }
.row--ghost { border-style: dashed; border-color: rgba(30,23,18,.4); }
.row--ghost strong { color: var(--ink-soft); }
.row__lock { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 2.3; stroke-linecap: round; }

/* ---------------------------------------------------------------- ticker */
.ticker { background: var(--ink); overflow: hidden; padding-block: 12px; }
.ticker__track { display: flex; width: max-content; gap: 24px; animation: tick 34s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 3vw, 21px); color: var(--yellow); white-space: nowrap; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- stats */
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 9vw, 62px); color: var(--orange); line-height: 1; }
.card--yellow .stat__num { color: var(--orange-ink); }
.card--yellow .source { color: var(--yellow-ink); }
.stat p { font-size: 16px; font-weight: 500; }

.pull {
  margin: 0; border-left: 5px solid var(--orange); padding: 8px 0 8px 18px; max-width: 44em;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 3vw, 24px); line-height: 1.35;
}

/* ----------------------------------------------------------------- steps */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: grid; grid-template-columns: 1fr; gap: 12px; }
.step > div { display: flex; flex-direction: column; gap: 8px; }
.step h3 { font-size: clamp(21px, 3.4vw, 27px); }
.step p { color: var(--ink-soft); font-size: 16px; max-width: 52em; }
.card--yellow.step p { color: var(--ink); }
.step__num {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: var(--border);
  background: var(--yellow); color: var(--orange-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 22px; flex: none;
}
.step__num--orange { background: var(--orange); color: #FFF8F0; }
.step__num--ink { background: var(--ink); color: var(--yellow); }
@media (min-width: 900px) {
  .step { grid-template-columns: 62px 1fr; gap: 26px; align-items: start; }
  .step__num { width: 62px; height: 62px; font-size: 28px; }
  .step p { font-size: 17.5px; }
}

/* -------------------------------------------------------------- features */
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature__icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; background: var(--ink); flex: none;
}
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--yellow); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-soft); }

/* -------------------------------------------------------------- promises */
.promise { display: flex; flex-direction: column; gap: 14px; }
.promise h3 { font-size: 24px; font-weight: 700; }
.ticks, .crosses { display: flex; flex-direction: column; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before, .crosses li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background-repeat: no-repeat; background-size: contain;
}
.ticks li::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1712' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,13 9,18 20,6'/%3E%3C/svg%3E"); }
.crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B4E42' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E"); }
.promise--no li { color: var(--ink-soft); }
.ticks--tight li { font-size: 14.5px; }

/* ------------------------------------------------------------------- faq */
.faq { box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
.faq p { color: var(--ink-soft); }

/* ------------------------------------------------------------------- cta */
.cta { background: var(--ink); padding-block: 48px; color: var(--paper); }
@media (min-width: 900px) { .cta { padding-block: 84px; } }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 660px; }
.cta__burst { width: 34px; height: 34px; color: var(--yellow); fill: none; }
.cta h2 { color: var(--paper); }
.cta p { color: #C7B7A4; max-width: 32em; }
.cta .btn { width: 100%; }
@media (min-width: 520px) { .cta .btn { width: auto; } }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: #C7B7A4; border-top: 1px solid rgba(244,234,221,.18); padding-block: 26px 34px; }
.footer__inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__word { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #FF7A4D; display: block; margin-bottom: 6px; }
.footer p { font-size: 12.5px; max-width: 52em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; }
.footer__links a { color: #C7B7A4; }
.footer__links a:hover { color: var(--yellow); }
.footer .todo { color: var(--yellow); background: transparent; padding: 0; }

/* ==================================================================
   TUNNEL — plein écran sur mobile, carte centrée à partir de 620px
   ================================================================== */
/* Mobile : plein écran. L'écran est déjà petit, autant prendre toute la
   place — pas de carte flottante, pas de marge perdue, pas de bout de page
   qui dépasse derrière et attire le pouce. */
.funnel { position: fixed; inset: 0; z-index: 50; display: flex; }
.funnel[hidden] { display: none; }
.funnel__backdrop { position: absolute; inset: 0; background: rgba(30,23,18,.55); }
.funnel__panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; height: 100dvh; overflow-y: auto;
  background: var(--paper);
  background-image: radial-gradient(rgba(30,23,18,.08) 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  border: 0; border-radius: 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: rise .22s ease-out;
}
/* Le contenu occupe la hauteur : titre en haut, bouton collé en bas. */
.funnel__panel .state { flex: 1 1 auto; }
.funnel__panel #search-form { flex: 1 1 auto; display: flex; flex-direction: column; }
.funnel__panel #submit-btn { margin-top: auto; }

/* À partir de la tablette, on repasse en carte centrée. */
@media (min-width: 620px) {
  .funnel { align-items: center; justify-content: center; padding: 20px; }
  .funnel__panel {
    width: 100%; max-width: 440px; height: auto; max-height: calc(100dvh - 40px);
    border: var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
    padding: 22px 18px;
  }
  .funnel__panel .state, .funnel__panel #search-form { flex: 0 1 auto; }
  .funnel__panel #submit-btn { margin-top: 6px; }
}
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

body.is-locked { overflow: hidden; }

.funnel__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.funnel__close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2.6; stroke-linecap: round; }
.funnel__close:hover { background: rgba(30,23,18,.07); }

.state { display: flex; flex-direction: column; gap: 14px; }
.state[hidden] { display: none; }
.state h2 { font-size: clamp(26px, 6vw, 32px); padding-right: 36px; }
.state .center { text-align: center; padding-right: 0; }
.funnel__lede { font-size: 15px; color: var(--ink-soft); }
.funnel__foot { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.inset { box-shadow: none; padding: 16px 15px; display: flex; flex-direction: column; gap: 6px; }
.inset h3 { font-size: 18px; }
.note { border-left: 4px solid var(--yellow); padding: 4px 0 4px 14px; }
.note p { font-size: 14px; color: var(--ink-soft); }

.field { position: relative; }
.field__icon {
  position: absolute; right: 16px; top: 28px; transform: translateY(-50%);
  width: 20px; height: 20px; pointer-events: none;
  fill: none; stroke: var(--ink-soft); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
#search-form { display: flex; flex-direction: column; gap: 10px; }
#search-form input[type="text"],
#search-form input[type="email"],
#search-form select {
  width: 100%; min-height: 56px;
  background: var(--card); border: var(--border); border-radius: 14px;
  padding: 0 44px 0 16px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
#search-form input[type="email"] { padding-right: 16px; }
#search-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
#search-form ::placeholder { color: var(--ink-faint); }

.combo { position: relative; }
.combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3;
  border: var(--border); border-radius: 14px; background: var(--card);
  max-height: 296px; overflow-y: auto; box-shadow: var(--shadow);
}
.combo__list[hidden] { display: none; }
.combo__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 8px 14px; cursor: pointer;
  border-bottom: 1.5px solid rgba(30,23,18,.1); font-size: 15px;
}
.combo__opt:last-child { border-bottom: 0; }
.combo__opt:hover, .combo__opt[aria-selected="true"] { background: var(--yellow); }
.combo__hint { font-size: 11px; color: var(--ink-faint); flex: none; white-space: nowrap; }
.combo__foot { padding: 10px 14px; font-size: 12.5px; color: var(--ink-faint); border-top: 1.5px solid rgba(30,23,18,.1); }

.optin { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.optin input { width: 24px; height: 24px; accent-color: var(--orange); flex: none; margin: 1px 0 0; cursor: pointer; }

.pulse { width: 54px; height: 54px; margin: 6px auto 0; color: var(--orange); fill: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .72; } }
.bar { height: 12px; background: var(--paper-2); border: var(--border); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 8%; background: var(--orange); transition: width .5s ease; }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress li { font-size: 14.5px; color: var(--ink-soft); opacity: .4; transition: opacity .3s ease; }
.progress li.on { opacity: 1; }
.progress li::before { content: '· '; }

.count { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.count strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 9vw, 40px); line-height: 1; }
.count span { font-size: 17px; font-weight: 700; }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* nowrap : sans ca le prix se coupe entre le chiffre et l'euro sur petit
   ecran, et « 9,99 » seul sur une ligne se lit mal. */
.price strong { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; white-space: nowrap; }
.price span { font-size: 14.5px; color: var(--ink-soft); }
.legal { font-size: 11.5px; color: var(--ink-faint); text-align: center; }
.legal a { color: inherit; }
/* Les marqueurs de terme non arrete restent visibles, mais en filet : dans un
   bloc de mentions en 11,5px, la pastille jaune pleine crie plus fort que le
   bouton d'achat juste au-dessus. */
.legal .todo {
  background: transparent; color: var(--ink-faint); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(30,23,18,.22);
}

/* ==================================================================
   PAGE DE RESULTATS
   ================================================================== */

.page-results .topbar__inner { padding-block: 16px; }
.results { padding-block: 10px 48px; display: flex; flex-direction: column; }
.results .state { display: flex; flex-direction: column; gap: 14px; }
.results .state[hidden] { display: none; }
.results h1 { font-size: clamp(28px, 7vw, 44px); }

.searching {
  display: flex; flex-direction: column; gap: 20px;
  min-height: 60dvh; justify-content: center; max-width: 460px; margin-inline: auto; width: 100%;
}

/* Une seule ligne, toujours. Le padding-right vient de `.state h2`, prevu
   pour degager la croix de fermeture du tunnel — il n'y a pas de croix ici,
   et c'est lui qui faisait passer le titre sur deux lignes. La taille suit
   la largeur de l'ecran pour que le nowrap ne deborde jamais. */
.results__title {
  font-size: clamp(19px, 6.2vw, 30px);
  margin-top: 14px; padding-right: 0;
  white-space: nowrap;
}

.companies { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 760px) { .companies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.company {
  border: var(--border); border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.company:hover, .company:focus-visible { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.company__head { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.company__head h3 { font-size: 18px; line-height: 1.2; }
.company__meta { font-size: 13px; color: var(--ink-soft); }

/* Bloc verrouille. Les barres sont decoratives : on ne met jamais de fausse
   coordonnee derriere un flou, seulement le NOM du champ qui sera debloque. */
.company__locked {
  position: relative;
  border-top: 2.5px dashed rgba(30,23,18,.25);
  background: var(--paper-2);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 8px;
}
.locked__row { display: flex; align-items: center; gap: 10px; }
.locked__key {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); width: 74px; flex: none;
}
/* Valeur masquee : une suite de points a la silhouette d'un email / d'un
   numero / d'un nom. Le flou fait « caviarde » ; il ne cache rien de reel,
   il n'y a aucune donnee derriere (voir maskedContact() dans resultats.js). */
/* Toile, pas du texte : le contenu masque n'existe que sous forme de pixels
   deja flous. Rien a lire dans le DOM, rien a retirer dans le CSS.
   Voir peindre() dans resultats.js. */
.locked__val {
  display: block; flex: 1 1 auto; min-width: 0;
  width: 100%; height: 20px;
  user-select: none; -webkit-user-select: none; pointer-events: none;
}
.locked__badge {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
}
.locked__badge svg { width: 15px; height: 15px; fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linecap: round; }

.companies__more {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink-soft); text-align: center; padding-block: 4px;
}

.paywall { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.paywall h2 { font-size: clamp(24px, 5vw, 32px); }


/* ==================================================================
   PAYWALL BLOQUANT
   Popup a toutes les tailles d'ecran : le site reste visible derriere,
   en transparence, pour qu'on voie ce qu'on rate. Sans sortie — pas de
   croix, pas d'Echap, le fond ne repond pas au clic.
   ================================================================== */
.paywall-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.paywall-modal[hidden] { display: none; }

/* Voile leger + flou : le contenu derriere reste perceptible (on distingue
   les cartes d'entreprises) sans etre lisible. */
.paywall-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 23, 18, .42);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
}

.paywall-modal__panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 430px;
  /* Plafonne a 82% de la hauteur : il doit rester une bande de site visible
     au-dessus et en dessous, sinon c'est un ecran plein qui ne dit pas son
     nom. Le contenu defile a l'interieur de la carte. */
  max-height: 82dvh; overflow-y: auto;
  background: var(--paper);
  background-image: radial-gradient(rgba(30,23,18,.08) 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  border: var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px 18px;
  animation: rise .22s ease-out;
}
.paywall-modal__panel h2 { font-size: clamp(24px, 5.5vw, 30px); }

/* Trois arguments courts, pas un argumentaire : la page de resultats a deja
   fait la demonstration, la modale ne fait que conclure. Interligne resserre
   en consequence. */
.paywall-modal__panel .ticks--tight { gap: 9px; }
.paywall-modal__panel .ticks--tight li { padding-left: 27px; }

/* Prix, bouton et moyens de paiement forment un seul bloc : c'est la zone de
   decision, elle doit se lire d'un coup d'oeil sans se melanger a la liste. */
.paywall-modal__buy { display: flex; flex-direction: column; gap: 10px; }
/* Message d'echec de paiement. Encadre plutot que colore en rouge : la phrase
   la plus frequente ici n'est pas une erreur mais un refus assume de vendre
   (couverture insuffisante), et la peindre en rouge la ferait lire comme un
   bug a contourner. */
.pay-error {
  border: 2.5px solid var(--ink); border-radius: 12px;
  background: var(--yellow); color: var(--ink);
  padding: 10px 13px; font-size: 13.5px; text-align: left;
}
.pay-error[hidden] { display: none; }
.paywall-modal__buy .price { margin-bottom: 2px; }
.paywall-modal__buy .price strong { font-size: 34px; }

/* Le mur n'ayant pas de sortie, le pied de page devient inatteignable :
   les mentions obligatoires sont donc reprises ici. */
.paywall-modal__legal {
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center;
  padding-top: 4px; border-top: 1.5px solid rgba(30,23,18,.14); margin-top: 2px;
}
.paywall-modal__legal a { font-size: 11.5px; color: var(--ink-faint); }
.paywall-modal__legal a:hover { color: var(--orange); }

/* ==========================================================================
   Pages legales (mentions, CGU, CGV, confidentialite).
   Colonne de lecture etroite : ce sont des documents, pas des pages de vente.
   Aucun composant nouveau, on reutilise les jetons de la charte.
   ========================================================================== */
.doc { max-width: 46em; padding-block: 34px 60px; }
@media (min-width: 900px) { .doc { padding-block: 56px 90px; } }

.doc__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.doc__head h1 { font-size: clamp(30px, 6.5vw, 50px); }
.doc__date { font-size: 13.5px; color: var(--ink-faint); }

/* Sommaire : ces pages se parcourent en diagonale pour trouver un article. */
.doc__toc {
  background: var(--card); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 34px;
}
.doc__toc p { font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.doc__toc ol { display: flex; flex-direction: column; gap: 5px; counter-reset: toc; }
.doc__toc li { font-size: 14.5px; counter-increment: toc; }
.doc__toc li::before { content: counter(toc) ". "; color: var(--ink-faint); }

.doc section { margin-bottom: 30px; scroll-margin-top: 80px; }
.doc h2 {
  font-size: clamp(21px, 3.4vw, 26px); margin-bottom: 12px;
  padding-bottom: 7px; border-bottom: 2px solid rgba(30,23,18,.16);
}
.doc h3 { font-size: 17px; margin: 18px 0 7px; }
.doc p, .doc li { font-size: 15.5px; color: var(--ink-soft); }
.doc p + p { margin-top: 11px; }
.doc strong { color: var(--ink); }

.doc ul { display: flex; flex-direction: column; gap: 7px; margin: 11px 0; }
.doc ul li { position: relative; padding-left: 19px; }
.doc ul li::before {
  content: ""; position: absolute; left: 3px; top: .6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}

/* Tableau des traitements RGPD : seule page qui en a besoin. */
.doc__table { width: 100%; overflow-x: auto; margin: 14px 0; }
.doc__table table { border-collapse: collapse; min-width: 34em; width: 100%; }
.doc__table th, .doc__table td {
  border: 1.5px solid rgba(30,23,18,.22); padding: 8px 10px;
  font-size: 13.5px; text-align: left; vertical-align: top; color: var(--ink-soft);
}
.doc__table th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--paper-2); }

/* Encadre d'alerte : la renonciation au droit de retractation, surtout. */
.doc__note {
  background: var(--card); border: var(--border); border-left-width: 9px;
  border-radius: var(--radius); padding: 15px 17px; margin: 16px 0;
}
.doc__note p { color: var(--ink); }
