/* Global Design System matching cios_os ExecTheme (Dart) */

/* @import fonts disabled for render blocking optimization */
/* @import icons disabled for render blocking optimization */

:root {
  /* Common Accent Colors */
  --accent: #6366F1;
  --accent-rgb: 99, 102, 241;
  --danger: #EF4444;
  --warning: #F97316;
  --success: #10B981;

  /* Spacing System */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;

  /* Theme Defaults (Dark Theme) */
  --bg: #05050A;
  --surface: #0E0E17;
  --border: #1B1B2A;
  --text-primary: #F1F5F9;
  --text-secondary: #8A99AD;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --active-glow: rgba(99, 102, 241, 0.15);
  --overlay-bg: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] {
  /* Light Theme Override */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #55657A;
  --shadow-color: rgba(15, 23, 42, 0.05);
  --active-glow: rgba(99, 102, 241, 0.08);
  --overlay-bg: rgba(0, 0, 0, 0.03);
  /* Bleu de marque du thème clair (bandeau, barre du téléphone, pastille). */
  --marque: #2563EB;
  --marque-doux: #EFF6FF;
  --sur-marque: #FFFFFF;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Background Ambient Elements */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.glow-top-right {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  filter: blur(80px);
}

[data-theme="light"] .glow-top-right {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
}

.glow-bottom-left {
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  filter: blur(100px);
}

[data-theme="light"] .glow-bottom-left {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.02) 0%, transparent 70%);
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
}

[data-theme="light"] .tech-grid {
  opacity: 0.35;
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
  position: relative;
}

@media (max-width: 600px) {
  .container {
    padding: 0 var(--sp-12);
  }
}

/* Top Nav / Header */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  background: var(--surface) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.8rem 3rem !important;
  min-height: 70px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Top Phone Bar & Mobile Nav Drawer */
.phone-bar {
  background: linear-gradient(90deg, #0891B2, #0D9488);
  color: #FFFFFF;
  padding: 6px 2rem;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Barre du téléphone bleue en thème clair, sur toutes les pages. */
[data-theme="light"] .phone-bar {
  background: var(--marque);
}

.phone-bar a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-bar-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* [UI-031] Le tiroir mobile glisse par `transform`, pas par `right`.
 *
 * Il animait `right: -100%` → `0`. `right` est une propriété de MISE EN PAGE :
 * le navigateur recalculait la position et repeignait à CHAQUE image, sur un
 * panneau portant une grande ombre portée, sous un en-tête en `backdrop-filter`.
 * D'où le tremblement à l'ouverture, signalé sur mobile — là où le budget par
 * image est le plus serré. `transform` est composée par le GPU : aucun calcul
 * de mise en page, aucun repeint du contenu.
 *
 * `visibility` remplace le hors-écran par `right` : un panneau simplement
 * poussé hors du cadre reste focalisable au clavier et peut créer un
 * débordement horizontal. Elle bascule sans délai à l'ouverture, et seulement
 * à la FIN de la fermeture — sinon le tiroir disparaîtrait d'un coup au lieu
 * de glisser.
 */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 2000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  visibility: hidden;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

/* Respect du réglage système « réduire les animations » : le tiroir apparaît
 * sans glissement plutôt que de déclencher un mouvement non désiré. */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-drawer,
  .mobile-nav-drawer.open {
    transition: none;
  }
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: auto;
}

.mobile-drawer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s;
}

.mobile-drawer-links a:hover {
  color: var(--accent);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .phone-bar {
    padding: 6px 1rem;
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }
  .phone-bar .phone-bar-info { display: none; }
  /* Même cible de 44 px que l'accueil (landing.css) : sinon la barre est moins haute. */
  .phone-bar a { min-height: 44px; }
  /* Boutons d'en-tête : même cible de 44 px que l'accueil sur toutes les pages. */
  .mobile-menu-toggle, #theme-toggle-btn, header .btn-outlined {
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  header nav { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
  .nav-actions .pricing-link,
  .nav-actions .phone-link,
  .nav-actions .header-contact-btn { display: none !important; }
}

.pricing-link .material-icons-round {
  margin-right: 4px;
}

.logo-group {
  display: flex;
  align-items: center;
  min-height: 44px; /* cible du doigt, même place sur toutes les pages */
  text-decoration: none;
  cursor: pointer;
}

.logo-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--sp-8);
}

.logo-img {
  height: 40px; width: 40px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
  }
}

.logo-group:hover .logo-img {
  animation: logoPulse 1.6s infinite ease-in-out;
}


.logo-img-dark {
  display: block;
}

.logo-img-light {
  display: none;
}

