/*
Theme Name: Khompta School
Theme URI: https://khompta-school.com
Author: Khompta
Author URI: https://khompta.com/khompta-groupe-developpez-votre-cabinet-dexpertise-comptable/
Description: Thème officiel Khompta School — formations commerciales pour cabinets d'expertise comptable.
Version: 2.0.0
License: Proprietary
Text Domain: khompta-school
*/

/* ============================================================
   IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@300;400;500&display=swap');

/* ============================================================
   RESET & VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --p:    #08443b;
  --ps:   #0a5549;
  --pm:   #0d6b5c;
  --pa:   rgba(8,68,59,0.08);
  --s:    #5f7d76;
  --sl:   #8fa9a4;
  --sp:   #e8f0ee;
  --spl:  #f2f6f5;
  --wh:   #ffffff;
  --dk:   #0d1714;
  --tx:   #1a2e2a;
  --mu:   #4a6460;
  --br:   rgba(8,68,59,0.12);
  --r:    10px;
  --rl:   16px;
  --shadow: 0 2px 20px rgba(8,68,59,0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--tx);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.syne { font-family: 'Syne', sans-serif; }

h1, h2, h3 { line-height: 1.1; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 960px; margin: 0 auto; padding: 0 32px; }

section { padding: 80px 0; }
section.pale  { background: var(--spl); }
section.dark  { background: var(--dk); color: white; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-weight: 500; border-radius: 8px; cursor: pointer;
  border: none; transition: opacity 0.15s, transform 0.1s;
  text-align: center; text-decoration: none;
}
.btn:hover   { opacity: 0.88; }
.btn:active  { transform: scale(0.98); }

.btn--primary  { background: var(--pm); color: #fff; font-size: 14px; padding: 13px 24px; }
.btn--outline  { background: transparent; color: var(--p); font-size: 14px; padding: 12px 22px; border: 1.5px solid var(--p); }
.btn--ghost    { background: transparent; color: rgba(255,255,255,0.65); font-size: 14px; padding: 12px 20px; border: 1px solid rgba(255,255,255,0.18); }
.btn--white    { background: #fff; color: var(--p); font-size: 14px; padding: 13px 24px; }
.btn--sm       { font-size: 13px; padding: 9px 16px; }
.btn--arrow::after { content: ' →'; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--br);
  height: 180px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto; padding: 0 32px; height: 180px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 160px; width: auto; max-width: 400px; object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13px; color: var(--mu);
  padding: 7px 12px; border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--p); background: var(--sp); }

.nav-cta {
  background: var(--p) !important; color: #fff !important;
  font-size: 13px; font-weight: 500; padding: 10px 20px;
  border-radius: 7px; border: none; cursor: pointer;
  margin-left: 12px; letter-spacing: 0.2px;
  transition: opacity 0.15s; display: inline-block;
  text-decoration: none;
}
.nav-cta:hover { opacity: 0.85; color: #fff !important; background: var(--p) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--tx); border-radius: 2px; margin: 4px 0; transition: all 0.2s;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px 24px 20px;
    border-bottom: 1px solid var(--br);
    gap: 4px;
  }
  .nav-links.open a { width: 100%; }
  .nav-burger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #f0f6f3 0%, #e4ede9 100%);
  padding: 88px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(8,68,59,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center; position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--sl); margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--pm); }

.hero h1 {
  font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800;
  line-height: 1.0; letter-spacing: -1.5px; color: var(--dk); margin-bottom: 22px;
}
.hero h1 em { color: var(--pm); font-style: normal; }
.hero-sub {
  font-size: 17px; color: var(--mu);
  line-height: 1.75; margin-bottom: 36px; font-weight: 300;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-photo {
  position: relative; border-radius: var(--rl);
  overflow: hidden; aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 20px; left: 16px; right: 16px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 14px 16px;
  border: 1px solid var(--br);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge-icon {
  width: 38px; height: 38px; background: var(--pm);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.hero-badge-icon svg { width: 17px; height: 17px; fill: #fff; }
.hero-badge strong { display: block; font-size: 12px; font-weight: 500; color: var(--dk); }
.hero-badge span { font-size: 11px; color: var(--mu); }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 3/2; order: -1; }
  .hero h1 { font-size: 36px; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--p);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-item { padding: 28px 32px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800;
  color: #fff; line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.3px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: 52px; }
.section-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--s); margin-bottom: 10px;
}
.section-header h2 {
  font-family: 'Syne', sans-serif; font-size: 38px; font-weight: 800;
  line-height: 1.05; letter-spacing: -1px; color: var(--dk); margin-bottom: 12px;
}
.section-header p { font-size: 15px; color: var(--mu); line-height: 1.75; max-width: 540px; font-weight: 300; }
section.dark .section-tag   { color: var(--sl); }
section.dark .section-header h2 { color: #fff; }
section.dark .section-header p  { color: rgba(255,255,255,0.45); }

/* ============================================================
   PROFILS
   ============================================================ */
