:root {
  --bg: #f8f7f3;
  --bg-soft: #fffdf8;
  --text: #1f2933;
  --muted: #64748b;
  --line: #e6e2d8;
  --green: #6fbf9a;
  --green-dark: #2f6f5e;
  --purple: #8b5cf6;
  --purple-dark: #6d3ee8;
  --warning: #f59e0b;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
  --radius: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(111,191,154,.18), transparent 34%),
              radial-gradient(circle at top right, rgba(139,92,246,.16), transparent 30%),
              var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 82px 0; }
.section-sm { padding: 52px 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 12px; z-index: 999;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 247, 243, .82);
  border-bottom: 1px solid rgba(230,226,216,.8);
}
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--purple));
  color: white; box-shadow: var(--shadow);
}
.logo span:last-child { font-size: 1.08rem; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 650; color: #334155; }
.nav-links a:hover { color: var(--green-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: none; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 18px; border-radius: 999px;
  font-weight: 800; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: white; box-shadow: 0 14px 28px rgba(139,92,246,.22); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-secondary { background: white; color: var(--green-dark); border-color: var(--line); box-shadow: 0 10px 26px rgba(31,41,51,.06); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: rgba(47,111,94,.22); }

.hero { padding: 88px 0 62px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--green-dark); font-weight: 800; font-size: .92rem; margin-bottom: 28px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; letter-spacing: -.04em;}
h1 { font-size: clamp(2.55rem, 5vw, 5rem); max-width: 820px; margin-top: 0;}
h2 { font-size: clamp(2rem, 3.2vw, 3.25rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: #475569; max-width: 720px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; color: #475569; font-weight: 650; font-size: .95rem; }
.trust-row span { padding: 8px 12px; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 999px; }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.95));
  border: 1px solid var(--line); border-radius: 34px; padding: 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 32%); pointer-events:none; }
.workflow { position: relative; display: grid; gap: 14px; }
.workflow-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.step-icon { flex: 0 0 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: rgba(111,191,154,.16); color: var(--green-dark); font-weight: 900; }
.step-icon.purple { background: rgba(139,92,246,.14); color: var(--purple-dark); }
.workflow-step p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 10px 28px rgba(31,41,51,.045);
}
.card.featured { border-color: rgba(139,92,246,.35); box-shadow: 0 18px 45px rgba(139,92,246,.12); position: relative; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 850; background: rgba(139,92,246,.12); color: var(--purple-dark); margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card ul { margin: 16px 0 0; padding-left: 18px; color: #475569; }
.card li { margin: 8px 0; }
.icon-box { width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; background: rgba(111,191,154,.16); color: var(--green-dark); margin-bottom: 18px; font-size: 1.35rem; }

.section-title { max-width: 780px; margin-bottom: 38px; }
.section-title p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.band { background: rgba(255,255,255,.58); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.price { font-size: 2.15rem; font-weight: 900; letter-spacing: -.05em; margin: 8px 0 6px; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.kicker { font-weight: 850; color: var(--green-dark); margin-bottom: 6px; }

.method { counter-reset: method; }
.method .card { position: relative; padding-top: 64px; }
.method .card::before {
  counter-increment: method; content: counter(method);
  position: absolute; top: 20px; left: 24px; width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; background: var(--green-dark); color: white; font-weight: 900;
}

.cta-panel {
  background: linear-gradient(135deg, var(--green-dark), #284c7c 55%, var(--purple-dark));
  border-radius: 34px; padding: clamp(32px, 6vw, 58px); color: white; overflow: hidden; position: relative;
}
.cta-panel p { color: rgba(255,255,255,.84); max-width: 720px; }
.cta-panel .btn-secondary { color: var(--purple-dark); }

.page-hero { padding: 76px 0 36px; }
.breadcrumb { color: var(--muted); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }

.faq details { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 850; }
.faq p { color: var(--muted); margin-bottom: 0; }

.contact-card { background: white; border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 8px; margin-bottom: 16px; }
label { font-weight: 800; color: #334155; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 14px; font: inherit; color: var(--text);
}
textarea { min-height: 150px; resize: vertical; }
.help { font-size: .9rem; color: var(--muted); }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.55); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

.legal-content { background: white; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 42px); }
.legal-content h2 { font-size: 1.55rem; margin-top: 32px; }
.legal-content p, .legal-content li { color: #475569; }

@media (max-width: 920px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-open .nav-links, .mobile-open .nav-cta {
    display: flex; position: absolute; left: 20px; right: 20px; top: 76px;
    flex-direction: column; align-items: stretch; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  }
  .mobile-open .nav-cta { top: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
}

/* Logo image Digital Zen AI */
.logo.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
}
.logo.site-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 280px;
}
.site-footer .logo.site-logo img {
  height: 46px;
}
@media (max-width: 768px) {
  .logo.site-logo img {
    height: 42px;
    max-width: 220px;
  }
}

/* =========================================================
   Digital Zen AI — enrichissement visuel dynamique
   Ajout : hero animé, halos, grille légère, micro-interactions,
   animations d'apparition au scroll.
   ========================================================= */

:root {
  --violet-soft: rgba(139, 92, 246, 0.18);
  --violet-glow: rgba(139, 92, 246, 0.32);
  --mint-glow: rgba(111, 191, 154, 0.26);
  --teal-glow: rgba(47, 111, 94, 0.18);
}

body {
  overflow-x: hidden;
}

/* Header plus premium */
.site-header {
  background:
    linear-gradient(90deg, rgba(248, 247, 243, .92), rgba(255, 255, 255, .84));
  box-shadow: 0 10px 34px rgba(31, 41, 51, 0.045);
}

.logo img {
  transition: transform .25s ease, filter .25s ease;
}

.logo:hover img {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 10px 18px rgba(139, 92, 246, .16));
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cff 0%, #9454f5 52%, #a855f7 100%);
  box-shadow: 0 18px 40px rgba(139, 92, 246, .28);
}

.btn-primary:hover {
  box-shadow: 0 22px 52px rgba(139, 92, 246, .34);
}

/* Hero plus vivant */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 13% 19%, rgba(111, 191, 154, .22), transparent 26%),
    radial-gradient(circle at 86% 20%, rgba(139, 92, 246, .22), transparent 28%),
    linear-gradient(115deg, rgba(111,191,154,.10), rgba(255,255,255,.34) 42%, rgba(139,92,246,.11));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(47, 111, 94, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 94, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.16), rgba(0,0,0,.5));
  animation: gridFloat 18s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -280px;
  top: -220px;
  z-index: -2;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(139,92,246,.22), transparent 62%),
    conic-gradient(from 180deg, transparent, rgba(139,92,246,.16), rgba(111,191,154,.18), transparent);
  filter: blur(12px);
  animation: haloPulse 9s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
}

