/* Studio Alpaca — feuille de style
   Palette et typographie : voir la charte (laine, sable, toffee, cacao, encre, matcha, pêche). */

:root {
  --laine: #F7F2EA;
  --sable: #EADFCF;
  --toffee: #C9A27A;
  --cacao: #4A3728;
  --encre: #2A211B;
  --matcha: #A9BE7B;
  --peche: #F2A67C;

  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;

  --radius: 24px;
  --radius-sm: 18px;
  --gutter: clamp(16px, 6.6vw, 96px);
  --section-y: clamp(64px, 8vw, 112px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden]:not(.sticky-bar) { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--laine);
  color: var(--cacao);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.92; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1; }
h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
em { font-style: normal; color: var(--toffee); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.small { font-size: 14px; line-height: 1.4; font-weight: 500; }
.muted { color: var(--toffee); }
.label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--toffee);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Alpaga (symboles SVG) */
svg use { fill: currentColor; }
svg .eye, svg .smile { fill: var(--laine); }
svg .smile { fill: none; stroke: var(--laine); stroke-width: 2.6; stroke-linecap: round; }
.logo-light svg .eye, .card-cacao svg .eye, .sticky-bar svg .eye, .marquee svg .eye { fill: var(--cacao); }
.logo-light svg .smile, .card-cacao svg .smile, .sticky-bar svg .smile, .marquee svg .smile { stroke: var(--cacao); }

