/*
Theme Name: NBS Theme
Theme URI: https://www.neobyteservices.fr
Author: NeoByteServices
Author URI: https://www.neobyteservices.fr
Description: Theme custom NeoByteServices (NBS). Header, footer et styles globaux repris de l'ancien setup Elementor, sans dependance a Elementor. Le contenu des pages reste du HTML brut affiche via the_content().
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nbs-theme
*/
/* ==============================================================================
   NEOBYTESERVICES - CSS ADDITIONNEL WP (CENTRALISE)
   ============================================================================== */

/* --- 1. VARIABLES (Couleurs Globales) --- */
:root {
  --bg-main: #0d0f14;
  --bg-sec: rgba(255, 255, 255, 0.015);
  --accent-orange: #f97316;
  --accent-light: #fb923c;
  --accent-amber: #fbbf24;
  --accent-cyan: #14b8a6;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --text-title: #fafafa;
  --text-body: #94a3b8;
  --text-muted: #cbd5e1;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(249, 115, 22, 0.18);
  --card-border-hover: rgba(249, 115, 22, 0.45);
  --glow-btn: 0 0 28px rgba(249, 115, 22, 0.35);
  /* Footer spécifique */
  --nbs-bg: #050608;
  --nbs-bg2: #0d0f12;
  --nbs-subtle: #475569;
  --nbs-border: rgba(255, 255, 255, 0.07);
  --nbs-orange: #f97316;
  --nbs-amber: #fbbf24;
  --nbs-muted: #94a3b8;
}

/* --- 2. BREAKOUT ELEMENTOR & RESET --- */
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* ✅ CORRECTION — Reset ciblé sur les pages HTML personnalisées uniquement (Accueil, Avocats, pages .nbs-page-wrapper) */
body:has(.nbs-custom-page) .elementor-widget-html,
body:has(.nbs-custom-page) .elementor-widget-container,
body:has(.nbs-custom-page) .e-con-inner,
body:has(.nbs-custom-page) .e-con,
body:has(.nbs-custom-page) .elementor-section,
body:has(.nbs-custom-page) .elementor-container,
body:has(.nbs-page-wrapper) .elementor-widget-html,
body:has(.nbs-page-wrapper) .e-con,
body:has(.topbar) .elementor-widget-html,
body:has(.topbar) .elementor-widget-container,
body:has(.topbar) .e-con-inner,
body:has(.topbar) .e-con,
body:has(.topbar) .elementor-section,
body:has(.topbar) .elementor-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.nbs-custom-page {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.nbs-custom-page h1,
.nbs-custom-page h2,
.nbs-custom-page h3,
.nbs-custom-page h4 {
  color: var(--text-title);
  line-height: 1.2;
}

.nbs-custom-page a {
  text-decoration: none;
  color: inherit;
}

.nbs-custom-page ul {
  list-style: none;
}

.nbs-custom-page strong {
  color: var(--text-title);
}

/* --- 3. INFRASTRUCTURE ARRIERE-PLAN (Grid & Orbs) --- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
}

.orb-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
}

.orb-3 {
  top: 40%;
  left: 30%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

/* --- 4. ANIMATIONS GLOBALES --- */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0)
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg)
  }
}

@keyframes rotate-reverse {
  100% {
    transform: rotate(-360deg)
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* --- 5. COMPOSANTS DE BASE --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-family: inherit;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  color: #ffffff !important;
  box-shadow: var(--glow-btn);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-title);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.05);
  transform: translateY(-2px);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.glass-card:hover::before {
  opacity: 1;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-shadow 2s infinite;
}

/* === UTILITAIRES COULEURS === */
.text-purple {
  color: var(--accent-purple);
}

.glass-card-purple {
  border-color: rgba(139, 92, 246, 0.2);
}

.glass-card-purple:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.glass-card-purple::before {
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.pulse-dot-purple {
  background: var(--accent-purple);
  animation-name: pulse-purple;
}

@keyframes pulse-purple {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0)
  }
}

.text-cyan {
  color: var(--accent-cyan);
}

.glass-card-cyan {
  border-color: rgba(20, 184, 166, 0.2);
}

