/**
 * assets/css/style.css
 * Design System O'BONBONS Dijon - Thème Sombre & Néon Éclatant
 * Zéro gris terne, Textes Blancs Lumineux, Jaune Fluo Iconique #e3f827, Violet #9d3beb & Bleu #00e1ff
 */

:root {
  /* Fond Noir Profond & Surfaces Sombres Luxury */
  --bg-main: #060509;
  --bg-dark-surface: #0e0a19;
  --bg-card: rgba(22, 16, 38, 0.92);
  --bg-card-hover: rgba(32, 24, 56, 0.98);
  --bg-subtle: rgba(157, 59, 235, 0.12);

  /* COULEUR PHARE O'BONBONS : Jaune Fluo Acidulé #e3f827 */
  --candy-yellow-fluo: #e3f827;
  --candy-yellow-glow: rgba(227, 248, 39, 0.6);

  /* VIOLET GOURMAND & NÉON */
  --candy-purple: #a842ff;
  --candy-purple-dark: #7c24c7;
  --candy-purple-light: #c084fc;
  --candy-purple-glow: rgba(168, 66, 255, 0.5);

  /* BLEU ÉLECTRIQUE & CYAN */
  --candy-blue: #00b4d8;
  --candy-blue-dark: #0077b6;
  --candy-cyan: #00f0ff;
  --candy-blue-glow: rgba(0, 240, 255, 0.5);

  /* ACCENTS ACIDULÉS */
  --candy-pink: #ff007f;
  --candy-lime: #76e026;
  --candy-orange: #ff7a00;

  /* Bordures Néo-Glass */
  --border-glass: rgba(255, 255, 255, 0.16);
  --border-purple: rgba(168, 66, 255, 0.45);
  --border-fluo: rgba(227, 248, 39, 0.75);
  --border-blue: rgba(0, 240, 255, 0.45);

  /* Typographie */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Textes Lumineux & Éclatants (ZÉRO gris terne) */
  --text-dark: #ffffff;
  --text-body: #ffffff;
  --text-muted: #f1f5f9;
  --text-dim: #e2e8f0;

  /* Ombres & Lueurs Néon */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 66, 255, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(227, 248, 39, 0.35);
  --shadow-fluo: 0 0 25px rgba(227, 248, 39, 0.65);
  --shadow-purple: 0 0 25px rgba(168, 66, 255, 0.6);

  /* Rayons */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #07060a;
  color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* LIEN D'ÉVITEMENT ACCESSIBILITÉ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--candy-yellow-fluo);
  color: #060509;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid #ffffff;
}

:focus-visible {
  outline: 3px solid var(--candy-yellow-fluo) !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #candy-canvas { display: none !important; }
}

/* CANVAS DE CONFETTIS & ÉTOILES NÉON */
#candy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* TYPOGRAPHIE & GRADIENTS O'BONBONS */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.25;
  overflow-wrap: break-word;
}

p, span, li, a {
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 50%, #e3f827 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-festive {
  background: linear-gradient(135deg, #ffffff 0%, #e3f827 45%, #a842ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-obonbons-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #e3f827 0%, #a842ff 45%, #00f0ff 75%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 25px rgba(168, 66, 255, 0.7);
}

/* CONTENEURS */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

.section-padding {
  padding-top: clamp(45px, 6vw, 80px);
  padding-bottom: clamp(45px, 6vw, 80px);
  position: relative;
  z-index: 2;
}

/* GESTION DE LA DISPOSITION DES PAGES (Évite tout chevauchement avec le header) */
.page-main-wrapper {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 350px);
}

.subpage-wrapper {
  padding-top: 90px;
}

