/* ═══════════════════════════════════════════
   ALPHAURAS — CSS Global
   Couleurs : rouge #C0001D · gris foncé #2C3340 · gris #4A5568
               crème #F8F6F3 · blanc #FFFFFF
   Typo : DM Serif Display (titres) + DM Sans (corps)
   ═══════════════════════════════════════════ */

/* Fonts self-hosted (pas de requete Google - conformite nLPD) */
@import url('fonts-local.css');

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2C3340;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #C0001D; text-decoration: none; transition: color 0.2s; }
a:hover { color: #8b0015; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; color: #2C3340; line-height: 1.3; }
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════
   NAVIGATION + MEGA-MENU
   ═══════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #e8e8e8;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #2C3340;
}
.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: #C0001D;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'DM Sans', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: #4A5568;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #C0001D; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #C0001D;
  border-radius: 2px;
}

/* Mega-menu trigger */
.nav-mega-trigger {
  position: relative;
  cursor: pointer;
}
.nav-mega-trigger .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  transition: transform 0.3s;
}
.nav-mega-trigger:hover .arrow,
.nav-mega-trigger.open .arrow { transform: rotate(180deg); }

/* Mega-menu panel */
.mega-menu {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 3px solid #C0001D;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.mega-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mega-menu-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #C0001D;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}
.mega-menu-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #2C3340;
  transition: background 0.2s;
}
.mega-menu-col a:hover { background: #F8F6F3; color: #2C3340; }
.mega-menu-col a .icon {
  width: 36px;
  height: 36px;
  background: #F8F6F3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mega-menu-col a:hover .icon { background: #C0001D20; }
.mega-menu-col a .text strong { display: block; font-size: 0.9rem; font-weight: 600; }
.mega-menu-col a .text span { font-size: 0.8rem; color: #4A5568; line-height: 1.4; }

.nav-instagram {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #C0001D;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2C3340;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  padding: 24px;
  overflow-y: auto;
  z-index: 998;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: #2C3340;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid #F8F6F3;
}
.nav-mobile .mobile-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #C0001D;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   SECTIONS GLOBALES
   ═══════════════════════════════════════════ */

section { padding: 80px 0; }

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F8F6F3 0%, #FFFFFF 100%);
  padding-top: 72px;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: #C0001D12;
  color: #C0001D;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; color: #2C3340; }
.hero h1 span { color: #C0001D; }
.hero p { font-size: 1.15rem; color: #4A5568; margin-bottom: 32px; max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: #C0001D;
  color: #FFFFFF;
}
.btn-primary:hover { background: #a00018; color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(192,0,29,0.3); }
.btn-secondary {
  background: transparent;
  color: #C0001D;
  border: 2px solid #C0001D;
}
.btn-secondary:hover { background: #C0001D; color: #FFFFFF; }
.btn-ghost {
  background: transparent;
  color: #4A5568;
  padding: 14px 16px;
}
.btn-ghost:hover { color: #C0001D; }

/* Section headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: #4A5568; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #C0001D;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Cards ── */
.card {
  background: #FFFFFF;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
  transition: all 0.2s;
}
.card:hover { border-color: #C0001D30; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); }

.card-icon {
  width: 48px;
  height: 48px;
  background: #C0001D10;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 24px; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: #C0001D;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: #4A5568; }

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #F8F6F3;
  border-radius: 12px;
  padding: 32px;
}
.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: #4A5568;
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: #C0001D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: #4A5568; }

/* ── CTA Section ── */
.cta-section {
  background: #2C3340;
  color: #FFFFFF;
  text-align: center;
  border-radius: 16px;
  padding: 60px 40px;
  margin: 0 24px;
}
.cta-section h2 { color: #FFFFFF; margin-bottom: 16px; }
.cta-section p { color: #a0aec0; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.footer {
  background: #2C3340;
  color: #a0aec0;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { color: #FFFFFF; margin-bottom: 16px; }
.footer-brand .logo-mark { background: #C0001D; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: #a0aec0;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top: 1px solid #3d4556;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   RESSOURCES PAGE
   ═══════════════════════════════════════════ */

.resource-hero {
  background: linear-gradient(135deg, #F8F6F3 0%, #FFFFFF 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.guide-toc {
  background: #F8F6F3;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 60px;
}
.guide-toc h3 { margin-bottom: 16px; }
.guide-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.guide-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #2C3340;
  font-size: 0.95rem;
  font-weight: 500;
}
.guide-toc a:hover { background: #FFFFFF; color: #C0001D; }
.guide-toc .toc-number {
  width: 28px;
  height: 28px;
  background: #C0001D;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Guide section */
.guide-section {
  padding: 60px 0;
  border-bottom: 1px solid #e8e8e8;
}
.guide-section:last-child { border-bottom: none; }

.guide-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.guide-number {
  width: 48px;
  height: 48px;
  background: #C0001D;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.guide-meta { font-size: 0.85rem; color: #4A5568; margin-top: 4px; }

/* Guide content */
.guide-content { max-width: 800px; }
.guide-content h3 { margin: 32px 0 12px; color: #C0001D; font-size: 1.3rem; }
.guide-content h4 { margin: 24px 0 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.guide-content p { color: #4A5568; line-height: 1.8; }
.guide-content ul, .guide-content ol { padding-left: 24px; margin-bottom: 16px; }
.guide-content li { list-style: disc; color: #4A5568; margin-bottom: 8px; line-height: 1.7; }
.guide-content ol li { list-style: decimal; }

/* Key points box */
.key-points {
  background: #C0001D08;
  border-left: 4px solid #C0001D;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.key-points h4 {
  color: #C0001D;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.key-points ul { padding-left: 20px; }
.key-points li { color: #2C3340; font-weight: 500; }

/* Tables in guides */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.guide-table th {
  background: #2C3340;
  color: #FFFFFF;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  color: #4A5568;
}
.guide-table tr:hover td { background: #F8F6F3; }

/* Interactive tools */
.tool-container {
  background: #F8F6F3;
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}
.tool-container h3 {
  color: #2C3340;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2C3340;
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #2C3340;
  background: #FFFFFF;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #C0001D;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  background: #FFFFFF;
  border: 2px solid #C0001D;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
.result-box h4 {
  color: #C0001D;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: #4A5568; }
.result-row .value { font-weight: 700; color: #2C3340; }
.result-row.total {
  border-top: 2px solid #2C3340;
  border-bottom: none;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 1.1rem;
}
.result-row.total .value { color: #C0001D; }

/* Bar chart */
.bar-chart { margin-top: 20px; }
.bar-item { margin-bottom: 12px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.bar-track {
  height: 24px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease;
}

/* Guide CTA */
.guide-cta {
  background: #F8F6F3;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
  text-align: center;
}
.guide-cta p { color: #4A5568; font-size: 0.95rem; margin-bottom: 12px; }

/* ═══════════════════════════════════════════
   ASSOCIATION PAGE
   ═══════════════════════════════════════════ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  padding: 40px 24px;
  background: #F8F6F3;
  border-radius: 12px;
}
.team-avatar {
  width: 80px;
  height: 80px;
  background: #C0001D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card .role { color: #C0001D; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.team-card p { color: #4A5568; font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #2C3340;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.contact-form textarea { height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #C0001D; }

.faq-item { border-bottom: 1px solid #e8e8e8; padding: 16px 0; }
.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2C3340;
}
.faq-question:hover { color: #C0001D; }
.faq-answer {
  color: #4A5568;
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-top: 12px; }

/* ═══════════════════════════════════════════
   SLIDER / RANGE
   ═══════════════════════════════════════════ */

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: #C0001D;
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #C0001D;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ── Tablet: max-width 968px ── */
@media (max-width: 968px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  /* Navigation — hamburger replaces links */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mega-menu { display: none !important; }

  /* Grid layouts — stack or reduce columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .guide-toc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Inline 3-column grids (cards, approach) → 1 column */
  .responsive-grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Inline 2-column grids (bank vs insurance, analysis form) → 1 column */
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Hero — stack text and image vertically */
  .hero-flex {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .hero-content {
    max-width: 100% !important;
  }
  .hero-image-wrap {
    display: none !important;
  }

  /* Download banners — stack vertically */
  .download-banner {
    flex-direction: column !important;
    text-align: center;
  }

  /* Image banner — shorter on tablet */
  .image-banner {
    height: 200px;
  }

  /* Buttons — touch-friendly minimum height */
  .btn {
    min-height: 44px;
    padding: 14px 24px;
  }

  /* Mobile nav — proper touch targets */
  .nav-mobile a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 14px 0;
  }

  /* Guide header — stack number + title */
  .guide-header {
    flex-direction: column;
    gap: 12px;
  }

  /* Resource hero — reduce height */
  .resource-hero {
    min-height: 35vh !important;
    padding: 120px 0 48px !important;
  }

  /* Tables — horizontal scroll for wide tables */
  .guide-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Mobile: max-width 600px ── */
@media (max-width: 600px) {
  /* Typography — readable on small screens */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
  body { font-size: 1rem; line-height: 1.7; }

  /* Prevent horizontal overflow globally */
  html, body {
    overflow-x: hidden;
  }

  /* Sections — less vertical padding */
  section { padding: 48px 0; }

  /* Containers — tighter horizontal padding */
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }

  /* Hero — auto height, compact */
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 48px;
  }
  .hero p { font-size: 1rem; }
  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  /* Stats — 2x2 grid, smaller numbers */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px 8px; }
  .stat-number { font-size: 2rem; }

  /* CTA — full-width, no border-radius */
  .cta-section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 40px 20px !important;
  }
  .cta-section h2 {
    font-size: 1.5rem;
  }

  /* Footer — single column */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-col a {
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Cards — compact padding */
  .card { padding: 20px; }

  /* Tool containers — compact */
  .tool-container { padding: 20px; }

  /* Buttons in guides/tools — full width for easy tapping */
  .guide-content .btn,
  .tool-container .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Contact form button — full width */
  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* Form inputs — 16px font prevents iOS zoom, 44px min-height for touch */
  .form-group input,
  .form-group select,
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 14px 16px;
    min-height: 44px;
  }

  /* Analysis form — 1 column */
  #formAnalyse {
    grid-template-columns: 1fr !important;
  }
  #formAnalyse input {
    width: 100%;
  }

  /* Tables — smaller font, tighter cells */
  .guide-table {
    font-size: 0.82rem;
  }
  .guide-table th,
  .guide-table td {
    padding: 10px 12px;
  }

  /* Result rows */
  .result-row {
    font-size: 0.85rem;
  }

  /* Key points — compact */
  .key-points {
    padding: 16px;
  }

  /* Image banner — compact */
  .image-banner {
    height: 160px;
  }

  /* Resource hero — shortest on phones */
  .resource-hero {
    min-height: auto !important;
    padding: 100px 0 36px !important;
  }

  /* Guide sections — less padding */
  .guide-section {
    padding: 40px 0;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 32px;
  }
  .section-header p {
    font-size: 0.95rem;
  }

  /* Testimonials — compact */
  .testimonial {
    padding: 24px;
  }
  .testimonial-text {
    font-size: 0.95rem;
  }

  /* Guide TOC — compact */
  .guide-toc {
    padding: 20px;
  }
  .guide-toc a {
    font-size: 0.9rem;
    padding: 10px;
  }

  /* FAQ — touch-friendly */
  .faq-question {
    min-height: 44px;
    padding: 4px 0;
  }
}

/* ═══════════════════════════════════════════
   CV TEMPLATE (print)
   ═══════════════════════════════════════════ */

.cv-template { max-width: 700px; margin: 0 auto; }
@media print {
  .cv-template { padding: 0; }
  .no-print { display: none !important; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   HERO IMAGE
   ═══════════════════════════════════════════ */

@media (min-width: 969px) {
  .hero-image-wrap { display: block !important; }
}

/* ── Image banner section ── */
.image-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ── Section with background image ── */
.section-bg-image {
  background-size: cover;
  background-position: center;
  position: relative;
}
.section-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 51, 64, 0.75);
}
.section-bg-image > * { position: relative; z-index: 1; }
