@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@700;800&display=swap');

:root {
  --indigo: #2A2356;
  --orange: #E8703D;
  --orange-press: #D6602F;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --body: #55506B;
  --muted: #9A94A8;
  --line: #E7E1D6;
  --error: #C8442B;
  --error-bg: #FFF6F2;

  --shadow-card: 0 6px 16px rgba(42, 35, 86, 0.05);
  --shadow-btn: 0 8px 18px rgba(232, 112, 61, 0.28);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--indigo);
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

/* ---------- Layout ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

section + section { border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: 32px;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

h2.section-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.section-intro {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  section { padding: 96px 0; }
  h2.section-title { font-size: 34px; }
}

/* ---------- Chevron motif ---------- */

.chevron {
  color: var(--orange);
  flex-shrink: 0;
}

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

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

.brand-lockup img { height: 28px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Merchant login ---------- */

.merchant-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  white-space: nowrap;
}

.merchant-login:hover,
.merchant-login:focus-visible {
  border-color: var(--indigo);
}

/* ---------- Language switcher ---------- */

.lang-switch {
  display: inline-flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}

.lang-switch a {
  min-width: 64px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--indigo);
}

.lang-switch a[aria-current="true"] {
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  border: none;
  width: 100%;
}

@media (min-width: 640px) {
  .btn { width: auto; }
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover, .btn-primary:active { background: var(--orange-press); }

.btn-secondary {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}

.btn-secondary:hover, .btn-secondary:active {
  background: var(--indigo);
  color: var(--white);
}

.btn-stack { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 640px) {
  .btn-stack { flex-direction: row; }
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--orange);
}

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

.hero { padding-top: 32px; }

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 46ch;
}

.hero .btn-stack { margin-top: 24px; }

.hero-media {
  border-radius: 20px;
  overflow: hidden;
  /* aspect-ratio vit sur le conteneur, pas sur l'<img> (élément remplacé)
     directement : à l'intérieur d'un item flex avec flex-basis:0 (voir
     .hero-grid > * ci-dessous), aspect-ratio posé sur l'image elle-même
     ne se calcule pas de façon fiable partout — le conteneur établit sa
     propre boîte d'abord, l'image la remplit ensuite à 100%/100%.
     4:5 (portrait) depuis la photo "Douceur artisanale chez Sam" — la
     photo hero d'origine était 4:3 (paysage), voir CLAUDE-site.md. */
  aspect-ratio: 4 / 5;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .hero-grid { flex-direction: row; align-items: center; }
  .hero-grid > * { flex: 1; }
}

/* ---------- Image placeholder ---------- */

.media-placeholder {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(
    135deg,
    rgba(42, 35, 86, 0.06),
    rgba(42, 35, 86, 0.06) 10px,
    transparent 10px,
    transparent 20px
  );
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.media-placeholder span {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { display: flex; flex-direction: column; gap: 12px; }

.step-num {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step h3 { font-size: 19px; font-weight: 700; }

.step p { font-size: 15px; line-height: 1.55; }

/* ---------- Benefit cards ---------- */

.benefit-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 { font-size: 19px; font-weight: 700; }

.card p { font-size: 15px; line-height: 1.55; color: var(--body); }

/* ---------- Business type tags ---------- */

.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.business-tags li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  box-shadow: var(--shadow-card);
}

/* ---------- Trust / security block ---------- */

.trust-block {
  background: var(--indigo);
  border-radius: 20px;
  padding: 26px 22px;
}

.trust-block h3 { color: var(--white); font-size: 18px; font-weight: 700; }

.trust-block p {
  color: #C9C5D8;
  font-size: 15px;
  line-height: 1.55;
  margin-top: 8px;
}

/* ---------- Social proof ---------- */

.proof-frame {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
  background: var(--white);
}

.proof-frame p {
  font-size: 15px;
  color: var(--muted);
}

.proof-frame strong { color: var(--indigo); }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card.featured { border: 1.5px solid var(--orange); }

.price-card .plan-name { font-size: 19px; font-weight: 700; color: var(--indigo); font-family: 'Poppins', sans-serif; }

.price-card .plan-scope { font-size: 13px; color: var(--muted); }

.price-card .amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--indigo);
}