.page-header-banner {
  padding-top: 40px;
  padding-bottom: 30px;
  text-align: center;
  position: relative;
  background: transparent;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.breadcrumb-nav a {
  color: #00f0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--candy-yellow-fluo);
}

.breadcrumb-nav .sep {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-nav .current {
  color: var(--candy-yellow-fluo);
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #ffffff;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* CARTES GLASSMORPHISM VIBRANTES */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e3f827, #a842ff, #00f0ff);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--candy-yellow-fluo);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* BADGES NÉON FESTIFS */
.badge-festive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(22, 16, 38, 0.9);
  border: 2px solid var(--candy-yellow-fluo);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--candy-yellow-fluo);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(227, 248, 39, 0.45);
  backdrop-filter: blur(10px);
}

.badge-purple {
  background: rgba(168, 66, 255, 0.2);
  border: 2px solid var(--candy-purple);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(168, 66, 255, 0.4);
}

.badge-fluo {
  background: rgba(227, 248, 39, 0.2);
  border: 2px solid var(--candy-yellow-fluo);
  color: var(--candy-yellow-fluo);
  box-shadow: 0 0 20px rgba(227, 248, 39, 0.5);
}

.badge-blue {
  background: rgba(0, 240, 255, 0.2);
  border: 2px solid var(--candy-cyan);
  color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* BOUTONS D'ACTION NÉON */
.btn-festive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #a842ff 0%, #0077b6 60%, #e3f827 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(168, 66, 255, 0.6), 0 0 15px rgba(227, 248, 39, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-festive:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(168, 66, 255, 0.8), 0 0 25px rgba(227, 248, 39, 0.6);
  background: linear-gradient(135deg, #c084fc 0%, #00b4d8 60%, #e3f827 100%);
  color: #ffffff;
}

.btn-festive-fluo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  background: var(--candy-yellow-fluo);
  color: #060509;
  font-size: 1rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  box-shadow: 0 0 30px rgba(227, 248, 39, 0.7);
  transition: all 0.3s ease;
}

.btn-festive-fluo:hover {
  background: #f0ff4f;
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(227, 248, 39, 0.95);
  color: #060509;
}

.btn-festive-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  background: rgba(22, 16, 38, 0.9);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 2px solid var(--candy-purple);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-festive-secondary:hover {
  background: rgba(32, 24, 56, 0.98);
  border-color: var(--candy-yellow-fluo);
  color: var(--candy-yellow-fluo);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(227, 248, 39, 0.4);
}

.btn-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #a842ff, #00b4d8);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 0 18px rgba(168, 66, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-header-contact:hover {
  background: linear-gradient(135deg, #c084fc, #00f0ff);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(168, 66, 255, 0.7);
  color: #ffffff;
}

/* HEADER & NAVBAR */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 5, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(227, 248, 39, 0.4);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 5, 9, 0.98);
  border-bottom-color: var(--candy-purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 66, 255, 0.3);
}

.site-header .brand-obonbons-logo {
  font-size: 1.42rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.3px;
  display: block;
}

.site-header .logo-sub {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--candy-yellow-fluo);
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 3px;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #e3f827, #a842ff, #00f0ff);
  transition: width 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 10px #e3f827;
}

.nav-link:hover, .nav-link.active {
  color: var(--candy-yellow-fluo);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(14, 10, 25, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 32px 20px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 2px solid var(--candy-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta .btn-header-contact {
    display: none;
  }
}

/* HERO SECTION ACCUEIL */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: clamp(110px, 14vw, 140px);
  padding-bottom: clamp(50px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.15;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(22, 16, 38, 0.9);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--candy-purple);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.hero-badge-item.fluo-border {
  border-color: var(--candy-yellow-fluo);
  box-shadow: 0 0 15px rgba(227, 248, 39, 0.35);
}

.hero-badge-item .icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(168, 66, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* CARTE HERO AVEC PHOTO RÉELLE ET EFFET 3D NÉON */
.hero-visual-wrapper {
  position: relative;
  perspective: 1000px;
  width: 100%;
}

.hero-media-card {
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid var(--candy-yellow-fluo);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 66, 255, 0.45), 0 0 25px rgba(227, 248, 39, 0.35);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  background: #0e0a19;
}

.hero-media-card img, .hero-media-card video {
  width: 100%;
  height: clamp(300px, 45vw, 480px);
  object-fit: cover;
  display: block;
}

.hero-floating-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(14, 10, 25, 0.94);
  backdrop-filter: blur(16px);
  padding: 14px 18px;
  border-radius: 18px;
  border: 2px solid var(--candy-yellow-fluo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(227, 248, 39, 0.3);
  transform: translateZ(30px);
}

.float-3d {
  animation: float-3d 5s ease-in-out infinite;
}

@keyframes float-3d {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .hero-badges-row {
    justify-content: center;
  }
}

/* SECTION TEXT_IMAGE */
.text-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
}

.text-image-grid.pos-left {
  direction: rtl;
}

.text-image-grid.pos-left > * {
  direction: ltr;
}

.text-image-grid.pos-center {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.text-image-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--candy-purple);
  box-shadow: var(--shadow-lg);
}

