/**
 * E.DROIT CONSULTING GROUP (République du Bénin)
 * Design System 3D & ADN Avancé "Code & Chill" (@CodeChill_a / @_code_and_chill_)
 * 
 * Architecture CSS 3D :
 * 1. Propriétés CSS typées nativement (@property)
 * 2. Variables Thèmes Sombre & Clair (pilotage data-theme)
 * 3. 3D Perspective Engines (preserve-3d, perspective 1200px, translateZ)
 * 4. Conic Gradient Border Beams (faisceau lumineux tournant @property --glow-angle)
 * 5. Bento Cards avec Halo Radial dynamique & Profondeur Holographique
 * 6. Animations 3D réactives au Scroll (Scrollytelling 3D, Inertie & Momentum)
 * 7. Boutons Magnétiques Liquides & Micro-interactions Spring
 * 8. Modules BEM Spécialisés : Hero 3D, 8 Départements 3D, Salle 3D, Calculateur Lerp, Audio Orb, AI Advisor
 */

/* ============================================================================
   1. PROPRIÉTÉS CSS TYPÉES (@property) POUR RENDU GPU 60 FPS
   ============================================================================ */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --fill {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

@property --scroll-progress {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

@property --card-tilt-x {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

@property --card-tilt-y {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

/* ============================================================================
   2. SYSTÈME DE VARIABLES ET THÈMES SOMBRE / CLAIR
   ============================================================================ */
:root,
html[data-theme="dark"] {
  /* Fonds institutionnels profonds */
  --bg-primary: #08101d;
  --bg-secondary: #0f1d2f;
  --bg-card: rgba(19, 35, 56, 0.72);
  --bg-card-hover: rgba(26, 48, 77, 0.9);
  --bg-glass: rgba(8, 16, 29, 0.85);
  --bg-elevated: #132338;
  --bg-surface-subtle: rgba(255, 255, 255, 0.03);

  /* Typographie */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Accents Or Impérial (Thémis) & Rouge Sceau */
  --gold-primary: #c9a45c;
  --gold-light: #e5c67e;
  --gold-dark: #9e7b2f;
  --crimson-accent: #e61919;
  --crimson-light: #ff4d4d;
  --crimson-subtle: rgba(230, 25, 25, 0.15);

  /* Bordures et Ombres Glassmorphiques 3D */
  --border-subtle: rgba(201, 164, 92, 0.22);
  --border-strong: rgba(201, 164, 92, 0.55);
  --border-crimson: rgba(230, 25, 25, 0.38);
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 25px 65px -15px rgba(0, 0, 0, 0.85);
  --shadow-3d-card: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(201, 164, 92, 0.15);
  --shadow-gold: 0 12px 36px -6px rgba(201, 164, 92, 0.55);
  --spotlight: rgba(201, 164, 92, 0.16);

  /* Courbes de Bézier Physiques (Signature Code & Chill) */
  --ease-open: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-shut: cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
  /* Fonds ivoire chaud et blanc */
  --bg-primary: #f8f6f0;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 252, 245, 1);
  --bg-glass: rgba(248, 246, 240, 0.92);
  --bg-elevated: #f1ede3;
  --bg-surface-subtle: rgba(0, 0, 0, 0.02);

  /* Typographie */
  --text-primary: #0f1d2f;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Accents Or Bronze & Rouge Institutionnel */
  --gold-primary: #9e7b2f;
  --gold-light: #c9a45c;
  --gold-dark: #7a5f22;
  --crimson-accent: #c81e1e;
  --crimson-light: #e61919;
  --crimson-subtle: rgba(200, 30, 30, 0.12);

  /* Bordures et Ombres */
  --border-subtle: rgba(158, 123, 47, 0.22);
  --border-strong: rgba(158, 123, 47, 0.55);
  --border-crimson: rgba(200, 30, 30, 0.3);
  --shadow-subtle: 0 10px 25px -8px rgba(15, 29, 47, 0.08);
  --shadow-elevated: 0 20px 48px -12px rgba(15, 29, 47, 0.15);
  --shadow-3d-card: 0 20px 45px -10px rgba(15, 29, 47, 0.12), 0 0 25px rgba(158, 123, 47, 0.1);
  --shadow-gold: 0 10px 30px -6px rgba(158, 123, 47, 0.35);
  --spotlight: rgba(201, 164, 92, 0.18);
}

/* ============================================================================
   3. RESET, TYPOGRAPHIE & FOND DE SCÈNE 3D
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.45s var(--ease-open), color 0.45s var(--ease-open);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  perspective: 1200px;
}

/* Canvas 3D de particules géométriques d'arrière-plan */
#bgCanvas3D {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Sélection de texte prestige */
::selection {
  background-color: var(--gold-primary);
  color: #08101d;
}

/* Barre de défilement 3D stylisée */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 9999px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Conteneur fluide */
.container {
  max-width: 82rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

/* ============================================================================
   4. INDICATEUR DE DÉFILEMENT HUD 3D (SCROLL PROGRESS BEAM)
   ============================================================================ */
.scroll-hud-beam {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--crimson-accent) 0%, var(--gold-primary) 50%, #ffffff 85%, var(--crimson-accent) 100%);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  z-index: 100;
  box-shadow: 0 0 15px var(--gold-primary), 0 0 25px var(--crimson-accent);
  pointer-events: none;
  transition: transform 0.08s linear;
}

/* ============================================================================
   5. CODE & CHILL 3D TILT ENGINE & PROFONDEUR HOLOGRAPHIQUE
   ============================================================================ */
/* Conteneur de perspective pour chaque carte 3D */
.tilt-3d-wrap {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Carte Bento 3D interactive */
.bento__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-open), border-color 0.35s var(--ease-open), background-color 0.35s var(--ease-open), box-shadow 0.35s var(--ease-open);
  will-change: transform;
}

/* Couches de profondeur 3D à l'intérieur de la carte */
.depth-layer-bg {
  transform: translateZ(0px);
}

.depth-layer-content {
  transform: translateZ(28px);
  transition: transform 0.3s var(--ease-open);
}

.depth-layer-title {
  transform: translateZ(44px);
  transition: transform 0.3s var(--ease-open);
}

.depth-layer-floating {
  transform: translateZ(64px);
  transition: transform 0.35s var(--ease-spring);
}

/* Faisceau lumineux tournant sur la bordure (Conic Border Beam) */
.bento__card.glow-beam::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle) at 50% 50%, transparent 0deg, var(--gold-primary) 65deg, var(--crimson-accent) 120deg, transparent 180deg);
  animation: spinGlowBeam 5s linear infinite;
  z-index: 1;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  opacity: 0.85;
}

