/* ==========================================================================
   Inspire Studio — Référencement Google & Visibilité IA
   ========================================================================== */

:root {
  --bg: #0A0B10;
  --bg-soft: #0D0F16;
  --surface: #13151D;
  --surface-2: #191C27;
  --border: #242838;
  --border-soft: #1C1F2C;

  --text: #F5F6FA;
  --text-muted: #9BA1B5;
  --text-faint: #6B7284;

  --primary: #6C5CE7;
  --primary-2: #8B7CFF;
  --accent: #27E0C7;
  --accent-2: #5EEAD4;

  --radius-sm: .5rem;
  --radius: .9rem;
  --radius-lg: 1.4rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(139,124,255,.15), 0 12px 40px rgba(108,92,231,.18);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', var(--font-body);

  --container-w: 1180px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
em { color: var(--text); font-style: italic; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 740px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(139,124,255,.25), 0 16px 48px rgba(108,92,231,.3); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(139,124,255,.5); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,11,16,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(10,11,16,.92);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { height: 24px; width: auto; }
.brand-tag {
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  color: var(--text-muted);
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: .92rem; font-weight: 500; color: var(--text-muted);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 0 auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 5.5rem;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0;
}
.hero-glow-1 { width: 520px; height: 520px; top: -220px; left: -120px; background: rgba(108,92,231,.35); }
.hero-glow-2 { width: 480px; height: 480px; top: -160px; right: -140px; background: rgba(39,224,199,.22); }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(39,224,199,.18);
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -.02em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-kicker-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--text-muted);
  margin: .6rem 0 1.5rem;
}

.hero-sub {
  font-size: 1.08rem; color: var(--text-muted);
  max-width: 580px; margin-bottom: 1.5rem;
}
.hero-question {
  font-size: 1rem; color: var(--text);
  max-width: 560px; margin-bottom: 2.25rem;
}
.hero-question em { color: var(--text-muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }

.hero-engines { display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.engine-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chip {
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
}

.hero-banner-caption {
  position: relative; z-index: 1;
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text);
  margin: 3.5rem 0 1.25rem;
}
.hero-banner {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.hero-banner img { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head {
  max-width: 640px; margin: 0 auto 3.5rem; text-align: center;
}
.kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -.01em;
  margin-bottom: .9rem;
}
.section-head p { color: var(--text-muted); font-size: 1.02rem; }
.section-subtitle {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem) !important;
  color: var(--text-muted) !important;
}
.section-head:last-child p:last-child,
.section-head h2:last-child { margin-bottom: 0; }
.geo-acronym {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--accent-2); margin-top: .6rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ---------- Visual images (generated illustrations) ---------- */
.visual-image {
  margin: 2.25rem auto;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.visual-image img { width: 100%; height: auto; display: block; }

/* ---------- Narrow text sections ---------- */
.narrow-lead {
  display: block; text-align: center;
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 580px; margin: 0 auto;
}
.narrow-body { display: flex; flex-direction: column; gap: 1.1rem; }
.narrow-body p { color: var(--text-muted); font-size: 1.02rem; }
.method-intro { margin-bottom: 2.5rem; }
.narrow-strong { color: var(--text) !important; font-weight: 600; font-size: 1.08rem !important; }
.geo-closing {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--text); margin-top: .4rem;
}

.vitrine-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  margin: 2rem 0;
}
.vitrine-list li {
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600; font-size: .92rem; color: var(--text);
}

.question-list {
  display: flex; flex-direction: column; gap: .9rem;
  margin-top: 2rem;
}
.question-list li {
  position: relative; padding-left: 1.4rem;
  color: var(--text-muted); font-size: 1rem;
}
.question-list li::before {
  content: '';
  position: absolute; left: 2px; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}