.text-image-media img, .text-image-media video {
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  object-fit: cover;
  display: block;
}

.features-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #ffffff;
}

.features-list li .icon {
  color: var(--candy-yellow-fluo);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .text-image-grid, .text-image-grid.pos-left {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* CARDS / UNIVERS DE BONBONS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 26px);
  margin-top: 36px;
}

.candy-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.candy-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--candy-yellow-fluo);
  box-shadow: var(--shadow-lg);
}

.candy-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.candy-card:hover .candy-card-icon {
  transform: scale(1.12) rotate(6deg);
}

.candy-card.purple .candy-card-icon {
  background: rgba(168, 66, 255, 0.25);
  color: #ffffff;
  border: 1px solid var(--candy-purple);
  box-shadow: 0 0 15px rgba(168, 66, 255, 0.4);
}

.candy-card.fluo .candy-card-icon {
  background: rgba(227, 248, 39, 0.25);
  color: var(--candy-yellow-fluo);
  border: 1px solid var(--candy-yellow-fluo);
  box-shadow: 0 0 15px rgba(227, 248, 39, 0.4);
}

.candy-card.blue .candy-card-icon {
  background: rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  border: 1px solid var(--candy-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.candy-card.pink .candy-card-icon {
  background: rgba(255, 0, 127, 0.25);
  color: #ff007f;
  border: 1px solid var(--candy-pink);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

.candy-card-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
}

.candy-card.purple .candy-card-tag { color: var(--candy-purple-light); }
.candy-card.fluo .candy-card-tag { color: var(--candy-yellow-fluo); }
.candy-card.blue .candy-card-tag { color: #00f0ff; }
.candy-card.pink .candy-card-tag { color: #ff007f; }

.candy-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.candy-card-desc {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* GALERIE DYNAMIQUE */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  min-height: 42px;
  border-radius: var(--radius-full);
  background: rgba(22, 16, 38, 0.9);
  border: 1px solid var(--candy-purple);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, #a842ff 0%, #0077b6 60%, #e3f827 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 25px rgba(168, 66, 255, 0.6);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e0a19;
  border: 1px solid var(--border-purple);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--candy-yellow-fluo);
}

.gallery-item-media {
  height: 260px;
  width: 100%;
  overflow: hidden;
}

.gallery-item-media img, .gallery-item-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-item-media img,
.gallery-item:hover .gallery-item-media video {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(6, 5, 9, 0.98) 0%, rgba(6, 5, 9, 0.7) 60%, transparent 100%);
  color: #ffffff;
}

.gallery-item-category {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--candy-yellow-fluo);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.gallery-item-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.gallery-item-desc {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.4;
}

/* STATS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.stat-box {
  padding: 28px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--candy-yellow-fluo);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #e3f827, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.85rem;
  color: #ffffff;
}

/* PRICING / FORMULES */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 40px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.pricing-card.popular {
  border-color: var(--candy-yellow-fluo);
  background: rgba(32, 24, 56, 0.95);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(227, 248, 39, 0.4);
  transform: translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--candy-yellow-fluo);
  color: #060509;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(227, 248, 39, 0.6);
}

.pricing-header {
  margin-bottom: 18px;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--candy-yellow-fluo);
  font-family: var(--font-heading);
}

.pricing-period {
  font-size: 0.85rem;
  color: #ffffff;
}

.pricing-features {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #ffffff;
}

.pricing-features li .check-icon {
  color: var(--candy-yellow-fluo);
  flex-shrink: 0;
  margin-top: 3px;
}

/* AVIS CLIENTS / TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.testimonial-card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.rating-stars {
  display: flex;
  gap: 4px;
  color: var(--candy-yellow-fluo);
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a842ff, #e3f827);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #060509;
}

.author-name {
  font-weight: 800;
  color: #ffffff;
}

.author-role {
  font-size: 0.8rem;
  color: var(--candy-yellow-fluo);
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 860px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: var(--candy-yellow-fluo);
  background: rgba(32, 24, 56, 0.98);
  box-shadow: 0 0 20px rgba(227, 248, 39, 0.25);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  color: var(--candy-yellow-fluo);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 22px;
  color: #ffffff;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* CTA BANNER */