.profils-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--br);
  border: 1px solid var(--br); border-radius: var(--rl); overflow: hidden;
}
.profil-card {
  background: #ffffff !important; padding: 32px 28px; transition: background 0.15s;
}
.profil-card:hover { background: var(--spl); }
.profil-emoji { font-size: 26px; margin-bottom: 14px; display: block; }
.profil-who {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--p); background: var(--sp); padding: 3px 10px;
  border-radius: 4px; margin-bottom: 10px;
}
.profil-card h3 {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--dk); margin-bottom: 10px;
}
.profil-pain {
  font-size: 13px; color: var(--mu); line-height: 1.65;
  margin-bottom: 12px; padding: 10px 14px;
  background: var(--spl); border-left: 2px solid var(--sl);
  border-radius: 0 6px 6px 0; font-style: italic;
}
.profil-promise {
  font-size: 13px; color: var(--tx); line-height: 1.65;
  padding-top: 12px; border-top: 1px solid var(--br);
}
.profil-promise::before { content: '→ '; color: var(--p); font-weight: 600; }

@media (max-width: 600px) { .profils-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MODULES GRID
   ============================================================ */
.modules-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--br);
  border: 1px solid var(--br); border-radius: var(--rl); overflow: hidden;
}
.module-card {
  background: #ffffff !important; padding: 30px 26px;
  transition: background 0.15s; cursor: pointer;
}
.module-card:hover { background: var(--spl); }
.module-num {
  font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800;
  color: var(--sp); line-height: 1; margin-bottom: 14px;
}
.module-card h3 {
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--dk); margin-bottom: 8px;
}
.module-card p { font-size: 13px; color: var(--mu); line-height: 1.65; margin-bottom: 12px; }
.module-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.module-tag {
  font-size: 10px; padding: 3px 9px; border-radius: 4px;
  background: var(--sp); color: var(--p); font-weight: 500; letter-spacing: 0.3px;
}

/* ============================================================
   CATALOGUE — PERSO BLOCK
   ============================================================ */
.catalogue-intro {
  background: var(--spl); border: 1px solid var(--br); border-radius: var(--rl);
  padding: 32px 28px; margin-bottom: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.catalogue-intro h3 {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--dk); margin-bottom: 8px;
}
.catalogue-intro p { font-size: 14px; color: var(--mu); line-height: 1.7; }
@media (max-width: 600px) { .catalogue-intro { grid-template-columns: 1fr; } }