/* ---------- Test / contact form ---------- */
.section-test { position: relative; overflow: hidden; }
.section-test .hero-glow-1 { top: auto; bottom: -220px; left: -160px; }
.test-inner {
  position: relative; z-index: 1;
}
.test-intro { max-width: 560px; margin: 0 auto; text-align: center; }
.test-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin: .9rem 0 1rem; letter-spacing: -.01em; }
.test-intro p { color: var(--text-muted); margin-bottom: 1.75rem; }
.contact-points { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.contact-points li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--text-muted); }
.contact-points svg { color: var(--accent); flex-shrink: 0; }

.test-intro-actions { margin-top: 2.25rem; }

.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.direct-link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.direct-link svg { color: var(--accent); flex-shrink: 0; }
.direct-link:hover { border-color: rgba(39,224,199,.45); transform: translateY(-2px); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: .45rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(139,124,255,.18);
}
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .78rem; color: var(--text-faint); text-align: center; margin-top: .9rem; }

.form-success {
  display: flex; align-items: flex-start; gap: .8rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(39,224,199,.1);
  border: 1px solid rgba(39,224,199,.35);
  border-radius: var(--radius-sm);
  color: var(--accent-2);
}
.form-success p { color: var(--text-muted); font-size: .88rem; margin-top: .2rem; }

/* ---------- Test modal (dialog) ---------- */
.test-modal {
  padding: 0; border: none; background: transparent;
  max-width: min(560px, calc(100vw - 2rem));
  max-height: min(90vh, 760px);
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.test-modal::backdrop {
  background: rgba(5,6,10,.75);
  backdrop-filter: blur(4px);
}
.test-modal[open] { display: flex; }
.test-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  max-height: min(90vh, 760px);
  overflow-y: auto;
  width: 100%;
}
.test-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}
.test-modal-close:hover { color: var(--text); border-color: rgba(139,124,255,.4); }
.test-modal-title { font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: .4rem; padding-right: 2rem; }
.test-modal-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.test-modal-card .contact-form {
  background: none; border: none; padding: 0; box-shadow: none;
}

/* ---------- Journey (parcours) ---------- */
.journey {
  display: flex;
  align-items: flex-start;
}
.journey-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 .5rem;
}
.journey-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.4rem;
}
.journey-step-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.journey-arrow {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 56px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.journey-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.journey-step p { color: var(--text-muted); font-size: .86rem; }

/* ---------- Method grid ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.method-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
}
.method-num {
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}
.method-item h3 { font-size: 1rem; margin-bottom: .55rem; }
.method-item p { color: var(--text-muted); font-size: .88rem; }

/* ---------- Final CTA ---------- */
.final-cta { max-width: 640px; margin: 0 auto; text-align: center; }
.final-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-bottom: .9rem; letter-spacing: -.01em; }
.final-cta p { color: var(--text-muted); margin-bottom: .4rem; }
.final-cta p:last-of-type { margin-bottom: 2rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: .75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600; font-size: .98rem;
}
.faq-chevron { color: var(--text-faint); flex-shrink: 0; transition: transform .25s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-panel p { padding: 0 1.5rem 1.4rem; color: var(--text-muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, rgba(13,15,22,.94) 60%, var(--bg-soft) 100%),
    url('../img/footer-bg.webp');
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 4rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p { color: var(--text-faint); font-size: .9rem; margin-top: .85rem; max-width: 260px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 1rem; }
.footer-nav a, .footer-text {
  display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .65rem;
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: .82rem; color: var(--text-faint);
}
.footer-legal a { color: var(--text-faint); }
.footer-legal a:hover { color: var(--text-muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10,11,16,.98);
    border-bottom: 1px solid var(--border-soft);
    padding: 1.25rem 1.5rem 2rem;
    gap: 1.25rem;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }

  .method-grid { grid-template-columns: repeat(2, 1fr); }

  .journey { flex-direction: column; }
  .journey-step { display: flex; align-items: flex-start; gap: 1rem; text-align: left; padding: 0; }
  .journey-icon { margin: 0; flex-shrink: 0; }
  .journey-step-body { flex: 1; }
  .journey-arrow { width: 56px; height: 28px; margin: .1rem 0; }
  .journey-arrow svg { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .method-grid { grid-template-columns: 1fr; }
  .vitrine-list { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .001ms !important; }
}
