/* ==========================================
   AURA Design System — Dark Theme
   ========================================== */
/*
 * Les valeurs vivent dans `core/css/tokens.css`, les noms hérités dans
 * `core/css/heritage.css`. Le bloc `:root` qui se trouvait ici les
 * redéfinissait, et le dernier fichier chargé l'emportait.
 */

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

body {
  font-family:
    "Work Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 15, 20, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 0.7rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Crimson Pro", serif;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-decoration: none;
}

.navbar-brand img {
  height: 28px;
  width: auto;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem !important;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.nav-link:hover {
  color: var(--text-main) !important;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

.navbar-toggler {
  border-color: var(--border-subtle);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ==========================================
   Buttons
   ========================================== */
.btn-gold {
  background: var(--gradient-gold);
  border: none;
  color: #0b0f14;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(214, 184, 59, 0.25);
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.3px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e6c84a 0%, #d6b83b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 184, 59, 0.35);
  color: #0b0f14;
}

.btn-blue {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 135, 195, 0.25);
  text-decoration: none;
  display: inline-block;
}

.btn-blue:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 135, 195, 0.4);
  color: white;
}

/* Login/signup btn alias */
.btn-cevia-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #086a99 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 999px;
}

.btn-cevia-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 135, 195, 0.4);
  color: white;
}

.text-cevia {
  color: var(--primary);
}
.text-cevia:hover {
  color: var(--primary-hover);
}

/* ==========================================
   Section Commons
   ========================================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.section-badge {
  display: inline-block;
  background: rgba(10, 135, 195, 0.12);
  color: var(--primary);
  border: 1px solid rgba(10, 135, 195, 0.25);
  padding: 0.5rem 1.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.section-title {
  font-size: 3.2rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-weight: 900;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../img/circuit-pattern.f7ac719bafc8.svg");
  background-size: 200px 200px;
  opacity: 0.3;
  pointer-events: none;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(214, 184, 59, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 3.2rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.cta-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-secondary);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Crimson Pro", serif;
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 38px;
  width: auto;
}

.footer h5 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-right: 0.6rem;
  transition: all 0.25s ease;
  font-size: 1.1rem;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0f14;
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Auth forms (shared)
   ========================================== */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.auth-card .form-control {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.auth-card .form-control:focus {
  background: rgba(10, 135, 195, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 135, 195, 0.15);
  color: var(--text-main);
  outline: none;
}

.auth-card .form-control::placeholder {
  color: var(--text-muted);
}

.auth-card .form-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.auth-card .form-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-card hr {
  border-color: var(--border-subtle);
}

/* Override Bootstrap's bg-white in separator span */
.auth-card .separator-text {
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 0 1rem;
  font-size: 0.85rem;
}

/* Alert overrides for dark bg */
.alert {
  animation: slideIn 0.3s ease-out;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   Responsive
   ========================================== */
@media (width <= 991px) {
  .section-title {
    font-size: 2.5rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background: rgba(11, 15, 20, 0.97);
    border-top: 1px solid var(--border-subtle);
    padding: 1rem 0;
    margin-top: 0.5rem;
  }
}

@media (width <= 768px) {
  .section-title {
    font-size: 2rem;
  }
  .cta-title {
    font-size: 2rem;
  }
  .auth-card {
    margin: 0 1rem;
  }
}

/*
 * Mention de non-certification, en pied de page.
 *
 * Lisible, et non en gris 3 % : elle protège le client autant que CEVIA, et
 * une mention qu'on ne peut pas lire ne protège personne. Le texte vient de
 * docs/ARCHITECTURE.md §7, où il est déjà la position du produit.
 */
.footer-disclaimer {
  max-width: 68ch;
  margin: 0 auto 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