.perso-block {
  background: var(--p); border-radius: var(--rl); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  margin-top: 40px;
}
.perso-block h3 {
  font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800;
  color: #fff !important; margin-bottom: 10px; letter-spacing: -0.5px;
}
.perso-block p { font-size: 14px; color: rgba(255,255,255,0.6) !important; line-height: 1.75; }
.perso-items { display: flex; flex-direction: column; gap: 10px; }
.perso-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: rgba(255,255,255,0.04); border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.07);
}
.perso-item-icon {
  width: 32px; height: 32px; background: rgba(255,255,255,0.15); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.perso-item-icon svg { width: 15px; height: 15px; fill: #fff; }
.perso-item strong { display: block; font-size: 13px; color: #ffffff !important; font-weight: 500; margin-bottom: 2px; }
.perso-item span   { font-size: 12px; color: rgba(255,255,255,0.55) !important; }
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
  .perso-block  { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--br);
  border: 1px solid var(--br); border-radius: var(--rl); overflow: hidden;
  margin-top: 48px;
}
.step-card { background: #fff; padding: 32px 24px; }
.step-num {
  font-family: 'Syne', sans-serif; font-size: 56px; font-weight: 800;
  color: var(--sp); line-height: 1; margin-bottom: 14px;
}
.step-card h3 {
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--dk); margin-bottom: 8px;
}
.step-card p { font-size: 13px; color: var(--mu); line-height: 1.65; }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FORMATS
   ============================================================ */
.formats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.format-card {
  padding: 28px 24px; border: 1px solid var(--br);
  border-radius: var(--rl); background: #fff;
}
.format-icon {
  width: 44px; height: 44px; background: var(--sp); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.format-icon svg { width: 22px; height: 22px; fill: var(--p); }
.format-card h3 {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--dk); margin-bottom: 8px;
}
.format-card p { font-size: 14px; color: var(--mu); line-height: 1.65; }
.format-details { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--br); }
.format-details li {
  font-size: 13px; color: var(--mu); padding: 3px 0 3px 14px; position: relative;
}
.format-details li::before { content: '·'; position: absolute; left: 0; color: var(--p); font-weight: 700; }
@media (max-width: 600px) { .formats-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CERTIF
   ============================================================ */
.certif-block {
  display: flex; align-items: flex-start; gap: 24px; padding: 32px;
  border: 1px solid var(--br); border-radius: var(--rl);
  background: #fff !important; margin-top: 40px;
}
.certif-icon {
  width: 64px; height: 64px; background: var(--sp); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.certif-icon svg { width: 32px; height: 32px; fill: var(--p); }
.certif-block h3 {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--dk) !important; margin-bottom: 6px;
}
.certif-block p { font-size: 14px; color: var(--mu) !important; line-height: 1.7; }
.certif-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.certif-badge {
  font-size: 10px; padding: 4px 12px; border-radius: 4px;
  background: var(--sp); color: var(--p);
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ============================================================
   FORMATEURS
   ============================================================ */
section.formateurs-section { background: var(--p); }
.formateurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.formateur-card { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--rl); overflow: hidden; }
.formateur-photo { aspect-ratio: 1; overflow: hidden; }
.formateur-photo img { width: 100%; height: 100%; object-fit: cover; }
.formateur-info { padding: 18px 16px; }
.formateur-info strong { display: block; font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 3px; }
.formateur-info .sub { font-size: 11px; color: rgba(255,255,255,0.35); }
.formateur-info p { margin-top: 8px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.5); }
@media (max-width: 600px) { .formateurs-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TEMOIGNAGES
   ============================================================ */
.temos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.temo-card { padding: 28px 24px; border: 1px solid var(--br); background: #ffffff !important; border-radius: var(--rl); }
.temo-quote {
  font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800;
  color: var(--sp); line-height: 0.5; display: block; margin-bottom: 14px;
}
.temo-text { font-size: 14px; line-height: 1.75; margin-bottom: 18px; color: var(--tx); }
.temo-author { display: flex; align-items: center; gap: 10px; }
.temo-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--sp);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--p); flex-shrink: 0;
}
.temo-name strong { display: block; font-size: 13px; font-weight: 500; }
.temo-name span   { font-size: 11px; color: var(--mu); }
@media (max-width: 600px) { .temos-grid { grid-template-columns: 1fr; } }

/* ============================================================
   LOGOS CLIENTS
   ============================================================ */
