@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Skip navigation - accessibilité clavier */
.skip-nav {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; z-index: 9999;
}
.skip-nav:focus {
  position: fixed; left: 1rem; top: 0; width: auto; height: auto;
  overflow: visible; background: #3b82f6; color: #fff; padding: 0.65rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem; font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: #07111f;
  color: #f8fafc;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  filter: blur(60px);
  top: -250px; left: -250px;
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  filter: blur(70px);
  bottom: -200px; right: -200px;
  pointer-events: none; z-index: 0;
}

/* â”€â”€ NAV â”€â”€ */
/* .topnav, .topnav-brand/-logo/-links/-download : voir css/topnav.css (partagé) */
.topnav-cta {
  background: #3b82f6 !important; color: #fff !important;
  font-weight: 600; border-radius: 0.5rem;
}
.topnav-cta:hover { background: #2563eb !important; }

/* â”€â”€ MAIN â”€â”€ */
main {
  max-width: 130rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 1.5rem;
  position: relative; z-index: 1;
}

/* â”€â”€ HERO â”€â”€ */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3);
  color: #fbbf24; font-size: 0.8rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 2rem;
  margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase;
}
/* Même traitement que le H1 de la page d'accueil : texte blanc plein,
   un mot-clé en dégradé animé, entrée en 2 lignes. */
.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1.08;
  color: #f8fafc; margin-bottom: 1.25rem;
  animation: fadeUp 0.7s 0.18s cubic-bezier(.22,1,.36,1) both, heroGlowPulse 4s 1.5s ease-in-out infinite;
}
.hero h1 .line1, .hero h1 .line2 { display: block; }
.hero-title-grad {
  background: linear-gradient(270deg, #93c5fd 0%, #a78bfa 25%, #f472b6 50%, #a78bfa 75%, #93c5fd 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradShift 5s ease infinite;
  display: inline-block;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroGlowPulse {
  0%,100% { text-shadow: 0 0 40px rgba(167,139,250,0.0); }
  50%      { text-shadow: 0 0 60px rgba(167,139,250,0.35), 0 0 120px rgba(147,197,253,0.2); }
}
@keyframes heroGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-sub {
  color: #f1f5f9; font-size: 1.05rem; margin-bottom: 2.5rem;
}

/* â”€â”€ STATS â”€â”€ */
.stats-row {
  display: inline-flex; align-items: center; gap: 2rem;
  background: rgba(255,255,255,0.04); border: 1px solid #334155;
  border-radius: 1rem; padding: 1.25rem 2.5rem;
}
.stat { text-align: center; }
.stat-number {
  display: block; font-size: 1.6rem; font-weight: 900; color: #f8fafc;
}
.stat-label { font-size: 0.75rem; color: #f1f5f9; margin-top: 0.2rem; }
.stat-sep { width: 1px; height: 2.5rem; background: #334155; }

/* -- MARQUEE CARROUSEL -- */
@keyframes scrollLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* column-count (pas display:grid) : le nombre d'avis vient de l'API (js/temoignages.js) et
   n'est presque jamais un multiple de 3, une grille classique laisserait une dernière ligne
   avec 1-2 cartes isolées. Les colonnes se rééquilibrent automatiquement quel que soit le total. */
.marquee-wrap {
  column-count: 3;
  column-gap: 1rem;
  width: 100%;
  margin-bottom: 4rem;
}
@media (max-width: 768px) { .marquee-wrap { column-count: 2; } }
@media (max-width: 480px) { .marquee-wrap { column-count: 1; } }

/* Carte */
.m-card {
  break-inside: avoid; margin-bottom: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s;
}
.m-card:hover { border-color: rgba(59,130,246,0.4); }

.m-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 0.08em; }

.m-quote {
  color: #f1f5f9; font-size: 0.82rem; line-height: 1.65;
  flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}

.m-author { display: flex; align-items: center; gap: 0.65rem; margin-top: auto; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: #fff;
}
.author-name { font-size: 0.82rem; font-weight: 700; color: #f8fafc; }
.author-role { font-size: 0.72rem; color: #f1f5f9; margin-top: 0.1rem; }

@media (prefers-reduced-motion: reduce) {
  .m-left, .m-right { animation: none; }
}

/* â”€â”€ FORMULAIRE â”€â”€ */
.form-card {
  background: #111c2d; border: 1px solid #1e3a5f;
  border-radius: 1.25rem; padding: 2rem; margin-bottom: 2rem;
}
.form-card-header { margin-bottom: 1.5rem; }
.form-card-header h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.35rem; }
.form-card-header p { color: #f1f5f9; font-size: 0.88rem; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 180px; }
.form-field label { font-size: 0.78rem; font-weight: 600; color: #f1f5f9; }
.form-field input, .form-field textarea {
  background: #0f172a; border: 1px solid #334155; color: #f8fafc;
  padding: 0.55rem 0.85rem; border-radius: 0.5rem; font-size: 0.9rem;
  font-family: inherit; transition: border-color 0.15s; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: #3b82f6; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #64748b; }

.star-selector { display: flex; gap: 0.35rem; }
.star {
  font-size: 1.8rem; color: #64748b; cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}
.star.active { color: #fbbf24; }
.star:hover { transform: scale(1.15); }

.form-error {
  color: #fca5a5; font-size: 0.82rem;
  margin-top: 0.75rem; padding: 0.5rem 0.75rem;
  background: rgba(239,68,68,0.1); border-radius: 0.5rem;
}
.form-success {
  color: #22c55e; font-size: 0.9rem; font-weight: 600;
  padding: 1rem; background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3); border-radius: 0.75rem;
  text-align: center;
}
.btn-submit {
  margin-top: 1.25rem; background: #3b82f6; color: #fff; border: none;
  padding: 0.65rem 1.5rem; border-radius: 0.6rem; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.btn-submit:hover { background: #2563eb; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.loading-msg { color: #f1f5f9; text-align: center; grid-column: 1/-1; padding: 2rem; }

/* â”€â”€ CTA â”€â”€ */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(139,92,246,0.1) 100%);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}
.cta-box h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-box p { color: #f1f5f9; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #3b82f6; color: #fff; text-decoration: none;
  padding: 0.75rem 1.75rem; border-radius: 0.75rem; font-weight: 700;
  transition: background 0.2s;
}
.btn-primary:hover { background: #2563eb; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: btn-shine-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine-sweep {
  0%   { left: -60%; }
  18%  { left: 130%; }
  100% { left: 130%; }
}
.btn-secondary {
  background: rgba(255,255,255,0.07); color: #f8fafc; text-decoration: none;
  padding: 0.75rem 1.75rem; border-radius: 0.75rem; font-weight: 600;
  border: 1px solid #334155; transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* .topnav-hamburger : voir css/topnav.css (partagé) */

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 700px) {
  .card.featured { grid-column: span 1; }
  .stats-row { gap: 1.25rem; padding: 1rem 1.5rem; }
  /* .topnav-hamburger/.topnav-links mobile : voir css/topnav.css (partagé) */
}

/* â”€â”€ PREFERS-REDUCED-MOTION â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

