/* ===== AGENCE NOVATIS — thème clair premium =====
   Système de formes : boutons pleins arrondis (999px), cartes 16px, champs 10px.
   Accent unique : bleu électrique #1242e2 sur neutres zinc. */
:root {
  --bg: #f7f7f8;
  --bg-alt: #efeff1;
  --surface: #ffffff;
  --border: #e2e2e6;
  --text: #17171c;
  --muted: #5d5d68;
  --accent: #1242e2;
  --accent-dark: #0e34b4;
  --accent-soft: #e8edfd;
  --radius: 16px;
  --font: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1200px, 92%); margin: 0 auto; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
img { display: block; max-width: 100%; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 66, 226, 0.22);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-small { padding: 0.55rem 1.25rem; font-size: 0.92rem; }
.btn-full { width: 100%; text-align: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(247, 247, 248, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1200px, 92%); margin: 0 auto; }
.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 110; }
.burger span { width: 25px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero { padding: 9.5rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 { max-width: 13ch; }
.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 44ch;
  margin: 1.3rem 0 2rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.social-proof { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.sp-avatars { display: flex; }
.sp-avatars img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg);
  margin-left: -12px;
}
.sp-avatars img:first-child { margin-left: 0; }
.sp-text { display: flex; flex-direction: column; line-height: 1.3; }
.sp-stars { color: #f5a623; letter-spacing: 1px; font-size: 0.95rem; }
.sp-text span:last-child { color: var(--muted); font-size: 0.88rem; }
.hero-stats { display: flex; gap: 2.8rem; margin-top: 3rem; }
.stat-num, .stat-unit { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-unit { color: var(--accent); }
.stat p { color: var(--muted); font-size: 0.9rem; }
.hero-visual { position: relative; }
.hero-visual > img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  box-shadow: 0 30px 60px -25px rgba(23, 23, 28, 0.35);
}
.hero-card {
  position: absolute;
  left: -2.2rem; bottom: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  max-width: 240px;
  box-shadow: 0 18px 40px -18px rgba(23, 23, 28, 0.3);
}
.hero-card strong { font-size: 1.7rem; font-weight: 800; color: var(--accent); display: block; }
.hero-card span { color: var(--muted); font-size: 0.86rem; line-height: 1.45; display: block; }

/* ===== MARQUEE CLIENTS ===== */
.trustbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.2rem 0;
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 4.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-weight: 600;
  font-size: 1.05rem;
  color: #b9b9c2;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; }
}

/* ===== SECTIONS ===== */
.section { padding: 7.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 4rem; }
.section-head h2 { max-width: 22ch; }
.section-sub { color: var(--muted); margin-top: 0.9rem; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* ===== BENTO SERVICES ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 1.2rem;
}
.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-cell:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -18px rgba(23, 23, 28, 0.25); }
.bento-cell svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: auto; }
.bento-cell h3 { font-size: 1.15rem; font-weight: 600; }
.bento-cell p { color: var(--muted); font-size: 0.94rem; }
.cell-photo {
  grid-row: span 2;
  background-size: cover;
  background-position: center;
  padding: 0;
  overflow: hidden;
  justify-content: flex-end;
}
.cell-photo-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(13, 13, 18, 0.88));
  padding: 7rem 1.8rem 1.8rem;
}
.cell-photo-overlay h3 { color: #fff; }
.cell-photo-overlay p { color: rgba(255, 255, 255, 0.78); }
.cell-tint { background: var(--accent-soft); border-color: #d4ddf9; }
.cell-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cell-wide h3 { margin-bottom: 0.4rem; }
.cell-wide .btn { flex-shrink: 0; }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}
.work { text-decoration: none; color: var(--text); display: block; }
.browser-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work:hover .browser-frame {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -20px rgba(23, 23, 28, 0.3);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: #f0f0f2;
  border-bottom: 1px solid var(--border);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6dc; }
.browser-bar em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.12rem 0.85rem;
  border-radius: 6px;
}
.browser-frame > img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work:hover .browser-frame > img { transform: scale(1.04); }
.work-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.3rem 0;
}
.work-info h3 { font-size: 1.08rem; font-weight: 600; }
.work-info p { color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.work-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.work:hover .work-arrow { transform: translateX(5px); }
.work-tag {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s ease;
}
.work-tag.live { color: var(--accent); background: var(--accent-soft); border-color: #d4ddf9; }
.work:hover .work-tag.live { transform: translateX(3px); }
.portfolio-note { color: var(--muted); margin-top: 2.6rem; font-size: 0.94rem; max-width: 64ch; }

/* ===== MÉTHODE (timeline) ===== */
.methode-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.5rem;
  align-items: start;
}
.methode-intro { position: sticky; top: 110px; }
.methode-intro h2 { max-width: 16ch; }
.methode-intro p { color: var(--muted); margin-top: 1rem; max-width: 38ch; }
.timeline { list-style: none; counter-reset: etape; }
.timeline li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 2.4rem 4.4rem;
  border-left: 1.5px solid var(--border);
  margin-left: 1.4rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: -1.45rem;
  top: -0.2rem;
  width: 2.85rem; height: 2.85rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.timeline h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.35rem; }