.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.hero-grid::before {
  width: 170px;
  height: 170px;
  left: -90px;
  top: 22px;
  background: radial-gradient(circle, rgba(111,191,154,.25), transparent 68%);
  animation: floatSoft 7.5s ease-in-out infinite;
}

.hero-grid::after {
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: 16px;
  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 68%);
  animation: floatSoft 9s ease-in-out infinite reverse;
}

.eyebrow {
  box-shadow: 0 12px 34px rgba(47, 111, 94, .07);
  backdrop-filter: blur(10px);
  animation: slideFadeIn .7s ease both;
}

.hero h1 {
  animation: slideFadeIn .85s ease .08s both;
}

.hero .lead {
  animation: slideFadeIn .85s ease .16s both;
}

.hero-actions,
.trust-row {
  animation: slideFadeIn .85s ease .24s both;
}

.hero-card {
  position: relative;
  transform: translateZ(0);
  box-shadow:
    0 24px 70px rgba(31, 41, 51, .08),
    0 0 0 1px rgba(255,255,255,.7) inset;
  animation: cardFloatIn .9s ease .18s both, cardBreath 6s ease-in-out 1.2s infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 34px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(111,191,154,.45), rgba(139,92,246,.42), transparent 62%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .72;
}

.workflow-step {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.workflow-step:hover {
  transform: translateX(5px);
  border-color: rgba(139, 92, 246, .28);
  box-shadow: 0 16px 34px rgba(31, 41, 51, .07);
}

.step-icon {
  box-shadow: 0 10px 22px rgba(47, 111, 94, .08);
}

.step-icon.purple {
  box-shadow: 0 10px 22px rgba(139, 92, 246, .13);
}

.trust-row span {
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.trust-row span:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.86);
  border-color: rgba(139,92,246,.22);
}

/* Cartes et sections plus interactives */
.card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,.22);
  box-shadow: 0 20px 48px rgba(31, 41, 51, .075);
  background: rgba(255,255,255,.9);
}

.icon-box {
  background: linear-gradient(135deg, rgba(111,191,154,.18), rgba(139,92,246,.12));
  transition: transform .22s ease;
}

.card:hover .icon-box {
  transform: rotate(-3deg) scale(1.06);
}

.cta-panel {
  box-shadow: 0 28px 74px rgba(47, 111, 94, .16);
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.19), transparent 62%);
  animation: haloPulse 8s ease-in-out infinite alternate;
}

/* Apparition au scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes gridFloat {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

@keyframes haloPulse {
  from { transform: translate3d(0,0,0) scale(.98); opacity: .72; }
  to { transform: translate3d(-18px, 12px, 0) scale(1.06); opacity: .94; }
}

@keyframes floatSoft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(14px, -18px, 0); }
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .hero::after {
    width: 520px;
    height: 520px;
    right: -260px;
    top: -120px;
  }

  .hero-card {
    animation: cardFloatIn .8s ease .16s both;
  }

  .workflow-step:hover {
    transform: none;
  }
}