@keyframes spinGlowBeam {
  0% { --glow-angle: 0deg; }
  100% { --glow-angle: 360deg; }
}

/* Halo radial suivant le curseur */
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--spotlight), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-open);
  pointer-events: none;
  z-index: 2;
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-3d-card);
}

/* ============================================================================
   6. SCROLLYTELLING 3D : ANIMATIONS RÉACTIVES AU DÉFILEMENT DE HAUT EN BAS
   ============================================================================ */
/* Classe assignée aux éléments surveillés par l'observateur d'intersection 3D */
.reveal-3d {
  opacity: 0;
  transform: perspective(1200px) rotateX(16deg) translate3d(0, 50px, -80px) scale(0.95);
  transition: opacity 0.75s var(--ease-open), transform 0.85s var(--ease-open);
  will-change: transform, opacity;
}

.reveal-3d[data-revealed="true"] {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
}

/* Décalage en cascade physique */
.reveal-3d[data-revealed="true"]:nth-child(1) { transition-delay: 40ms; }
.reveal-3d[data-revealed="true"]:nth-child(2) { transition-delay: 90ms; }
.reveal-3d[data-revealed="true"]:nth-child(3) { transition-delay: 140ms; }
.reveal-3d[data-revealed="true"]:nth-child(4) { transition-delay: 190ms; }
.reveal-3d[data-revealed="true"]:nth-child(5) { transition-delay: 240ms; }
.reveal-3d[data-revealed="true"]:nth-child(6) { transition-delay: 290ms; }
.reveal-3d[data-revealed="true"]:nth-child(7) { transition-delay: 340ms; }
.reveal-3d[data-revealed="true"]:nth-child(8) { transition-delay: 390ms; }