.logos-section { padding: 44px 0; border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); }
.logos-label {
  text-align: center; font-size: 10px; color: var(--sl);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.logos-row { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.logos-row img {
  height: 32px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.45; transition: filter 0.2s, opacity 0.2s;
}
.logos-row img:hover { filter: grayscale(0%); opacity: 1; }

/* ============================================================
   DIFF GRID (Pourquoi nous)
   ============================================================ */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.diff-card { padding: 26px 22px; border: 1px solid var(--br); border-radius: var(--rl); background: #fff; }
.diff-icon {
  width: 40px; height: 40px; background: var(--sp); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.diff-icon svg { width: 18px; height: 18px; fill: var(--p); }
.diff-card h3 {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--dk); margin-bottom: 8px;
}
.diff-card p { font-size: 13px; color: var(--mu); line-height: 1.65; }
@media (max-width: 600px) { .diff-grid { grid-template-columns: 1fr; } }

/* ============================================================
   KHOMPTA LINK BLOCK
   ============================================================ */
.khompta-link {
  background: var(--spl); border: 1px solid var(--br); border-radius: var(--rl);
  padding: 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px;
}
.khompta-link h3 {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--dk); margin-bottom: 6px;
}
.khompta-link p { font-size: 14px; color: var(--mu); max-width: 480px; line-height: 1.65; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--p); border-radius: var(--rl);
  padding: 56px 48px; text-align: center; margin-top: 40px;
}
.cta-banner h2 {
  font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800;
  color: #fff; margin-bottom: 12px; letter-spacing: -0.5px;
}
.cta-banner p {
  font-size: 15px; color: rgba(255,255,255,0.5);
  margin: 0 auto 28px; font-weight: 300; max-width: 480px;
}

/* ============================================================
   PAGE HERO (pages intérieures)
   ============================================================ */
.page-hero { background: var(--spl); color: var(--dk); padding: 72px 0 64px; border-bottom: 1px solid var(--br); }
.page-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.page-hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--s); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--pm); }
.page-hero h1 {
  font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800;
  line-height: 1.05; letter-spacing: -1px; color: var(--dk); margin-bottom: 18px;
}
.page-hero h1 em { color: var(--pm); font-style: normal; }
.page-hero p { font-size: 16px; color: var(--mu); line-height: 1.75; font-weight: 300; margin-bottom: 28px; }
.page-hero img { border-radius: var(--rl); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 720px) { .page-hero-inner { grid-template-columns: 1fr; } }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { text-align: center; }
.cta-final h2 {
  font-family: 'Syne', sans-serif; font-size: 40px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 14px; color: var(--dk);
}
.cta-final p { font-size: 16px; color: var(--mu); margin-bottom: 32px; font-weight: 300; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page { padding: 72px 0 80px; }
.legal-content { max-width: 720px; }
.legal-content h1 {
  font-family: 'Syne', sans-serif; font-size: 38px; font-weight: 800;
  letter-spacing: -0.8px; color: var(--dk); margin-bottom: 40px;
}
.legal-content h2 {
  font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 700;
  color: var(--dk); margin: 36px 0 10px;
  padding-top: 36px; border-top: 1px solid var(--br);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content p  { font-size: 15px; color: var(--mu); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 8px 0 16px; }
.legal-content li {
  font-size: 15px; color: var(--mu); line-height: 1.75;
  padding: 3px 0 3px 20px; position: relative;
}
.legal-content li::before { content: '—'; position: absolute; left: 0; color: var(--s); font-size: 12px; top: 6px; }
.legal-content strong { color: var(--tx); font-weight: 500; }
.legal-content a { color: var(--p); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: #08443b !important; color: #fff; padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand img     { height: 120px; width: auto; max-width: 360px; object-fit: contain; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p       { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.65; max-width: 240px; }
.footer-brand-certif  {
  margin-top: 14px; font-size: 11px; color: var(--sl);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-brand-certif::before { content: '✦'; font-size: 9px; }

.footer-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.12s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 11px; color: rgba(255,255,255,0.3); transition: color 0.12s; }
.footer-bottom-links a:hover { color: #fff; }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.ks-fade {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ks-fade.visible { opacity: 1; transform: translateY(0); }
/* Fallback : si JS ne se déclenche pas, on rend tout visible */
@media (prefers-reduced-motion: reduce) {
  .ks-fade { opacity: 1; transform: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.divider { border: none; border-top: 1px solid var(--br); margin: 48px 0; }

/* ============================================================
   CONTACT FORM 7 — STYLING
   ============================================================ */
.wpcf7 { width: 100%; }

.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 14px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--tx);
  background: #fff;
  border: 1px solid var(--br);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--pm);
  box-shadow: 0 0 0 3px rgba(13,107,92,0.08);
}

.wpcf7 textarea { resize: vertical; min-height: 100px; }

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder { color: var(--sl); }

.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: var(--p);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.15s;
}
.wpcf7 input[type="submit"]:hover { opacity: 0.88; }
.wpcf7 input[type="submit"]::after { content: ' →'; }

.wpcf7-response-output {
  margin-top: 14px; padding: 12px 16px;
  border-radius: var(--r); font-size: 14px; border: none !important;
}
.wpcf7-mail-sent-ok   { background: var(--sp); color: var(--p); }
.wpcf7-validation-errors,
.wpcf7-acceptance-missing { background: #fef2f2; color: #991b1b; }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-page { padding: 64px 0 80px; }
.legal-content { max-width: 700px; }
.legal-content h1 {
  font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800;
  letter-spacing: -0.8px; color: var(--dk); margin-bottom: 36px;
}
.legal-content h2 {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--dk); margin: 32px 0 10px;
  padding-top: 32px; border-top: 1px solid var(--br);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content p  { font-size: 15px; color: var(--mu); line-height: 1.8; margin-bottom: 10px; }
.legal-content ul { margin: 8px 0 14px; }
.legal-content li {
  font-size: 15px; color: var(--mu); line-height: 1.75;
  padding: 2px 0 2px 18px; position: relative;
}
.legal-content li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--s); font-size: 11px; top: 6px;
}
.legal-content strong { color: var(--tx); font-weight: 500; }
.legal-content a { color: var(--p); text-decoration: underline; }

/* ============================================================
   MOBILE — CORRECTIONS PERFORMANCE & LAYOUT
   ============================================================ */

/* --- Header & Logo --- */
@media (max-width: 768px) {
  #site-header {
    height: 68px;
    position: sticky;
  }
  .nav-inner {
    height: 68px;
    padding: 0 20px;
  }
  .nav-logo img {
    height: 48px !important;
    max-width: 180px !important;
  }
  /* Menu burger visible, liens cachés */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px 20px 20px;
    border-bottom: 1px solid var(--br);
    box-shadow: 0 8px 24px rgba(8,68,59,0.08);
    gap: 4px; z-index: 199;
  }
  .nav-links.open a { width: 100%; padding: 10px 12px; }
  .nav-links.open .nav-cta { width: 100%; text-align: center; margin-left: 0; margin-top: 8px; }
  .nav-burger { display: block; }
}

