/* ═══════════════════════════════════════════════
   QUADRIGE CONSEILS — Main Stylesheet
   Design: Épuré, Professionnel, Moderne
═══════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────── */
:root {
  --qc-primary: #0A4C8A;
  --qc-primary-dark: #063366;
  --qc-primary-light: #1565C0;
  --qc-accent: #1976D2;
  --qc-gold: #F59E0B;
  --qc-text: #1A1A2E;
  --qc-text-muted: #6B7280;
  --qc-bg: #FFFFFF;
  --qc-bg-light: #F8FAFC;
  --qc-border: #E5E7EB;
  --qc-radius: 16px;
  --qc-shadow: 0 4px 24px rgba(10, 76, 138, 0.10);
  --qc-shadow-lg: 0 12px 48px rgba(10, 76, 138, 0.16);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-height: 80px;
}

/* ─── Base Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; }

a { color: var(--qc-primary); text-decoration: none; }
a:hover { color: var(--qc-primary-dark); }

img { max-width: 100%; }

/* ─── Spacing Utilities ──────────────────────── */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-6 { margin-top: 5rem; }
.mb-6 { margin-bottom: 5rem; }
.min-vh-40 { min-height: 40vh; }

/* ─── NAVBAR ─────────────────────────────────── */
.qc-navbar {
  background: transparent;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  min-height: var(--navbar-height);
}

.qc-navbar.scrolled {
  background: rgba(10, 76, 138, 0.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  padding: 0.75rem 0;
}

/* Menu mobile ouvert : fond opaque même sans scroll */
.qc-navbar.menu-open {
  background: rgba(10, 76, 138, 0.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}

/* Dropdown mobile : fond solide pour les liens */
@media (max-width: 991.98px) {
  .qc-navbar .navbar-collapse {
    background: rgba(6, 51, 102, 0.98);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.25rem 1.25rem;
    margin: 0 -12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }
  .qc-navbar .nav-link {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }
  .qc-navbar .nav-link:hover,
  .qc-navbar .nav-link.active {
    background: rgba(255,255,255,0.1);
  }
  .qc-navbar .nav-link::after { display: none; }
  .qc-navbar .ms-lg-2 { margin-top: 0.5rem; }
  .qc-navbar .btn-qc-primary { width: 100%; text-align: center; justify-content: center; }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: white;
}
.brand-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
}

.qc-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--transition);
}
.navbar-brand:hover .qc-logo { transform: scale(1.05); }

/* Sur mobile, on réduit légèrement le logo pour l'alléger dans la barre de navigation. */
@media (max-width: 575.98px) {
  .qc-logo { height: 40px; }
}

.qc-navbar .nav-link {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.qc-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--qc-gold);
  border-radius: 2px;
  transition: width var(--transition);
}
.qc-navbar .nav-link:hover::after,
.qc-navbar .nav-link.active::after { width: 60%; }
.qc-navbar .nav-link:hover,
.qc-navbar .nav-link.active { color: white; }

/* ─── BUTTONS ────────────────────────────────── */
.btn-qc-primary {
  background: linear-gradient(135deg, var(--qc-primary-light) 0%, var(--qc-primary) 100%);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(10, 76, 138, 0.3);
}
.btn-qc-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 76, 138, 0.4);
  background: linear-gradient(135deg, #1976D2 0%, var(--qc-primary-light) 100%);
}
.btn-qc-outline {
  background: transparent;
  color: var(--qc-primary);
  border: 2px solid var(--qc-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.5rem;
  transition: all var(--transition);
}
.btn-qc-outline:hover {
  background: var(--qc-primary);
  color: white;
  transform: translateY(-2px);
}
.btn-qc-outline-sm {
  background: transparent;
  color: var(--qc-primary);
  border: 1.5px solid var(--qc-primary);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.45rem 1.25rem;
  display: inline-block;
  border-radius: 50px;
  transition: all var(--transition);
}
.btn-qc-outline-sm:hover {
  background: var(--qc-primary);
  color: white;
}

/* ─── SECTION HEADERS ────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 76, 138, 0.08);
  color: var(--qc-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border-left: 3px solid var(--qc-primary);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--qc-text);
  margin-bottom: 0;
}
.section-subtitle {
  color: var(--qc-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-header { margin-bottom: 3rem; }

/* ─── HERO ───────────────────────────────────── */
.qc-hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--navbar-height);
  background: linear-gradient(135deg, var(--qc-primary-dark) 0%, var(--qc-primary) 50%, #1565C0 100%);
  overflow: hidden;
}
/* Sous le breakpoint desktop, le visuel latéral disparaît et le contenu
   (badge + titre 3 lignes + sous-titre + boutons) peut dépasser 100vh selon
   la hauteur réelle du terminal : on laisse la section s'ajuster à son
   contenu plutôt que de forcer une hauteur d'écran fixe, pour éviter tout
   débordement du texte en bas de section. */