/* Dégradé métallique Or & Blanc */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================================
   7. BOUTONS MAGNÉTIQUES LIQUIDES & MICRO-INTERACTIONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-open), background-color 0.3s var(--ease-open), border-color 0.3s var(--ease-open);
  will-change: transform;
  transform-style: preserve-3d;
}

.btn:active {
  transform: translate3d(0, 0, 0) scale(0.96);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  color: #08101d;
  box-shadow: 0 10px 26px -5px rgba(201, 164, 92, 0.45);
}

.btn--gold:hover {
  transform: translate3d(0, -3px, 12px) scale(1.03);
  box-shadow: 0 18px 40px -6px rgba(201, 164, 92, 0.7);
}

.btn--outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn--outline:hover {
  transform: translate3d(0, -3px, 10px);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 10px 28px -6px rgba(201, 164, 92, 0.3);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.btn--md {
  padding: 0.8rem 1.5rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Jauge de progression GPU via scaleX */
.meter-fill {
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  transition: transform 0.35s var(--ease-open);
  will-change: transform;
}

/* ============================================================================
   8. BARRE D'ANNONCE & NAVIGATION GLASSMORPHISME
   ============================================================================ */
.announcement-bar {
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 45;
}

.announcement-bar__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s var(--ease-open), transform 0.35s var(--ease-open);
}

.header__nav {
  height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
}

.header__logo-wrap {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  padding: 2px;
  background: linear-gradient(135deg, var(--crimson-accent) 0%, var(--gold-primary) 50%, var(--crimson-accent) 100%);
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.4);
  transition: transform 0.4s var(--ease-spring);
}

.header__brand:hover .header__logo-wrap {
  transform: scale(1.08) rotate(5deg);
}

.header__logo-img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  background: #08101d;
}

.header__brand-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold-primary);
}

.header__brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.header__brand-title span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.header__links {
  display: none;
  align-items: center;
  gap: 1.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .header__links {
    display: flex;
  }
}

.header__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s var(--ease-open);
  position: relative;
}

.header__link:hover {
  color: var(--gold-primary);
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--ease-open);
}

.header__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ============================================================================
   9. HERO SECTION 3D CINÉMATIQUE
   ============================================================================ */
.hero {
  position: relative;
  padding: 4rem 0 5.5rem 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 12fr;
    column-gap: 3.5rem;
  }
  .hero__col-main {
    grid-column: span 7;
  }
  .hero__col-card {
    grid-column: span 5;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--gold-primary);
  box-shadow: var(--shadow-subtle);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-spring);
}

.hero__badge:hover {
  transform: translate3d(0, -2px, 15px);
}

.hero__badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background-color: var(--crimson-accent);
  box-shadow: 0 0 10px var(--crimson-accent);
}

.hero__title {
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 3.35rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.85rem;
  }
}

.hero__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero__stat-card {
  padding: 1.15rem 1.25rem;
  transform-style: preserve-3d;
}

.hero__stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  transform: translateZ(25px);
}

.hero__stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
  transform: translateZ(15px);
}

/* ============================================================================
   10. SÉLECTEUR EXPRESS RAPIDE 3D (HERO RIGHT CARD)
   ============================================================================ */
.quick-card {
  padding: 2rem;
}

.quick-card__header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  transform-style: preserve-3d;
}