.glass-card-cyan:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 10px 40px rgba(20, 184, 166, 0.1);
}

.glass-card-cyan::before {
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.pulse-dot-cyan {
  background: var(--accent-cyan);
  animation-name: pulse-cyan;
}

@keyframes pulse-cyan {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0)
  }
}


/* --- 6. POPUPS CENTRALISEES (Audit & Contact) --- */
.nbs-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.nbs-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nbs-modal-content {
  background: #0d111a !important;
  background-image: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 40%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.03), transparent 40%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  width: 90vw !important;
  max-width: 650px !important;
  max-height: 95vh !important;
  overflow-y: auto !important;
  padding: 2.5rem 5rem !important;
  position: relative !important;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s ease;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
  /* Firefox */
}

.nbs-modal-overlay.active .nbs-modal-content {
  transform: translateY(0) scale(1);
}

.nbs-modal-content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

.nbs-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nbs-modal-close:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--accent-orange);
  transform: rotate(90deg);
}

.nbs-modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.nbs-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.nbs-modal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: modalPulse 1.5s infinite;
}

@keyframes modalPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0);
  }
}

.nbs-modal-header h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.nbs-modal-header h3 span {
  color: var(--accent-orange);
}

.nbs-modal-header p {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0 auto;
  max-width: 420px;
}

.nbs-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem !important;
}

.nbs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem !important;
}

.nbs-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem !important;
  text-align: left;
}

.nbs-form-group label {
  color: #e2e8f0;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

.nbs-form-group input,
.nbs-form-group textarea,
.nbs-form-group select {
  width: 100% !important;
  background: #141b2d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  cursor: pointer;
}

.nbs-form-group textarea {
  resize: vertical;
  min-height: 80px !important;
  cursor: text;
}

.nbs-form-group input {
  cursor: text;
}

.nbs-form-group select option {
  background: #141b2d;
  color: #ffffff;
}

.nbs-form-group input:focus,
.nbs-form-group textarea:focus,
.nbs-form-group select:focus {
  outline: none;
  background: #1a2235 !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.nbs-form-group input.error,
.nbs-form-group textarea.error,
.nbs-form-group select.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.nbs-modal-submit {
  width: 100% !important;
  margin-top: 1.5rem !important;
  padding: 18px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.5px !important;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber)) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.nbs-modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.nbs-modal-success {
  display: none;
  text-align: center;
  padding: 2rem 0 1rem;
}

.nbs-modal-success.active {
  display: block;
}

.nbs-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #22c55e;
}

.nbs-modal-success h4 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.nbs-modal-success p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
}

.nbs-form-note {
  text-align: center;
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

@media (max-width:900px) {
  .nbs-modal-content {
    padding: 2.5rem 2rem;
    width: 95%;
  }

  .nbs-form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==============================================================================
   FORCAGE GLOBALE HERO ET VISUELS MASQUÉS (MAJ PROPORTIONS)
   ============================================================================== */
.nbs-custom-page .hero {
  padding-top: 8rem !important;
  /* Empeche de passer sous le header fixe */
  padding-bottom: 4rem !important;
}

/* Force UNIQUEMENT les balises images a devenir des cercles parfaits de 420px */
.nbs-custom-page img.hero-visual,
.nbs-custom-page .hero-img-mask {
  height: 100% !important;
  max-height: 420px !important;
  width: 100% !important;
  max-width: 420px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 auto !important;
  display: block !important;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%) !important;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%) !important;
}

/* Restaure les conteneurs peres pour que les cartes flottent aux coordonnees d'origine */
.nbs-custom-page div.hero-visual {
  width: 100% !important;
  max-width: none !important;
  /* Debloque l'ecrasement horizontal des cartes */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 420px !important;
  position: relative !important;
}

.nbs-custom-page .hero-visual-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  position: relative !important;
}

