/* ============================================
   MonAuditPA — CSS Global
   Source de vérité : MAQUETTES/homepage_v1.html
   ============================================ */

/* ===== VARIABLES ===== */
:root {
  --teal: #1a9e96;
  --teal-dark: #0d6e68;
  --teal-light: #e6f5f4;
  --yellow: #f5b731;
  --yellow-light: #fef7e6;
  --orange: #e8852e;
  --red: #e74c6f;
  --green: #27ae60;
  --dark: #1a2744;
  --gray-text: #4a5568;
  --gray-light: #f7f8fa;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26, 158, 150, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 158, 150, 0.15);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--gray-text);
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
.script { font-family: 'Caveat', cursive; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 0;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
/* Logo MonAuditPA en image — protégé du branding partenaire (couleurs figées). */
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.nav-logo img { display: block; height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.nav-active { color: var(--dark); font-weight: 700; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }

/* Burger mobile */
.nav-burger {
  display: none; cursor: pointer; background: none; border: none;
  width: 32px; height: 24px; position: relative; z-index: 101;
}
.nav-burger span {
  display: block; width: 100%; height: 3px; background: var(--dark);
  border-radius: 2px; transition: all 0.3s; position: absolute; left: 0;
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 10px; }
.nav-burger span:nth-child(3) { top: 20px; }
.nav-burger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-weight: 600;
  font-size: 15px; text-decoration: none; transition: all 0.3s;
  cursor: pointer;
  /* border 2px transparent par defaut → toutes les variantes ont la meme
     hauteur, qu'elles utilisent .btn-outline (border visible) ou non. */
  border: 2px solid transparent;
  font-family: inherit;
  /* line-height fixe : sinon <button> herite de 'normal' (~1.2) du user-agent
     alors que <a> herite de 1.6 du body → ecart de hauteur entre primary et
     outline meme avec les memes paddings. */
  line-height: 1.25;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
}
/* Action principale : etat normal = fond blanc + bordure couleur primaire,
   au survol = fond plein couleur primaire + texte blanc. Inversion du
   pattern outline-inverse classique. */
.btn-primary {
  background: white;
  color: var(--teal) !important;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal);
  color: white !important;
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Action secondaire de type lien : texte couleur secondaire branding,
   au survol passe en couleur texte branding (lisible sur fond blanc). */
.btn-link-secondary {
  background: transparent;
  border-color: transparent;
  color: var(--teal-dark) !important;
  text-decoration: underline;
  padding: 6px 8px;
}
.btn-link-secondary:hover {
  background: transparent;
  color: var(--brand-text, var(--dark)) !important;
  border-color: transparent;
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}
.btn-yellow { background: var(--yellow); color: var(--dark) !important; }
.btn-yellow:hover { background: #e0a52a; color: var(--dark) !important; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--teal-dark); color: var(--teal-dark) !important; }
.btn-outline:hover { background: var(--teal-dark); color: white !important; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.5); color: white !important; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; color: white !important; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 16px; }
.section-header h2 {
  font-family: 'Caveat', cursive; font-size: 40px;
  color: var(--dark); margin-bottom: 8px;
}
.section-header .bar {
  display: inline-block; width: 60px; height: 5px;
  border-radius: 3px; background: var(--yellow); margin-bottom: 12px;
}
.section-header p { font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--white) 50%, var(--yellow-light) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--yellow); opacity: 0.06;
}
.hero::after {
  content: ''; position: absolute; bottom: -120px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--teal); opacity: 0.05;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--gray-border);
  padding: 6px 16px; border-radius: 50px; font-size: 13px;
  font-weight: 500; color: var(--teal); margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-family: 'Caveat', cursive; font-size: 52px; font-weight: 700;
  color: var(--dark); line-height: 1.15; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--teal); }
.hero h1 .yellow-bar {
  display: inline-block; border-left: 5px solid var(--yellow); padding-left: 12px;
}
.hero p { font-size: 18px; color: var(--gray-text); margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--gray-border);
}

