/* ============================================================
   KITO DIGITAL — global.css
   Variables · Reset · Base · Typographie · Utilitaires
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {

  /* ── Couleurs principales ── */
  --ow-primary:         #7C5CFF;
  --ow-accent:          #2EE5FF;

  /* ── Arrière-plans ── */
  --ow-bg:              #070A12;
  --ow-bg-secondary:    #0B1020;
  --ow-bg-tertiary:     #0D1225;

  /* ── Texte ── */
  --ow-text:            #EAF0FF;
  --ow-text-secondary:  #94A3B8;
  --ow-muted:           #64748B;

  /* ── Surfaces / Bordures ── */
  --ow-card:            #111827;
  --ow-card-hover:      #161f35;
  --ow-border:          rgba(255, 255, 255, 0.08);
  --ow-border-accent:   rgba(124, 92, 255, 0.25);
  --ow-border-hover:    rgba(124, 92, 255, 0.5);

  /* ── Glow ── */
  --ow-glow:            rgba(124, 92, 255, 0.25);
  --ow-glow-accent:     rgba(46, 229, 255, 0.20);
  --ow-glow-strong:     rgba(124, 92, 255, 0.4);

  /* ── Dégradés ── */
  --ow-gradient:        linear-gradient(135deg, #7C5CFF, #2EE5FF);
  --ow-gradient-subtle: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(46,229,255,0.10));
  --ow-edge-gradient:   linear-gradient(90deg, transparent, #7C5CFF, #2EE5FF, transparent);

  /* ── Rayons ── */
  --radius:      20px;
  --radius-sm:   12px;
  --radius-xs:   8px;
  --radius-full: 9999px;

  /* ── Espacement ── */
  --spacing-lg:  2rem;
  --spacing-xl:  3rem;
  --spacing-2xl: 4.5rem;
  --spacing-3xl: 7rem;

  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --wide-width:        min(1200px, 95vw);

  /* ── Typographie ── */
  --font-primary:   'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-secondary: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono:      ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  --fs-hero: clamp(2.75rem, 6vw + 1rem, 5.5rem);

  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-relaxed: 1.75;

  /* ── Ombres ── */
  --shadow:      0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 30px var(--ow-glow);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--ow-border-accent);

  /* ── Effets ── */
  --blur:    blur(24px) saturate(180%);
  --blur-sm: blur(12px) saturate(150%);

  /* ── Transitions ── */
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* ── Layout ── */
  --header-height: 72px;
  --section-gap:   clamp(5rem, 10vw, 9rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--ow-text);
  background-color: var(--ow-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: var(--lh-tight);
  color: var(--ow-text);
  font-weight: 700;
}

/* ── Accessibilité ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--ow-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ── Utilitaires texte ─────────────────────────────────────── */
.text-center { text-align: center; }

/* Texte dégradé — utilisé partout dans les titres */
.text-gradient,
.gradient-text {
  background: var(--ow-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-primary);
  letter-spacing: 0.03em;
  background: rgba(124,92,255,0.12);
  border: 1px solid var(--ow-border-accent);
  color: var(--ow-primary);
  width: fit-content;
  white-space: nowrap;
}

/* Point décoratif par défaut */
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ow-accent);
  flex-shrink: 0;
}

/* Masquer le point si un .badge-dot HTML est fourni */
.badge:has(.badge-dot)::before { display: none; }

/* ── Section header ────────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  max-width: 600px;
  margin-inline: auto;
}

.section-eyebrow {
  display: flex;
  margin-bottom: 1rem;
}

.section-header.text-center .section-eyebrow,
.text-center .section-eyebrow,
.cta-card .section-eyebrow,
.page-hero .section-eyebrow {
  justify-content: center;
}

/* Conteneur */
.has-dropdown {
  position: relative;
}

/* Bouton */
.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* Menu caché par défaut */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ow-card);
  border: 1px solid var(--ow-border-accent);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow), var(--shadow-glow);
  padding: 0.5rem 0;
  min-width: 180px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

/* Liens */
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--ow-text-secondary);
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
}

/* ── Dropdown mobile ── */
.mobile-menu .has-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-menu .dropdown-toggle {
  text-align: left;
  padding: 0;
  color: var(--ow-text);
  font-size: inherit;
}

.mobile-menu .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.25rem 0 0.5rem 1rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu .dropdown-menu a {
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  color: var(--ow-text-secondary);
  border-left: 2px solid var(--ow-border-accent);
  border-radius: 0;
}

.mobile-menu .dropdown-menu a:hover {
  color: var(--ow-text);
  border-left-color: var(--ow-primary);
  background: rgba(124, 92, 255, 0.08);
}

/* Hover */
.dropdown-menu a:hover {
  background: rgba(124, 92, 255, 0.1);
  color: var(--ow-text);
}

/* Affichage au hover */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cta-card .badge {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(var(--fs-3xl), 3.5vw + 1rem, var(--fs-5xl));
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--ow-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 58ch;
}
.text-center .section-subtitle { margin-inline: auto; }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--ow-gradient);
  border-radius: 2px;
  margin: 1.5rem 0;
}
.text-center .section-divider { margin-inline: auto; }

/* ── Cards ─────────────────────────────────────────────────── */
.ow-card {
  background: var(--ow-card);
  border: 1px solid var(--ow-border-accent);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  position: relative;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.ow-card:hover {
  border-color: var(--ow-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px);
  background: var(--ow-card-hover);
}

/* Pas de translate sur les accordéons */
.faq-item.ow-card:hover,
details.ow-card:hover { transform: none; }

/* Liseré lumineux haut de carte */
.ow-card::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; top: 0;
  height: 1px;
  background: var(--ow-edge-gradient);
  opacity: 0.7;
  border-radius: 0 0 2px 2px;
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  will-change: transform;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--ow-gradient);
  color: #fff;
  animation: btn-pulse 3s ease-in-out infinite;
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow), 0 0 40px var(--ow-glow-accent);
}

.btn--secondary {
  background: var(--ow-card);
  color: var(--ow-text);
  border: 1px solid var(--ow-border-accent);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}
.btn--secondary:hover {
  border-color: var(--ow-border-hover);
  background: var(--ow-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--ow-text-secondary);
  border: 1px solid var(--ow-border);
}
.btn--ghost:hover {
  color: var(--ow-text);
  border-color: var(--ow-border-accent);
  background: rgba(124,92,255,0.08);
}

.btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: var(--fs-xs);
}
.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-base);
  border-radius: var(--radius);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--ow-glow); }
  50%       { box-shadow: 0 0 30px var(--ow-glow-strong); }
}

/* ── Animations reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--left.is-visible,
.reveal--right.is-visible { transform: none; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Logo wordmark ─────────────────────────────────────────── */
.logo-word {
  font-family: var(--font-primary);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ow-text);
  line-height: 1;
}
.logo-word-accent {
  background: var(--ow-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Texture de bruit subtile (décor) ──────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;      /* Bas de pile — ne couvre pas les modales/menus */
  opacity: 0.4;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--ow-bg); }
::-webkit-scrollbar-thumb {
  background: var(--ow-border-accent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ow-primary); }

/* ── Sélection ─────────────────────────────────────────────── */
::selection {
  background: rgba(124,92,255,0.3);
  color: var(--ow-text);
}
