/* ================================================================
   THESITEFUSE — HOMEPAGE (index.css)
   Design inspiré : hero sombre, animations, impact visuel
   ================================================================ */

/* ── HERO ────────────────────────────────────────────────────── */
.ix-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0f172a 100%);
  padding: 5rem 0 4rem;
}

/* Animated gradient orbs */
.ix-hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.ix-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .25;
  animation: floatOrb 8s ease-in-out infinite alternate;
}
.ix-float-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-duration: 9s;
}
.ix-float-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 50px; right: -80px;
  animation-duration: 11s; animation-delay: -3s;
}
.ix-float-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -80px; left: 40%;
  animation-duration: 13s; animation-delay: -6s;
}
@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.1); }
}

.ix-hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ix-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #93c5fd;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  padding: .35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.ix-badge-dot {
  width: 7px; height: 7px;
  background: #22d3ee;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.ix-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.ix-hero h1 .ix-highlight {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ix-hero-form {
  max-width: 580px;
  margin: 0 auto 1.25rem;
}
.ix-form-wrap {
  display: flex;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.ix-form-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56,189,248,.2);
}
.ix-domain-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  padding: .9rem 1.25rem;
  min-width: 0;
}
.ix-domain-input::placeholder { color: rgba(255,255,255,.45); }
.ix-domain-input:disabled { opacity: .5; }
.ix-submit-btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  font-size: .95rem; font-weight: 700;
  padding: .9rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .1s;
  flex-shrink: 0;
}
.ix-submit-btn:hover:not(:disabled) {
  opacity: .9; transform: scale(1.01);
}
.ix-submit-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Trust signals row */
.ix-trust {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: 1.75rem;
}
.ix-trust-item {
  display: flex; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.6); font-size: .82rem;
}
.ix-trust-icon { color: #4ade80; font-size: .9rem; }
.ix-trust-sep {
  color: rgba(255,255,255,.2); font-size: 1.1rem;
}

/* ── STATS STRIP ──────────────────────────────────────────────── */
.ix-stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.ix-stats-grid {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem 0;
}
.ix-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem 2.5rem;
  border-right: 1px solid var(--border);
  min-width: 150px;
}
.ix-stat:last-child { border-right: none; }
.ix-stat-num {
  font-size: 2rem; font-weight: 900;
  color: var(--blue); letter-spacing: -.03em;
  line-height: 1;
}
.ix-stat-num.counting { transition: none; }
.ix-stat-label {
  font-size: .78rem; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.ix-how {
  padding: 5rem 0;
  background: var(--blue-50);
}
.ix-section-tag {
  display: inline-block;
  background: var(--blue-100); color: var(--blue);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 9999px;
  margin-bottom: .9rem;
}
.ix-section-h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--navy); margin-bottom: .6rem;
}
.ix-section-sub {
  color: var(--text-3); font-size: 1rem; max-width: 560px;
  margin: 0 auto; line-height: 1.7;
}
.ix-section-head { text-align: center; margin-bottom: 3.5rem; }

.ix-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

/* Connecting line between steps */
@media (min-width: 640px) {
  .ix-steps::before {
    content: '';
    position: absolute;
    top: 28px; left: calc(16.67% + 16px); right: calc(16.67% + 16px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #2563eb 0, #2563eb 8px, transparent 8px, transparent 18px);
    opacity: .3;
  }
}

.ix-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.ix-step:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.ix-step-num {
  width: 52px; height: 52px;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  position: relative; z-index: 1;
}
.ix-step h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin-bottom: .5rem;
}
.ix-step p {
  font-size: .9rem; color: var(--text-3); line-height: 1.6;
}

/* ── PREVIEW CARD ─────────────────────────────────────────────── */
.ix-preview {
  padding: 5rem 0;
  background: var(--bg);
}
.ix-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .ix-preview-inner { grid-template-columns: 1fr; }
}
.ix-preview-copy h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--navy); margin-bottom: 1rem;
}
.ix-preview-copy p {
  color: var(--text-3); line-height: 1.7; margin-bottom: 1.5rem;
}
.ix-preview-list {
  list-style: none; display: flex; flex-direction: column; gap: .7rem;
}
.ix-preview-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .92rem; color: var(--text-2);
}
.ix-preview-list .check { color: var(--ok); font-size: 1rem; margin-top: .05rem; }

