/**
 * critical.css - CSS above-the-fold EPHKA V3
 * Inliné dans le <head> pour First Contentful Paint rapide.
 * Contient uniquement ce qui est visible sans scroll.
 */

/* === Reset minimal ======================================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-ink);
  background-color: var(--c-paper);
  max-width: 1600px;
  margin-inline: auto;
}

/* === Typography base ====================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Header ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--section-px);
  background: var(--c-red);
  border-bottom: none;
  transition: background var(--dur-base) var(--ease-out);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-header__logo img { height: 28px; }
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--c-white);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-white);
    transition: transform var(--dur-base) var(--ease-out);
  }
  /* !important pour résister à tout conflit CSS (race condition iOS Safari) */
  .site-header__nav { display: none !important; }
  .site-header__nav.is-open { display: flex !important; }
}

/* === Section hero - above the fold ======================== */
.s-hero {
  position: relative;
  overflow: visible;
  min-height: 80vh;
  padding-top: calc(4rem + var(--space-12));
  padding-left: var(--section-px);
  padding-right: var(--section-px);
  padding-bottom: var(--space-16);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}


.s-hero__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-image: url('/assets/images/hero-bg.webp');
  background-size: cover;
  background-attachment: scroll;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.s-hero__meta,
.s-hero__tagline,
.s-hero__sub,
.s-hero__socials,
.ticker-bar {
  position: relative;
  z-index: 1;
}

.s-hero__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  color: var(--c-gray-2);
}

.s-hero__tagline {
  font-size: var(--fs-hero);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: pre-line;
}

.s-hero__tagline em {
  font-style: normal;
  color: var(--c-red);
}

.s-hero__sub {
  font-size: var(--fs-lg);
  color: var(--c-gray-3);
  font-weight: 400;
}

/* Dispo badge */
.dispo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border: var(--border);
  padding: var(--space-2) var(--space-4);
}

.dispo-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.dispo-badge.unavailable::before { background: #ef4444; animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* CTA hero */
.s-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
