/* Verazo — site vitrine. Memes jetons de marque que l'application (voir
   apps/web/src/tokens.css) : le vitrine et le produit doivent rester visuellement le meme
   objet aux yeux d'un artisan qui passe de l'un a l'autre. */
:root {
  --terre:       #B5674A;
  --terre-fonce: #8F4C36; /* texte/liens sur fond clair : --terre seul n'a pas assez de contraste */
  --olive:       #7C7259;
  --olive-fonce: #6D644E; /* meme logique que --terre-fonce : --olive seul tombe a 3.8:1 sur --papier */
  --encre:       #2B211C;
  --papier:      #ECE5D8;
  --creme:       #FFF8EE;
  --carte:       #FFFFFF;
  --ligne:       #DCD3C3;
  --gris:        #5B5346; /* durci depuis --gris de l'app (#7A7062) : 4.5:1 sur papier pour le corps de texte */

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;

  --container: 1080px;
  --radius-card: 12px;
  --radius-btn: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--terre-fonce); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Bouton --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  /* --terre-fonce, pas --terre : du texte creme sur --terre tombe a 3.98:1 (sous les 4.5:1
     requis), --terre-fonce tient a 6.12:1. --terre reste reserve aux fonds pour graphiques
     seuls (icones), pas de texte. */
  background: var(--terre-fonce);
  color: var(--creme);
}
.btn-primary:hover { filter: brightness(0.9); }
.btn-ghost {
  background: transparent;
  color: var(--encre);
  border-color: var(--ligne);
}
.btn-ghost:hover { border-color: var(--terre); }

/* --- En-tete --- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(236, 229, 216, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--encre);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-actions .btn { padding: 10px 16px; min-height: 44px; }
/* Le lien "Se connecter" n'a pas besoin d'etre un bouton plein sur mobile etroit : garder
   la barre lisible sans wrap agressif. */
.link-plain {
  padding: 10px 8px;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.link-plain:hover { color: var(--terre-fonce); }
@media (max-width: 480px) {
  /* Sous ~480px, "Se connecter" + le bouton principal ne tiennent plus sur une ligne et le
     lien se retrouve coupe en deux, coince contre le bouton. Le CTA principal seul suffit :
     la connexion reste accessible une fois sur l'appli. */
  .header-actions .link-plain { display: none; }
}

/* --- Hero --- */
.hero {
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 7vw, 52px);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .lede {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 18px;
  color: var(--gris);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-note {
  font-size: 14px;
  color: var(--gris);
}

/* --- Sections generales --- */
section { padding: 56px 0; }
.section-alt { background: var(--carte); }
.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 40px;
}
.section-head h2 { font-size: clamp(24px, 5vw, 34px); }
.section-head p { color: var(--gris); font-size: 17px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-fonce);
  margin-bottom: 10px;
}

/* --- Grille de fonctionnalites --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--radius-card);
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--terre);
  color: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; margin-bottom: 6px; }
.feature-card p { color: var(--gris); font-size: 15px; margin: 0; }

/* --- Comment ca marche --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: step;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding-left: 52px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--terre-fonce);
  color: var(--creme);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--gris); font-size: 15px; margin: 0; }

/* --- Tarif --- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--creme);
  border: 2px solid var(--terre);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}
.pricing-card .eyebrow { margin-bottom: 6px; }
.pricing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  margin: 4px 0 4px;
}
.pricing-price small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--gris);
}
.pricing-sub { color: var(--gris); font-size: 14px; margin-bottom: 20px; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: grid;
  gap: 10px;
}
.pricing-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
}
.pricing-list svg { flex-shrink: 0; margin-top: 3px; color: var(--terre-fonce); }
.pricing-card .btn { width: 100%; }

/* --- FAQ --- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--radius-card);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--terre-fonce);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--gris); padding-bottom: 16px; margin: 0; font-size: 15px; }

/* --- CTA final --- */
.cta-final {
  text-align: center;
  background: var(--terre-fonce);
  color: var(--creme);
  border-radius: var(--radius-card);
  margin: 0 20px;
  padding: 48px 24px;
}
.cta-final h2 { color: var(--creme); }
.cta-final p { color: var(--creme); opacity: 0.9; }
.cta-final .btn-primary {
  background: var(--creme);
  color: var(--terre-fonce);
}
.cta-final .btn-primary:hover { background: #fff; }

/* --- Pied de page --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--ligne);
  color: var(--gris);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: var(--gris); }
.footer a:hover { color: var(--terre-fonce); }