.price-card .amount span {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}

.price-card .setup {
  font-size: 13px;
  color: var(--muted);
}

.price-card ul { display: flex; flex-direction: column; gap: 8px; }

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--body);
}

.price-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- Founder banner ---------- */

.founder-banner {
  background: var(--error-bg);
  border: 2px dashed var(--orange);
  border-radius: 20px;
  padding: 22px;
}

.founder-banner h3 { font-size: 17px; font-weight: 700; color: var(--indigo); }

.founder-banner p { margin-top: 8px; font-size: 15px; line-height: 1.55; }

.founder-banner .placeholder {
  color: var(--muted);
  font-style: italic;
}

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

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary .chevron { transition: transform 0.15s ease; transform: rotate(90deg); }

.faq-item[open] summary .chevron { transform: rotate(-90deg); }

.faq-item p { padding-bottom: 18px; font-size: 15px; line-height: 1.6; }

/* ---------- Forms ---------- */

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.form-field label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--indigo);
}

.form-field input, .form-field textarea {
  height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--indigo);
}

.form-field textarea { height: auto; padding: 14px 18px; min-height: 120px; resize: vertical; }

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(42, 35, 86, 0.12);
}

.form-field.has-error input, .form-field.has-error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.form-success {
  background: var(--error-bg);
  border: 1.5px solid var(--orange);
  border-radius: 16px;
  padding: 18px;
  font-size: 15px;
  color: var(--indigo);
  margin-bottom: 24px;
}

.form-banner-error {
  background: var(--error-bg);
  border: 1.5px solid var(--error);
  border-radius: 16px;
  padding: 18px;
  font-size: 15px;
  color: var(--error);
  margin-bottom: 24px;
}

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

.site-footer { padding: 48px 0; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.footer-links a { font-size: 14px; color: var(--body); }

.footer-links a:hover { color: var(--indigo); }

.footer-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Legal / simple content pages ---------- */

.legal-content { max-width: 720px; }

.legal-content h2 { font-size: 19px; margin-top: 32px; margin-bottom: 12px; }

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li { font-size: 15px; line-height: 1.65; margin-bottom: 12px; }

.legal-content ul { list-style: disc; padding-left: 20px; }

/* ---------- Copy narrative (accueil, sprint 8) ---------- */

.story-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .story-grid { flex-direction: row; align-items: center; }
  .story-grid > * { flex: 1; }
  .story-grid.reverse { flex-direction: row-reverse; }
}

.story-media {
  border-radius: 20px;
  overflow: hidden;
  /* même raisonnement que .hero-media : aspect-ratio sur le conteneur,
     jamais sur l'<img> seul quand il vit dans un item flex:1 (voir
     CLAUDE-site.md, "Bug trouvé et corrigé"). Photos portrait 4:5, pas
     4:3 comme le hero. */
  aspect-ratio: 4 / 5;
}

.story-media img { width: 100%; height: 100%; object-fit: cover; }

.steps-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
}

.step-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 4px;
}

.step-media img { width: 100%; height: 100%; object-fit: cover; }

.vignette-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 4px;
}

.vignette-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-highlight { text-align: center; padding: 40px 0; }

.stat-highlight .stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: var(--orange);
  line-height: 1;
}

.stat-highlight .stat-caption {
  margin-top: 12px;
  font-size: 16px;
  color: var(--body);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Stat boxes (3-up, section "La preuve") ---------- */

.stats-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-card-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--orange);
  line-height: 1;
}

.stat-card-caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.trust-block.with-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .trust-block.with-media { flex-direction: row; align-items: flex-start; }
}

.trust-block-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.sources-list { margin-top: 16px; }

.sources-list li {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Signup page ---------- */

@media (min-width: 768px) {
  .signup-grid { grid-template-columns: 1.3fr 1fr !important; align-items: start; }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