/* Animated report card */
.ix-report-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--sh-xl);
  overflow: hidden;
  transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
  animation: cardFloat 6s ease-in-out infinite alternate;
}
@keyframes cardFloat {
  from { transform: perspective(800px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  to   { transform: perspective(800px) rotateY(-4deg) rotateX(1deg) translateY(-10px); }
}
.ix-report-card:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) !important;
  animation: none;
}
.ix-card-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.ix-card-logo { color: #3b82f6; }
.ix-card-title { color: #fff; font-weight: 700; font-size: .95rem; }
.ix-card-domain { color: #93c5fd; font-size: .82rem; margin-left: auto; }
.ix-card-body { padding: 1.5rem; }
.ix-card-score-row {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.ix-card-score {
  font-size: 3.5rem; font-weight: 900; letter-spacing: -.04em;
  line-height: 1;
}
.ix-card-score.bad   { color: var(--err); }
.ix-card-score.ok    { color: var(--ok); }
.ix-card-score span  { font-size: 1.5rem; color: var(--text-3); }
.ix-card-pills { display: flex; flex-direction: column; gap: .4rem; }
.ix-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; padding: .25rem .65rem;
  border-radius: 9999px;
}
.ix-pill.ok   { background: var(--ok-bg); color: var(--ok); }
.ix-pill.warn { background: var(--warn-bg); color: var(--warn); }
.ix-pill.err  { background: var(--err-bg); color: var(--err); }

.ix-card-checks { display: flex; flex-direction: column; gap: .6rem; }
.ix-check-row {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem;
  border-radius: 8px;
  font-size: .83rem; font-weight: 500;
  animation: fadeIn .5s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}
.ix-check-row:nth-child(1) { animation-delay: .1s; }
.ix-check-row:nth-child(2) { animation-delay: .25s; }
.ix-check-row:nth-child(3) { animation-delay: .4s; }
.ix-check-row:nth-child(4) { animation-delay: .55s; }
.ix-check-row.ok   { background: var(--ok-bg); color: #14532d; }
.ix-check-row.warn { background: var(--warn-bg); color: #78350f; }
.ix-check-row.err  { background: var(--err-bg); color: #7f1d1d; }
.ix-check-icon { font-size: .95rem; flex-shrink: 0; }

/* Animated score bar */
.ix-score-bar { margin: 1rem 0 .5rem; }
.ix-score-bar-label {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--text-3); margin-bottom: .35rem;
}
.ix-score-bar-track {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.ix-score-bar-fill {
  height: 100%; border-radius: 3px;
  animation: growBar 1.2s ease-out both;
}
@keyframes growBar {
  from { width: 0 !important; }
  to   { /* final width set inline */ }
}
.ix-score-bar-fill.ok   { background: var(--ok); }
.ix-score-bar-fill.warn { background: var(--warn); }
.ix-score-bar-fill.err  { background: var(--err); }

/* ── FEATURES ─────────────────────────────────────────────────── */
.ix-features {
  padding: 5rem 0;
  background: #fff;
}
.ix-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ix-feat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  background: var(--bg);
}
.ix-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--blue-100);
}
.ix-feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.c-blue   { background: #eff6ff; color: #2563eb; }
.c-purple { background: #f5f3ff; color: #7c3aed; }
.c-green  { background: #f0fdf4; color: #16a34a; }
.c-orange { background: #fff7ed; color: #ea580c; }
.c-teal   { background: #f0fdfa; color: #0d9488; }
.c-gray   { background: #f8fafc; color: #475569; }

.ix-feat-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem;
}
.ix-feat-card p { font-size: .88rem; color: var(--text-3); line-height: 1.6; margin-bottom: .75rem; }
.ix-feat-count {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--blue); text-transform: uppercase;
  background: var(--blue-50); padding: .2rem .65rem;
  border-radius: 9999px; display: inline-block;
}

.ix-price-trust {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: 2.5rem; font-size: .82rem; color: var(--text-3);
}
.ix-price-trust-chip { display: flex; align-items: center; gap: .35rem; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.ix-faq { padding: 5rem 0; background: #fff; }
.ix-faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.ix-faq-item {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s;
}
.ix-faq-item[open] { box-shadow: var(--sh-sm); }
.ix-faq-item summary {
  padding: 1.1rem 1.25rem;
  font-size: .95rem; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .15s;
}
.ix-faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0; margin-left: 1rem;
}
.ix-faq-item[open] summary::after { transform: rotate(45deg); }
.ix-faq-item summary:hover { background: var(--blue-50); }
.ix-faq-item summary::-webkit-details-marker { display: none; }
.ix-faq-item p { padding: 0 1.25rem 1.25rem; font-size: .9rem; color: var(--text-3); line-height: 1.7; }

/* ── FINAL CTA ────────────────────────────────────────────────── */
.ix-cta {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  padding: 5rem 0; text-align: center;
}
.ix-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900; color: #fff;
  letter-spacing: -.03em; margin-bottom: .75rem;
}
.ix-cta p { color: #93c5fd; font-size: 1rem; margin-bottom: 2rem; }
.ix-cta-form { max-width: 520px; margin: 0 auto; }
.ix-cta-form .ix-form-wrap { max-width: none; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ix-hero { padding: 3.5rem 0 3rem; min-height: auto; }
  .ix-form-wrap { flex-direction: column; border-radius: 12px; }
  .ix-submit-btn { border-radius: 0 0 10px 10px; width: 100%; padding: 1rem; }
  .ix-domain-input { padding: .85rem 1rem; }
  .ix-stat { padding: .5rem 1.25rem; min-width: auto; }
  .ix-stat-num { font-size: 1.6rem; }
}

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.ix-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.ix-reveal.is-visible { opacity: 1; transform: none; }

/* ── RESPONSIVE EXTRA — mobile 320-430px ─────────────────────── */
@media (max-width: 480px) {
  .ix-hero { padding: 2.5rem 0 2rem; }
  .ix-hero-inner { padding: 0 1rem; }
  .ix-badge { font-size: .72rem; padding: .3rem .75rem; margin-bottom: 1rem; }
  .ix-hero h1 { margin-bottom: .85rem; }

  /* Stats strip: remove dividers, compact */
  .ix-stat { padding: .4rem .75rem; border-right: none; min-width: auto; }
  .ix-stat-num { font-size: 1.45rem; }
  .ix-stat-label { font-size: .7rem; }
  .ix-stats-grid { gap: .1rem 0; flex-wrap: wrap; }

  /* Steps section */
  .ix-how { padding: 3rem 0; }
  .ix-steps { grid-template-columns: 1fr; gap: 1rem; }
  .ix-step { padding: 1.5rem 1.25rem; }
  .ix-step-num { width: 44px; height: 44px; font-size: 1.1rem; }

  /* Preview section */
  .ix-preview { padding: 3rem 0; }
  .ix-preview-inner { gap: 2rem; }
  .ix-report-card { transform: none; animation: none; }

  /* Features section */
  .ix-features { padding: 3rem 0; }
  .ix-features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ix-feat-card { padding: 1.35rem 1.1rem; }

  /* FAQ section */
  .ix-faq { padding: 3rem 0; }
  .ix-faq-item summary { padding: .9rem 1rem; font-size: .88rem; }
  .ix-faq-item p { padding: 0 1rem 1rem; font-size: .85rem; }

  /* Final CTA */
  .ix-cta { padding: 3rem 0 3.5rem; }
  .ix-cta-form .ix-form-wrap { flex-direction: column; border-radius: 12px; }

  /* Section heads */
  .ix-section-head { margin-bottom: 2rem; }
  .ix-section-h2 { font-size: 1.55rem; }
  .ix-section-sub { font-size: .9rem; }
}

@media (max-width: 380px) {
  .ix-hero-inner { padding: 0 .75rem; }
  .ix-steps::before { display: none; }
  .ix-step h3 { font-size: .95rem; }
  .ix-step p { font-size: .82rem; }
}
