/* =========================================================
   En-tête sombre + hero de la page d'accueil (préfixe eh-).
   Chargé uniquement par index.php, après styles.css et accueil.css.
   ========================================================= */

.eh-header, .eh {
  --eh-bg: #1c1f23;
  --eh-surface: #262a2f;
  --eh-line: rgba(245, 246, 242, .12);
  --eh-text: #f5f6f2;
  --eh-muted: rgba(245, 246, 242, .74);
  --eh-faint: rgba(245, 246, 242, .55);
  --eh-accent: #f07350;      /* cuivre éclairci pour fond sombre */
  --eh-accent-ink: #b4462a;  /* cuivre lisible sur fond clair */
  --eh-paper: #f3f2ee;
  --eh-ink: #131518;
  --eh-max: var(--max, 1240px); /* même largeur que .container sur les autres pages */
}

.eh-wrap { width: min(calc(100% - 48px), var(--eh-max)); margin-inline: auto; }

/* ---------- En-tête ---------- */
.eh-header { position: relative; z-index: 50; background: var(--eh-bg); color: var(--eh-text); box-shadow: 0 1px 0 var(--eh-bg); }
/* Même hauteur que l'en-tête clair des autres pages (86 px + filet de 1 px). */
.eh-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.eh-header { border-bottom: 1px solid var(--eh-bg); }
/* Le logo garde exactement la taille définie par .brand dans styles.css ; seule la couleur change. */
.eh-header .brand { color: var(--eh-text); }
.eh-nav { display: flex; align-items: center; gap: 32px; }
.eh-nav a { padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--eh-muted); border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
.eh-nav a:hover { color: var(--eh-text); border-color: var(--eh-accent); }
/* Boutons : mêmes proportions que .btn (styles.css), angles nets.
   « Me contacter » = bouton secondaire (contour), comme dans l'en-tête clair. */
.eh-header__cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border: 1px solid rgba(245, 246, 242, .5); border-radius: var(--radius, 4px); background: transparent; color: var(--eh-text);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; transition: background .2s, color .2s, transform .2s;
}
.eh-header__cta:hover { background: var(--eh-text); color: var(--eh-ink); transform: translateY(-2px); }
.eh-nav__cta { display: none; }
.eh-nav .eh-nav__cta { color: var(--eh-text); border-bottom: 1px solid rgba(245, 246, 242, .5); }
.eh-nav .eh-nav__cta:hover { color: var(--eh-ink); border-color: var(--eh-text); }

.eh-burger {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--eh-text);
}
.eh-burger span { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .2s; }
.eh-header.menu-open .eh-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.eh-header.menu-open .eh-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.eh-header a:focus-visible, .eh-header button:focus-visible, .eh a:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 4px; }

/* ---------- Hero ---------- */
.eh { background: var(--eh-bg); color: var(--eh-text); padding: 48px 0 56px; overflow: hidden; }
.eh-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: end; }

.eh-eyebrow { margin: 0 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eh-accent); }
.eh-title {
  margin: 0 0 28px; font-size: clamp(42px, 6vw, 86px); font-weight: 700;
  line-height: .98; letter-spacing: -.05em; color: var(--eh-text);
}
.eh-title span { display: block; color: var(--eh-accent); }
.eh-lead { max-width: 600px; margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--eh-muted); }

.eh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.eh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius, 4px); background: var(--eh-accent); color: var(--eh-ink);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; transition: background .2s, transform .2s;
}
.eh-btn:hover { background: var(--eh-text); transform: translateY(-2px); }
.eh-link { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 700; color: var(--eh-text); }
.eh-link:hover { color: var(--eh-accent); }

/* Comparatif « Sans cap / Avec un cap » */
.eh-compare { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--eh-line); border-radius: var(--radius, 4px); }
.eh-compare__col { padding: 26px 24px 24px; }
.eh-compare__col--without { background: var(--eh-surface); }
.eh-compare__col--with { background: var(--eh-paper); color: var(--eh-ink); }
.eh-compare__label { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--eh-faint); }
.eh-compare__col--with .eh-compare__label { color: var(--eh-accent-ink); }
.eh-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.eh-compare li { font-size: 15px; line-height: 1.45; }
.eh-compare__col--without li { color: var(--eh-faint); }
.eh-compare__col--without s { text-decoration-thickness: 1px; }
.eh-compare__col--with li { font-weight: 600; }

/* Bandeau des trois leviers */
.eh-levers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--eh-line); }
.eh-lever__num { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--eh-accent); }
.eh-lever__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.eh-lever__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--eh-faint); }
.eh-stat__value { margin: 0 0 6px; font-size: clamp(28px, 2.6vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.eh-stat__text { margin: 0; font-size: 14px; color: var(--eh-faint); }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .eh-nav { gap: 22px; }
  .eh-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .eh-compare { max-width: 560px; }
  .eh-levers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Menu burger sous 900 px ---------- */
@media (max-width: 900px) {
  .eh-burger { display: block; }
  .eh-header__cta--bar { display: none; }
  .eh-nav { display: none; }
  .eh-header.menu-open .eh-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; gap: 4px; padding: 12px 24px 28px;
    background: var(--eh-bg); border-top: 1px solid var(--eh-line); border-bottom: 1px solid var(--eh-line);
  }
  .eh-header.menu-open .eh-nav a { padding: 12px 0; font-size: 17px; }
  .eh-header.menu-open .eh-nav .eh-nav__cta { display: inline-flex; justify-self: start; margin-top: 12px; padding: 0 22px; font-size: 15px; border: 1px solid rgba(245, 246, 242, .5); }
}

/* Marges et hauteur d'en-tête alignées sur les autres pages (styles.css, 760 px). */
@media (max-width: 760px) {
  .eh-wrap { width: min(calc(100% - 32px), var(--eh-max)); }
  .eh-header__bar { min-height: 71px; }
  .eh-header.menu-open .eh-nav { padding-inline: 16px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .eh { padding: 32px 0 44px; }
  .eh-title { font-size: clamp(38px, 11vw, 48px); }
  .eh-actions { flex-direction: column; align-items: stretch; }
  .eh-btn { justify-content: center; }
  .eh-link { align-self: flex-start; }
  .eh-compare { grid-template-columns: 1fr; }
  .eh-levers { grid-template-columns: 1fr; gap: 24px; margin-top: 44px; }
}

/* Le contenu principal reçoit le focus via le lien d'évitement, sans cadre visible. */
.home-page main:focus { outline: none; }
