/* =====================================================================
   FIBRE EHYUA — Styles page d'accueil
   ===================================================================== */

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 9px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green-500);
  display: flex; align-items: center; justify-content: center; color: #06371F; font-size: 19px;
}
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #fff; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: #8FB0DD; border-left: 1px solid rgba(255,255,255,0.25); padding-left: 9px; }

.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop a { font-size: 15px; color: #cdddf0; transition: color .2s; }
.nav-desktop a:hover { color: #fff; }
.nav-cta { background: var(--green-500); color: #06371F !important; padding: 9px 18px; border-radius: var(--r-pill); font-weight: 500; }
.nav-cta:hover { background: var(--green-400); }

.burger { background: none; border: none; color: #cdddf0; font-size: 26px; cursor: pointer; display: flex; }

/* Menu mobile déroulant */
.nav-mobile {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; padding: 12px 20px 22px;
  transform: translateY(-120%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a { color: #cdddf0; font-size: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.18), transparent 70%);
  pointer-events: none;
}
/* Mobile d'abord : hero centré avec des respirations confortables.
   La disposition alignée à gauche est restaurée à partir de 720px. */
.hero-inner { position: relative; z-index: 1; padding: 34px 20px 44px; text-align: center; }
.hero h1 {
  color: #fff; font-size: clamp(28px, 7vw, 50px); line-height: 1.12;
  margin: 16px auto 14px; max-width: 16ch;
}
.hero h1 .accent { color: var(--green-400); }
.hero p.lead { font-size: clamp(15px, 2.2vw, 19px); color: #b9cce4; max-width: 52ch; margin: 0 auto 26px; }

.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
/* Illustration du hero : sous le texte en mobile, à droite en desktop. */
.hero-illustration { margin: 26px auto 0; max-width: 340px; }
.hero-illustration img { width: 100%; height: auto; display: block; }


/* ---------- Bandeau stats ---------- */
.stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 34px auto 0; max-width: 560px; }
.stat { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); padding: 16px; }
.stat .num { font-family: var(--font-display); font-size: clamp(18px, 4.6vw, 26px); font-weight: 600; color: var(--green-400); white-space: nowrap; }
.stat .lbl { font-size: 12.5px; color: #b9cce4; line-height: 1.3; margin-top: 2px; }

/* ---------- Sections claires ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(23px, 4vw, 32px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* Opérateurs */
.operators { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 480px; margin: 0 auto; }
.operator {
  min-height: 88px; border-radius: var(--r-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; padding: 12px 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; border: 1px solid var(--line);
  text-align: center; box-sizing: border-box;
}
/* Logo de l'opérateur : affiché au-dessus du nom quand il est renseigné.
   Sans logo, la carte garde exactement son rendu d'origine (nom + couleur). */
.operator-logo {
  max-height: 38px; max-width: 78%; width: auto; height: auto;
  object-fit: contain; display: block;
}
.operator span { font-size: 15px; line-height: 1.25; }
.operator.mtn { background: var(--amber-bg); color: var(--amber-tx); }
.operator.orange { background: #F1EFE8; color: #444441; }

/* Étapes */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 760px; margin: 0 auto; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--navy-050); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; flex-shrink: 0;
}
.step h3 { font-size: 17px; margin-bottom: 3px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* Bandeau CTA final */
.cta-band { background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: 40px 28px; text-align: center; max-width: var(--maxw); }
.cta-band h2 { color: #fff; font-size: clamp(22px, 4vw, 30px); margin-bottom: 12px; }
.cta-band p { color: #b9cce4; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #8FB0DD; padding: 44px 0 28px; margin-top: 56px; text-align: center; }
.site-footer .brand { justify-content: center; }
.footer-col p { margin-left: auto; margin-right: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #8FB0DD; font-size: 14px; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; text-align: center; color: #6b82a3; }

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .hero-inner { padding: 56px 0 64px; text-align: left; }
  .hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
  .hero-illustration { margin: 0; max-width: 100%; }
  .hero h1 { margin-left: 0; }
  .hero p.lead { margin-left: 0; }
  .hero-actions { flex-direction: row; margin: 0; }
  .hero-actions .btn { flex: 1; }
  .stats { margin-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { text-align: left; }
  .site-footer .brand { justify-content: flex-start; }
  .footer-col p { margin-left: 0; margin-right: 0; }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .burger { display: none; }
}
