/*
 * Composants partagés de la refonte, communs à tous les gabarits :
 * nav (+ menu burger), page-header (titre + description + photo),
 * témoignages, La Maison des Kombatives, CTA adhésion.
 * Chargé avant le CSS propre à chaque page.
 */

/* ── NAV ── */
nav {
  position: relative;
  height: var(--nav-h);
  background: var(--cream);
  border-bottom: none;
  z-index: 100;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; gap: clamp(16px, 3vw, 32px); list-style: none; }
.nav-cta-mobile { display: none; }
.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--coral); }
.nav-links a.active {
  color: var(--coral);
  font-weight: 500;
  background-image: url('../img/nav-active-underline.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 88px 10px;
  padding-bottom: 12px;
}
.btn-nav {
  background: var(--coral);
  color: var(--white) !important;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-nav:hover { background: #e06f6d !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 112px 64px;
  position: relative;
  overflow: hidden;
}
.hero-blob { position: absolute; pointer-events: none; opacity: 0.9; }
.hero-blob img { display: block; width: 100%; height: auto; }
.hero-blob-1 { width: 460px; top: -40px; right: -80px; transform: rotate(20deg); }
.hero-blob-2 { width: 380px; bottom: -30px; left: -130px; transform: rotate(-25deg) scaleY(-1); }

.page-header-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.page-header-title {
  font-family: var(--font-body);
  font-size: 60px;
  line-height: 1.1;
  font-weight: 600;
  color: #000;
  position: relative;
}
.page-header-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--coral);
}
.hero-squiggle {
  display: inline-block;
  width: 28px;
  height: auto;
  margin-left: -8px;
  vertical-align: top;
  position: relative;
  top: -30px;
  z-index: 1;
}
.page-header-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 480px;
}
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #e06f6d; transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--coral);
  color: var(--coral);
  padding: 10.5px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-outline:hover { background: var(--coral-light); transform: translateY(-2px); }

.hero-frame {
  flex-shrink: 0;
  width: 380px;
  height: 470px;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.hero-frame-sketch {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 410px;
  height: 500px;
  z-index: 0;
  pointer-events: none;
}
.hero-frame img:not(.hero-frame-sketch) {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── TÉMOIGNAGES ── */
.temoignages-section { background: var(--white); }
.temoignages-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.temoignages-heading { flex: 0 0 340px; }
.temoignages-heading .section-title { font-size: 44px; }
.temoignages-stack {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.temo-card {
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.temo-rot-neg { transform: rotate(-1.5deg); }
.temo-rot-pos { transform: rotate(1.5deg); }
.temo-coral { background: var(--coral); color: var(--white); }
.temo-cream { background: var(--cream); color: #000; }
.temo-quote { font-size: 18px; line-height: 1.5; }
.temo-author { display: flex; flex-direction: column; }
.temo-author strong { font-size: 16px; font-weight: 600; }
.temo-author span { font-size: 16px; }

/* ── MAISON DES KOMBATIVES ── */
.maison-section { background: var(--sage); }
.maison-grid {
  display: flex;
  align-items: center;
  gap: 80px;
}
.maison-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.maison-content .section-eyebrow,
.maison-content .section-title,
.maison-content .section-sub { margin-bottom: 0; }
.maison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.maison-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--cream);
  font-size: 16px;
}
.maison-list img { width: 22px; height: auto; flex-shrink: 0; }
.btn-cream {
  background: var(--cream);
  color: var(--sage);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s;
}
.btn-cream:hover { transform: translateY(-2px); }
.maison-video {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  aspect-ratio: 600/640;
}
.maison-video-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.maison-video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.maison-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  cursor: pointer;
}

/* ── CTA ADHÉSION ── */
.cta-adhesion { background: var(--white); }
.cta-inner {
  max-width: 750px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  text-align: left;
}
.cta-header { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-header .section-eyebrow,
.cta-header .section-title,
.cta-header .section-sub { margin-bottom: 0; }
.cta-header .section-sub { max-width: 100%; }

.cta-timeline { width: 100%; display: flex; flex-direction: column; }
.cta-step { display: flex; gap: 24px; position: relative; }
.cta-step:not(.cta-step-last)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 20px;
  bottom: -20px;
  width: 3px;
  background: var(--brown);
}
.cta-step:first-child::after {
  content: '';
  position: absolute;
  left: 15px;
  top: -24px;
  height: 44px;
  width: 3px;
  background: var(--brown);
}
.cta-step-last::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 20px;
  bottom: -28px;
  width: 3px;
  background: var(--brown);
}
.cta-dot {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  justify-content: center;
  padding-top: 26px;
}
.cta-dot img { width: 15px; height: 15px; }
.cta-step-content { flex: 1 1 0; min-width: 0; padding: 24px 0; display: flex; flex-direction: column; gap: 16px; color: var(--brown); }
.cta-step-num { font-size: 32px; font-weight: 600; }
.cta-step-content h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
.cta-step-content p { font-size: 16px; line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-header { padding: 64px 40px; gap: 48px; }
  .page-header-title { font-size: 44px; }
  .hero-frame { width: 300px; height: 380px; }
  .hero-frame-sketch { top: -12px; left: -12px; width: 324px; height: 404px; }
  .temoignages-layout { flex-direction: column; gap: 40px; }
  .temoignages-heading { flex: none; }
  .maison-grid { gap: 40px; }
  .hero-squiggle {
    margin-left: 0px;
    top: 0px;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-inner { padding: 0 20px; }
  .nav-logo img { height: 44px; }
  body.nav-open { overflow: hidden; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: none;
    box-shadow: none;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 18px 24px;
    font-size: 18px;
  }
  .nav-links a.active { background-position: left 24px bottom; }
  .nav-links li:last-child a {
    margin: 16px 24px 0;
    text-align: center;
    border-radius: 24px;
  }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-hamburger { display: flex; margin-left: auto; }

  .page-header { flex-direction: column; padding: 40px 20px 36px; gap: 32px; }
  .hero-blob { display: none; }
  .page-header-title { font-size: 38px; }
  .page-header-desc { font-size: 15px; max-width: 100%; }
  .page-header-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .page-header-actions a { width: 100%; text-align: center; }
  .hero-frame { width: 100%; height: 320px; }
  .hero-frame-sketch { top: -10px; left: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }

  .temoignages-layout { flex-direction: column; gap: 40px; }

  .maison-grid { flex-direction: column; gap: 32px; }
  .maison-video { width: 100%; aspect-ratio: 1/1; min-height: 280px; }
  .maison-content .btn-cream { display: block; width: 100%; text-align: center; }

  .cta-inner { gap: 48px; }
  .cta-step-content h3 { font-size: 19px; }
}

@media (max-width: 400px) {
  .page-header-title { font-size: 38px; }
  .temo-quote { font-size: 16px; }
}