/* Glassmorphism : plus de transparence pour voir l'image au travers */
.nbs-custom-page .f-card,
.nbs-custom-page .floating-card {
  background: rgba(13, 15, 20, 0.30) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

@media (max-width: 900px) {

  .nbs-custom-page img.hero-visual,
  .nbs-custom-page .hero-img-mask {
    max-height: 350px !important;
    max-width: 350px !important;
  }
}

/* ==============================================================================
   6. TEMPLATE ARTICLE UNIQUE (SINGLE POST WORDPRESS NATIF)
   Permet d'appliquer la charte Cyber-Sérénité sur les articles générés par WordPress
   sans avoir besoin du theme builder payant d'Elementor.
   ============================================================================== */
body.single-post,
body.single {
  background-color: #0b1325 !important;
  /* var(--bg-main) */
  color: #cbd5e1 !important;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif !important;
}

/* Transparence du wrapper natif (selon thèmes) */
body.single-post #page,
body.single-post .site {
  background: transparent !important;
}

/* Conteneur de l'article avec effet Vitre / Glassmorphism */
body.single-post #content,
body.single-post .site-main,
body.single-post main#main {
  max-width: 900px !important;
  margin: 6rem auto !important;
  padding: 4rem 5rem !important;
  background: rgba(13, 15, 20, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Titre principal */
body.single-post #content h1.entry-title,
body.single-post .site-main h1.entry-title,
body.single-post .elementor-widget-theme-post-title h1 {
  color: #ffffff !important;
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  margin-bottom: 2.5rem !important;
  text-align: center !important;
  line-height: 1.2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-bottom: 2rem !important;
}

/* Sous-titres */
body.single-post #content h2,
body.single-post .site-main h2,
body.single-post main#main h2,
body.single-post #content h3,
body.single-post .site-main h3,
body.single-post main#main h3,
body.single-post #content h4,
body.single-post .site-main h4,
body.single-post main#main h4 {
  color: #ffffff !important;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
  font-weight: 700 !important;
}

/* Texte courant */
body.single-post #content p,
body.single-post .site-main p,
body.single-post main#main p,
body.single-post #content li,
body.single-post .site-main li,
body.single-post main#main li {
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
  margin-bottom: 1.5rem !important;
}

/* Liens */
body.single-post #content a,
body.single-post .site-main a,
body.single-post main#main a {
  color: #f39c12;
  text-decoration: none;
}

body.single-post #content a:hover,
body.single-post .site-main a:hover,
body.single-post main#main a:hover {
  text-decoration: underline;
}

/* Citations (Blockquotes) */
body.single-post blockquote,
body.single-post .wp-block-quote {
  margin: 2.5rem 0 !important;
  padding: 1.5rem 2rem !important;
  background: rgba(243, 156, 18, 0.05) !important;
  border-left: 4px solid #f39c12 !important;
  border-radius: 0 12px 12px 0 !important;
  font-style: italic !important;
  color: #e2e8f0 !important;
  font-size: 1.15rem !important;
}

body.single-post blockquote p {
  margin-bottom: 0 !important;
}

/* Listes à puces stylisées */
body.single-post #content ul,
body.single-post .site-main ul {
  list-style: none !important;
  padding-left: 1rem !important;
}

body.single-post #content ul li,
body.single-post .site-main ul li {
  position: relative !important;
  margin-bottom: 0.8rem !important;
  padding-left: 1.5rem !important;
  line-height: 1.6 !important;
}

body.single-post #content ul li::before,
body.single-post .site-main ul li::before {
  content: "■" !important;
  color: #f39c12 !important;
  font-size: 0.6em !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.5rem !important;
}

/* Tableaux (Ex: Comparatifs techniques) */
body.single-post table,
body.single-post .wp-block-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2.5rem 0 !important;
  background: rgba(13, 15, 20, 0.4) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.single-post th {
  background: rgba(243, 156, 18, 0.15) !important;
  color: #f39c12 !important;
  text-align: left !important;
  padding: 1.2rem !important;
  font-weight: 700 !important;
  border-bottom: 2px solid rgba(243, 156, 18, 0.3) !important;
}