@media (max-width: 991.98px) {
  .qc-hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 2.5rem);
    padding-bottom: 3rem;
  }
  .hero-scroll-hint { display: none; }
}
.qc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
}
@media (max-width: 575.98px) {
  .hero-badge {
    font-size: 0.72rem;
    letter-spacing: 0.75px;
    padding: 0.45rem 1rem;
    text-align: center;
  }
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--qc-gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  line-height: 1.15;
  font-weight: 700;
}
.text-gradient {
  background: linear-gradient(135deg, var(--qc-gold), #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* Hero Visual Floating Cards */
.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
}
.hero-logo-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.hero-logo-display img { filter: brightness(0) invert(1); opacity: 0.9; }

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--qc-shadow-lg);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.hero-card-1 { top: 10%; right: 0; animation-delay: 0s; }
.hero-card-2 { bottom: 20%; right: -10%; animation-delay: 1s; }
.hero-card-3 { top: 55%; left: -5%; animation-delay: 0.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding: 6px 0;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  animation: scroll-down 2s infinite;
}
@keyframes scroll-down {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ─── STATS ──────────────────────────────────── */
.qc-stats { background: white; margin-top: -2px; }
.stat-card {
  padding: 2rem 1rem;
  border-radius: var(--qc-radius);
  background: white;
  box-shadow: var(--qc-shadow);
  transition: transform var(--transition);
  border-bottom: 3px solid transparent;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--qc-primary);
}
.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(10, 76, 138, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.4rem;
  color: var(--qc-primary);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--qc-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat-label { color: var(--qc-text-muted); font-size: 0.875rem; font-weight: 500; }

/* ─── MVV Cards (Home) ───────────────────────── */
.mvv-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 2.5rem;
  box-shadow: var(--qc-shadow);
  border-top: 4px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.mvv-mission::before { background: linear-gradient(90deg, var(--qc-primary), var(--qc-accent)); }
.mvv-vision::before { background: linear-gradient(90deg, #10B981, #059669); }
.mvv-valeurs::before { background: linear-gradient(90deg, var(--qc-gold), #D97706); }
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--qc-shadow-lg); }

.mvv-icon {
  width: 64px;
  height: 64px;
  background: rgba(10, 76, 138, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--qc-primary);
  margin-bottom: 1.5rem;
}
.mvv-vision .mvv-icon { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.mvv-valeurs .mvv-icon { background: rgba(245, 158, 11, 0.1); color: var(--qc-gold); }
.mvv-title { font-size: 1.35rem; font-weight: 700; color: var(--qc-text); margin-bottom: 1rem; }
.mvv-text { color: var(--qc-text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.mvv-list { list-style: none; padding: 0; margin: 0; }
.mvv-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  color: var(--qc-text);
  font-size: 0.9rem;
}
.mvv-list i { color: var(--qc-primary); font-size: 1rem; }

/* ─── Services Preview ───────────────────────── */
.bg-light-qc { background: var(--qc-bg-light); }

.service-preview-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 2rem;
  box-shadow: var(--qc-shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.service-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--qc-shadow-lg);
  border-color: rgba(10, 76, 138, 0.12);
}
.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-icon-primary { background: rgba(10, 76, 138, 0.1); color: var(--qc-primary); }
.service-icon-success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.service-icon-warning { background: rgba(245, 158, 11, 0.1); color: var(--qc-gold); }
.service-icon-danger  { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.service-icon-info    { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.service-icon-secondary { background: rgba(107, 114, 128, 0.1); color: #6B7280; }

.service-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--qc-text); }
.service-card-desc { color: var(--qc-text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.service-card-link {
  color: var(--qc-primary);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: gap var(--transition);
}
.service-card-link:hover { gap: 6px; }

/* ─── Why Choose Us ──────────────────────────── */
.why-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 1.75rem;
  box-shadow: var(--qc-shadow);
  transition: all var(--transition);
  height: 100%;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--qc-shadow-lg); }

/* ─── Partners Ticker ────────────────────────── */
.partners-ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  padding: 1.5rem 0;
}
.partners-ticker {
  display: flex;
  gap: 2rem;
  animation: ticker 28s linear infinite;
  width: max-content;
}
.partners-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}
.partner-logo-placeholder {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--qc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--qc-primary);
  transition: all var(--transition);
  box-shadow: var(--qc-shadow);
}
.partner-item:hover .partner-logo-placeholder {
  border-color: var(--qc-primary);
  box-shadow: var(--qc-shadow-lg);
  transform: scale(1.08);
}
.partner-name { font-size: 0.75rem; font-weight: 500; color: var(--qc-text-muted); text-align: center; }

/* ─── Testimonials ───────────────────────────── */
.qc-testimonials { background: white; }
.carousel-control-prev, .carousel-control-next { width: auto; }
.carousel-ctrl {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qc-primary);
  font-size: 1.2rem;
  box-shadow: var(--qc-shadow);
  transition: all var(--transition);
}
.carousel-ctrl:hover { background: var(--qc-primary); color: white; }
.carousel-control-prev { left: -60px; }
.carousel-control-next { right: -60px; }
@media (max-width: 768px) {
  .carousel-control-prev { left: 0; }
  .carousel-control-next { right: 0; }
}

.testimonial-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 3rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--qc-shadow-lg);
  text-align: left;
  border: 1px solid var(--qc-border);
}
.testimonial-quote { font-size: 3rem; color: rgba(10,76,138,0.15); line-height: 1; margin-bottom: 0.5rem; }
.testimonial-text { font-size: 1.05rem; color: var(--qc-text); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--qc-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.testimonial-stars { display: flex; gap: 4px; }

/* ─── CTA Section ────────────────────────────── */
.qc-cta { background: linear-gradient(135deg, var(--qc-primary-dark) 0%, var(--qc-primary) 60%, var(--qc-accent) 100%); position: relative; overflow: hidden; }
.qc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.cta-wrapper { position: relative; }
.cta-icon { font-size: 3rem; color: var(--qc-gold); }
.cta-title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: white; }
.cta-text { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ─── PAGE HERO (Inner Pages) ────────────────── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--qc-primary-dark) 0%, var(--qc-primary) 100%);
  padding-top: var(--navbar-height);
  overflow: hidden;
}
.page-hero-sm { min-height: 260px; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.25), transparent);
}
.page-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); color: white; margin-bottom: 0.5rem; }
.page-hero-sub { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

.breadcrumb-qc .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.breadcrumb-qc .breadcrumb-item a:hover { color: white; }
.breadcrumb-qc .breadcrumb-item.active { color: var(--qc-gold); font-size: 0.875rem; }
.breadcrumb-qc .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-image-wrap {
  position: relative;
  padding: 2rem;
}
.about-image-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--qc-shadow-lg);
  background: var(--qc-bg-light);
}
.about-placeholder-img {
  height: 400px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-radius: 24px;
}
.about-badge-1, .about-badge-2 {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--qc-shadow-lg);
  white-space: nowrap;
}
.about-badge-1 { bottom: 3rem; left: 0; }
.about-badge-2 { top: 3rem; right: 0; }