/* ---------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--cacao); color: var(--laine); }
.btn-primary:hover { background: var(--encre); }
.btn-secondary { border-color: var(--cacao); color: var(--cacao); background: transparent; }
.btn-secondary:hover { background: var(--sable); }
.btn-light { background: var(--laine); color: var(--cacao); }
.btn-light:hover { background: #fff; }
.btn-matcha { background: var(--matcha); color: var(--cacao); }
.btn-matcha:hover { background: #b9cc8f; }

.tag {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--sable);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.tag-laine { background: var(--laine); }

/* ---------- Navigation */
.nav {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cacao); }
.logo .mark { width: 36px; height: 36px; }
.logo .wordmark { font: 800 27px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.logo-light { color: var(--laine); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:not(.btn):hover { color: var(--toffee); }

/* ---------- Héro */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 64px; align-items: center;
}
@media (max-width: 1280px) { h1 { font-size: clamp(44px, 5.4vw, 72px); } }
.hero-text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero .lead { font-size: 20px; max-width: 560px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 600px; }
.hero-visual .cloud { position: absolute; left: 20px; top: 120px; width: 600px; max-width: 100%; height: 470px; border-radius: 50%; background: var(--sable); }
.hero-visual .peek { position: absolute; right: 0; top: 0; width: 230px; height: 230px; color: var(--cacao); }
.browser {
  position: absolute; left: 10px; top: 160px; width: 600px; max-width: calc(100% - 10px); height: 420px;
  background: #fff; border: 1.5px solid var(--sable); border-radius: 20px; overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--sable); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-peche { background: var(--peche); } .dot-toffee { background: var(--toffee); } .dot-matcha { background: var(--matcha); }
.url { flex: 1; margin-left: 4px; padding: 6px 12px; border-radius: 8px; background: var(--laine); font-size: 12px; font-weight: 500; }
.browser-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.bar { display: block; height: 10px; border-radius: 6px; background: var(--sable); }
.bar-dark { background: var(--cacao); }
.w90 { width: 90px; height: 14px; } .w220 { width: 220px; } .w180 { width: 180px; } .w240 { width: 240px; } .w200 { width: 200px; } .h26 { height: 26px; }
.fake-nav { display: flex; justify-content: space-between; align-items: center; }
.fake-links { display: flex; gap: 10px; } .fake-links i { width: 48px; height: 10px; border-radius: 6px; background: var(--sable); }
.fake-hero { display: flex; gap: 20px; }
.fake-copy { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fake-copy .pill { width: 110px; height: 30px; border-radius: 999px; background: var(--matcha); }
.fake-img { width: 220px; height: 150px; border-radius: 14px; background: var(--sable); }
.fake-grid { display: flex; gap: 14px; } .fake-grid i { flex: 1; height: 70px; border-radius: 10px; background: var(--laine); border: 1px solid var(--sable); }

.sticker {
  display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--peche); color: var(--cacao);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.browser .sticker { position: absolute; left: 24px; top: 48px; transform: rotate(-4deg); }

/* ---------- Bande défilante */
.marquee { background: var(--cacao); color: var(--laine); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: 600 22px/1 var(--display); white-space: nowrap; }
.marquee svg { width: 28px; height: 28px; color: var(--peche); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Chiffres */
.numbers { background: var(--cacao); color: var(--laine); text-align: center; padding: 80px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.compare { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; justify-content: center; }
.side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.big { font: 800 clamp(44px, 6vw, 88px)/0.92 var(--display); letter-spacing: -0.03em; }
.big-sable { color: var(--sable); } .big-matcha { color: var(--matcha); }
.arrow { font: 800 clamp(36px, 4.4vw, 64px)/1 var(--display); color: var(--toffee); }
.numbers-line { font: 600 clamp(22px, 2.3vw, 32px)/1.1 var(--display); letter-spacing: -0.01em; }
.numbers-note { color: var(--toffee); font-weight: 400; font-size: 15px; }

/* ---------- Sections */
.section { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 56px; }
.section-sable { max-width: none; background: var(--sable); }
.section-sable > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; width: 100%; }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head .intro, .faq-intro p { max-width: 680px; }

.card { border-radius: var(--radius); padding: 44px; position: relative; display: flex; flex-direction: column; gap: 24px; }
.card-laine { background: var(--laine); }
.card-sable { background: var(--sable); }
.card-cacao { background: var(--cacao); color: var(--laine); }
.card-outline { background: var(--laine); border: 1.5px solid var(--sable); }
.card-matcha { background: var(--matcha); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; overflow: hidden; background: var(--sable); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.num { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--laine); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.ghost { position: absolute; right: 28px; bottom: 24px; font: 800 150px/0.8 var(--display); color: var(--laine); pointer-events: none; }
.step { padding-bottom: 150px; }

/* Avant / après */
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list { display: flex; flex-direction: column; gap: 20px; }
.list li { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; }
.list li::before { content: ""; grid-row: 1 / span 2; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; background-repeat: no-repeat; background-position: center; }
.list li > * { grid-column: 2; }
.list-check li::before { background-color: var(--matcha); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 9' stroke='%234A3728' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); }
.list-arrow li::before { background-color: var(--peche); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10M13 8l4 4-4 4' stroke='%234A3728' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); }
.list strong { display: block; font-weight: 600; line-height: 1.3; }
.list span { display: block; font-size: 16px; color: var(--toffee); }
.card-cacao .list span { color: var(--sable); }
.list-dot li { grid-template-columns: 10px 1fr; }
.list-dot li::before { width: 10px; height: 10px; margin-top: 8px; background: var(--matcha); }
.card-cacao { overflow: hidden; }
.peek-corner { position: absolute; right: -20px; bottom: -40px; width: 170px; height: 170px; color: var(--toffee); opacity: .9; }
.peek-corner .eye { fill: var(--cacao); } .peek-corner .smile { stroke: var(--cacao); }

/* Prix */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.price-side { display: flex; flex-direction: column; gap: 24px; }
.price-main { overflow: visible; }
.sticker-price { position: absolute; right: 44px; top: 40px; padding: 14px 26px; transform: rotate(4deg); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amount { font: 800 clamp(56px, 6vw, 80px)/0.92 var(--display); letter-spacing: -0.03em; }
.amount-sm { font-size: clamp(36px, 4vw, 56px); }
.amount-toffee { color: var(--toffee); }
.when { color: var(--sable); }
.card-sable .when, .card-outline .when { color: var(--toffee); }
.price-sub { font-size: 20px; color: var(--sable); margin-top: -12px; }
.price-main .btn { align-self: flex-start; }
.five-years { gap: 20px; padding: 36px; }
.bar-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center; }
.bar-label { font-size: 14px; font-weight: 500; }
.track { display: block; height: 28px; border-radius: 999px; background: var(--laine); overflow: hidden; }
.fill { display: block; height: 100%; width: var(--w); border-radius: 999px; }
.fill-toffee { background: var(--toffee); } .fill-matcha { background: var(--matcha); }
.bar-amount { font: 600 clamp(22px, 2.3vw, 32px)/1 var(--display); }

/* Questions */
.faq { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: start; }
.faq-intro { display: flex; flex-direction: column; gap: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { background: var(--laine); border-radius: var(--radius-sm); padding: 28px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--toffee); font-size: 28px; line-height: 1; flex: none; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; }

/* Appel final */
.final { align-items: center; text-align: center; padding: 72px var(--gutter); gap: 24px; }
.final-form, .final-sent { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.final h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 1100px; }
.final .intro { max-width: 620px; }
#lead-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }
#lead-form input { width: 300px; max-width: 100%; padding: 16px 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--laine); font: 400 16px/1 var(--body); color: var(--cacao); }
#lead-form input::placeholder { color: var(--toffee); }
#lead-form input:focus { outline: none; border-color: var(--cacao); }
#lead-form input[aria-invalid="true"] { border-color: var(--peche); background: #fff3ec; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { opacity: .75; }
.form-note.error { opacity: 1; color: var(--encre); font-weight: 600; }
.check { width: 72px; height: 72px; }
.check circle { fill: var(--cacao); } .check path { fill: none; stroke: var(--matcha); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.recap { display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; border-radius: 999px; background: var(--laine); font-size: 15px; flex-wrap: wrap; justify-content: center; }
.recap span { color: var(--toffee); }
.final-sent.appear { animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Pied de page */
.footer { background: var(--cacao); color: var(--laine); padding: 64px var(--gutter) 40px; }
.footer-top, .footer-legal, .herd { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .small { color: var(--sable); }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 500; }
.footer-cols a { text-decoration: none; } .footer-cols a:hover { color: var(--toffee); }
.herd { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-top: 40px; margin-bottom: 40px; color: var(--toffee); opacity: .55; }
.herd svg { width: var(--s); height: var(--s); flex: none; }
.herd .eye { fill: var(--cacao); } .herd .smile { stroke: var(--cacao); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--sable); }

/* ---------- Barre collante */
.sticky-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 0); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(640px, calc(100% - 32px)); padding: 12px 12px 12px 22px;
  background: var(--cacao); color: var(--laine); border-radius: 999px;
  box-shadow: 0 12px 32px rgba(74, 55, 40, .25);
  transition: transform .35s ease, opacity .35s ease;
}
.sticky-bar[hidden] { display: flex; opacity: 0; transform: translate(-50%, 120%); pointer-events: none; }
.sticky-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sticky-left .mark { width: 36px; height: 36px; flex: none; }
.sticky-left div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sticky-left strong { font: 600 18px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-left .small { color: var(--toffee); }
.sticky-bar .btn { padding: 14px 24px; font-size: 15px; flex: none; }

/* ---------- Mobile */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
}
@media (max-width: 960px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-visual { height: auto; aspect-ratio: 1 / 1; max-width: 560px; }
  .hero-visual .cloud { width: 100%; height: 78%; left: 0; top: 20%; }
  .browser { width: calc(100% - 10px); height: 70%; top: 27%; }
  .browser-body { padding: 18px; gap: 12px; }
  .fake-img { width: 40%; height: 110px; }
  .hero-visual .peek { width: 38%; height: 38%; }
  .steps, .two-cards, .pricing { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-cols { gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .card { padding: 28px; }
  .step { padding: 28px; }
  .ghost { font-size: 160px; }
  .sticker-price { right: 16px; top: -14px; }
  .price-main { padding-top: 48px; }
  .final { padding: 48px 20px; }
  #lead-form input { width: 100%; }
  #lead-form .btn { width: 100%; }
  .sticky-left div { display: none; }
  .sticky-bar { bottom: 12px; gap: 12px; padding-left: 16px; }
  .sticky-bar .btn { flex: 1; }
  .logo .wordmark { font-size: 22px; }
  .ghost { font-size: 110px; right: 20px; bottom: 16px; }
  .step { padding-bottom: 110px; }
  .herd svg { --s: 40px !important; }
  .herd svg:nth-child(n+6) { display: none; }
  .compare { gap: 24px; }
}
