/* ==========================================================================
   SOL-EX — style.css
   Palette : bleu nuit profond / cyan signal / blanc / ambre (statuts)
   Typo : Space Grotesk (titres) · Inter (texte) · JetBrains Mono (données)
   ========================================================================== */

:root {
  --navy-950: #060b14;
  --navy-900: #0b1526;
  --navy-800: #10203a;
  --navy-700: #17304f;
  --line: rgba(148, 178, 214, 0.16);
  --cyan-300: #7fe6f7;
  --cyan-400: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.35);
  --white: #f4f7fb;
  --slate-300: #b7c6dd;
  --slate-400: #8ca0be;
  --slate-500: #6a7f9e;
  --amber-500: #ff9f43;
  --success-500: #34d399;
  --danger-500: #f87171;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 8px 2px var(--cyan-glow);
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 12px;
}
.section-head p {
  color: var(--slate-300);
  margin-top: 14px;
  font-size: 17px;
}

.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-500);
  background: rgba(255, 159, 67, 0.1);
  border: 1px solid rgba(255, 159, 67, 0.3);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
}
.badge-demo::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan-400);
  color: var(--navy-950);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px 3px var(--cyan-glow);
}
.logo span.ex { color: var(--cyan-400); }

.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 14.5px;
  color: var(--slate-300);
  transition: color 0.2s var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  color: var(--slate-300);
  background: transparent;
}
.lang-current:hover { border-color: var(--cyan-400); color: var(--white); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  min-width: 150px;
  padding: 6px;
  display: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.lang-menu.is-open { display: block; }
.lang-option {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--slate-300);
}
.lang-option:hover { background: var(--navy-700); color: var(--white); }
.lang-option.is-active { color: var(--cyan-300); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan-400);
  color: var(--navy-950);
  box-shadow: 0 0 0 0 var(--cyan-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px var(--cyan-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-300); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  width: 42px;
  height: 42px;
  color: var(--white);
}

/* ==========================================================================
   Hero + Globe
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 900px 500px at 78% 12%, rgba(34,211,238,0.14), transparent 60%),
    var(--navy-950);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  margin-top: 14px;
}
.hero-copy p {
  color: var(--slate-300);
  font-size: 18px;
  max-width: 460px;
  margin-top: 18px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-globe-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#globe-canvas {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 5 / 3.6;
  cursor: grab;
}
.globe-demo-note {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}
.globe-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 13px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--slate-300);
  min-width: 190px;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.globe-tooltip.is-visible { opacity: 1; }
.globe-tooltip strong { color: var(--white); font-family: var(--font-display); }
.globe-tooltip .row { display: flex; justify-content: space-between; gap: 14px; margin-top: 3px; }
.globe-tooltip .status-active { color: var(--cyan-300); }
.globe-tooltip .status-done { color: var(--success-500); }
.globe-tooltip .status-pending { color: var(--amber-500); }

/* ==========================================================================
   Tracking block
   ========================================================================== */
.tracking-section { padding-top: 72px; }
.tracking-card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
}
.tracking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.tracking-card-head h2 { font-size: 22px; }
.tracking-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tracking-form input {
  flex: 1;
  min-width: 220px;
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14.5px;
}
.tracking-form input:focus { border-color: var(--cyan-400); }
.tracking-hint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate-500);
  margin-top: 10px;
}
.tracking-error {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: var(--radius-s);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  font-size: 14px;
  display: none;
}
.tracking-error.is-visible { display: block; }

.tracking-result { margin-top: 28px; display: none; }
.tracking-result.is-visible { display: block; }
.tracking-result-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.tracking-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  font-size: 13.5px;
}
.tracking-meta div span { display: block; color: var(--slate-500); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tracking-meta div strong { font-family: var(--font-mono); font-weight: 600; }

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 12px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.timeline-step {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--slate-500);
}
.timeline-step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 2px solid var(--line);
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
}
.timeline-step.is-done .dot { border-color: var(--cyan-400); background: var(--cyan-400); }
.timeline-step.is-current .dot {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 5px var(--cyan-glow);
}
.timeline-step.is-done, .timeline-step.is-current { color: var(--white); }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-card:hover { border-color: var(--cyan-400); transform: translateY(-3px); }
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-300);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.service-card p { color: var(--slate-400); font-size: 14.5px; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.stat-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--cyan-300);
}
.stat-label { color: var(--slate-400); font-size: 13.5px; margin-top: 6px; }
.stat-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 10px;
  color: var(--slate-500);
}
.stat-trend.is-up { color: var(--success-500); }
.stat-trend.is-down { color: var(--danger-500); }
.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
  margin-top: 14px;
}
.stat-bars span {
  flex: 1;
  background: rgba(34,211,238,0.28);
  border-radius: 2px 2px 0 0;
}
.stat-bars span:last-child { background: var(--cyan-400); }