[data-theme="light"] .logo-img-dark {
  display: none;
}

[data-theme="light"] .logo-img-light {
  display: block;
}

.logo-icon {
  font-size: 32px;
  color: var(--accent);
  margin-right: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1.0px;
}

/* [MARQUE, 20/08/2026 — décision Kane] Le point décoratif du logotype est
   retiré : la marque s'écrit « ChorAigraph », sans point. La règle part avec
   lui — une classe sans élément se recopie dans le prochain gabarit. */

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.theme-toggle,
.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.lang-toggle {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
}

.lang-btn {
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: rgba(var(--accent-rgb), 0.15);
  /* Accent tiré vers la couleur du texte : lisible (AA) dans les deux thèmes. */
  color: color-mix(in srgb, var(--accent) 55%, var(--text-primary));
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.phone-link:hover {
  color: var(--text-primary);
  background: var(--overlay-bg);
}

@media (max-width: 960px) {
  .phone-link {
    font-size: 0 !important;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px !important;
    gap: 0 !important;
  }
  .phone-link .material-icons-round {
    margin-right: 0 !important;
    font-size: 16px !important;
  }
}

@media (max-width: 600px) {
  .pricing-link span:not(.material-icons-round) {
    display: none !important;
  }
  .pricing-link {
    margin-right: 0 !important;
  }
  #lbl-login,
  #nav-pricing-back,
  #nav-home {
    display: none !important;
  }
  .nav-actions .btn-ghost {
    padding: 10px !important;
    gap: 0 !important;
  }
  .header-contact-btn {
    display: none !important;
  }
  /* [EN-TETE-UNE-LIGNE, 21/10/2026 — demande Kane] Avec « Espace client », l'en-tête
     passait à la ligne vers 480 px : il reste sur une ligne, le nom se coupe en dernier. */
  header { flex-wrap: nowrap !important; }
  header .nav-actions { gap: 8px; flex-shrink: 0; }
  header .logo-group { min-width: 0; }
  header .logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 450px) {
  .logo-text {
    display: none !important;
  }
}

/* General Buttons matching ArcButton specs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: 10px 20px;
  border-radius: 12px; /* Clean executive rounded contour matching choraigraph.ai admin pages */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  border: 2px solid transparent;
}

/* Primary Button - matches ArcPrimaryButton */
.btn-primary {
  /* Translucent in dark mode, white in light mode */
  background: rgba(99, 102, 241, 0.15); /* accentColor.withValues(alpha: 0.15) */
  color: #FFFFFF;
  border-color: var(--accent); /* GradientBorderPainter solid accent border */
  box-shadow: 0 2px 12px 1px rgba(99, 102, 241, 0.15); /* accent shadow */
}

/* Light mode override for btn-primary */
[data-theme="light"] .btn-primary {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 2px 12px 1px rgba(99, 102, 241, 0.06);
}

.btn-primary:hover {
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 16px 2px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-primary:hover {
  background: rgba(99, 102, 241, 0.04);
}

/* Outlined Button - matches custom outlined button */
.btn-outlined {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-outlined:hover {
  border-color: var(--accent);
  background: var(--overlay-bg);
  transform: translateY(-1px);
}

/* Ghost Button - matches ArcGhostButton with gradient border */
.btn-ghost {
  color: var(--text-primary);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, #A855F7, #3B82F6) border-box;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.04), 0 4px 16px rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .btn-ghost {
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
              linear-gradient(135deg, #A855F7, #3B82F6) border-box;
}

.btn-ghost:hover {
  background: linear-gradient(var(--overlay-bg), var(--overlay-bg)) padding-box,
              linear-gradient(135deg, #A855F7, #3B82F6) border-box;
  transform: translateY(-1px);
}

/* Hero Button - matches ArcPrimaryButton (isHero=true) with glow and gradient border */
.btn-hero {
  color: var(--text-primary);
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, #A855F7, #3B82F6) border-box;
  box-shadow: -2px 2px 18px rgba(168, 85, 247, 0.20),
              2px 2px 18px rgba(59, 130, 246, 0.20);
}

[data-theme="light"] .btn-hero {
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
              linear-gradient(135deg, #A855F7, #3B82F6) border-box;
  box-shadow: -2px 2px 18px rgba(168, 85, 247, 0.12),
              2px 2px 18px rgba(59, 130, 246, 0.12);
}

.btn-hero:hover {
  background: linear-gradient(rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.1)) padding-box,
              linear-gradient(135deg, #A855F7, #3B82F6) border-box;
  transform: translateY(-1px);
}


/* Form Styling */
.form-group {
  margin-bottom: var(--sp-24);
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 14px;
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--sp-16);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  padding: var(--sp-32);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  padding: 16px 0;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-content {
  display: flex;
  gap: 40px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  min-width: 100%;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px; /* Matches fontSize: 14 */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6); /* white60 in dark mode */
  opacity: 0.8; /* Matches opacity: 0.8 */
}

[data-theme="light"] .marquee-item {
  color: rgba(15, 23, 42, 0.54); /* black54 in light mode */
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Global Footer - matches AuthFooter specifications */
footer {
  border-top: 1.5px solid var(--border); /* Matches Divider */
  padding: 32px 0 64px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  margin-top: 48px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}

.footer-top #footer-copy {
  order: 2;
}

.footer-top .footer-links {
  order: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px; /* Matches _AuthNavLink fontSize: 13 */
  padding: 8px 12px; /* Matches symmetric(horizontal: 12, vertical: 8) */
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--text-primary);
  background-color: var(--overlay-bg);
}

.footer-by {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24); /* Matches white24 */
}

[data-theme="light"] .footer-by {
  color: rgba(15, 23, 42, 0.26); /* Matches black26 */
}

.eu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.eu-badge-dot {
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
}

/* Mobile responsive layout mapping to AuthFooter Column structure */
@media (max-width: 900px) {
  .footer-top {
    gap: 12px;
  }
}

.social-proof-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}

/* Material Icons Layout Stability Rule */
.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 18px; /* Reduced executive icon scale */
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

/* Icône en SVG (landing, tarifs) : même boîte d'un cadratin, couleur du texte. */
.material-icons-round > svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* BACK TO TOP BUTTON */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  background: #4f46e5;
}