/* Score demo (hero) */
.score-demo { text-align: center; }
.score-circle {
  width: 180px; height: 180px; border-radius: 50%;
  background: conic-gradient(var(--red) 0% 15%, var(--yellow) 15% 40%, var(--teal) 40% 62%, var(--gray-border) 62% 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative;
}
.score-circle-inner {
  width: 140px; height: 140px; border-radius: 50%;
  background: white; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-number { font-size: 42px; font-weight: 700; color: var(--yellow); font-family: 'Caveat', cursive; }
.score-label { font-size: 12px; color: var(--gray-text); font-weight: 500; }
.score-items { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.score-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--gray-light); font-size: 13px;
}
.score-item .icon { width: 20px; text-align: center; font-size: 14px; }
.score-item.ok .icon { color: var(--green); }
.score-item.warn .icon { color: var(--yellow); }
.score-item.fail .icon { color: var(--red); }

/* ===== URGENCE BANNER ===== */
.urgence { background: var(--dark); padding: 40px 0; color: white; }
.urgence .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.urgence-item { text-align: center; }
.urgence-number { font-family: 'Caveat', cursive; font-size: 48px; color: var(--yellow); }
.urgence-text { font-size: 13px; opacity: 0.8; }

/* ===== TEST GRATUIT ===== */
.test-section { background: var(--gray-light); }
.test-card {
  background: var(--white); border-radius: var(--radius);
  padding: 48px; box-shadow: var(--shadow); text-align: center;
  border: 2px dashed var(--teal); position: relative; overflow: hidden;
}
.test-card::before {
  content: 'GRATUIT'; position: absolute; top: 20px; right: -35px;
  background: var(--green); color: white; padding: 4px 40px;
  font-size: 12px; font-weight: 700; transform: rotate(45deg);
}
.test-card h2 {
  font-family: 'Caveat', cursive; font-size: 38px;
  color: var(--dark); margin-bottom: 12px;
}
.test-card p { font-size: 16px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.upload-zone {
  border: 2px dashed var(--gray-border); border-radius: var(--radius-sm);
  padding: 48px; margin-bottom: 24px; transition: all 0.3s; cursor: pointer;
}
.upload-zone:hover { border-color: var(--teal); background: var(--teal-light); }
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-text { font-size: 15px; color: var(--gray-text); }
.upload-text strong { color: var(--teal); }
.test-limit { font-size: 12px; color: var(--gray-text); opacity: 0.7; margin-top: 16px; }

/* ===== STEPS (Comment ça marche) ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; text-align: center; border: 1px solid var(--gray-border);
  transition: all 0.3s; position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-number {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700;
  margin: 0 auto 16px;
}
.step-card:nth-child(1) .step-number { background: var(--teal-light); color: var(--teal); }
.step-card:nth-child(2) .step-number { background: var(--yellow-light); color: var(--orange); }
.step-card:nth-child(3) .step-number { background: #e8f5e9; color: var(--green); }
.step-card h3 { color: var(--dark); font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; }
.step-arrow {
  position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--gray-border); z-index: 2;
}

/* ===== 8 AXES ===== */
.blocs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.bloc-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 20px; text-align: center; border: 1px solid var(--gray-border);
  transition: all 0.3s;
}
.bloc-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.bloc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 20px;
  background: var(--teal-light); color: var(--teal);
}
.bloc-card h3 { font-size: 13px; color: var(--dark); font-weight: 600; }
.bloc-card p { font-size: 11px; color: var(--gray-text); margin-top: 4px; }

