/* =============================================
   BMBYS CONSULTING — Design System
   Palette : Bleu & Gris — Tech & Conseil
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --blue-900: #0a1628;
  --blue-800: #0f2244;
  --blue-700: #1a3a6e;
  --blue-600: #1e4d96;
  --blue-500: #2563c8;
  --blue-400: #4a7fd4;
  --blue-300: #7aaae4;
  --blue-100: #dce8f8;
  --blue-50:  #f0f6ff;

  --grey-900: #111318;
  --grey-800: #1e2229;
  --grey-700: #2e3340;
  --grey-600: #454c5c;
  --grey-500: #626878;
  --grey-400: #8891a0;
  --grey-300: #b8bfca;
  --grey-200: #d8dce5;
  --grey-100: #eef0f4;
  --grey-50:  #f7f8fa;
  --white:    #ffffff;

  --accent:   #2563c8;
  --accent-light: #4a7fd4;
  --gold:     #c8a84b;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow:    0 4px 16px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.14);
  --shadow-xl: 0 24px 64px rgba(10,22,40,0.18);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--blue-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--grey-600); line-height: 1.75; }

.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section + section { padding-top: 0; }

.section-header { margin-bottom: 56px; }
.section-header .label { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; color: var(--grey-500); font-size: 1.05rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200);
}
.btn-outline:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
}
.btn-white {
  background: var(--white);
  color: var(--blue-700);
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--blue-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,200,0.3) 0%, transparent 65%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue-300); }
.hero-desc { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- STAT BLOCKS ---- */
.stat-block {
  text-align: center;
  padding: 28px 20px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: var(--grey-500); }

/* ---- BADGE / TAG ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
}

/* ---- MISSION STEPS ---- */
.mission-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.mission-item:hover { background: var(--grey-50); }
.mission-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-400);
  min-width: 28px;
  padding-top: 3px;
  letter-spacing: 0.08em;
}

/* ---- METHOD STEPS ---- */
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.method-step {
  padding: 32px 28px;
  position: relative;
}
.method-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 36px;
  font-size: 1.2rem;
  color: var(--blue-300);
}
.method-step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 12px;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.65); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-band .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand-name span { color: var(--blue-400); }
.footer-tagline { font-size: 0.85rem; margin-bottom: 20px; line-height: 1.6; }
.footer-nda {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-400);
  text-transform: uppercase;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 10px; font-size: 0.85rem; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- QUALIOPI BANNER ---- */
.qualiopi-banner {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.qualiopi-seal {
  width: 56px; height: 56px;
  background: var(--blue-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ---- TESTIMONIAL ---- */
.testimonial {
  background: var(--grey-50);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
}
.testimonial-text { font-size: 1.02rem; color: var(--grey-700); font-style: italic; margin-bottom: 14px; }
.testimonial-author { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--grey-500); }

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 6px;
}
label .required { color: var(--blue-500); margin-left: 2px; }
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-800);
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-50);
}
textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-content { position: relative; }
.page-hero .label { color: var(--blue-300); margin-bottom: 10px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 580px; }

/* ---- ACCORDION ---- */
.accordion-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grey-800);
  text-align: left;
  transition: var(--transition);
}
.accordion-header:hover { background: var(--grey-50); }
.accordion-header .acc-num { color: var(--blue-400); margin-right: 12px; font-size: 0.78rem; }
.accordion-icon {
  width: 20px; height: 20px;
  color: var(--grey-400);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 24px 24px;
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.75;
}
.accordion-item.open .accordion-body { display: block; }

/* ---- INDICATOR CARDS ---- */
.indicator-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-100);
}
.indicator-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
  margin-bottom: 8px;
}
.indicator-label { font-size: 0.85rem; color: var(--grey-500); font-weight: 500; }
.indicator-sub { font-size: 0.75rem; color: var(--grey-400); margin-top: 4px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .method-step:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-100);
    padding: 16px 24px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .navbar.menu-open .nav-cta {
    display: block;
    padding: 0 24px 16px;
    position: absolute;
    top: calc(68px + var(--nav-links-height, 180px));
    left: 0; right: 0;
    background: var(--white);
  }
  .hero-stats { gap: 24px; }
  .method-steps { grid-template-columns: 1fr; }
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
