/* Dénichoir — pre-launch (early-access) landing page.
   Page-specific components; tokens come from tokens.css. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.grille-millimetree {
  background-image: linear-gradient(
      to right,
      rgba(20, 32, 43, var(--grille-opacite)) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(20, 32, 43, var(--grille-opacite)) 1px, transparent 1px);
  background-size: var(--landing-grille-pas) var(--landing-grille-pas);
}

.landing-section--sombre .grille-millimetree {
  background-image: linear-gradient(
      to right,
      rgba(231, 238, 241, calc(var(--grille-opacite) * 1.6)) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(231, 238, 241, calc(var(--grille-opacite) * 1.6)) 1px,
      transparent 1px
    );
}

.wrap {
  max-width: var(--landing-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand__glyphe {
  width: 26px;
  height: 26px;
  color: var(--primary);
  flex-shrink: 0;
}

.brand__mot {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

/* ---------- Boutons / CTA ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--rayon);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent-cuivre);
  color: #fff;
  transition: background-color 0.15s ease;
}

.cta:hover {
  background: var(--accent-cuivre-hover);
}

.cta:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cta--header {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ---------- Sections génériques ---------- */

.landing-section {
  padding: var(--landing-space-section) 0;
}

.landing-section--sombre {
  background: var(--landing-primary-ink);
  color: var(--landing-ink-text);
}

.landing-section--teinte {
  background: var(--landing-primary-tint);
}

.landing-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--accent-cuivre);
}

.landing-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--landing-h1);
  line-height: 1.02;
  margin: 18px 0 20px;
  max-width: 16ch;
}

.landing-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--landing-h2);
  line-height: 1.08;
  margin: 0 0 20px;
}

.landing-lead {
  font-size: var(--landing-lead);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}

.landing-lead + .landing-lead {
  margin-top: 16px;
}

.landing-section--sombre .landing-lead {
  color: #c7d3de;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  padding-top: 32px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero__illustration {
  display: flex;
  justify-content: center;
}

/* ---------- Carte d'exemple (signature du produit) ---------- */

.sample-card {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-cuivre);
  border-radius: var(--rayon);
  padding: 20px 22px;
  box-shadow: var(--ombre);
  width: 100%;
  max-width: 17rem;
}

.sample-card__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.sample-card__nom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 10px 0 4px;
}

.sample-card__prix {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
}