/* ===== DIFFERENCIATEURS ===== */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.diff-card {
  padding: 28px; border-radius: var(--radius-sm);
  border-left: 4px solid var(--teal); background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.diff-card .diff-icon { font-size: 28px; margin-bottom: 12px; }
.diff-card h3 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.diff-card p { font-size: 13px; }

/* ===== PRICING ===== */
.pricing-section { background: var(--gray-light); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; border: 1px solid var(--gray-border);
  transition: all 0.3s; position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--teal);
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}
.pricing-card.featured::before {
  content: 'Recommand\00e9'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%); background: var(--teal); color: white;
  padding: 4px 20px; border-radius: 50px; font-size: 12px; font-weight: 600;
}
.pricing-tier {
  font-family: 'Caveat', cursive; font-size: 26px;
  color: var(--teal); margin-bottom: 8px;
}
.pricing-price { font-size: 36px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--gray-text); }
.pricing-desc { font-size: 14px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-border); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li::before { content: '\2713'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ===== CALENDRIER / TIMELINE ===== */
.calendar-section { background: linear-gradient(135deg, var(--dark) 0%, #243355 100%); color: white; }
.calendar-section a { color: var(--yellow); }
.calendar-section a:hover { color: #ffe082; }
.calendar-section .section-header h2 { color: white; }
.calendar-section .section-header p { color: rgba(255,255,255,0.7); }
.timeline { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 48px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 40px; left: 15%; right: 15%;
  height: 3px; background: rgba(255,255,255,0.2);
}
.timeline-item { text-align: center; flex: 1; position: relative; z-index: 1; padding: 0 20px; }
.timeline-dot {
  width: 24px; height: 24px; border-radius: 50%;
  margin: 28px auto 20px; border: 3px solid;
}
.timeline-item:nth-child(1) .timeline-dot { background: var(--yellow); border-color: var(--yellow); }
.timeline-item:nth-child(2) .timeline-dot { background: var(--teal); border-color: var(--teal); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--green); border-color: var(--green); }
.timeline-date {
  font-family: 'Caveat', cursive; font-size: 22px;
  color: var(--yellow); margin-bottom: 4px;
}
.timeline-text { font-size: 13px; opacity: 0.8; max-width: 200px; margin: 0 auto; }
.timeline-tag {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 600; margin-bottom: 8px;
}
.timeline-item:nth-child(1) .timeline-tag { background: rgba(245,183,49,0.2); color: var(--yellow); }
.timeline-item:nth-child(2) .timeline-tag { background: rgba(26,158,150,0.2); color: #5fd4cc; }
.timeline-item:nth-child(3) .timeline-tag { background: rgba(39,174,96,0.2); color: #5dde8f; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-border); padding: 20px 0; }
.faq-question {
  font-weight: 600; color: var(--dark); font-size: 16px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-question::after { content: '+'; font-size: 20px; color: var(--teal); transition: transform 0.3s; }
.faq-answer { font-size: 14px; margin-top: 12px; display: none; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: '\2212'; }

/* ===== CTA FINAL ===== */
.final-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  text-align: center; color: white;
}
.final-cta a { color: rgba(255,255,255,0.85); }
.final-cta a:hover { color: white; }
.final-cta h2 { font-family: 'Caveat', cursive; font-size: 42px; color: white; margin-bottom: 16px; }
.final-cta p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 550px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.55);
  padding: 60px 0 0; font-size: 13px;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--yellow); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
/* Footer logo : PNG MonAuditPA, blanc pur sur fond dark via filter */
.footer-logo {
  margin-bottom: 14px; line-height: 1;
}
.footer-logo img {
  filter: brightness(0) invert(1);
  display: block; width: 160px; height: auto;
}
@media (max-width: 768px) {
  .footer-logo img { margin: 0 auto; }
}
.footer-col h3 {
  color: white; font-size: 14px; font-weight: 600;
  margin-bottom: 14px; letter-spacing: 0.3px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; }
.footer-bottom {
  padding: 24px 0; text-align: center;
  font-size: 14px; color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: var(--yellow); text-decoration: underline; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand p { max-width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ===== PAGES SECONDAIRES ===== */
.page-secondary { padding-top: 120px; padding-bottom: 80px; }
.page-secondary .container { max-width: 800px; }
.page-secondary h1 {
  font-family: 'Caveat', cursive; font-size: 36px; font-weight: 700;
  color: var(--dark); margin-bottom: 8px;
}
.page-secondary .subtitle { font-size: 18px; color: var(--gray-text); margin-bottom: 40px; }
.page-secondary h2 {
  font-size: 20px; font-weight: 700; color: var(--dark);
  margin-top: 40px; margin-bottom: 12px;
}
.page-secondary h3 {
  font-size: 17px; font-weight: 600; color: var(--dark);
  margin-top: 28px; margin-bottom: 8px;
}
.page-secondary p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.page-secondary ul, .page-secondary ol {
  font-size: 15px; line-height: 1.8; margin-bottom: 16px; padding-left: 24px;
}
.page-secondary li { margin-bottom: 6px; }

/* Fil d'Ariane */
.breadcrumb {
  font-size: 13px; margin-bottom: 24px; color: var(--gray-text);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 8px; color: var(--gray-border); }

/* Page pilier (contenu long) — classe sur la SECTION, pas sur body */
section.page-pillar { padding-top: 120px; padding-bottom: 80px; }
section.page-pillar > .container { max-width: 860px; }
section.page-pillar h1 {
  font-family: 'Caveat', cursive; font-size: 36px; font-weight: 700;
  color: var(--dark); margin-bottom: 8px;
}
section.page-pillar .subtitle { font-size: 18px; color: var(--gray-text); margin-bottom: 40px; }
section.page-pillar h2 {
  font-family: 'Caveat', cursive; font-size: 32px;
  color: var(--dark); margin-top: 48px; margin-bottom: 16px;
}
section.page-pillar h3 {
  font-size: 17px; font-weight: 600; color: var(--dark);
  margin-top: 28px; margin-bottom: 8px;
}
section.page-pillar p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
section.page-pillar ul, section.page-pillar ol {
  font-size: 15px; line-height: 1.8; margin-bottom: 16px; padding-left: 24px;
}
section.page-pillar li { margin-bottom: 6px; }
.last-updated {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-text); margin-bottom: 32px;
  padding: 6px 14px; background: var(--gray-light); border-radius: 50px;
}

/* Info boxes */
.info-box {
  padding: 20px 24px; border-radius: var(--radius-sm);
  margin: 28px 0; font-size: 14px; line-height: 1.7;
  display: flex; align-items: flex-start; gap: 14px;
}
.info-box .info-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.info-box.teal { background: var(--teal-light); border-left: 4px solid var(--teal); }
.info-box.teal .info-icon { background: var(--teal); color: white; }
.info-box.teal a { color: var(--teal-dark); }
.info-box.teal a:hover { color: var(--dark); }
.info-box.yellow { background: var(--yellow-light); border-left: 4px solid var(--yellow); }
.info-box.yellow .info-icon { background: var(--yellow); color: white; }
.info-box.yellow a { color: var(--orange); }
.info-box.yellow a:hover { color: var(--dark); }
.info-box.red { background: #fde8ee; border-left: 4px solid var(--red); }
.info-box.red .info-icon { background: var(--red); color: white; }
.info-box.red a { color: var(--red); }
.info-box.red a:hover { color: var(--dark); }

/* Tables in content */
.content-table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
}
.content-table th {
  background: var(--dark); color: white; padding: 14px 18px;
  text-align: left; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.content-table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-border); }
.content-table tr:nth-child(even) td { background: var(--gray-light); }
.content-table tr:hover td { background: var(--teal-light); }

/* CTA inline */
.cta-inline {
  background: var(--teal-light); border-radius: var(--radius);
  padding: 32px; text-align: center; margin: 40px 0;
}
.cta-inline h3 {
  font-family: 'Caveat', cursive; font-size: 28px; color: var(--dark); margin-bottom: 12px;
}
.cta-inline p { font-size: 15px; margin-bottom: 20px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Glossaire */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.glossary-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; font-weight: 600;
  border: 1px solid var(--gray-border); color: var(--dark); font-size: 14px;
}
.glossary-nav a:hover, .glossary-nav a.active { background: var(--teal); color: white; border-color: var(--teal); }
.glossary-term { padding: 20px 0; border-bottom: 1px solid var(--gray-border); }
.glossary-term dt { font-weight: 700; color: var(--dark); font-size: 16px; margin-bottom: 6px; }
.glossary-term dd { font-size: 14px; line-height: 1.7; }
.glossary-term .see-more { font-size: 13px; color: var(--teal); margin-top: 4px; display: inline-block; }

/* FAQ catégorisée */
.faq-category { margin-bottom: 48px; }
.faq-category h3 {
  font-family: 'Caveat', cursive; font-size: 26px; color: var(--dark);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--yellow);
}

/* Cas d'usage hub */
.cu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cu-filter {
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--gray-border); cursor: pointer; background: var(--white);
  transition: all 0.2s;
}
.cu-filter:hover, .cu-filter.active { background: var(--teal); color: white; border-color: var(--teal); }
.cu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cu-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border); transition: all 0.2s;
}
.cu-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.cu-number {
  font-family: 'Caveat', cursive; font-size: 20px; font-weight: 700;
  color: var(--teal); min-width: 40px;
}
.cu-card h3, .cu-card h4 { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cu-card p { font-size: 13px; }
.cu-tags { display: flex; gap: 6px; margin-top: 6px; }
.cu-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 50px;
  background: var(--gray-light); color: var(--gray-text);
}