.about-stat-card {
  background: rgba(10, 76, 138, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(10, 76, 138, 0.1);
}
.about-stat-number { font-size: 2rem; font-weight: 800; color: var(--qc-primary); font-family: var(--font-display); }
.about-stat-label { color: var(--qc-text-muted); font-size: 0.85rem; }

/* MVV Detail (About Page) */
.mvv-detail-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: var(--qc-radius);
  padding: 2rem;
  box-shadow: var(--qc-shadow);
  height: 100%;
  align-items: flex-start;
}
.mvv-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.bg-primary-soft { background: rgba(10, 76, 138, 0.1); }
.bg-success-soft { background: rgba(16, 185, 129, 0.1); }
.bg-warning-soft { background: rgba(245, 158, 11, 0.1); }
.bg-info-soft { background: rgba(59, 130, 246, 0.1); }
.bg-primary-gradient { background: linear-gradient(135deg, var(--qc-primary), var(--qc-accent)); }

.mvv-detail-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--qc-text); }
.mvv-detail-content p { color: var(--qc-text-muted); font-size: 0.9rem; line-height: 1.7; }

/* Values Cards */
.value-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 2rem;
  box-shadow: var(--qc-shadow);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--qc-shadow-lg);
  border-color: rgba(10,76,138,0.1);
}
.value-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 76, 138, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--qc-primary);
  margin: 0 auto 1.25rem;
}
.value-title { font-size: 1.1rem; font-weight: 700; color: var(--qc-text); margin-bottom: 0.75rem; }
.value-desc { font-size: 0.875rem; }

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--qc-primary), rgba(10,76,138,0.1));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  width: 50%;
  padding: 0 3rem 2rem 0;
  position: relative;
  justify-content: flex-end;
}
.timeline-item.right {
  padding: 0 0 2rem 3rem;
  margin-left: 50%;
  justify-content: flex-start;
}
.timeline-content {
  background: white;
  border-radius: var(--qc-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--qc-shadow);
  max-width: 340px;
  position: relative;
  border-left: 4px solid var(--qc-primary);
}
.timeline-year {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--qc-primary);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}
.timeline-event { color: var(--qc-text); font-size: 0.9rem; }
.timeline-dot {
  position: absolute;
  right: -8px;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  background: var(--qc-primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(10,76,138,0.2);
}
.timeline-item.right .timeline-dot { right: auto; left: -8px; }

/* Expertise Tags */
.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.expertise-tag {
  background: rgba(10, 76, 138, 0.07);
  color: var(--qc-primary);
  border: 1px solid rgba(10,76,138,0.15);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Team Stat Cards */
.team-stat-card {
  background: white;
  border-radius: var(--qc-radius);
  box-shadow: var(--qc-shadow);
  transition: transform var(--transition);
}
.team-stat-card:hover { transform: translateY(-4px); }

/* ─── SERVICES PAGE ──────────────────────────── */
.service-detail-card {
  background: white;
  border-radius: var(--qc-radius);
  box-shadow: var(--qc-shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.service-detail-card:hover { box-shadow: var(--qc-shadow-lg); }
.service-reverse .row { flex-direction: row-reverse; }

.service-detail-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
}
.service-bg-primary   { background: linear-gradient(135deg, rgba(10,76,138,0.9), rgba(25,118,210,0.8)); }
.service-bg-success   { background: linear-gradient(135deg, rgba(16,185,129,0.9), rgba(5,150,105,0.8)); }
.service-bg-warning   { background: linear-gradient(135deg, rgba(245,158,11,0.9), rgba(217,119,6,0.8)); }
.service-bg-danger    { background: linear-gradient(135deg, rgba(239,68,68,0.9), rgba(185,28,28,0.8)); }
.service-bg-info      { background: linear-gradient(135deg, rgba(59,130,246,0.9), rgba(37,99,235,0.8)); }
.service-bg-secondary { background: linear-gradient(135deg, rgba(107,114,128,0.9), rgba(75,85,99,0.8)); }

.service-detail-icon-wrap { text-align: center; position: relative; }
.service-detail-icon-wrap i { font-size: 3.5rem; color: white; display: block; }
.service-number {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  font-family: var(--font-display);
  line-height: 1;
  user-select: none;
}

.service-detail-title { font-size: 1.35rem; font-weight: 700; color: var(--qc-text); margin-bottom: 0.75rem; }
.service-detail-desc { color: var(--qc-text-muted); margin-bottom: 1rem; }
.service-detail-list { list-style: none; padding: 0; margin: 0; }
.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--qc-text);
}
.service-detail-list i { margin-top: 0.15rem; flex-shrink: 0; }

/* Process Cards */
.process-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--qc-shadow);
  transition: all var(--transition);
  position: relative;
}
.process-card:hover { transform: translateY(-6px); box-shadow: var(--qc-shadow-lg); }
.process-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(10,76,138,0.06);
  font-family: var(--font-display);
  line-height: 1;
}
.process-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 76, 138, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--qc-primary);
  margin: 0 auto 1rem;
}
.process-title { font-size: 1.05rem; font-weight: 700; color: var(--qc-text); margin-bottom: 0.5rem; }