.timeline p { color: var(--muted); font-size: 0.96rem; max-width: 46ch; }

/* ===== APERÇU FORFAITS (accueil) ===== */
.forfait-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.fo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fo-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(23, 23, 28, 0.25); }
.fo-card.base { border-color: var(--accent); }
.fo-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.fo-price { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.5rem 0 0.2rem; }
.fo-price i { font-style: normal; font-size: 1rem; font-weight: 500; color: var(--muted); }
.fo-sub { color: var(--muted); font-size: 0.9rem; }
.fo-card ul { list-style: none; margin-top: 1.2rem; }
.fo-card li {
  padding: 0.32rem 0 0.32rem 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
}
.fo-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.56rem;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.forfait-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .forfait-overview { grid-template-columns: 1fr; }
}

/* ===== PAGE CONFIGURATEUR "CRÉER MON SITE" ===== */
.steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.2rem;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.step-dot span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.step-dot.active { color: var(--text); }
.step-dot.active span { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-dot.done { cursor: pointer; color: var(--text); }
.step-dot.done span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.config-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
.config-step { display: none; animation: fadeStep 0.4s ease; }
.config-step.active { display: block; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cfg-block {
  border: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  margin-bottom: 1.4rem;
}
.cfg-block legend {
  font-weight: 700;
  font-size: 1.12rem;
  padding: 0;
  margin-bottom: 1.1rem;
}
.cfg-hint { color: var(--muted); font-size: 0.92rem; margin: -0.6rem 0 1.2rem; }
.config-main .field label { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; display: block; color: var(--text); }
.config-main .field input,
.config-main .field select,
.config-main .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.97rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.config-main .field textarea { resize: vertical; line-height: 1.6; }
.config-main .field input::placeholder,
.config-main .field textarea::placeholder { color: #a8a8b3; }
.config-main .field input:hover,
.config-main .field select:hover,
.config-main .field textarea:hover { border-color: #c4c4cc; }
.config-main .field input:focus,
.config-main .field select:focus,
.config-main .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: block;
  height: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.choice:hover .choice-body { transform: translateY(-2px); border-color: var(--text); }
.choice.selected .choice-body { border-color: var(--accent); background: var(--accent-soft); }
.choice-body strong { display: block; font-size: 1.02rem; }
.choice-body span { display: block; color: var(--muted); font-size: 0.86rem; margin: 0.2rem 0 0.6rem; }
.choice-body b { color: var(--accent); font-size: 0.95rem; }

.opt-list { display: flex; flex-direction: column; gap: 0.7rem; }
.opt-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.opt-row:hover { border-color: var(--text); }
.opt-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt-row input {
  width: 22px; height: 22px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.opt-row > span { flex: 1; }
.opt-row strong { display: block; font-size: 0.98rem; }
.opt-row small { color: var(--muted); font-size: 0.85rem; }
.opt-row b { font-weight: 700; color: var(--text); white-space: nowrap; }
.opt-row b i { color: var(--muted); font-weight: 500; font-style: normal; font-size: 0.82rem; }
.opt-row.big { align-items: flex-start; }
.opt-row.big small { max-width: 46ch; line-height: 1.5; margin-top: 0.2rem; }

.cfg-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}

.config-summary {
  position: sticky;
  top: 96px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.9rem;
}
.config-summary h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.config-summary .summary-lines li { font-size: 0.9rem; }
.config-summary .summary-lines li.monthly-line strong { color: #8db4ff; }

/* Grille 2 colonnes pour les fonctionnalités à cocher */
.opt-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
@media (max-width: 560px) { .opt-list.two-col { grid-template-columns: 1fr; } }

/* Encart latéral "Et ensuite ?" */
.brief-steps {
  list-style: none;
  counter-reset: brief;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.brief-steps li {
  counter-increment: brief;
  position: relative;
  padding-left: 2.6rem;
}
.brief-steps li::before {
  content: counter(brief);
  position: absolute;
  left: 0; top: 0;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.brief-steps strong { display: block; font-size: 0.97rem; }
.brief-steps span { color: #c9c9d2; font-size: 0.88rem; }

/* ===== BANNIÈRE COOKIES ===== */
.cookie-bar {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 400;
  max-width: 760px;
  margin: 0 auto;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-bar p { font-size: .9rem; color: #d7d7de; flex: 1; min-width: 240px; line-height: 1.5; }
.cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .7rem; }
.cookie-bar button {
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  transition: background .2s, color .2s;
}
.cookie-bar .btn-refuse:hover { background: rgba(255,255,255,.12); }
.cookie-bar .btn-accept { background: var(--accent); border-color: var(--accent); }
.cookie-bar .btn-accept:hover { background: var(--accent-dark); }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .cookie-bar button { flex: 1; } }

/* ===== PAGES LÉGALES ===== */
.legal { padding: 9rem 0 5rem; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.6rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.legal p, .legal li { color: #44444e; font-size: 1rem; line-height: 1.7; }
.legal ul { margin: .6rem 0 .6rem 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--accent); }
.legal .back { display: inline-block; margin-top: 2.6rem; }
.legal .note { background: var(--accent-soft); border: 1px solid #d4ddf9; border-radius: 12px; padding: 1rem 1.2rem; font-size: .92rem; color: #2a3556; }

/* ===== PAGE PAIEMENT ===== */
.page-head { padding: 8.5rem 0 3rem; }
.page-head h1 { max-width: 16ch; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 50ch; }
.pay-reassure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2.2rem;
}
.pay-reassure strong { display: block; font-size: 0.98rem; }
.pay-reassure span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) {
  .pay-reassure { grid-template-columns: 1fr; }
}

/* ===== FORFAITS : configurateur d'offre ===== */
.offer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.offer-options { display: flex; flex-direction: column; gap: 1.2rem; }
.offer-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  position: relative;
  display: block;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.offer-card.base { border-color: var(--text); }
.offer-card.option { cursor: pointer; }
.offer-card.option:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(23, 23, 28, 0.25); }
.offer-card input { position: absolute; opacity: 0; pointer-events: none; }
.offer-card.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.offer-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.offer-head h3 { font-size: 1.15rem; font-weight: 700; }
.offer-head p { color: var(--muted); font-size: 0.93rem; margin-top: 0.25rem; max-width: 42ch; }
.offer-price { text-align: right; flex-shrink: 0; }
.offer-price strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; display: block; }
.offer-price span { color: var(--muted); font-size: 0.82rem; }
.offer-card ul { list-style: none; margin-top: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.5rem; }
.offer-card li {
  padding: 0.22rem 0 0.22rem 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}
.offer-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.offer-tag {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
}
.offer-check {
  position: absolute;
  top: 1.5rem; right: 1.6rem;
  width: 24px; height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.offer-card.option .offer-head { padding-right: 2.6rem; }
.offer-card.option .offer-price { margin-right: -2.6rem; padding-right: 2.6rem; }
.offer-card.option.selected .offer-check {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
  border-color: var(--accent);
}
.offer-summary {
  position: sticky;
  top: 96px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.9rem;
}
.offer-summary h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.1rem; }
.summary-lines { list-style: none; }
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.93rem;
  color: #c9c9d2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.summary-lines strong { color: #fff; font-weight: 600; }
.summary-total { margin: 1.1rem 0 1.4rem; }
.t-line { display: flex; justify-content: space-between; align-items: baseline; padding: 0.25rem 0; }
.t-line span { color: #c9c9d2; font-size: 0.9rem; }
.t-line strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.t-line.monthly strong { font-size: 1.1rem; }
.summary-note { color: #9b9ba8; font-size: 0.8rem; margin-top: 0.9rem; line-height: 1.5; }
.summary-alt {
  display: block;
  margin-top: 1rem;
  color: #c9c9d2;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.summary-alt:hover { color: #fff; }

/* ===== FORFAITS (anciens styles, conservés pour compat) ===== */
.pricing-switch {
  position: relative;
  display: flex;
  width: fit-content;
  margin: -1rem 0 2.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
}
.pricing-switch button {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.pricing-switch button.active { color: #fff; }
.switch-pill {
  position: absolute;
  z-index: 1;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pricing-switch.split .switch-pill { transform: translateX(100%); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(23, 23, 28, 0.25); }
.price-card.featured { border: 2px solid var(--accent); }
.badge-pop {
  position: absolute;
  top: -13px; left: 1.7rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; }
.price-desc { color: var(--muted); font-size: 0.92rem; margin: 0.35rem 0 1.1rem; }
.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
.price-period { color: var(--muted); font-size: 0.92rem; }
.price-num { display: inline-block; }
.price-card ul { list-style: none; margin: 1.4rem 0 1.8rem; flex: 1; }
.price-card li {
  padding: 0.4rem 0 0.4rem 1.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.74rem;
  width: 15px; height: 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== L'AGENCE ===== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-img img {
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.about-text h2 { max-width: 18ch; }
.about-text > p { color: var(--muted); margin: 1.1rem 0 1.4rem; max-width: 48ch; }
.about-list { list-style: none; margin: 0 0 1.8rem; }
.about-list li {
  padding: 0.35rem 0 0.35rem 1.7rem;
  font-size: 0.98rem;
  position: relative;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.68rem;
  width: 15px; height: 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== TÉMOIGNAGES (colonnes défilantes) ===== */
.testi-cols {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  max-height: 620px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
}
.testi-col { flex: 1; max-width: 360px; }
.testi-track {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-bottom: 1.4rem;
  animation: testiScroll var(--speed, 36s) linear infinite;
}
.testi-cols:hover .testi-track { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: 0 10px 26px -18px rgba(23, 23, 28, 0.2);
}
.testi-card blockquote { font-size: 0.98rem; color: var(--text); }
.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.testi-card img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.testi-card strong { font-size: 0.95rem; }
.testi-card figcaption span { display: block; color: var(--muted); font-size: 0.84rem; }
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
  .testi-cols { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .testi-track > .testi-card:nth-child(n+4) { display: none; }
}

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.contact-sub { color: var(--muted); margin: 0.9rem 0 1.7rem; max-width: 40ch; }
.contact-lines p {
  color: var(--muted);
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.contact-lines svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-success { display: none; color: #0d7a45; font-weight: 600; }
.form-success.show { display: block; animation: popIn 0.4s ease; }
.form-error { display: none; color: #c0392b; font-weight: 600; }
.form-error.show { display: block; animation: popIn 0.4s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ===== REVEAL AU SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.09s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.27s; }
.delay-4 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual > img { aspect-ratio: 16 / 10; }
  .hero-card { left: 1rem; bottom: 1rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-photo { grid-row: span 1; min-height: 280px; }
  .cell-wide { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .methode-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .methode-intro { position: static; }
  .about-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .testi-col-lg { display: none; }
}
@media (max-width: 700px) {
  .testi-col-md { display: none; }
  .testi-col { max-width: none; }
}
@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.35s ease;
    box-shadow: -16px 0 40px rgba(23, 23, 28, 0.15);
  }
  .nav-links.open { right: 0; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .form-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: span 1; }
  .hero { padding-top: 7.5rem; }
  .hero-stats { gap: 1.6rem; flex-wrap: wrap; }
}

/* ===== AMÉLIORATIONS PREMIUM (inspiration Bragg) ===== */

/* Ancrages : le titre ne se cache plus sous la navbar fixe */
[id] { scroll-margin-top: 90px; }

/* Accessibilité clavier (et bon signal SEO/a11y) */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nav : soulignement animé au survol */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* Boutons : transition plus soignée, lift plus marqué */
.btn {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease, box-shadow 0.32s ease, border-color 0.25s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(18, 66, 226, 0.5); }

/* Cartes services : élévation et image plus vivantes */
.bento-cell, .work .browser-frame, .price-card, .step, .fo-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

/* Titres de section : léger renfort visuel */
.eyebrow { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .nav-links a:not(.btn)::after { transition: none; }
  .btn, .bento-cell, .work .browser-frame, .price-card, .step, .fo-card { transition: none; }
}