/* ===== FORMULAIRES ===== */
.label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.label-hint { font-weight: 400; font-size: 13px; color: var(--gray-text); margin-left: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 16px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--dark); background: var(--white);
  border: 1.5px solid var(--gray-border); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26, 158, 150, 0.12);
}
.input::placeholder { color: var(--gray-text); opacity: 0.5; }
.input-error { border-color: var(--red); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(231, 76, 111, 0.12); }
.field-message { font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.field-message.error { color: var(--red); }
.field-message.success { color: var(--green); }

/* ===== BADGES ===== */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--gray-border);
  padding: 6px 16px; border-radius: 50px; font-size: 13px;
  font-weight: 500; color: var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { margin-top: 24px; }
  .steps-grid, .diff-grid { grid-template-columns: 1fr; }
  .blocs-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { transform: none; }
  .site-nav { backdrop-filter: none; background: var(--white); }
  .site-nav .nav-links { display: none; }
  .nav-burger { display: block !important; flex-shrink: 0; }
  .nav-links.active {
    display: flex !important; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 80px 32px 32px;
    gap: 24px; z-index: 9999;
    align-items: center;
  }
  .nav-links.active a { font-size: 18px; color: var(--dark) !important; }
  .nav-links.active a:hover { color: var(--teal) !important; }
  .nav-burger { z-index: 10000; position: relative; }
  .timeline { flex-direction: column; gap: 24px; }
  .timeline::before { display: none; }
  .step-arrow { display: none; }
  .urgence .container { gap: 24px; }
  .urgence-number { font-size: 36px; }
  .page-secondary h1 { font-size: 30px; }
  section.page-pillar h1 { font-size: 30px; }
  section.page-pillar h2 { font-size: 26px; }

  /* Tables responsive : scroll horizontal */
  .content-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* FAQ categories */
  .faq-category h3 { font-size: 22px; }

  /* CU grid */
  .cu-card { flex-direction: column; gap: 8px; }
  .cu-number { min-width: auto; }

  /* Glossary nav */
  .glossary-nav a { width: 32px; height: 32px; font-size: 12px; }
}

@media (max-width: 480px) {
  .blocs-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  section { padding: 60px 0; }
  section.page-pillar { padding-top: 100px; }
  .page-secondary { padding-top: 100px; }
  .diff-grid { gap: 16px; }
  .diff-card { padding: 20px; }
}

/* ===== PAGE HERO (pages intérieures) ===== */
.page-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, var(--teal) 0%, #1aafa6 40%, var(--teal-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -60px;
  width: 350px; height: 350px;
  border: 40px solid rgba(255,255,255,0.06); border-radius: 50%;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border: 30px solid rgba(245,183,49,0.1); border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero a { color: rgba(255,255,255,0.85); }