.quick-card__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(201, 164, 92, 0.4);
  transform: translateZ(35px);
  animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
  0%, 100% { transform: translateZ(35px) rotate(0deg); }
  50% { transform: translateZ(48px) rotate(3deg); }
}

.quick-card__tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--crimson-subtle);
  color: var(--crimson-light);
  border: 1px solid var(--border-crimson);
  display: inline-block;
  transform: translateZ(25px);
}

.quick-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 0.4rem;
  transform: translateZ(30px);
}

.quick-card__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  transform: translateZ(20px);
}

.form-select,
.form-input,
.form-textarea {
  width: 100%;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s var(--ease-open), box-shadow 0.25s var(--ease-open), transform 0.25s var(--ease-open);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.25);
  transform: translateZ(10px);
}

/* ============================================================================
   11. SECTION 2 : LES 8 DÉPARTEMENTS D'EXPERTISE EN 3D
   ============================================================================ */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section__title {
    font-size: 2.65rem;
  }
}

.section__sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 44rem;
  margin-top: 0.75rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.dept__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

@media (min-width: 640px) {
  .dept__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dept__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dept__card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  min-height: 22rem;
}

.dept__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateZ(35px);
}

.dept__icon {
  font-size: 2rem;
  display: inline-block;
  transition: transform 0.4s var(--ease-spring);
}

.dept__card:hover .dept__icon {
  transform: scale(1.2) rotate(8deg);
}

.dept__num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
}

.dept__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.85rem 0 0.55rem 0;
  transform: translateZ(40px);
}

.dept__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transform: translateZ(25px);
}

.dept__bullets {
  list-style: none;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  transform: translateZ(20px);
}

.dept__bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.dept__bullet-item span:first-child {
  color: var(--gold-primary);
}

/* ============================================================================
   12. SECTION 3 : SALLE DE CONFÉRENCE 3D & CALCULATEUR LERP
   ============================================================================ */
.room__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 1024px) {
  .room__grid {
    grid-template-columns: 12fr;
  }
  .room__col-visual {
    grid-column: span 7;
  }
  .room__col-calc {
    grid-column: span 5;
  }
}

.room__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #08101d;
  transform-style: preserve-3d;
}

.room__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-open);
}

.room__stage:hover .room__img {
  transform: scale(1.06);
}

.room__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 16, 29, 0.95) 0%, rgba(8, 16, 29, 0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transform-style: preserve-3d;
}

.room__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(8, 16, 29, 0.88);
  color: var(--gold-light);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transform: translateZ(50px);
}

.room__prices-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateZ(65px);
}

.pill-rate {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.pill-rate--gold {
  background: var(--gold-primary);
  color: #08101d;
}

.pill-rate--crimson {
  background: var(--crimson-accent);
  color: #ffffff;
}

.room__amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .room__amenities {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity-card {
  padding: 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transform-style: preserve-3d;
}

.amenity-card__icon {
  font-size: 1.5rem;
  transform: translateZ(30px);
}

.amenity-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateZ(25px);
}

.amenity-card__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  transform: translateZ(15px);
}

/* Calculateur 3D BEM */
.calc-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  border: 2px solid var(--border-strong);
  transform-style: preserve-3d;
}

.calc__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  transform: translateZ(20px);
}

.calc__mode-btn {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-open);
}

.calc__mode-btn[data-active="true"] {
  background: var(--gold-primary);
  color: #08101d;
  box-shadow: 0 6px 16px rgba(201, 164, 92, 0.4);
}

.calc__slider-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: translateZ(25px);
}

.calc__slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.calc__slider {
  width: 100%;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.calc__meter-track {
  width: 100%;
  height: 0.4rem;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--bg-primary);
}

.calc__meter-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold-primary), var(--crimson-accent));
}

