/* =========================================================================
   AlloBigo — Design system (repris de design_handoff_allobigo/DESIGN_SYSTEM.md)
   Style « terrain / artisan » : papier chaud, vert forêt, accent ambre,
   bordures 2px, ombres pleines décalées (jamais de flou).
   ========================================================================= */

:root {
  /* Couleurs */
  --paper: #f4eee1;
  --paper-card: #fffdf7;
  --paper-alt: #ece4d3;
  --paper-photo: #d9cfbb;
  --ink: #1b1b18;
  --ink-muted: #4a463c;
  --ink-soft: #6b6557;
  --green: #0f3a2c;
  --green-2: #14352a;
  --green-border: #2e5446;
  --green-deep: #0c2e23;
  --amber: #e3a534;
  --amber-soft: rgba(227, 165, 52, 0.16);
  --cream-text: #f4efe2;
  --cream-text-70: rgba(244, 239, 226, 0.72);
  --red-urgent: #c0392b;
  --green-live: #5dd39e;

  /* Typo */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Libre Franklin', system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-btn: 13px;
  --radius-card: 20px;
  --radius-device: 26px;
}

/* ------------------------------------------------------------------ Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.section {
  padding: clamp(52px, 7vw, 96px) 0;
}

img { max-width: 100%; }

/* --------------------------------------------------------------- Typo helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

.h1 {
  font-weight: 800;
  font-size: clamp(33px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h2 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h3 {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-muted);
}

strong { color: inherit; }

/* --------------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 225, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand img { display: block; width: 38px; height: 38px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__word--green span { color: var(--green); }
.brand__word--amber span { color: var(--amber); }

/* -------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s, border-color .12s;
}
.btn svg { flex: none; }

.btn--primary {
  background: var(--amber);
  color: var(--ink);
  padding: 16px 24px;
  font-size: clamp(16px, 1.7vw, 18px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--hero {
  width: 100%;
  max-width: 460px;
  box-shadow: 5px 5px 0 var(--ink);
}
.btn--hero:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--nav {
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 11px;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn--nav:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.btn--nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Secondaire (sur fond vert) */
.btn--ghost-cream {
  background: transparent;
  color: var(--cream-text);
  border-color: rgba(244, 239, 226, 0.4);
  padding: 16px 24px;
  font-size: 16px;
}
.btn--ghost-cream:hover { border-color: var(--amber); color: var(--amber); }

/* Secondaire (sur fond clair) */
.btn--ghost-ink {
  background: transparent;
  color: var(--ink);
  padding: 16px 24px;
  font-size: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--ghost-ink:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------------------------------------------------------------- Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: ab-blink 1.6s infinite;
}

/* --------------------------------------------------------------- Sections */
.s-light { background: var(--paper); }
.s-alt   { background: var(--paper-alt); }
.s-green { background: var(--green); color: var(--cream-text); }
.s-green .h2, .s-green .h1 { color: var(--cream-text); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 88px); }
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.split__col { flex: 1 1 440px; min-width: 300px; }
.split__col--demo { flex: 1 1 350px; min-width: 300px; }

.microcopy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Bloc problème (citation + métriques) */
.quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 820px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}
.metric {
  background: var(--green-2);
  border: 2px solid var(--green-border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}
.metric__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 54px);
  line-height: 1;
  color: var(--amber);
}
.metric__label {
  font-weight: 700;
  font-size: 16px;
  margin: 10px 0 6px;
  color: var(--cream-text);
}
.metric__sub { font-size: 14px; line-height: 1.5; color: var(--cream-text-70); margin: 0; }

/* Cartes étapes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.card-step {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 26px 24px;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green);
  border: 2px solid var(--ink);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}
.card-step p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; margin: 10px 0 0; }

/* Cartes réassurance */
.reassure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.reassure-item { display: flex; gap: 16px; }
.reassure-item__ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: var(--amber);
}
.reassure-item p { font-size: 14.5px; line-height: 1.55; margin: 8px 0 0; color: var(--ink-muted); }
/* Variante sur fond vert */
.s-green .reassure-item__ico { background: var(--amber); color: var(--green); border-color: rgba(255,255,255,0.12); }
.s-green .reassure-item p { color: var(--cream-text-70); }
.s-green .h3 { color: var(--cream-text); }
.s-green .metric { background: var(--green-2); }

/* Encadré observation (page perso) */
.observe {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-alt);
  border: 2px solid var(--ink);
  border-left-width: 6px;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 26px;
}
.observe__ico { flex: none; color: var(--green); margin-top: 2px; }
.observe p { margin: 0; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.5; font-weight: 500; color: #2a2720; }

/* Ruban haut (page perso) */
.ribbon {
  background: var(--green);
  color: var(--cream-text);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-live); animation: ab-blink 1.6s infinite; }