.page-hero a:hover { color: white; }
.page-hero .breadcrumb { font-size: 13px; margin-bottom: 20px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.4); }
.page-hero h1 {
  font-family: 'Caveat', cursive; font-size: 48px; font-weight: 700;
  line-height: 1.15; margin-bottom: 16px;
}
.page-hero .subtitle { font-size: 18px; opacity: 0.9; max-width: 650px; line-height: 1.6; margin-bottom: 28px; }
.page-hero .hero-meta { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 500;
}
.hero-tag .icon { font-size: 16px; }
.deco-lines { position: absolute; top: 30px; right: 80px; z-index: 0; opacity: 0.12; }
.deco-lines span { display: block; width: 50px; height: 4px; background: var(--yellow); border-radius: 2px; margin-bottom: 8px; }
.deco-lines span:nth-child(2) { width: 35px; margin-left: 15px; }
.deco-lines span:nth-child(3) { width: 20px; margin-left: 30px; }

/* ===== TABLE DES MATIERES (TOC) ===== */
.toc-section { padding: 0; margin-top: -30px; position: relative; z-index: 2; }
.toc-card {
  background: white; border-radius: var(--radius); padding: 32px 40px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-border);
  max-width: 900px; margin: 0 auto;
}
.toc-card .toc-title {
  font-weight: 700; color: var(--dark); font-size: 16px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.toc-card .toc-title .icon { color: var(--teal); font-size: 20px; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.toc-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: var(--radius-sm); transition: background 0.2s;
  font-size: 14px; font-weight: 500; color: var(--dark); text-decoration: none;
}
.toc-item:hover { background: var(--teal-light); color: var(--teal); }
.toc-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-size: 16px; font-weight: 700;
  background: var(--teal-light); color: var(--teal); flex-shrink: 0;
}

/* ===== SECTION HEADING (enrichi) ===== */
.section-heading {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 3px solid var(--yellow);
}
.section-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0; background: var(--teal-light); color: var(--teal);
}
.section-heading h2 { font-family: 'Caveat', cursive; font-size: 36px; color: var(--dark); line-height: 1.2; }

/* ===== CONTENT SECTIONS (pages enrichies) ===== */
.content-section { padding: 60px 0; }
.content-section .container { max-width: 960px; }
.content-section.alt { background: var(--gray-light); }
.content-text p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.content-text ul, .content-text ol { font-size: 15px; line-height: 1.8; margin-bottom: 16px; padding-left: 24px; }
.content-text li { margin-bottom: 6px; }
.content-text strong { color: var(--dark); }

