/* ==========================================================================
   AB CONSULT COMPAGNY - FEUILLE DE STYLE PRINCIPALE
   Cabinet Pluridisciplinaire de Conseil Stratégique, SI, RH & Gestion
   Style : Épuré, Lumineux, Moderne & Haut de Gamme
   ========================================================================== */

/* --- Variables Globales & Charte Graphique --- */
:root {
  --primary-navy: #0b1f4d;       /* Bleu Marine Royal Sombre */
  --primary-blue: #163cb7;       /* Bleu Roi Cobalt */
  --accent-cyan: #00cfff;        /* Bleu Cyan Électrique Lumineux */
  --accent-cyan-hover: #00b0d9;  /* Cyan survol */
  --accent-cyan-light: #e6faff;  /* Fond teinté cyan très doux */
  
  --bg-white: #ffffff;
  --bg-light: #f8fafc;          /* Fond clair moderne ultra-épuré */
  --bg-subtle: #f1f5f9;         /* Gris bleuté très clair */
  --bg-navy: #071330;           /* Bleu nuit profond pour footer */
  
  --text-dark: #0f172a;         /* Slate sombre (titres & corps principal) */
  --text-body: #334155;         /* Corps de texte lisible et contrasté */
  --text-muted: #64748b;        /* Texte secondaire / annotations */
  --text-light: #f8fafc;        /* Texte sur fond sombre */
  
  --border-light: #e2e8f0;      /* Bordure subtile standard */
  --border-focus: #00cfff;      /* Bordure focus accent */
  --border-card: #e6edf5;
  
  --gradient-brand: linear-gradient(135deg, #0b1f4d 0%, #163cb7 55%, #00cfff 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(11,31,77,0.1), rgba(0,207,255,0.4));
  --gradient-cyan: linear-gradient(135deg, #00cfff 0%, #0099ff 100%);
  --gradient-hero-bg: radial-gradient(circle at 85% 15%, rgba(0, 207, 255, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 15% 80%, rgba(22, 60, 183, 0.05) 0%, transparent 45%);
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(11, 31, 77, 0.06);
  --shadow-lg: 0 12px 30px rgba(11, 31, 77, 0.08);
  --shadow-hover: 0 20px 35px rgba(11, 31, 77, 0.12), 0 0 20px rgba(0, 207, 255, 0.15);
  --shadow-cyan-glow: 0 0 25px rgba(0, 207, 255, 0.35);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typographie & Titres --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-muted {
  color: var(--text-muted);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-padding-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-white {
  background-color: var(--bg-white);
}

.bg-navy {
  background-color: var(--bg-navy);
  color: #ffffff;
}

/* --- Header & Top Bar --- */
.top-bar {
  background-color: var(--primary-navy);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-info a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-info a:hover {
  color: var(--accent-cyan);
}

.top-bar-badge {
  background: rgba(0, 207, 255, 0.15);
  color: var(--accent-cyan);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 207, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.top-bar-badge:hover {
  background: rgba(0, 207, 255, 0.3);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-cyan);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* --- Mobile Drawer --- */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 999;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* --- Boutons & Liens d'Action --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(11, 31, 77, 0.2);
}

.btn-primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 60, 183, 0.3);
}

.btn-cyan {
  background: var(--gradient-cyan);
  color: #0b1f4d;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 207, 255, 0.3);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #26d6ff 0%, #0088ee 100%);
  color: #0b1f4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 207, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(22, 60, 183, 0.04);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Badges & Étiquettes --- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--accent-cyan-light);
  color: var(--primary-navy);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 5rem 0 4.5rem;
  background: var(--bg-white);
  background-image: var(--gradient-hero-bg);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-headline {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-card-logo {
  width: 54px;
  height: 54px;
}

.hero-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-pillar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.hero-pillar-row:hover {
  background: #ffffff;
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(0, 207, 255, 0.4);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-weight: 900;
  font-size: 1.1rem;
}

/* --- Reassurance Bar --- */
.reassurance-bar {
  background: var(--bg-white);
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.reassurance-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reassurance-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.reassurance-text h4 {
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.reassurance-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.75rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Services Grid & Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border-light);
  transition: background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.service-card:hover::before {
  background: var(--gradient-brand);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--gradient-cyan);
  color: var(--primary-navy);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 207, 255, 0.4);
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.service-card-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-list {
  list-style: none;
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}

.service-card-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-card-list li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.service-card-footer {
  margin-top: auto;
}

.service-modal-btn {
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: gap var(--transition-fast);
}

.service-modal-btn:hover {
  color: var(--primary-navy);
  gap: 0.65rem;
}

/* --- Diagnostic Express Widget --- */
.diagnostic-widget {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.diagnostic-widget::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,207,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.diag-step-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.diag-question-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.diag-label {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.diag-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.diag-chip {
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.diag-chip:hover {
  border-color: var(--primary-blue);
  background: #ffffff;
}

.diag-chip.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 10px rgba(11, 31, 77, 0.2);
}

.diag-result-card {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid rgba(0, 207, 255, 0.4);
  display: none;
}

.diag-result-card.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Method Timeline / Grid --- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
}

.method-step-badge {
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(11, 31, 77, 0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.method-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--primary-navy);
}

.method-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Why Us / Synergie Multidisciplinaire --- */
.synergy-box {
  background: linear-gradient(135deg, #071330 0%, #0b1f4d 60%, #102a6b 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.synergy-box::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0,207,255,0.25) 0%, transparent 70%);
}

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

.synergy-content h2 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.synergy-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.synergy-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.synergy-feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.synergy-feature-card h4 {
  color: var(--accent-cyan);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.synergy-feature-card p {
  color: #e2e8f0;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-meta h5 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.author-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Accordion FAQ --- */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: #ffffff;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.active {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary-blue);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-cyan);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  border-top: 1px solid var(--border-light);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* --- Contact Section & Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.urgent-alert-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(11, 31, 77, 0.04);
  border-left: 4px solid var(--accent-cyan);
}

.urgent-alert-box h4 {
  color: var(--primary-navy);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.urgent-alert-box p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 0;
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-box,
#formulaire-audit,
#audit-contact-form,
#audit-form,
#formulaire,
#contact {
  scroll-margin-top: 100px;
}

.anchor-offset {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
  height: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(22, 60, 183, 0.12);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--primary-blue);
}

.form-feedback {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-navy);
  color: #cbd5e1;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--accent-cyan);
}

/* --- Modals System --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 77, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  padding: 2.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary-navy);
  color: #ffffff;
}

.modal-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-body h4 {
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.modal-body ul {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .synergy-grid {
    grid-template-columns: 1fr;
  }
  .synergy-box {
    padding: 2.5rem 1.5rem;
  }
  .synergy-features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

  
/* --- Photos Professionnelles Intégrées --- */
.service-img-wrap {
  width: calc(100% + 4.5rem);
  margin: -2.25rem -2.25rem 1.5rem -2.25rem;
  height: 180px;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}
.service-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover .service-photo {
  transform: scale(1.06);
}
.hero-card-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.hero-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-card-img-wrap:hover img {
  transform: scale(1.04);
}
.contact-office-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.contact-office-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-team-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}
.about-team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-team-img-wrap:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   ENHANCEMENTS & NOUVELLES FONCTIONNALITÉS AB CONSULT COMPAGNY
   ========================================================================== */

/* Bouton d'urgence rouge vif professionnel */
.hero-emergency-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  padding: 0.85rem 1.15rem !important;
  border-radius: var(--radius-sm) !important;
  margin-top: 0.85rem !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.hero-emergency-btn:hover {
  background: #b91c1c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.55) !important;
  color: #ffffff !important;
}

/* Bandeau Marchés Publics */
.marches-publics-banner {
  background: linear-gradient(135deg, #0b1f4d 0%, #163cb7 55%, #071330 100%) !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(0, 207, 255, 0.3) !important;
  border-bottom: 1px solid rgba(0, 207, 255, 0.3) !important;
}
.marches-publics-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.marches-publics-banner h2 {
  color: #ffffff !important;
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.02em;
}
.marches-publics-banner p {
  font-size: 1.12rem !important;
  line-height: 1.8 !important;
  color: #f1f5f9 !important;
  max-width: 920px;
  margin: 0 auto 2.25rem auto;
}
.btn-marches-recherche {
  background: var(--accent-cyan) !important;
  color: #071330 !important;
  font-weight: 800 !important;
  padding: 0.95rem 1.85rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.4) !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  border: none !important;
}
.btn-marches-recherche:hover {
  background: var(--accent-cyan-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-cyan-glow) !important;
}
.btn-marches-dossier {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  font-weight: 700 !important;
  padding: 0.9rem 1.85rem !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
}
.btn-marches-dossier:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

/* Footer Links & Textes en Blanc */
.footer-col ul li a,
.footer-col ul li,
.footer-col a,
.footer-col p,
.footer-col span {
  color: #ffffff !important;
}
.footer-col ul li a:hover,
.footer-col a:hover {
  color: var(--accent-cyan) !important;
  padding-left: 4px;
}
.footer-bottom a {
  color: #e2e8f0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover {
  color: var(--accent-cyan) !important;
}

/* Module de Cookies RGPD */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #071330;
  color: #ffffff;
  padding: 1.4rem 0;
  border-top: 2px solid var(--accent-cyan);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: none;
}
.cookie-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.cookie-banner-text p {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
  max-width: 780px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-btn-accept {
  background: var(--accent-cyan);
  color: #071330;
}
.cookie-btn-accept:hover {
  background: var(--accent-cyan-hover);
  transform: translateY(-1px);
}
.cookie-btn-refuse {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.cookie-btn-refuse:hover {
  background: rgba(255, 255, 255, 0.25);
}
.cookie-btn-customize {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cookie-btn-customize:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Modal de Gestion des Cookies */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 19, 48, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal-box {
  background: #ffffff;
  color: var(--text-dark);
  max-width: 600px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.cookie-modal-box h3 {
  color: var(--primary-navy);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.cookie-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.cookie-option-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cookie-option-info h5 {
  margin: 0 0 0.25rem 0;
  color: var(--primary-navy);
  font-size: 0.95rem;
}
.cookie-option-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Switch styling */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: var(--accent-cyan);
}
.cookie-switch input:disabled + .cookie-slider {
  background-color: var(--primary-navy);
  cursor: not-allowed;
  opacity: 0.85;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
}

/* Pages Légales (Mentions, Confidentialité, Cookies, RGPD) */
.legal-page-hero {
  background: linear-gradient(135deg, #0b1f4d 0%, #163cb7 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
}
.legal-page-hero h1 {
  color: #ffffff;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.legal-breadcrumbs {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.legal-breadcrumbs a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.legal-page-body {
  padding: 4rem 0;
  background: var(--bg-light);
}
.legal-card {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  line-height: 1.8;
  color: var(--text-body);
}
.legal-card h2 {
  color: var(--primary-navy);
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}
.legal-card h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-card p, .legal-card ul {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.legal-card ul {
  padding-left: 1.5rem;
}
.legal-highlight-box {
  background: rgba(0, 207, 255, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.75rem;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Support & Compatibilité Admin Bar WordPress
   Garantit que le header sticky, le tiroir mobile et les ancres restent
   parfaitement alignés sans aucun chevauchement lorsque l'admin est connecté.
   ========================================================================== */
section[id], div[id] {
  scroll-margin-top: 100px;
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .mobile-drawer {
  top: 112px;
}

body.admin-bar section[id], body.admin-bar div[id] {
  scroll-margin-top: 132px;
}

@media screen and (max-width: 782px) {
  html {
    margin-top: 46px !important;
  }
  * html body {
    margin-top: 46px !important;
  }
  body.admin-bar .site-header {
    top: 46px;
  }
  body.admin-bar .mobile-drawer {
    top: 126px;
  }
  body.admin-bar section[id], body.admin-bar div[id] {
    scroll-margin-top: 146px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
  body.admin-bar .mobile-drawer {
    top: 80px;
  }
  body.admin-bar section[id], body.admin-bar div[id] {
    scroll-margin-top: 100px;
  }
}
