/* ============================================
   Q Consulting — Feuille de style partagée
   Palette : violet #572e82, magenta #e42184
   Typo : Manrope (titres) + Inter (corps)
   ============================================ */

:root {
  --violet: #572e82;
  --violet-light: #7d4ba8;
  --magenta: #e42184;
  --magenta-light: #f15ba6;
  --anthracite: #1a1a1a;
  --gray-text: #5a5a5a;
  --gray-soft: #f5f5f7;
  --gray-border: #ebebeb;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #572e82 0%, #e42184 100%);
  --gradient-soft: linear-gradient(135deg, rgba(87,46,130,0.05) 0%, rgba(228,33,132,0.05) 100%);
  --max-content: 1100px;
  --max-narrow: 760px;
  --shadow-card: 0 2px 16px rgba(87,46,130,0.08);
  --shadow-hover: 0 8px 32px rgba(87,46,130,0.15);
  --radius: 4px;
  --radius-card: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--anthracite);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--magenta); }

/* ============ HEADER (sticky) ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
}
.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area img { height: 80px; }

nav.primary-nav {
  display: flex;
  gap: 32px;
}
nav.primary-nav a {
  color: var(--anthracite);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
nav.primary-nav a.active {
  color: var(--violet);
  font-weight: 600;
}
nav.primary-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--violet);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 24px; }

/* ============ HERO ============ */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 120px 32px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
}
.tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero .lead {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 21px;
  max-width: 720px;
  margin: 0 auto 48px;
  opacity: 0.92;
  line-height: 1.5;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--white);
  color: var(--violet);
}
.btn-primary:hover {
  background: var(--anthracite);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--violet);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--magenta);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--violet);
  border-color: var(--violet);
}
.btn-outline:hover {
  background: var(--violet);
  color: var(--white);
}

/* ============ Sections ============ */
.section {
  padding: 100px 32px;
}
.section-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}
.section-soft {
  background: var(--gray-soft);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
}
.section h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: var(--violet);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section .section-sub {
  font-size: 18px;
  color: var(--gray-text);
  max-width: var(--max-narrow);
  margin: 0 auto;
  line-height: 1.55;
}

/* ============ Grid des différenciants ============ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 16px;
}
.diff-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-top: 4px solid;
  border-image: var(--gradient) 1;
  transition: transform 0.25s, box-shadow 0.25s;
}
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.diff-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--magenta);
  margin-bottom: 12px;
}
.diff-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--violet);
  margin-bottom: 14px;
  line-height: 1.3;
}
.diff-card p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ============ Références cards ============ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.ref-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.ref-header {
  background: var(--gradient);
  color: var(--white);
  padding: 24px 28px;
}
.ref-header .ref-sector {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}
.ref-header h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.ref-body {
  padding: 24px 28px 28px;
}
.ref-body p {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 16px;
  line-height: 1.55;
}
.ref-impact {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--violet);
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}

/* ============ Quote section ============ */
.quote-section {
  background: var(--gray-soft);
  padding: 100px 32px;
}
.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
blockquote {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
  color: var(--violet);
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
  padding: 0 32px;
}
blockquote::before, blockquote::after {
  font-family: 'Manrope', sans-serif;
  font-size: 60px;
  color: var(--magenta);
  opacity: 0.3;
  position: absolute;
  line-height: 1;
}
blockquote::before { content: '«'; left: -16px; top: -20px; }
blockquote::after { content: '»'; right: -16px; bottom: -40px; }
.quote-attr {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
}

/* ============ Knowledge preview ============ */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.kb-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
  border-left: 4px solid var(--magenta);
}
.kb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.kb-category {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}
.kb-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--violet);
  line-height: 1.35;
  margin-bottom: 12px;
}
.kb-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.55;
}

.center-cta { text-align: center; margin-top: 16px; }

/* ============ Contact CTA section ============ */
.cta-section {
  background: var(--gradient);
  color: var(--white);
  padding: 100px 32px;
  text-align: center;
}
.cta-section h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}
.cta-section p {
  font-size: 19px;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* ============ Content prose (pages internes) ============ */
.prose {
  max-width: var(--max-narrow);
  margin: 0 auto;
}
.prose h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--violet);
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--violet);
  margin: 36px 0 12px;
}
.prose p {
  font-size: 17px;
  color: var(--anthracite);
  margin-bottom: 18px;
  line-height: 1.7;
}
.prose ul, .prose ol {
  font-size: 17px;
  color: var(--anthracite);
  margin: 0 0 18px 24px;
  line-height: 1.7;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--violet); font-weight: 600; }

/* ============ Page header (pages internes) ============ */
.page-header {
  background: var(--gradient);
  color: var(--white);
  padding: 80px 32px 60px;
  text-align: center;
}
.page-header h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 19px;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto;
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.6);
  padding: 60px 32px 32px;
}
.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 320px;
}
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--magenta-light); }
.footer-bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============ Contact form (Tally embed) ============ */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.form-container iframe {
  width: 100%;
  border: none;
  min-height: 600px;
}

/* ============ RESPONSIVE — mobile ============ */
@media (max-width: 880px) {
  .header-inner { padding: 12px 24px; }
  .logo-area img { height: 60px; }
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-border); }
  nav.primary-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }

  .hero { padding: 80px 24px 100px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 18px; }

  .section { padding: 70px 24px; }
  .section h2 { font-size: 30px; }
  .section .section-sub { font-size: 16px; }
  .section-header { margin-bottom: 40px; }

  blockquote { font-size: 22px; padding: 0 16px; }

  .cta-section { padding: 70px 24px; }
  .cta-section h2 { font-size: 28px; }
  .cta-section p { font-size: 17px; }

  .page-header { padding: 60px 24px 50px; }
  .page-header h1 { font-size: 34px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .prose h2 { font-size: 28px; }
}
