/* ==========================================================================
   NaluScore — style.css
   Dark Mode strict + effets Glow/Dégradé (cyan → vert néon)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES GLOBALES
   -------------------------------------------------------------------------- */
:root {
  --cyan:          #00f5ff;
  --neon-green:    #00ff88;
  --bg-dark:       #080e14;
  --bg-section:    #0b1220;        /* sections sans fond photo */
  --bg-how:        #07111c;        /* fond légèrement différent section 3 */
  --card-bg:       #0d1825;        /* fond des cartes avantages */
  --card-border:   rgba(255, 255, 255, 0.07);
  --glass-bg:      rgba(255, 255, 255, 0.05);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --input-bg:      rgba(10, 20, 30, 0.75);
  --glow-cyan:     0 0 18px rgba(0, 245, 255, 0.45), 0 0 40px rgba(0, 245, 255, 0.2);
  --glow-green:    0 0 18px rgba(0, 255, 136, 0.55), 0 0 40px rgba(0, 255, 136, 0.25);
  --glow-card:     0 0 24px rgba(0, 245, 255, 0.18), 0 0 60px rgba(0, 255, 136, 0.08);
  --transition:    0.25s ease;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   3. BODY — fond photo uniquement sous le hero
   -------------------------------------------------------------------------- */
.page-body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   4. OVERLAY — couvre toute la page via position:fixed
      Opacités renforcées pour garantir la lisibilité du texte hero
      sur la photo de fond (surtout au centre, zone la plus lumineuse).
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 10, 18, 0.92) 0%,
    rgba(4, 10, 18, 0.85) 50%,
    rgba(0, 20, 30, 0.95) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. HEADER — fixé, fond semi-transparent au scroll
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(8, 14, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
}

/* --------------------------------------------------------------------------
   6. LOGO
   -------------------------------------------------------------------------- */
.logo {
  transition: filter var(--transition);
}

.logo:hover {
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.5));
}

/* --------------------------------------------------------------------------
   7. DÉGRADÉ TEXTE (cyan → vert néon)
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   8. SECTION HERO — fond photo surf
   -------------------------------------------------------------------------- */
.hero-section {
  background-image: url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Titre principal du hero — halo blanc diffus pour la lisibilité sans outline grossier */
.hero-title {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Sous-titre — même halo blanc, intensité légèrement réduite pour la hiérarchie */
.hero-subtitle {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Flèche scroll animée */
.scroll-arrow {
  animation: bounce 2s infinite;
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --------------------------------------------------------------------------
   9. BADGE MVP (hero)
   -------------------------------------------------------------------------- */
.badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   10. BADGES SPOTS POPULAIRES
   Design glassmorphism cohérent avec le reste de l'interface.
   Au survol : bordure et texte cyan néon + curseur pointeur.
   -------------------------------------------------------------------------- */
.spot-suggere {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;                /* gray-300 */
  font-size: 0.75rem;            /* text-xs */
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;          /* rounded-full */
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.spot-suggere:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.45);
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* --------------------------------------------------------------------------
   12. CHAMP DE RECHERCHE — Glassmorphism
   -------------------------------------------------------------------------- */
.search-input {
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   11. BOUTON CTA — Dégradé + Glow animé
   -------------------------------------------------------------------------- */
.cta-btn {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--neon-green) 100%);
  background-size: 200% auto;
  color: #080e14;
  font-weight: 700;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.35), 0 0 30px rgba(0, 255, 136, 0.2);
  transition: background-position var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cta-btn:hover {
  background-position: right center;
  box-shadow: var(--glow-cyan), var(--glow-green);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

/* Reflet brillant au survol */
.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.cta-btn:hover::after {
  left: 130%;
}

/* État chargement */
.cta-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.cta-btn.loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg-dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   12. SECTION AVANTAGES — fond solide sombre
   -------------------------------------------------------------------------- */
.features-section {
  background-color: var(--bg-section);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Diviseur décoratif sous le titre de section */
.section-divider {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--neon-green));
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ── Cartes Avantages ── */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--glow-card);
}

/* Fond de l'icône sur les cartes */
.card-icon-wrap {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

.feature-card:hover .card-icon-wrap {
  background: rgba(0, 245, 255, 0.14);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
}

/* --------------------------------------------------------------------------
   13. SECTION "COMMENT ÇA MARCHE" — fond encore plus profond + dégradé subtil
   -------------------------------------------------------------------------- */
.how-section {
  background-color: var(--bg-how);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* Légère lueur de fond pour différencier visuellement */
  box-shadow: inset 0 40px 80px rgba(0, 245, 255, 0.03),
              inset 0 -40px 80px rgba(0, 255, 136, 0.03);
}

/* Badge IA — contour néon */
.ai-badge {
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}

/* ── Pipeline technique ── */
.pipeline-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Étape mise en valeur (Score) */
.pipeline-step--highlight {
  background: linear-gradient(90deg, var(--cyan), var(--neon-green));
  border: none;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.4), 0 0 36px rgba(0, 255, 136, 0.2);
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background-color: var(--bg-dark);
}

/* --------------------------------------------------------------------------
   14b. SECTION GLOBALE — Globe + Ticker spots mondiaux
   -------------------------------------------------------------------------- */

.global-section {
  background: radial-gradient(ellipse at 50% 0%, #091828 0%, #060d1a 60%);
  padding: 12rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Globe ── */
.globe-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  pointer-events: none;
  z-index: 0;
}

.globe-sphere {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(0, 245, 255, 0.12))
          drop-shadow(0 0 80px rgba(0, 255, 136, 0.06));
}

.globe-svg {
  width: 100%;
  height: 100%;
}

.globe-meridians {
  animation: globeSpin 18s linear infinite;
  transform-origin: center;
}

@keyframes globeSpin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* ── Tag "Couverture mondiale" ── */
.global-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.07);
}