/* ==========================================================================
   Discover
   ========================================================================== */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.discover-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
}
.discover-card:hover { border-color: var(--cyan-400); transform: translateY(-3px); }
.discover-card:focus-visible { border-color: var(--cyan-400); }
.discover-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  position: relative;
  overflow: hidden;
}
.discover-thumb svg { width: 100%; height: 100%; opacity: 0.9; }
.discover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.discover-body { padding: 20px; }
.discover-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-300);
}
.discover-card h3 { font-size: 16.5px; margin: 10px 0 8px; }
.discover-card p { color: var(--slate-400); font-size: 14px; margin-bottom: 14px; }
.discover-card .readmore { font-size: 13.5px; color: var(--white); display: inline-flex; gap: 6px; align-items: center; }

/* ==========================================================================
   Modale Découverte
   ========================================================================== */
.discover-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(6px);
  padding: 32px 20px;
  overflow-y: auto;
}
.discover-modal.is-open { display: flex; align-items: flex-start; justify-content: center; }
.discover-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.discover-modal-thumb { height: 260px; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); }
.discover-modal-thumb svg { width: 100%; height: 100%; }
.discover-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.discover-modal-content { padding: 32px 36px 40px; }
.discover-modal-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 12px 0 20px;
}
.discover-modal-body p {
  color: var(--slate-300);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.discover-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6,11,20,0.6);
  color: var(--white);
  font-size: 16px;
  z-index: 2;
}
.discover-modal-close:hover { border-color: var(--cyan-400); color: var(--cyan-300); }

@media (max-width: 600px) {
  .discover-modal-content { padding: 26px 22px 32px; }
  .discover-modal-thumb { height: 180px; }
}

/* ==========================================================================
   About / Contact
   ========================================================================== */
.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about-block p { color: var(--slate-300); font-size: 16px; margin-top: 16px; max-width: 440px; }
.contact-form { display: grid; gap: 14px; margin-top: 20px; }
.contact-form label { font-size: 13px; color: var(--slate-400); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan-400); }
.contact-success {
  display: none;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 14.5px;
  align-items: center;
  gap: 10px;
}
.contact-success::before { content: "✓"; font-weight: 700; }
.contact-success.is-visible { display: flex; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 64px 0 30px;
  background: var(--navy-900);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--slate-400); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--slate-300); font-size: 14px; }
.footer-col a:hover { color: var(--cyan-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 13px;
  color: var(--slate-500);
}
.footer-bottom .credit { color: var(--cyan-300); font-weight: 600; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--slate-500); }
.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-globe-wrap { order: -1; }
  .about-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .section { padding: 64px 0; }
  .tracking-meta { grid-template-columns: repeat(2, 1fr); }
  .timeline { flex-wrap: wrap; gap: 16px 0; }
  .timeline::before { display: none; }
  .timeline-step { flex-basis: 33%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--navy-950);
  z-index: 90;
  padding: 30px 24px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 24px; width: 100%; }


/* ========================================================================
   SOL-EX — Responsive precision patch
   Objectif : aucune coupure du logo, aucun débordement du header/menu,
   et une adaptation progressive sur petits écrans + paysage.
   ======================================================================== */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

.site-header .container {
  min-width: 0;
  gap: 12px;
}

.logo {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1;
}
.logo .ex { white-space: nowrap; }