/* --- Hero --- */
@media (max-width: 768px) {
  .hero { padding: 40px 20px 36px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-photo { aspect-ratio: 4/3; order: -1; }
  .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn--primary,
  .hero-actions .btn--ghost,
  .hero-actions a,
  .hero-actions button { width: 100%; text-align: center; }
}

/* --- Stats bar --- */
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px; }
  .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: 26px; }
}

/* --- Sections padding --- */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .container { padding: 0 20px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 26px; }
}

/* --- Profils --- */
@media (max-width: 768px) {
  .profils-grid { grid-template-columns: 1fr; }
  .profil-card { padding: 22px 18px; }
}

/* --- Modules --- */
@media (max-width: 768px) {
  .modules-grid { grid-template-columns: 1fr; }
  .module-card { padding: 22px 18px; }
  .module-num { font-size: 26px; }
  .catalogue-intro { grid-template-columns: 1fr; gap: 16px; }
  .perso-block { grid-template-columns: 1fr; padding: 28px 20px; }
}

/* --- Steps --- */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-num { font-size: 40px; }
}

/* --- Formateurs --- */
@media (max-width: 768px) {
  .formateurs-grid { grid-template-columns: 1fr; gap: 12px; }
  .formateur-photo { aspect-ratio: 16/9; }
}

/* --- Témoignages --- */
@media (max-width: 768px) {
  .temos-grid { grid-template-columns: 1fr; }
}

/* --- Formats --- */
@media (max-width: 768px) {
  .formats-grid { grid-template-columns: 1fr; }
}

/* --- Diff grid (Pourquoi nous) --- */
@media (max-width: 768px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* --- Page hero intérieure --- */
@media (max-width: 768px) {
  .page-hero { padding: 40px 0 36px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero img { display: none; } /* cache photo sur mobile pour perf */
}

/* --- CTA final --- */
@media (max-width: 768px) {
  .cta-final { padding: 48px 20px; }
  .cta-final h2 { font-size: 26px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions a, .cta-actions button { width: 100%; text-align: center; }
  .cta-banner { padding: 36px 24px; }
  .cta-banner h2 { font-size: 22px; }
}

/* --- Khompta link block --- */
@media (max-width: 768px) {
  .khompta-link { flex-direction: column; }
}

/* --- Footer --- */
@media (max-width: 768px) {
  #site-footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { height: 60px !important; max-width: 200px !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 10px; }
}

/* --- Logos clients --- */
@media (max-width: 768px) {
  .logos-section { padding: 28px 20px; }
  .logos-row { gap: 20px; }
  .logos-row img { height: 24px; }
}

/* --- Legal --- */
@media (max-width: 768px) {
  .legal-page { padding: 40px 0 60px; }
  .legal-content h1 { font-size: 26px; }
  .legal-content h2 { font-size: 17px; }
}

/* --- Certif block --- */
@media (max-width: 768px) {
  .certif-block { flex-direction: column; gap: 16px; }
}

/* --- Perso block items --- */
@media (max-width: 768px) {
  .perso-items { gap: 8px; }
}