/* ── Stats ── */
.global-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.global-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.global-stat-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.global-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.global-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Ticker défilant ── */
.ticker-wrap {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  overflow: hidden;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ticker-track:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.ticker-inner span {
  display: inline-block;
  padding: 0 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}

.ticker-inner span:hover {
  color: rgba(0, 245, 255, 0.7);
}

/* Séparateurs entre les noms */
.ticker-inner span::after {
  content: '·';
  margin-left: 2rem;
  color: rgba(255, 255, 255, 0.15);
}

/* Animations ticker */
.ticker-track--right .ticker-inner {
  animation: tickerRight 35s linear infinite;
}

.ticker-track--left .ticker-inner {
  animation: tickerLeft 30s linear infinite;
}

.ticker-track--slow .ticker-inner {
  animation-duration: 45s;
}

@keyframes tickerRight {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes tickerLeft {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   15. HEADER — Bouton Feedback
   -------------------------------------------------------------------------- */
.feedback-nav-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.feedback-nav-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.07);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.18);
}

/* --------------------------------------------------------------------------
   16. SECTION FEEDBACK — Contact / Retours utilisateurs
   -------------------------------------------------------------------------- */
.feedback-section {
  background-color: var(--bg-how);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tag badge */
.feedback-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.07);
}

/* Carte du formulaire */
.feedback-card {
  background: rgba(13, 24, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.06), 0 0 80px rgba(0, 255, 136, 0.04);
}

/* Labels */
.feedback-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Champs input / select / textarea */
.feedback-input {
  width: 100%;
  background: rgba(10, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feedback-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.feedback-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1), var(--glow-cyan);
}

/* Select — supprime l'apparence native, ajoute une flèche custom */
.feedback-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f5ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.feedback-select option {
  background: #0d1825;
  color: #fff;
}

/* Textarea */
.feedback-textarea {
  resize: vertical;
  min-height: 100px;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE — Ajustements mobiles
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-section {
    background-attachment: scroll; /* évite le bug iOS avec fixed */
  }

  /* Globe : arrêt rotation sur mobile — trop coûteux en GPU */
  .globe-meridians {
    animation: none;
  }

  /* Ticker : ralenti sur mobile pour réduire la charge */
  .ticker-track--right .ticker-inner {
    animation-duration: 60s;
  }
  .ticker-track--left .ticker-inner {
    animation-duration: 55s;
  }
  .ticker-track--slow .ticker-inner {
    animation-duration: 70s;
  }
}

/* Optimisation GPU pour les animations continues */
.globe-meridians,
.ticker-inner {
  will-change: transform;
}

/* Respect du paramètre système "Réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  .globe-meridians,
  .ticker-inner {
    animation: none;
  }
}