/* ===== KPI BANNER ===== */
.kpi-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; }
.kpi-card {
  background: white; border-radius: var(--radius); padding: 24px 20px;
  text-align: center; border: 1px solid var(--gray-border);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.kpi-card:nth-child(1)::before { background: var(--red); }
.kpi-card:nth-child(2)::before { background: var(--yellow); }
.kpi-card:nth-child(3)::before { background: var(--teal); }
.kpi-card:nth-child(4)::before { background: var(--green); }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.kpi-number { font-family: 'Caveat', cursive; font-size: 42px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.kpi-card:nth-child(1) .kpi-number { color: var(--red); }
.kpi-card:nth-child(2) .kpi-number { color: var(--yellow); }
.kpi-card:nth-child(3) .kpi-number { color: var(--teal); }
.kpi-card:nth-child(4) .kpi-number { color: var(--green); }
.kpi-label { font-size: 13px; color: var(--gray-text); font-weight: 500; }

/* ===== OBJECTIVES GRID ===== */
.objectives-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.objective-card {
  background: white; border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--gray-border); transition: all 0.3s; position: relative;
}
.objective-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.objective-card .card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.objective-card:nth-child(1) .card-icon { background: var(--teal-light); color: var(--teal); }
.objective-card:nth-child(2) .card-icon { background: #fde8ee; color: var(--red); }
.objective-card:nth-child(3) .card-icon { background: var(--yellow-light); color: var(--orange); }
.objective-card:nth-child(4) .card-icon { background: #e8f5e9; color: var(--green); }
.objective-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.objective-card p { font-size: 14px; line-height: 1.7; }

/* ===== TABLE WRAPPER ===== */
.table-wrapper { margin: 28px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-wrapper .content-table { margin: 0; }
.date-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.date-badge.sept-2026 { background: var(--yellow-light); color: var(--orange); }
.date-badge.sept-2027 { background: var(--teal-light); color: var(--teal); }

/* ===== VISUAL TIMELINE ===== */
.visual-timeline { position: relative; margin: 40px 0; padding: 20px 0; }
.timeline-track {
  position: absolute; left: 40px; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--yellow), var(--teal), var(--green));
  border-radius: 2px;
}
.timeline-event {
  display: flex; align-items: flex-start; gap: 28px;
  margin-bottom: 40px; position: relative; padding-left: 80px;
}
.timeline-event:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 26px; top: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white; z-index: 1;
  box-shadow: 0 0 0 6px white, 0 0 0 8px var(--gray-border);
}
.timeline-event:nth-child(1) .timeline-dot { background: var(--yellow); }
.timeline-event:nth-child(2) .timeline-dot { background: var(--teal); }
.timeline-event:nth-child(3) .timeline-dot { background: var(--green); }
.timeline-content {
  background: white; border-radius: var(--radius); padding: 24px 28px;
  border: 1px solid var(--gray-border); flex: 1; transition: all 0.3s;
}
.timeline-content:hover { box-shadow: var(--shadow); }
.timeline-date-label { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.timeline-event:nth-child(1) .timeline-date-label { color: var(--orange); }
.timeline-event:nth-child(2) .timeline-date-label { color: var(--teal); }
.timeline-event:nth-child(3) .timeline-date-label { color: var(--green); }
.timeline-content h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.timeline-content p { font-size: 14px; margin-bottom: 0; }
.timeline-content ul { font-size: 14px; padding-left: 18px; margin-top: 8px; }
.timeline-content li { margin-bottom: 4px; }

/* ===== FLOW DIAGRAM ===== */
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 0; margin: 36px 0; flex-wrap: wrap; }
.flow-node { text-align: center; padding: 20px; min-width: 140px; }
.flow-node .node-circle {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 12px; border: 3px solid;
}
.flow-node.vendeur .node-circle { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }
.flow-node.pa .node-circle { background: var(--yellow-light); border-color: var(--yellow); color: var(--orange); }
.flow-node.ppf .node-circle { background: #e8f5e9; border-color: var(--green); color: var(--green); }
.flow-node.acheteur .node-circle { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }
.flow-node.admin .node-circle { background: #fde8ee; border-color: var(--red); color: var(--red); }
.flow-node .node-label { font-size: 13px; font-weight: 600; color: var(--dark); }
.flow-node .node-sub { font-size: 11px; color: var(--gray-text); margin-top: 2px; }
.flow-arrow { font-size: 24px; color: var(--gray-border); padding: 0 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow-arrow .arrow-label { font-size: 10px; color: var(--gray-text); font-weight: 500; }

/* ===== COMPARE GRID ===== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.compare-card { border-radius: var(--radius); padding: 28px; border: 2px solid; position: relative; }
.compare-card.ppf, .compare-card.ereporting { border-color: var(--gray-border); background: #f9fafb; }
.compare-card.pa, .compare-card.einvoicing { border-color: var(--teal); background: white; }
.compare-card .compare-badge {
  position: absolute; top: -14px; left: 24px;
  padding: 6px 18px; border-radius: 50px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.compare-card.ppf .compare-badge { background: var(--gray-border); color: var(--dark); }
.compare-card.pa .compare-badge, .compare-card.einvoicing .compare-badge { background: var(--teal); color: white; }
.compare-card.ereporting .compare-badge { background: var(--yellow); color: var(--dark); }
.compare-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 10px 0 12px; font-family: 'Caveat', cursive; }
.compare-card p { font-size: 14px; margin-bottom: 14px; }
.compare-card ul { font-size: 14px; padding-left: 0; list-style: none; }
.compare-card ul li { padding: 6px 0; display: flex; align-items: flex-start; gap: 8px; }
.compare-card ul li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.compare-card.ppf ul li::before, .compare-card.ereporting ul li::before { background: var(--gray-border); }
.compare-card.pa ul li::before, .compare-card.einvoicing ul li::before { background: var(--teal); }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th { background: var(--dark); color: white; padding: 14px 18px; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.comparison-table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-border); }
.comparison-table tr:nth-child(even) td { background: var(--gray-light); }
.comparison-table tr:hover td { background: var(--teal-light); }
.comparison-table td.col-criteria { font-weight: 600; color: var(--dark); width: 35%; }
.comparison-table td.col-ppf { background-color: #f9fafb; }
.comparison-table td.col-pa { background-color: white; border-right: 3px solid var(--teal); }
.comparison-table tr:nth-child(even) td.col-ppf { background-color: #f0f1f3; }
.comparison-table tr:nth-child(even) td.col-pa { background-color: #f5f9f8; border-right: 3px solid var(--teal); }
.check-mark { color: var(--green); font-weight: bold; }
.cross-mark { color: var(--red); font-weight: bold; }
.partial-mark { color: var(--yellow); font-weight: bold; }

/* ===== FORMATS GRID ===== */
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.format-card {
  background: white; border-radius: var(--radius); padding: 28px 24px;
  text-align: center; border: 1px solid var(--gray-border);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.format-card:hover { border-color: var(--teal); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.format-card .format-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px; background: var(--teal-light); color: var(--teal);
}
.format-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; font-family: 'Caveat', cursive; }
.format-card p { font-size: 13px; line-height: 1.6; }
.format-card .format-tag {
  display: inline-block; margin-top: 12px; padding: 4px 14px;
  border-radius: 50px; font-size: 11px; font-weight: 600;
  background: var(--teal-light); color: var(--teal);
}

/* ===== SANCTIONS GRID ===== */
.sanctions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.sanction-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border-left: 5px solid var(--red); box-shadow: var(--shadow);
}
.sanction-card .sanction-amount { font-family: 'Caveat', cursive; font-size: 32px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.sanction-card h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.sanction-card p { font-size: 13px; }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; margin: 28px 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; margin-bottom: 8px; background: white;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-border);
  font-size: 15px; transition: all 0.2s;
}
.checklist li:hover { border-color: var(--teal); background: var(--teal-light); }
.checklist .check-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; background: var(--teal); color: white;
}
.checklist li strong { color: var(--dark); }

/* ===== FEATURE LIST ===== */
.feature-list { margin: 28px 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--gray-border);
}
.feature-item:last-child { border-bottom: none; }
.feature-item .feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; background: var(--teal-light); color: var(--teal);
}
.feature-item h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.feature-item p { font-size: 14px; margin: 0; }
.feature-item .feature-label {
  min-width: 180px; flex-shrink: 0; font-weight: 700; font-size: 14px; color: var(--dark);
}
.feature-item .feature-einvoicing,
.feature-item .feature-ereporting { flex: 1; font-size: 14px; line-height: 1.6; }
.feature-item .feature-einvoicing { color: var(--teal); }
.feature-item .feature-ereporting { color: var(--gray-text); }
.feature-item .feature-einvoicing a,
.feature-item .feature-ereporting a { color: inherit; font-weight: 600; }
.compare-card .compare-subtitle { font-size: 13px; color: var(--gray-text); margin-bottom: 16px; font-style: italic; }