body.single-post td {
  padding: 1rem 1.2rem !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.single-post tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Mise en évidence (has-background) */
body.single-post .has-background {
  border-radius: 12px !important;
  padding: 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Section "A Lire Aussi" */
.nbs-related-posts-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.nbs-related-posts-section h3 {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  margin-bottom: 2rem !important;
  text-align: left !important;
  color: #fff !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.nbs-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .nbs-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Images de l'article (On exclut les emojis générés par WordPress) */
body.single-post #content img:not(.emoji),
body.single-post .site-main img:not(.emoji),
body.single-post main#main img:not(.emoji),
body.single-post #content figure,
body.single-post .site-main figure,
body.single-post main#main figure {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  margin: 2rem auto !important;
  display: block !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  /* Ombre élégante sur les visuels */
}

/* Restauration correcte des Emojis inline WordPress */
body.single-post #content img.emoji,
body.single-post .site-main img.emoji,
body.single-post main#main img.emoji {
  display: inline !important;
  margin: 0 .1em !important;
  max-width: 1.2em !important;
  height: 1.2em !important;
  border-radius: 0 !important;
}

/* Espace Commentaires WordPress natif */
body.single-post #comments {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 4rem !important;
  margin-top: 5rem !important;
}

body.single-post #respond {
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 3rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.single-post .comment-reply-title {
  color: #fff !important;
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
}

body.single-post #respond label {
  color: #cbd5e1 !important;
  display: block;
  margin-bottom: 0.5rem;
}

body.single-post input[type="text"],
body.single-post input[type="email"],
body.single-post input[type="url"],
body.single-post textarea {
  background: #0b1325 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 8px !important;
  margin-bottom: 1.5rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.single-post input[type="submit"] {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
}

body.single-post input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3) !important;
}

@media (max-width: 768px) {

  body.single-post #content,
  body.single-post .site-main,
  body.single-post main#main {
    padding: 2.5rem 1.5rem !important;
    margin: 3rem 1rem !important;
  }

  body.single-post #content h1.entry-title,
  body.single-post .site-main h1.entry-title {
    font-size: 2rem !important;
  }
}

/* ==============================================================================
   7. FOOTER ET BANDEAU COOKIES
   ============================================================================== */
/* ===== RESET SCOPED ===== */
#nbs-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#nbs-footer a {
  text-decoration: none;
}

#nbs-footer ul {
  list-style: none;
}

/* ===== FOOTER WRAPPER ===== */
#nbs-footer {
  width: 100vw;
  background: var(--nbs-bg2);
  border-top: 1px solid var(--nbs-border);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--nbs-muted);
  position: relative;
}

/* ===== GRID PRINCIPAL ===== */
#nbs-footer .ft-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding: 4rem 6%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== COLONNE 1 - LOGO ===== */
#nbs-footer .ft-brand img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

#nbs-footer .ft-baseline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--nbs-muted);
  margin-bottom: 1.6rem;
  max-width: 260px;
}

#nbs-footer .ft-social {
  display: flex;
  gap: 0.6rem;
}

#nbs-footer .ft-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--nbs-border);
  color: var(--nbs-orange);
  transition: all 0.3s;
}

#nbs-footer .ft-social a:hover {
  background: var(--nbs-orange);
  color: #ffffff !important;
  border-color: var(--nbs-orange);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.4);
}

/* ===== BADGE CERTIF ===== */
#nbs-footer .ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nbs-orange);
  letter-spacing: 0.03em;
}

#nbs-footer .ft-badge svg {
  flex-shrink: 0;
}

/* ===== COLONNES 2 & 3 ===== */
#nbs-footer .ft-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nbs-orange);
  margin-bottom: 1.4rem;
}

#nbs-footer .ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#nbs-footer .ft-col ul li a {
  color: var(--nbs-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#nbs-footer .ft-col ul li a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nbs-subtle);
  transition: background 0.3s;
  flex-shrink: 0;
}

#nbs-footer .ft-col ul li a:hover {
  color: var(--text-title);
}

#nbs-footer .ft-col ul li a:hover::before {
  background: var(--nbs-orange);
}

/* Sous-titres de groupes dans la colonne Services */
#nbs-footer .ft-col-sub {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nbs-muted);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== COLONNE 4 - CONTACT ===== */
#nbs-footer .ft-contact h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nbs-orange);
  margin-bottom: 1.4rem;
}

#nbs-footer .ft-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