.cta-banner-wrapper {
  border-radius: 28px;
  padding: clamp(36px, 6vw, 60px) clamp(20px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(227, 248, 39, 0.14) 0%, rgba(168, 66, 255, 0.22) 50%, rgba(0, 240, 255, 0.18) 100%), #0e0a19;
  border: 2px solid var(--candy-yellow-fluo);
  text-align: center;
  box-shadow: 0 0 40px rgba(227, 248, 39, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 14px;
  color: #ffffff;
}

.cta-banner-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #ffffff;
  max-width: 680px;
  margin: 0 auto 30px;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* SECTION CONTACT & FORMULAIRE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
  margin-top: 36px;
}

.contact-info-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(168, 66, 255, 0.25);
  border: 1px solid var(--candy-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--candy-yellow-fluo);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-item-value {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-item-value:hover {
  color: var(--candy-yellow-fluo);
}

.contact-form-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--candy-yellow-fluo);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: #0e0a19;
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  background: #18122c;
  border-color: var(--candy-yellow-fluo);
  box-shadow: 0 0 15px rgba(227, 248, 39, 0.4);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* FOOTER SOMBRE & HARMONIEUX */
.site-footer {
  background: #040306;
  border-top: 2px solid rgba(227, 248, 39, 0.4);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 36px);
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--candy-yellow-fluo);
}

.footer-hours-box {
  background: #0e0a19;
  border: 1px solid var(--candy-yellow-fluo);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.footer-hours-row:last-child {
  border-bottom: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #ffffff;
  flex-wrap: wrap;
  gap: 16px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0e0a19;
  border: 1px solid var(--candy-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: var(--candy-yellow-fluo);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WIDGET CHATBOT IA AGNES AI / MULTI-MOTEURS
   ========================================================================== */
.chatbot-widget-container {
  position: fixed;
  bottom: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  z-index: 99999;
}

.chatbot-floating-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 20px 8px 12px;
  background: #0e0a19;
  border: 2px solid var(--candy-yellow-fluo);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(227, 248, 39, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 99999;
}

.chatbot-floating-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 35px rgba(227, 248, 39, 0.8);
  border-color: #ffffff;
}

.chatbot-widget-container.is-open .chatbot-floating-btn {
  display: none !important;
}

.chatbot-btn-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a842ff, #00f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chatbot-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chatbot-btn-text strong {
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.2;
}

.chatbot-btn-text span {
  font-size: 0.72rem;
  color: var(--candy-yellow-fluo);
  font-weight: 800;
}

.chatbot-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0e0a19;
  box-shadow: 0 0 8px #22c55e;
}

.chatbot-window {
  position: fixed;
  bottom: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 48px);
  background: #0e0a19;
  border-radius: 22px;
  border: 2px solid var(--candy-yellow-fluo);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(227, 248, 39, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
  animation: chatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  flex-shrink: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1c1532 0%, #0e0a19 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--candy-yellow-fluo);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #241b3d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--candy-purple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.chatbot-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.chatbot-header-sub {
  font-size: 0.72rem;
  color: var(--candy-yellow-fluo);
  font-weight: 800;
  letter-spacing: 0.3px;
  display: block;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.chatbot-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

.chatbot-chips-bar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #140f24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  white-space: nowrap;
}

.chatbot-chips-bar::-webkit-scrollbar {
  height: 4px;
}

.chatbot-chips-bar::-webkit-scrollbar-thumb {
  background: var(--candy-purple);
  border-radius: 4px;
}

.chatbot-chip {
  padding: 6px 12px;
  min-height: 30px;
  border-radius: var(--radius-full);
  background: #241b3d;
  border: 1px solid var(--candy-purple);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-chip:hover {
  background: var(--candy-yellow-fluo);
  border-color: var(--candy-yellow-fluo);
  color: #060509;
  transform: translateY(-1px);
}

.chatbot-messages-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0e0a19;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.bot-msg .msg-bubble {
  background: #1c1532;
  color: #ffffff;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-purple);
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, #a842ff, #0077b6);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  padding: 0 4px;
}

.user-msg .msg-time {
  align-self: flex-end;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
}

.typing-bubble .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--candy-yellow-fluo);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chatbot-input-bar {
  flex-shrink: 0;
  padding: 12px 14px;
  background: #140f24;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-input-bar input {
  flex-grow: 1;
  padding: 10px 16px;
  min-height: 42px;
  background: #0e0a19;
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.chatbot-input-bar input:focus {
  border-color: var(--candy-yellow-fluo);
  background: #18122c;
  box-shadow: 0 0 12px rgba(227, 248, 39, 0.3);
}

.chatbot-input-bar button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a842ff, #00b4d8);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chatbot-input-bar button:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   PAGE CONSEILLÈRE IA 3D SAPH'IA (LAYOUT IMMERSIF RÉPLIQUE INFORBALD)
   ========================================================================== */
.saphira-app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 560px;
  background: #06040c;
  overflow: hidden;
  position: relative;
}