.calc__total-box {
  padding: 1.15rem 1.35rem;
  border-radius: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateZ(35px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.calc__total-price {
  font-size: 1.95rem;
  font-weight: 800;
  text-align: right;
}

/* ============================================================================
   13. PETIT CERCLE AUDIO FLOTTANT (FLOATING AUDIO ORB — BAS GAUCHE)
   ============================================================================ */
.orb__container {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  perspective: 1000px;
}

.orb__drawer {
  width: 20rem;
  padding: 1.35rem;
  border-radius: 1.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  transform: translate3d(0, 18px, 0) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.25s var(--ease-open);
  will-change: transform, opacity;
}

.orb__drawer[data-state="open"] {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.orb__button {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  border: 2px solid var(--crimson-accent);
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px -5px rgba(201, 164, 92, 0.6);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
  will-change: transform;
}

.orb__button:hover {
  transform: scale(1.1) rotate(-5deg);
}

.orb__button:active {
  transform: scale(0.94);
}

.orb__pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid var(--gold-primary);
  opacity: 0;
  pointer-events: none;
}

.orb__button[data-playing="true"] .orb__pulse-ring {
  animation: pulseRing 1.6s infinite cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.orb__eq {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 1.15rem;
}

.orb__bar {
  width: 3px;
  border-radius: 9999px;
  background: #08101d;
  transform-origin: bottom center;
  transform: scaleY(0.25);
  transition: transform 0.2s var(--ease-open);
}

.orb__button[data-playing="true"] .orb__bar:nth-child(1) {
  animation: eqBounce 0.65s infinite ease-in-out alternate;
}
.orb__button[data-playing="true"] .orb__bar:nth-child(2) {
  animation: eqBounce 0.45s 0.12s infinite ease-in-out alternate;
}
.orb__button[data-playing="true"] .orb__bar:nth-child(3) {
  animation: eqBounce 0.55s 0.24s infinite ease-in-out alternate;
}
.orb__button[data-playing="true"] .orb__bar:nth-child(4) {
  animation: eqBounce 0.5s 0.08s infinite ease-in-out alternate;
}

@keyframes eqBounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.orb__tag {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #08101d;
  margin-top: 1px;
}

/* ============================================================================
   14. ASSISTANT IA CONVERSATIONNEL (FLOATING AI ADVISOR — BAS DROITE)
   ============================================================================ */
.ai-assistant__container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  perspective: 1000px;
}

.ai-assistant__panel {
  width: 23rem;
  height: 31rem;
  border-radius: 1.35rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0, 18px, 0) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.25s var(--ease-open);
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  .ai-assistant__panel {
    width: calc(100vw - 2.5rem);
    height: 27rem;
  }
}

.ai-assistant__panel[data-state="open"] {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ai-assistant__header {
  padding: 0.95rem 1.15rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-assistant__messages {
  flex: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.8rem;
}

.ai-bubble {
  max-width: 86%;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  line-height: 1.55;
}

.ai-bubble--user {
  align-self: flex-end;
  background: var(--gold-primary);
  color: #08101d;
  font-weight: 600;
  border-bottom-right-radius: 0.2rem;
}

.ai-bubble--bot {
  align-self: flex-start;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 0.2rem;
}

.ai-assistant__chips {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
}

.ai-chip {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s var(--ease-open);
}

.ai-chip:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.ai-assistant__form {
  padding: 0.75rem 0.85rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

/* ============================================================================
   15. MODALE DÉTAIL DÉPARTEMENT 3D
   ============================================================================ */
.modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 16, 29, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  perspective: 1200px;
}

.modal__backdrop[data-state="open"] {
  display: flex;
}

.modal__panel {
  max-width: 34rem;
  width: 100%;
  padding: 2rem;
  border-radius: 1.35rem;
  background: var(--bg-secondary);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(201, 164, 92, 0.3);
  transform: translate3d(0, 20px, 0) scale(0.95);
  opacity: 0;
  animation: modalIn 0.38s var(--ease-spring) forwards;
}

@keyframes modalIn {
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}