#nbs-footer .ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--nbs-muted);
}

#nbs-footer .ft-contact-item svg {
  color: var(--nbs-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

#nbs-footer .ft-contact-item a {
  color: var(--nbs-muted);
  transition: color 0.3s;
}

#nbs-footer .ft-contact-item a:hover {
  color: var(--text-title);
}

/* Bouton d'ouverture Popup */
#nbs-footer .ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--nbs-orange), var(--nbs-amber));
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.3);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

#nbs-footer .ft-btn:hover {
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.55);
  transform: translateY(-2px);
}

/* ===== SÉPARATEUR ===== */
#nbs-footer .ft-divider {
  border: none;
  border-top: 1px solid var(--nbs-border);
  margin: 0 6%;
}

/* ===== BARRE BASSE ===== */
#nbs-footer .ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.4rem 6%;
  max-width: 1400px;
  margin: 0 auto;
}

#nbs-footer .ft-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#nbs-footer .ft-copy {
  font-size: 0.82rem;
  color: var(--nbs-subtle);
}

#nbs-footer .ft-copy span {
  color: var(--nbs-orange);
  font-weight: 600;
}

#nbs-footer .ft-legal {
  display: flex;
  gap: 1.5rem;
}

#nbs-footer .ft-legal a {
  font-size: 0.82rem;
  color: var(--nbs-subtle);
  transition: color 0.3s;
}

#nbs-footer .ft-legal a:hover {
  color: var(--nbs-muted);
}

/* ===== BANDEAU COOKIES RGPD ===== */
#nbs-cookie-banner {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  margin: 0 !important;
  max-width: 420px !important;
  width: 420px !important;
  background: rgba(13, 17, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px !important;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999999 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  font-family: inherit;
  color: #fff;
}

.nbs-cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nbs-cookie-icon {
  font-size: 1.2rem;
  background: rgba(249, 115, 22, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.2);
  flex-shrink: 0;
}

.nbs-cookie-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.3;
}

.nbs-cookie-content {
  margin-top: -5px;
}

.nbs-cookie-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.nbs-cookie-text a {
  color: var(--nbs-orange);
  text-decoration: none;
  font-weight: 600;
}

.nbs-cookie-text a:hover {
  text-decoration: underline;
}

.nbs-cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
}

.nbs-btn-accept,
.nbs-btn-reject {
  height: 46px;
  padding: 0 16px;
  width: 100%;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.nbs-btn-reject {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nbs-btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nbs-btn-accept {
  background: linear-gradient(135deg, var(--nbs-orange), var(--nbs-amber));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.nbs-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #nbs-footer .ft-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  #nbs-cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    width: auto;
  }

  .nbs-cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  #nbs-footer .ft-main {
    grid-template-columns: 1fr;
    padding: 3rem 6%;
    gap: 2rem;
  }

  #nbs-footer .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ===== CALENDLY BADGE FLOTTANT (LAZY LOAD) ===== */
.nbs-floating-calendly {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--nbs-orange, #f97316), var(--nbs-amber, #fbbf24));
  color: #050608;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.4);
  border: none;
  padding: 12px 24px;
  z-index: 99998;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 15px;
}

/* ===== OPTIMISATION DES ANIMATIONS LOURDES ===== */
.floating-card,
.orb-outer,
.orb-inner,
.orb,
.pulse-dot {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Differer uniquement les cartes flottantes - pas les orbs de fond (evite le flash) */
.floating-card,
.orb-outer,
.orb-inner {
  animation-delay: 2s !important;
  animation-fill-mode: backwards !important;
}

/* --- ACCESSIBILITÉ : Skip link (lien d'ancrage "Aller au contenu") --- */
/* Le thème masque .screen-reader-text avec display:none sur certaines configs,
   ce qui le rend non focusable. On force le masquage par clip (accessible)
   et on le ramène à l'écran au focus clavier. */
.skip-link.screen-reader-text,
a.skip-link {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  display: block !important;
  visibility: visible !important;
}

.skip-link.screen-reader-text:focus,
a.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
  position: fixed !important;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 100000;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  outline: 3px solid #fff;
  outline-offset: 2px;
}