/* Tagui Automation — feuille de style unique */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --paper: #ffffff;
  --paper-alt: #f5f5f7;
  --night: #000000;
  --night-soft: #1d1d1f;
  --night-ink: #f5f5f7;
  --night-ink-soft: #a1a1a6;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --link-night: #2997ff;
  --line: #d2d2d7;
  --radius-tile: 28px;
  --wrap: 980px;
  --wrap-wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 44px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigation translucide ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--night-ink); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, #2997ff, #7a5cff);
  display: grid; place-items: center;
}
.brand-mark svg { width: 13px; height: 13px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(245, 245, 247, 0.8); font-size: 0.75rem; letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--blue); color: #fff !important; padding: 4px 12px; border-radius: 980px; font-weight: 500;
}
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--night-ink); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 48px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(22, 22, 23, 0.96);
    padding: 8px 22px 22px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; font-size: 1.0625rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { text-align: center; margin-top: 14px; padding: 10px 12px; border-bottom: 0 !important; }
}

/* ---------- Typographie ---------- */

.eyebrow {
  font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.01em; margin: 0 0 6px;
}
.display {
  font-size: clamp(2.75rem, 7.2vw, 5rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0;
}
.headline {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; margin: 0;
}
.lead {
  font-size: clamp(1.1875rem, 2.2vw, 1.75rem);
  line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; margin: 18px 0 0;
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

.gradient-text {
  background: linear-gradient(90deg, #2997ff 0%, #7a5cff 50%, #e3459b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 30px; }
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 1.0625rem; font-weight: 500; padding: 12px 22px; border-radius: 980px;
  transition: background 0.2s ease, transform 0.1s ease-out;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.more { font-size: 1.0625rem; }
.more::after { content: " ›"; }
.on-night .more { color: var(--link-night); }

/* ---------- Sections ---------- */

section { padding: 110px 0; }
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .muted { color: var(--night-ink-soft); }
.on-alt { background: var(--paper-alt); }

/* ---------- Héros ---------- */

.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .eyebrow { color: var(--night-ink-soft); }
.hero .lead { max-width: 640px; margin-inline: auto; color: var(--night-ink-soft); }

.stage {
  position: relative; margin: 64px auto 0; width: min(380px, 100%); padding-bottom: 0;
}
.stage::before {
  content: ""; position: absolute; inset: 10% -40% -10%;
  background: radial-gradient(closest-side, rgba(41, 151, 255, 0.35), rgba(122, 92, 255, 0.18) 55%, transparent 75%);
  filter: blur(20px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 100%; height: 590px;
  border-radius: 54px 54px 0 0; padding: 14px 14px 0;
  background: linear-gradient(160deg, #3a3a3c, #1c1c1e 40%, #2c2c2e);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.14), 0 40px 80px rgba(0,0,0,0.6);
}
.screen {
  position: relative; height: 100%;
  border-radius: 42px 42px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #0b0b0d, #141418);
  display: flex; flex-direction: column; text-align: left;
}
.island { width: 110px; height: 32px; border-radius: 20px; background: #000; margin: 10px auto 0; flex: none; }
.call-head { text-align: center; padding: 22px 20px 16px; flex: none; }
.call-head .who { font-size: 0.8125rem; color: var(--night-ink-soft); letter-spacing: 0; }
.call-head .name { font-size: 1.375rem; font-weight: 600; margin-top: 2px; }
.call-head .state {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 0.75rem; color: #30d158; letter-spacing: 0;
}
.call-head .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,0.18); }

.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 0; }
.bubble {
  margin: 0; max-width: 82%; font-size: 0.875rem; line-height: 1.35; letter-spacing: -0.01em;
  padding: 9px 13px; border-radius: 18px;
  opacity: 0; transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bubble.client { align-self: flex-start; background: #2c2c2e; color: #f5f5f7; border-bottom-left-radius: 6px; }
.bubble.agent { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble .tag { display: block; font-size: 0.6875rem; opacity: 0.7; margin-bottom: 2px; letter-spacing: 0; }

.notif {
  margin: 22px 12px 0; padding: 12px 14px; border-radius: 20px;
  background: rgba(58, 58, 60, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; gap: 10px; align-items: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.notif .ico { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; }
.notif .ico span { font-size: 0.5625rem; color: #ff3b30; font-weight: 700; line-height: 1; text-align: center; }
.notif .ico b { display: block; color: var(--ink); font-size: 0.9375rem; }
.notif .txt { font-size: 0.8125rem; line-height: 1.3; letter-spacing: -0.005em; }
.notif .txt strong { display: block; font-size: 0.8125rem; }
.notif .txt span { color: var(--night-ink-soft); }

.show { opacity: 1 !important; transform: none !important; }

/* ---------- Chiffres ---------- */

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.fact { text-align: center; }
.fact .big { font-size: clamp(2.75rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.fact p { margin: 12px auto 0; max-width: 240px; color: var(--ink-soft); font-size: 1.0625rem; }
@media (max-width: 680px) { .facts { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Tuiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile {
  background: var(--paper-alt); border-radius: var(--radius-tile);
  padding: 34px 30px 36px; min-height: 260px;
  display: flex; flex-direction: column;
}
.tile .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; margin-bottom: auto;
}
.tile .icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.5rem; line-height: 1.17; letter-spacing: -0.025em; margin: 40px 0 8px; font-weight: 700; }
.tile p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- Coût ---------- */

.cost .headline { max-width: 820px; margin-inline: auto; }
.cost .lead { max-width: 680px; margin-inline: auto; color: var(--night-ink-soft); }
.bars { max-width: 720px; margin: 64px auto 0; display: grid; gap: 30px; }
.bar-label { display: flex; justify-content: space-between; gap: 16px; font-size: 1.0625rem; margin-bottom: 10px; }
.bar-label span:last-child { color: var(--night-ink-soft); text-align: right; }
.bar { height: 14px; border-radius: 99px; background: #1d1d1f; overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar.staff i { background: #86868b; }
.bar.agent i { background: linear-gradient(90deg, #2997ff, #7a5cff); }
.bars.show .bar.staff i { width: 100%; }
.bars.show .bar.agent i { width: 14%; }
.footnote { max-width: 720px; margin: 28px auto 0; font-size: 0.75rem; color: var(--night-ink-soft); letter-spacing: 0; }

/* ---------- Étapes ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius-tile); padding: 34px 30px 36px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1.0625rem;
}
.step h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.17; margin: 28px 0 8px; }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

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

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; list-style: none; padding: 0; }
.chips li { background: var(--paper-alt); border-radius: 980px; padding: 12px 22px; font-size: 1.0625rem; }

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

.faq { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 680px; }

/* ---------- Appel final ---------- */

.final { text-align: center; }
.final .lead { color: var(--night-ink-soft); max-width: 620px; margin-inline: auto; }
.final .contact-line { margin-top: 26px; font-size: 0.9375rem; color: var(--night-ink-soft); }
.final .contact-line a { color: var(--link-night); }

/* ---------- Pied de page ---------- */

footer { background: var(--paper-alt); color: var(--ink-soft); font-size: 0.75rem; letter-spacing: -0.005em; padding: 20px 0 34px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: 18px; }
footer a { color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

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

.legal { padding: 80px 0 110px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 8px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 44px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { color: #424245; }

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.show { opacity: 1; transform: none; }
.no-js .reveal, .no-js .bubble, .no-js .notif { opacity: 1; transform: none; }
.no-js .bars .bar.staff i { width: 100%; }
.no-js .bars .bar.agent i { width: 14%; }

@media (max-width: 680px) {
  section { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .eyebrow { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .bubble, .notif { transform: none !important; transition: opacity 0.3s ease; }
  .bar i { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: #161617; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .notif { background: #3a3a3c; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