@media (max-width: 992px) {
  .saphira-app-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

/* COLONNE GAUCHE 3D */
.saphira-3d-col {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #100b24 0%, #06040c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 992px) {
  .saphira-3d-col {
    height: 320px;
  }
}

.saphira-canvas-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saphira-canvas-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.saphira-stage-loader {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--candy-yellow-fluo);
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 5;
}

.saphira-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(227, 248, 39, 0.2);
  border-top-color: var(--candy-yellow-fluo);
  border-radius: 50%;
  animation: spinLoader 0.9s infinite linear;
}

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

.saphira-stage-badge {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #86efac;
  background: rgba(14, 10, 25, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* COLONNE DROITE CONSOLE CHAT */
.saphira-chat-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #110d22;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

@media (max-width: 992px) {
  .saphira-chat-col {
    height: 540px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.saphira-chat-header {
  padding: 16px 24px;
  background: #16112c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(227, 248, 39, 0.5));
}

.chat-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.chat-sub {
  font-size: 0.78rem;
  color: var(--candy-yellow-fluo);
  font-weight: 700;
}

.saphira-btn-control {
  background: #20173d;
  border: 1px solid var(--candy-yellow-fluo);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.saphira-btn-control:hover {
  background: var(--candy-yellow-fluo);
  color: #060509;
}

.saphira-btn-control.muted {
  border-color: #6b7280;
  color: #9ca3af;
}

/* ZONE DIALOGUE */
.saphira-dialogue-area {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #090614;
}

.saphira-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.saphira-msg.bot {
  align-self: flex-start;
}

.saphira-msg.user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.saphira-msg.bot .msg-bubble {
  background: #17112d;
  color: #ffffff;
  border: 1px solid var(--border-purple);
  border-bottom-left-radius: 4px;
}

.saphira-msg.user .msg-bubble {
  background: linear-gradient(135deg, #a842ff, #0077b6);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* ZONE INTERACTION INFÉRIEURE */
.saphira-interaction-footer {
  flex-shrink: 0;
  background: #140f26;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saphira-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  white-space: nowrap;
}

.saphira-quick-chips::-webkit-scrollbar {
  height: 4px;
}

.saphira-quick-chips::-webkit-scrollbar-thumb {
  background: var(--candy-purple);
  border-radius: 4px;
}

.saphira-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #1e1638;
  border: 1px solid var(--border-purple);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.saphira-chip:hover {
  background: var(--candy-yellow-fluo);
  color: #060509;
  border-color: var(--candy-yellow-fluo);
}

/* BARRE DE SAISIE IDENTIQUE SAPHIRA INFORBALD */
.saphira-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.lang-selector-block {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-select-input {
  background: #1e1638;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.saphira-mic-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #20173d;
  border: 1px solid var(--border-purple);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.saphira-mic-btn:hover {
  background: var(--candy-yellow-fluo);
  color: #060509;
}

.saphira-mic-btn.listening {
  background: #ef4444;
  border-color: #ef4444;
  animation: pulseMic 1s infinite alternate;
}

@keyframes pulseMic {
  from { transform: scale(1); box-shadow: 0 0 10px #ef4444; }
  to { transform: scale(1.15); box-shadow: 0 0 25px #ef4444; }
}

.input-text-wrapper {
  flex-grow: 1;
}

.input-text-wrapper input {
  width: 100%;
  padding: 12px 18px;
  min-height: 44px;
  background: #090614;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.input-text-wrapper input:focus {
  border-color: var(--candy-yellow-fluo);
  background: #120d24;
  box-shadow: 0 0 12px rgba(227, 248, 39, 0.3);
}

/* BOUTON ENVOI JAUNE OR */
.saphira-send-btn {
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 8px;
  background: #f59e0b;
  color: #060509;
  font-weight: 900;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.saphira-send-btn:hover {
  background: #e3f827;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 248, 39, 0.5);
}