/* Sector Badges */
.sector-badge {
  background: white;
  color: var(--qc-primary);
  border: 1.5px solid rgba(10,76,138,0.2);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--qc-shadow);
  transition: all var(--transition);
  cursor: default;
}
.sector-badge:hover {
  background: var(--qc-primary);
  color: white;
  transform: translateY(-2px);
}

/* ─── CONTACT PAGE ───────────────────────────── */
.contact-form-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 2.5rem;
  box-shadow: var(--qc-shadow);
}
.contact-info-card {
  background: white;
  border-radius: var(--qc-radius);
  box-shadow: var(--qc-shadow);
}
.contact-info-items { padding: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--qc-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--qc-text-muted); margin-bottom: 0.2rem; }
.contact-info-value { font-size: 0.9rem; color: var(--qc-text); font-weight: 500; }

.form-control, .form-select {
  border-color: var(--qc-border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--qc-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--qc-primary);
  box-shadow: 0 0 0 0.2rem rgba(10,76,138,0.12);
}
.input-group-text { border-color: var(--qc-border); }
.input-group .form-control, .input-group .form-select {
  border-left: none;
}
.faq-card {
  background: white;
  border-radius: var(--qc-radius);
  padding: 1.5rem;
  box-shadow: var(--qc-shadow);
  border-left: 4px solid var(--qc-primary);
}