.back-to-top-btn:active {
  transform: translateY(-1px);
}

/* CONTACT GRID SYSTEM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-24);
  margin-bottom: var(--sp-16);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }
}

/* EMBEDDED MODAL/IFRAME STYLES */
body.is-embedded {
  background: transparent !important;
}
body.is-embedded header,
body.is-embedded footer,
body.is-embedded .glow-container,
body.is-embedded .tech-grid {
  display: none !important;
}
body.is-embedded .legal-container {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
body.is-embedded .legal-card-header {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: var(--sp-16) !important;
  border-radius: 0 !important;
}
body.is-embedded .legal-meta,
body.is-embedded .legal-title,
body.is-embedded .legal-updated,
body.is-embedded .legal-offline-badge {
  display: none !important;
}
body.is-embedded .legal-section-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: var(--sp-16) !important;
  margin-bottom: var(--sp-12) !important;
}
body.is-embedded .back-to-top-btn {
  display: none !important; /* Hide back to top within the modal iframe */
}

/* ==========================================================================
   CONVERSION FUNNEL (ONBOARDING & ACTION CARDS)
   ========================================================================== */

/* Next step section */
.faq-next-steps {
  margin-top: var(--sp-64);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--sp-40);
  text-align: center;
}

.faq-next-steps-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-24);
  background: linear-gradient(90deg, #FFF 0%, #A5B4FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  margin-bottom: var(--sp-32);
  text-align: left;
}

.faq-step-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: var(--sp-20);
  border-radius: 12px;
  position: relative;
}

.faq-step-num {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--accent);
  color: #FFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.faq-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-8);
}

.faq-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Action cards grid (CTAs) */
.faq-action-cards {
  margin-top: var(--sp-48);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-20);
  margin-bottom: var(--sp-48);
}

.faq-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--sp-24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.faq-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.faq-action-card-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: var(--sp-16);
}

.faq-action-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
}

.faq-action-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--sp-20);
  flex-grow: 1;
}

.faq-action-card-btn {
  width: 100%;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
}

@media (max-width: 1024px) {
  .faq-steps-list, .faq-action-cards {
    grid-template-columns: 1fr;
  }
}

.faq-next-steps,
.faq-action-cards {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Challenge Chips style inside contact modal */
.challenge-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.challenge-chip {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

[data-theme="light"] .challenge-chip {
  background-color: rgba(0, 0, 0, 0.02);
}

.challenge-chip:hover {
  border-color: var(--text-secondary);
}

.challenge-chip.selected {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
  border-width: 1.5px;
  color: var(--text-primary);
  font-weight: 700;
  padding: 7.5px 13.5px;
}

@media (max-width: 960px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Cards Pro & Cockpit Executive Card System
   ========================================================================== */
.hero-card-pro {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 26px 24px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb, 99, 102, 241), 0.06) 0%, transparent 45%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hero-card-pro:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb, 99, 102, 241), 0.4);
  box-shadow: 0 16px 36px -10px var(--shadow-color);
}

