/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f5;
  --border: #e4ebf0;
  --navy: #1d3a57;
  --navy-soft: #2f5d86;
  --teal: #3aa7a0;
  --teal-soft: #4bc0b8;
  --text: #142536;
  --muted: #5d7283;
  --brand-grad: linear-gradient(120deg, #1d3a57 0%, #2f5d86 45%, #3aa7a0 100%);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --max: 1160px;
  --shadow-sm: 0 4px 16px -8px rgba(20, 37, 54, 0.25);
  --shadow: 0 24px 50px -24px rgba(20, 37, 54, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(20, 37, 54, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; color: var(--navy); }

.grad-text {
  background: linear-gradient(110deg, #2f5d86, #3aa7a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.75rem; font-weight: 700; color: var(--teal); margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand-grad); background-size: 160% 160%;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.5s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(58,167,160,0.6); background-position: 100% 0; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 140%; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); box-shadow: none; }
.btn-ghost::after { display: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 30px -20px rgba(20,37,54,0.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; flex: none; }
.brand-pro { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 90px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 600px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(58,167,160,0.1); color: var(--teal);
  border: 1px solid rgba(58,167,160,0.25);
  font-size: 0.82rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.pill::first-letter { color: var(--teal); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800; margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.hero-stats span { color: var(--muted); font-size: 0.88rem; }

/* Hero background */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-1 { width: 540px; height: 540px; top: -180px; right: -120px; background: radial-gradient(circle, #3aa7a0, transparent 70%); animation: float 14s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, #2f5d86, transparent 70%); opacity: 0.4; animation: float 18s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29,58,87,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(29,58,87,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, 30px); } }

/* Hero visual */
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.visual-card {
  width: 100%; max-width: 360px; background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg);
  animation: rise 0.9s var(--ease) both;
}
.visual-logo { width: 64px; height: 64px; margin-bottom: 22px; }
.visual-rows { display: flex; flex-direction: column; gap: 6px; }
.vrow { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; margin-top: 8px; }
.vrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.vrow b { color: var(--navy); font-weight: 600; }
.vrow i { margin-left: auto; color: var(--muted); font-style: normal; font-size: 0.82rem; font-weight: 600; }
.vbar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.vbar em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f5d86, #3aa7a0); animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.chip {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 16px; font-size: 0.85rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite;
}
.chip-1 { top: 4%; left: -6%; color: var(--teal); }
.chip-2 { bottom: 14%; left: -10%; animation-delay: 1s; }
.chip-3 { top: 20%; right: -6%; color: #f5a623; letter-spacing: 2px; animation-delay: 2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Marquee ===== */
.marquee { background: var(--navy); color: #fff; padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.05rem; }
.marquee-track i { color: var(--teal-soft); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ===== Grid + cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(140deg, rgba(47,93,134,0.12), rgba(58,167,160,0.14));
  border-radius: 16px; margin-bottom: 20px; transition: transform 0.35s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card-arrow { position: absolute; right: 26px; bottom: 26px; color: var(--teal); font-size: 1.2rem; opacity: 0; transform: translateX(-8px); transition: 0.3s var(--ease); }
.card-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  background: rgba(58,167,160,0.12); color: var(--teal);
  border: 1px solid rgba(58,167,160,0.32);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 7px 13px; border-radius: 999px;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ===== Features ===== */
.features-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.features-copy h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 26px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.check-list li { color: var(--muted); padding-left: 38px; position: relative; }
.check-list li strong { color: var(--navy); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; border-radius: 8px; font-size: 0.72rem; font-weight: 800;
}
.features-panel { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.step span {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.05rem; color: #fff;
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--brand-grad); border-radius: 12px;
}
.step b { color: var(--navy); display: block; font-family: "Sora", sans-serif; font-weight: 700; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== Zone ===== */
.zone-grid .card { text-align: left; }
.zone-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: 0.98rem; }

/* ===== Quote ===== */
.quote { max-width: 800px; margin: 0 auto; text-align: center; }
.quote-stars { color: #f5a623; font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 24px; }
.quote p { font-family: "Sora", sans-serif; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; color: var(--navy); letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 22px; }
.quote footer { color: var(--muted); font-weight: 600; }

/* ===== Réalisations (Avant / Après) ===== */
.ba-card { padding: 16px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-img {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e7eef2, #dfe9ee);
}
.ba-img.after { background: linear-gradient(135deg, rgba(58,167,160,0.18), rgba(47,93,134,0.16)); }
.ba-img::after { content: "📷"; font-size: 1.7rem; opacity: 0.45; z-index: 0; }
.ba-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ba-label {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(29,58,87,0.85); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.ba-img.after .ba-label { background: var(--teal); }
.ba-caption { margin: 14px 6px 4px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* ===== Avis clients ===== */
.review { display: flex; flex-direction: column; }
.review::before { display: none; }
.review .review-stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 14px; }
.review p { color: var(--muted); font-style: italic; margin-bottom: 20px; flex: 1; }
.review-author { font-family: "Sora", sans-serif; font-weight: 700; color: var(--navy); display: flex; flex-direction: column; font-style: normal; }
.review-author span { font-family: "Inter", sans-serif; font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.review-cta { background: linear-gradient(160deg, rgba(47,93,134,0.06), rgba(58,167,160,0.08)); border-style: dashed; justify-content: center; text-align: center; }
.review-cta p { font-style: normal; color: var(--navy); font-weight: 600; flex: 0; }
.review-cta .btn { align-self: center; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: "Sora", sans-serif; font-weight: 600; color: var(--navy); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal); line-height: 1; transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ===== Contact ===== */
.cta-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 64px 48px; box-shadow: var(--shadow);
}
.cta-card::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(58,167,160,0.16), transparent 70%); pointer-events: none;
}
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 18px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea {
  background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text); font: inherit; font-size: 0.96rem; font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9fb0bd; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(58,167,160,0.14);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: center; margin-top: 6px; }
.form-note { text-align: center; font-size: 0.9rem; min-height: 1.2em; }
.form-note.ok { color: #1f9d6b; }
.form-note.err { color: #dc3545; }
.contact-form input.invalid, .contact-form textarea.invalid { border-color: #dc3545; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-info { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 42px; font-weight: 600; color: var(--navy); position: relative; }
.contact-info a { transition: color 0.15s ease; }
.contact-info a:hover { color: var(--teal); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cdd9e3; padding-top: 64px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo { background: #fff; border-radius: 10px; padding: 4px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand p { color: #9fb3c4; margin-top: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; color: #fff; }
.footer-cols a { display: block; color: #9fb3c4; font-size: 0.95rem; margin-bottom: 11px; transition: color 0.15s ease; }
.footer-cols a:hover { color: var(--teal-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 26px 24px; text-align: center; color: #8aa0b2; font-size: 0.875rem; }

/* ===== Pages secondaires (merci, mentions légales) ===== */
.thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks-icon {
  width: 84px; height: 84px; margin: 0 auto 28px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-size: 2.4rem; font-weight: 800;
  border-radius: 50%; box-shadow: var(--shadow);
}
.thanks h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 16px; }
.thanks-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 6px 0 8px; }
.prose h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 12px; }
.prose strong { color: var(--navy); }
.prose a { color: var(--teal); font-weight: 500; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy { max-width: none; }
  .hero-cta, .hero-stats { justify-content: center; }
  .features-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 24px 24px; transform: translateY(-130%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.btn { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .section { padding: 72px 0; }
  .cta-card { padding: 40px 22px; }
  .chip-1, .chip-2, .chip-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