/* ─── LEGAL / PRIVACY PAGES ──────────────────── */
.legal-doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qc-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--qc-border);
  font-family: var(--font-body);
}
.legal-doc p, .legal-doc ul, .legal-doc li { color: var(--qc-text-muted); font-size: 0.95rem; }
.legal-doc ul { padding-left: 1.5rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc a { color: var(--qc-primary); }
.legal-info-box {
  background: var(--qc-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--qc-primary);
  margin-bottom: 1.5rem;
}
.legal-info-box p { color: var(--qc-text); margin-bottom: 0.4rem; font-size: 0.9rem; }

/* ─── ERROR PAGES ────────────────────────────── */
.error-page { background: linear-gradient(135deg, var(--qc-primary-dark) 0%, var(--qc-primary) 100%); }
.error-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  position: absolute;
}
.error-500 { color: rgba(245,158,11,0.08); }
.error-icon { font-size: 4rem; color: white; position: relative; z-index: 1; }
.error-title { font-size: clamp(1.5rem, 3vw, 2.5rem); color: white; position: relative; z-index: 1; }
.error-desc { color: rgba(255,255,255,0.75); font-size: 1rem; position: relative; z-index: 1; max-width: 400px; }

/* ─── FOOTER ─────────────────────────────────── */
.qc-footer { background: #0D1B2E; color: rgba(255,255,255,0.75); }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-logo { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: white; }
.footer-brand-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.45); }
.footer-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.55); }

.footer-social {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social:hover { background: var(--qc-primary); color: white; transform: translateY(-2px); }

.footer-heading {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: white; padding-left: 6px; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-list i { color: var(--qc-gold); flex-shrink: 0; margin-top: 0.1rem; }
.footer-contact-list a { color: rgba(255,255,255,0.55); }
.footer-contact-list a:hover { color: white; }

.footer-bottom { background: rgba(0,0,0,0.2); }
.footer-bottom small { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-legal-link { color: rgba(255,255,255,0.45); font-size: 0.8rem; transition: color var(--transition); }
.footer-legal-link:hover { color: white; }

/* ─── BACK TO TOP ────────────────────────────── */
.btn-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--qc-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(10,76,138,0.35);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 999;
  cursor: pointer;
}
.btn-back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btn-back-top:hover { background: var(--qc-primary-dark); transform: translateY(-3px); }

/* ─── MISC ───────────────────────────────────── */
.z-1 { z-index: 1; }

/* Responsive */
@media (max-width: 991.98px) {
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item.right { width: 100%; margin-left: 0; padding-left: 3.5rem; padding-right: 0; justify-content: flex-start; }
  .timeline-dot { right: auto; left: 12px; }
  .timeline-item.right .timeline-dot { left: 12px; }
  .service-reverse .row { flex-direction: row; }
  .hero-visual { display: none; }
  .carousel-control-prev { left: 0; }
  .carousel-control-next { right: 0; }
  /* Cacher la section secteurs sur mobile (affichage défectueux) */
  .section-secteurs { display: none; }
}

@media (max-width: 575.98px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-title { font-size: 2.2rem; }
  .testimonial-card { padding: 1.5rem; }
  .contact-form-card { padding: 1.5rem; }
}