/* ===== HUB GRID ===== */
.hub-intro { padding: 60px 0; }
.hub-intro .container { max-width: 960px; }
.hub-intro-text { font-size: 15px; line-height: 1.8; }
.hub-intro-text p { margin-bottom: 16px; }
.hub-intro-text strong { color: var(--dark); }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 50px 0; }
.hub-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--gray-border);
  padding: 32px 28px; text-align: left; transition: all 0.3s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.hub-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.hub-card:nth-child(1)::before { background: var(--teal); }
.hub-card:nth-child(2)::before { background: var(--yellow); }
.hub-card:nth-child(3)::before { background: var(--green); }
.hub-card:nth-child(4)::before { background: var(--teal); }
.hub-card:nth-child(5)::before { background: var(--yellow); }
.hub-card:nth-child(6)::before { background: var(--green); }
.hub-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--teal); }
.hub-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px; flex-shrink: 0;
}
.hub-card:nth-child(1) .hub-card-icon, .hub-card:nth-child(4) .hub-card-icon { background: var(--teal-light); color: var(--teal); }
.hub-card:nth-child(2) .hub-card-icon, .hub-card:nth-child(5) .hub-card-icon { background: var(--yellow-light); color: var(--orange); }
.hub-card:nth-child(3) .hub-card-icon, .hub-card:nth-child(6) .hub-card-icon { background: #e8f5e9; color: var(--green); }
.hub-card h3 { font-family: 'Caveat', cursive; font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.3; }
.hub-card .card-desc { font-size: 14px; line-height: 1.6; color: var(--gray-text); margin-bottom: 20px; flex-grow: 1; }
.hub-card .card-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 600; font-size: 14px; text-decoration: none; transition: all 0.2s;
}
.hub-card .card-link:hover { gap: 12px; color: var(--teal-dark); }

/* ===== CTA SECTION (enrichie) ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 60px 0; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50px; right: -30px;
  width: 200px; height: 200px;
  border: 30px solid rgba(255,255,255,0.06); border-radius: 50%;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section a { color: rgba(255,255,255,0.85); }
.cta-section a:hover { color: white; }
.cta-section h2 { font-family: 'Caveat', cursive; font-size: 42px; margin-bottom: 12px; }
.cta-section p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== HORIZONTAL TIMELINE (calendrier) ===== */
.horizontal-timeline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 40px 0; position: relative; flex-wrap: wrap;
}
.horizontal-timeline::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 3px; background: linear-gradient(to right, var(--yellow), var(--orange), var(--red)); z-index: 0;
}
.timeline-milestone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative; z-index: 1; flex: 1; min-width: 120px; text-align: center;
}
.milestone-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: white; border: 4px solid var(--yellow); font-size: 18px;
  color: var(--orange); font-weight: 700;
  box-shadow: 0 0 0 3px white, 0 2px 12px rgba(0,0,0,0.1);
}
.timeline-milestone:nth-child(2) .milestone-dot { border-color: var(--orange); }
.timeline-milestone:nth-child(3) .milestone-dot { border-color: var(--red); }
.timeline-milestone .milestone-label {
  font-size: 13px; font-weight: 600; color: var(--dark);
  background: white; padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--gray-border);
}
.timeline-milestone .milestone-date { font-family: 'Caveat', cursive; font-size: 16px; font-weight: 700; color: var(--dark); }

/* Month table */
.month-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.month-table th { background: var(--dark); color: white; padding: 16px 18px; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.month-table td { padding: 18px; border-bottom: 1px solid var(--gray-border); }
.month-table tr:nth-child(even) td { background: var(--gray-light); }
.month-table tr:hover td { background: var(--teal-light); }
.month-badge { display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--teal-light); color: var(--teal); margin-bottom: 8px; }