/* Bande identité (page perso) */
.identity { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 50px); align-items: center; }
.identity__col { flex: 1 1 360px; min-width: 280px; }
.photo-slot {
  width: 100%;
  height: 400px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper-photo);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-slot__ph {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 24px;
}
.stars { color: var(--amber); letter-spacing: 2px; font-size: 20px; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
}

/* CTA final */
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.cta-final-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* --------------------------------------------------------------- Footer */
.footer {
  background: var(--green-deep);
  color: var(--cream-text-70);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .12s; }
.footer__nav a:hover { color: var(--amber); }
.footer__legal { font-size: 13px; width: 100%; color: rgba(244,239,226,0.5); }
.footer .brand__word { font-size: 18px; color: var(--cream-text); }

/* Pages de contenu (tarifs / qui-suis-je / mentions) */
.prose { max-width: 760px; }
.prose p { font-size: 16px; line-height: 1.65; color: var(--ink-muted); }
.prose h2 { margin: 36px 0 12px; font-size: clamp(22px, 3vw, 30px); }
.prose h3 { margin: 26px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 6px 0; }
.prose a { color: var(--green); font-weight: 600; }

.kpis { display: flex; flex-wrap: wrap; gap: 20px; margin: 28px 0; }
.kpi { background: var(--paper-card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 18px 22px; flex: 1 1 150px; }
.kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--green); }
.kpi span { font-size: 13.5px; color: var(--ink-soft); }

/* Offre tarifs */
.offer {
  max-width: 460px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 32px 28px;
}
.offer__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 48px); color: var(--ink); line-height: 1; }
.offer__price small { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.offer ul { list-style: none; padding: 0; margin: 22px 0; }
.offer li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; margin: 12px 0; }
.offer li svg { flex: none; color: var(--green); margin-top: 2px; }

/* =========================================================== Device démo */
.device {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: var(--radius-device);
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
  color: var(--cream-text);
}
.device__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--green-border);
  font-size: 13px;
  font-weight: 600;
}
.device__head .left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.device__head .left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-live); animation: ab-blink 1.6s infinite; }
.device__free { color: var(--cream-text-70); font-weight: 700; }

.device__body { padding: 24px 18px; min-height: 360px; }

/* Idle */
.idle { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 320px; gap: 6px; }
.call-btn {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: ab-float 3s ease-in-out infinite;
  transition: transform .12s;
}
.call-btn:hover { transform: scale(1.04); }
.idle__title { color: var(--cream-text); font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 22px 0 4px; }
.idle__sub { color: var(--cream-text-70); font-size: 13.5px; line-height: 1.5; margin: 0; max-width: 240px; }

/* Ringing */
.ringing { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 320px; }
.rings { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.rings .ring { position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--amber); animation: ab-ring 1.8s ease-out infinite; }
.rings .ring:nth-child(2) { animation-delay: .5s; }
.rings .handset { width: 56px; height: 56px; border-radius: 50%; background: var(--amber); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.ringing__title { color: var(--cream-text); font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 26px 0 4px; }
.ringing__sub { color: var(--cream-text-70); font-size: 13.5px; margin: 0; }

/* Connected */
.transcript { display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 86%; }
.bubble__label { font-size: 11px; font-weight: 700; margin: 0 0 3px; }
.bubble__text { font-size: 13.5px; line-height: 1.45; padding: 10px 13px; margin: 0; animation: ab-in .35s ease both; }
.bubble--agent { align-self: flex-start; }
.bubble--agent .bubble__label { color: rgba(244,239,226,0.55); }
.bubble--agent .bubble__text { background: var(--paper-card); color: var(--ink); border-radius: 4px 14px 14px 14px; }
.bubble--client { align-self: flex-end; text-align: right; }
.bubble--client .bubble__label { color: var(--amber); }
.bubble--client .bubble__text { background: var(--amber); color: var(--ink); border-radius: 14px 4px 14px 14px; text-align: left; }

.btn-hangup {
  width: 100%;
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red-urgent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 11px;
  padding: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* SMS */
.sms { animation: ab-in .4s ease both; }
.sms__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cream-text-70); margin-bottom: 12px; }
.sms-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  color: var(--ink);
}
.sms-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sms-card__from { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.tag-urgent { background: var(--red-urgent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; }
.sms-card__title { font-weight: 700; font-size: 14.5px; margin: 0 0 8px; }
.sms-card__line { font-size: 13px; color: var(--ink-muted); margin: 3px 0; }
.sms-card__link { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--green); text-decoration: none; }
.sms__note { color: var(--cream-text-70); font-size: 12.5px; line-height: 1.5; margin: 12px 0; }
.btn-replay {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
  border-radius: 11px;
  padding: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s;
}
.btn-replay:hover { background: var(--amber-soft); }

/* ----------------------------------------------------------- Keyframes */
@keyframes ab-ring  { 0% { transform: scale(0.55); opacity: 0.65; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes ab-in    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ab-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes ab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------- Mobile tweaks */
@media (max-width: 480px) {
  .btn--primary, .btn--ghost-cream, .btn--ghost-ink { width: 100%; max-width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