.main-nav {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.header-actions {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.header-actions > .btn {
  flex: 0 0 auto;
}

.nav-toggle {
  flex: 0 0 42px;
  padding: 0;
}

/* The mobile drawer must never be wider than the viewport. */
.mobile-nav {
  width: 100%;
  max-width: 100vw;
  right: 0;
  left: 0;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Lock the document while the drawer is open. */
html.solex-menu-open,
body.solex-menu-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

@media (max-width: 980px) {
  .main-nav { gap: 18px; }
  .header-actions { gap: 10px; }
}

@media (max-width: 760px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-header .container {
    height: 64px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;
  }

  body { padding-top: 64px; }
  html { scroll-padding-top: 64px; }

  .logo {
    font-size: clamp(17px, 4.8vw, 21px);
    gap: 7px;
  }
  .logo .dot { width: 8px; height: 8px; }

  .header-actions { gap: 7px; }

  .lang-current {
    padding: 7px 8px;
    gap: 4px;
    font-size: 12px;
  }

  /* Keep the feature, but make the header CTA compact on phones. */
  .header-actions > .btn {
    padding: 9px 12px;
    font-size: clamp(11px, 2.9vw, 13px);
    min-height: 38px;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 18px;
  }

  .mobile-nav {
    top: 64px;
    bottom: 0;
    height: auto;
    max-height: calc(100dvh - 64px);
    padding: 24px 18px 32px;
    touch-action: pan-y;
  }

  .mobile-nav a {
    font-size: clamp(17px, 5vw, 20px);
    padding: 14px 0;
  }

  .mobile-nav .btn {
    max-width: none;
    width: 100%;
  }
}

/* Very narrow phones: preserve SOL-EX in one line at all costs. */
@media (max-width: 380px) {
  .site-header .container {
    padding-left: 11px;
    padding-right: 11px;
    gap: 5px;
  }

  .logo {
    font-size: 17px;
    gap: 6px;
  }
  .logo .dot { width: 7px; height: 7px; }

  .header-actions { gap: 5px; }
  .lang-current { padding: 6px 6px; font-size: 11px; }

  .header-actions > .btn {
    padding: 8px 9px;
    font-size: 11px;
    max-width: 96px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 17px;
  }
}

@media (max-width: 330px) {
  .site-header .container {
    padding-left: 8px;
    padding-right: 8px;
    gap: 4px;
  }

  .logo { font-size: 16px; gap: 5px; }
  .logo .dot { width: 6px; height: 6px; }
  .header-actions { gap: 4px; }
  .lang-current { padding: 5px 5px; font-size: 10.5px; }
  .header-actions > .btn { max-width: 86px; padding: 7px 7px; font-size: 10.5px; }
  .nav-toggle { width: 36px; height: 36px; flex-basis: 36px; }
}

/* Landscape phones have little vertical space: keep the header compact. */
@media (max-width: 900px) and (orientation: landscape) {
  .site-header .container { height: 56px; }
  body { padding-top: 56px; }
  html { scroll-padding-top: 56px; }
  .mobile-nav {
    top: 56px;
    max-height: calc(100dvh - 56px);
    padding-top: 16px;
  }
  .mobile-nav a { padding: 10px 0; font-size: 17px; }
  .hero { padding-top: 48px; }
}

/* Header switches to the compact navigation before the layout gets crowded. */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 920px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  .site-header .container { height: 64px; }
  body { padding-top: 64px; }
  html { scroll-padding-top: 64px; }
  .mobile-nav {
    top: 64px;
    max-height: calc(100dvh - 64px);
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .site-header .container { height: 56px; }
  body { padding-top: 56px; }
  html { scroll-padding-top: 56px; }
  .mobile-nav {
    top: 56px;
    max-height: calc(100dvh - 56px);
  }
}

/* ========================================================================
   SOL-EX — Final landscape header hardening
   The header must remain visible while scrolling on landscape phones/tablets.
   ======================================================================== */
@media (max-width: 1100px) and (orientation: landscape) and (max-height: 700px) {
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }

  .site-header .container {
    height: 56px !important;
    min-height: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body {
    padding-top: 56px !important;
  }

  html {
    scroll-padding-top: 56px;
  }

  /* At landscape phone widths, use the compact navigation before the
     desktop navigation can squeeze the logo and actions. */
  .main-nav {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .logo {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: clamp(16px, 2.8vw, 21px);
  }

  .header-actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 7px;
  }

  .header-actions > .btn {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 118px;
    padding: 8px 11px;
    font-size: clamp(10px, 1.8vw, 13px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-current {
    flex: 0 0 auto;
    padding: 7px 8px;
    font-size: 11px;
  }

  .mobile-nav {
    top: 56px !important;
    bottom: 0 !important;
    max-height: calc(100dvh - 56px) !important;
    height: auto !important;
  }
}

/* Extra-tight landscape widths: preserve the complete SOL-EX wordmark. */
@media (max-width: 600px) and (orientation: landscape) and (max-height: 600px) {
  .site-header .container {
    padding-left: 10px;
    padding-right: 10px;
    gap: 5px;
  }

  .logo {
    font-size: 16px;
    gap: 6px;
  }

  .logo .dot {
    width: 7px;
    height: 7px;
  }

  .header-actions {
    gap: 4px;
  }

  .lang-current {
    padding: 6px;
    font-size: 10px;
  }

  .header-actions > .btn {
    max-width: 96px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}


/* ========================================================================
   SOL-EX — Universal fixed header
   Le header doit rester visible pendant le défilement sur TOUS les appareils,
   y compris desktop, grands écrans, laptops, tablettes et mobiles.
   ======================================================================== */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

body {
  padding-top: 76px;
}

html {
  scroll-padding-top: 76px;
}

@media (max-width: 920px) {
  body { padding-top: 64px; }
  html { scroll-padding-top: 64px; }
}

@media (max-width: 920px) and (orientation: landscape) {
  body { padding-top: 56px; }
  html { scroll-padding-top: 56px; }
}

@media (max-width: 600px) and (orientation: landscape) and (max-height: 600px) {
  body { padding-top: 56px; }
  html { scroll-padding-top: 56px; }
}