/* ===== RESPONSIVE PAGES ENRICHIES ===== */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 34px; }
  .page-hero .subtitle { font-size: 16px; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .deco-lines { display: none; }
  .toc-grid { grid-template-columns: 1fr; }
  .toc-card { padding: 24px; }
  .section-heading h2 { font-size: 28px; }
  .kpi-banner { grid-template-columns: repeat(2, 1fr); }
  .objectives-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .sanctions-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .visual-timeline .timeline-track { left: 20px; }
  .visual-timeline .timeline-event { padding-left: 56px; }
  .visual-timeline .timeline-dot { left: 6px; }
  .horizontal-timeline::before { height: 2px; }
  .timeline-milestone { min-width: 90px; }
  .milestone-dot { width: 36px; height: 36px; font-size: 16px; }
  .feature-item { flex-direction: column; gap: 8px; }
  .feature-item .feature-label { min-width: auto; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .comparison-table td.col-criteria { width: auto; }
}

/* ===== CONTACT PAGE ===== */
.contact-page { padding: 100px 0 60px; }
.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-info {
  flex: 0 0 38%;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info h1 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}
.contact-info > p { font-size: 15px; line-height: 1.6; opacity: 0.85; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-detail-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-detail a { color: var(--teal-light); font-size: 13px; text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

.contact-form-wrapper {
  flex: 1;
  background: #fff;
  padding: 48px 40px;
}

.contact-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.contact-success h2 { color: var(--teal); margin: 0 0 12px; }
.contact-success p { color: var(--gray-text); font-size: 15px; max-width: 380px; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group .required { color: var(--red); }
.form-group .input,
.form-group select.input,
.form-group textarea.input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.form-group .input:focus,
.form-group select.input:focus,
.form-group textarea.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,158,150,0.1);
}
.form-group textarea.input { resize: vertical; min-height: 120px; }

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--teal);
}
.checkbox-label a { color: var(--teal); }

@media (max-width: 768px) {
  .contact-layout { flex-direction: column; }
  .contact-info { flex: none; padding: 36px 24px; }
  .contact-form-wrapper { padding: 32px 24px; }
  .form-row { flex-direction: column; gap: 0; }
  .contact-info h1 { font-size: 28px; }
}

/* ===== AUTH PAGES ===== */
.auth-page {
  padding: 120px 24px 60px;
  display: flex;
  justify-content: center;
  min-height: 70vh;
  align-items: flex-start;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  text-align: center;
}
.auth-subtitle {
  text-align: center;
  color: var(--gray-text);
  font-size: 15px;
  margin: 0 0 28px;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-text);
}
.auth-footer a { color: var(--teal); font-weight: 600; }
.auth-message {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.auth-message-success {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid rgba(26,158,150,0.2);
}
.label-hint {
  display: block;
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .auth-card h1 { font-size: 26px; }
}

/* ===== DASHBOARD CLIENT ===== */
.dashboard-page { padding: 100px 0 60px; }
.dashboard-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
}
.dash-header h1 {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}
.dash-meta { font-size: 14px; color: var(--gray-text); margin: 0; }
.dash-hint { font-size: 13px; color: var(--gray-text); margin: 4px 0 0; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gray-light);
  color: var(--gray-text);
}
.badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.badge-yellow { background: var(--yellow-light); color: #b8860b; }
.badge-red { background: #fde8ec; color: var(--red); }

.dash-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--yellow-light) 100%);
  border: 1px solid rgba(26,158,150,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 14px;
}

.dash-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}
.dash-section h2 {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--dark);
  margin: 0 0 16px;
}

.upload-zone {
  border: 2px dashed var(--gray-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--teal);
  background: var(--teal-light);
}
.upload-zone.upload-locked {
  border-color: var(--gray-border);
  background: var(--gray-light);
  cursor: default;
  opacity: 0.7;
}
.upload-content p { margin: 4px 0; color: var(--gray-text); }

.factures-list { margin-top: 20px; }
.facture-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-border);
}
.facture-card:last-child { border-bottom: none; }
.facture-info strong { display: block; font-size: 14px; color: var(--dark); }

.rapport-bloc {
  padding: 20px;
  border-left: 3px solid var(--teal);
  margin-bottom: 16px;
  background: var(--gray-light);
  border-radius: 0 10px 10px 0;
  position: relative;
}
.rapport-bloc h3 { margin: 0 0 8px; font-size: 16px; color: var(--dark); }
.rapport-bloc p { margin: 0; font-size: 14px; color: var(--gray-text); line-height: 1.6; }

.rapport-locked {
  border-left-color: var(--gray-border);
  overflow: hidden;
  min-height: 80px;
}
.rapport-locked h3 { filter: blur(0.8px); opacity: 0.8; }
.locked-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,248,250,0.85);
  z-index: 2;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  gap: 8px;
}
.locked-blur { filter: blur(4px); opacity: 0.3; }

@media (max-width: 768px) {
  .dash-header { flex-direction: column; }
  .dash-upgrade { flex-direction: column; text-align: center; }
  .dash-section { padding: 24px 20px; }
  .dash-header h1 { font-size: 26px; }
}