.hero-card-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb, 99, 102, 241), 0.9), transparent);
  opacity: .5;
  transition: opacity .25s ease;
}

.hero-card-pro__num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  opacity: .08;
  letter-spacing: -2px;
  user-select: none;
}

.hero-card-pro__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-card-pro__badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(var(--accent-rgb, 99, 102, 241), 0.18), rgba(var(--accent-rgb, 99, 102, 241), 0.06));
  border: 1px solid rgba(var(--accent-rgb, 99, 102, 241), 0.22);
}

.hero-card-pro__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.hero-card-pro__badge .material-icons-round {
  font-size: 22px;
}

/* ==========================================
   MOBILE & RESPONSIVE DESIGN SYSTEM (Max 768px & Max 480px)
   ========================================== */

@media (max-width: 768px) {
  /* Header Mobile Optimization */
  header {
    padding: 0.85rem 1rem !important;
    gap: 10px !important;
  }
  header nav {
    display: none !important;
  }
  .nav-btns {
    gap: 6px !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 0.75rem 1rem 1.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .hero-title {
    font-size: 2.1rem !important;
    letter-spacing: -0.5px !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-cta a, .hero-cta button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Grid Layouts to Single Column */
  .capabilities-grid,
  .dual-grid,
  .stats-container,
  .footer-content,
  .form-grid,
  .sim-form {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Demo Cards Mobile */
  .hero-card-pro {
    padding: 1.25rem !important;
  }
  .hero-card-pro__title {
    font-size: 1.05rem !important;
  }
  
  /* Result Grids inside Demo Cards */
  #rppsCheckResult > div {
    grid-template-columns: 1fr !important;
  }

  /* Auth, Legal & Contact Cards */
  .auth-card,
  .contact-container,
  .legal-card,
  .contact-box,
  .doc-card {
    padding: 1.5rem 1.25rem !important;
    margin: 1.5rem auto !important;
    width: 100% !important;
  }

  .auth-header h1 {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem !important;
  }
  .brand-title {
    font-size: 1.15rem !important;
  }
  .stat-number {
    font-size: 2rem !important;
  }
  .section-title h2 {
    font-size: 1.6rem !important;
  }
  input, select, textarea, button {
    font-size: 14px !important;
  }
}

/* Logo & Brand Icon Light Mode Guarantee */
[data-theme="light"] .brand-icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.2)) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25) !important;
  color: #06b6d4 !important;
}

[data-theme="light"] .brand-title {
  color: #0F172A !important;
}

[data-theme="light"] .brand-title span {
  color: #06B6D4 !important;
}

.hero-card-pro__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

[data-theme="light"] .hero-card-pro {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .hero-card-pro:hover {
  border-color: #06B6D4 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1) !important;
}


/* [FERMER-MOBILE, 27/10/2026 — demande Kane] Sur téléphone, la croix en haut disparaissait au
   défilement : elle reste en bas à droite, pleine et contrastée, comme les feuilles de l'application. */
@media (max-width: 768px) {
  .modal-backdrop.open .modal-close-btn {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg);
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: 10001;
  }
}

/* [BANDEAU-COOKIES-RETOUR, 02/11/2026 — Kane] Le bouton de retour en haut ne passe plus sous le
   bandeau des cookies (hauteur posée par consentement_envoi.js). Spécificité plus forte que les
   `bottom … !important` de landing.css. */
html.bandeau-cookies-visible .back-to-top-btn {
  bottom: calc(var(--bandeau-cookies, 0px) + 12px) !important;
}

/* [EN-TETE-POSITIONNEMENT, 02/11/2026 — Kane] Un lien de plus (Positionnement) et le bouton
   « Démarrer mon essai gratuit d'1 mois » : la barre ne tient plus sous ~1 240 px. Les libellés
   ne passent plus sur deux lignes, et en dessous la barre se replie dans le menu (mêmes liens). */
header nav a, header .btn { white-space: nowrap; }
header nav { margin-left: 24px; }
@media (max-width: 1240px) {
  header nav { display: none !important; }
  header .mobile-menu-toggle { display: inline-flex; }
}

/* [CONTRASTE-COOKIES, 02/11/2026] En thème clair, l'indigo du lien du bandeau sur fond blanc
   donnait 4,46:1 (4,5 exigés, refus Lighthouse de l'accueil) : indigo plus sombre. */
[data-theme="light"] #cookie-lien { color: #4f46e5 !important; }
[data-theme="light"] .cookie-btn-accept { background: #4f46e5 !important; }