.sample-card__detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.donnee,
.tampon {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.tampon {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.glyphe-borne {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.glyphe-borne__icone {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.glyphe-borne[data-confiance="low"] .glyphe-borne__icone {
  color: var(--confiance-mid);
}

.glyphe-borne[data-confiance="medium"] .glyphe-borne__icone {
  color: var(--confiance-mid);
}

.glyphe-borne[data-confiance="high"] .glyphe-borne__icone {
  color: var(--confiance-high);
}

.glyphe-borne[data-confiance="low"] .glyphe-borne__remplissage {
  opacity: 0;
}

.glyphe-borne[data-confiance="medium"] .glyphe-borne__remplissage {
  opacity: 0.5;
}

.glyphe-borne[data-confiance="high"] .glyphe-borne__remplissage {
  opacity: 1;
}

.signature-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cuivre);
  max-width: 22rem;
  margin: 8px 0 28px;
}

.signature-mark__trait {
  height: 18px;
  flex: 1 1 auto;
  min-width: 120px;
}

.signature-mark__glyphe {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Motif filet gradué (signature) ---------- */

.filet-gradue {
  --filet-pas: 20px;
  display: block;
  height: 8px;
  background-image: linear-gradient(to right, currentColor, currentColor),
    repeating-linear-gradient(
      to right,
      currentColor,
      currentColor 1px,
      transparent 1px,
      transparent var(--filet-pas)
    );
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 6px;
  background-position: bottom left, bottom left;
}

/* ---------- Section encadrée (fond surface) ---------- */

.landing-section--encadre {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.landing-section--encadre.borde-haut {
  border-top: 1px solid var(--border);
}

.chiffres-cles {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding: 36px 0 28px;
}

.chiffre-cle__valeur {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 3vw + 1.5rem, 4.5rem);
  line-height: 1;
  color: var(--text);
}

.chiffre-cle__filet {
  max-width: 160px;
  margin: 10px 0 12px;
  color: var(--accent-cuivre);
}

.chiffre-cle__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 30ch;
}

.chiffres-cles__note {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.sources-liste {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* ---------- Pour qui ---------- */

.cible-split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

.cible-col__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.cible-col__texte {
  color: var(--text-muted);
  max-width: 42ch;
}

/* ---------- Comment ça marche ---------- */

.etapes {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}

.etape {
  border-left: 2px solid var(--accent-cuivre);
  padding-left: 20px;
}

.etape__num {
  font-family: var(--font-mono);
  color: var(--accent-cuivre);
  font-size: 0.85rem;
}

.etape__titre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 6px 0 8px;
}

.etape__texte {
  color: var(--text-muted);
  max-width: 42ch;
}

/* ---------- Zone géographique ---------- */

.coverage-note {
  margin-top: 8px;
}

/* ---------- Mot du fondateur ---------- */

.citation-fondateur {
  position: relative;
  max-width: 62ch;
  padding-left: 36px;
}

.citation-fondateur__guillemet {
  position: absolute;
  left: -4px;
  top: -22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-cuivre);
  opacity: 0.55;
}

.citation-fondateur__texte {
  margin: 0;
  font-size: var(--landing-lead);
  color: var(--text);
}

.citation-fondateur__signature {
  margin: 20px 0 0;
}

.citation-fondateur__filet {
  max-width: 120px;
  margin-bottom: 14px;
  color: var(--accent-cuivre);
}

.citation-fondateur__nom {
  font-family: var(--font-mono);
  color: var(--accent-cuivre);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-liste {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  max-width: 68ch;
  counter-reset: faq;
}

.faq-item {
  counter-increment: faq;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: counter(faq, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-item[open] summary::before {
  color: var(--accent-cuivre);
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-cuivre);
  font-family: var(--font-mono);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-muted);
  margin: 14px 0 0 34px;
}

/* ---------- Formulaire ---------- */

.form-section {
  background: var(--bg);
}

.form-panel {
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  background: var(--surface);
  padding: 32px;
  max-width: 640px;
  margin: 24px auto 0;
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.champ {
  margin-bottom: 22px;
}

.champ label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.champ .optionnel {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.requis {
  color: var(--error);
  margin-left: 2px;
}

.champ input[type="text"],
.champ input[type="email"],
.champ textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  background: var(--bg);
  color: var(--text);
}

.champ input:focus-visible,
.champ textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.champ textarea {
  min-height: 96px;
  resize: vertical;
  font-family: var(--font-body);
}

.champ-erreur {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
}

.choix-groupe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choix-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  padding: 12px 14px;
  cursor: pointer;
}

.choix-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--landing-primary-tint);
}

.choix-option input {
  margin-top: 3px;
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.consentement input {
  margin-top: 3px;
  flex-shrink: 0;
}

.form-erreur-globale {
  background: #fbeceb;
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: var(--rayon);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

@media (prefers-color-scheme: dark) {
  .form-erreur-globale {
    background: #2a1613;
  }
}

.confirmation-panel {
  text-align: left;
}

.confirmation-panel__glyphe {
  width: 40px;
  height: 40px;
  color: var(--confiance-high);
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

/* Honeypot field: off-screen rather than display:none, since some bots specifically
   skip display:none/visibility:hidden inputs when auto-filling every field. */
.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Bannière cookies ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--ombre);
  padding: 16px 0;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__texte {
  color: var(--text);
  font-size: 0.9rem;
  margin: 0;
  flex: 1 1 320px;
}

.cookie-banner__texte a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__refuser {
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.cookie-banner__refuser:hover {
  background: var(--border);
}

.cookie-banner__refuser:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--landing-primary-ink);
  color: #c7d3de;
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: #c7d3de;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__liens {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Pages légales ---------- */

.legal-article {
  max-width: 62ch;
}

.legal-article h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--landing-h2);
  margin: 0 0 24px;
}

.legal-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal-article p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}

.legal-article em {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-article ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-article li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.legal-article .placeholder {
  color: var(--error);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .chiffres-cles {
    grid-template-columns: repeat(2, auto);
    gap: 64px;
  }
}

@media (min-width: 860px) {
  .cible-split {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .cible-col--gauche {
    padding-right: 40px;
  }

  .cible-col--droite {
    padding-left: 40px;
    border-left: 1px solid var(--border);
  }

  .etapes {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__inner {
    padding-top: 64px;
    padding-bottom: 48px;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero__illustration {
    justify-content: flex-end;
  }
}
