/* ============================================================
   HEMEN IPTV AL — Global CSS
   Variables · Reset · Typographie · Layout · Utilitaires
   ============================================================ */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Couleurs de base */
  --bg-base:        #080808;
  --bg-surface:     #0f0f0f;
  --bg-card:        #111111;
  --bg-card-hover:  #161616;
  --bg-elevated:    #1a1a1a;

  /* Accent */
  --accent:         #6c63ff;
  --accent-hover:   #8178ff;
  --accent-glow:    rgba(108, 99, 255, 0.25);
  --accent-glow-lg: rgba(108, 99, 255, 0.12);

  /* Texte */
  --text-primary:   #ffffff;
  --text-secondary: #a0a0a8;
  --text-muted:     #5a5a6a;
  --text-accent:    #6c63ff;

  /* Bordures */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-card:    rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(108, 99, 255, 0.4);

  /* Gradients */
  --gradient-accent:    linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%);
  --gradient-dark:      linear-gradient(180deg, #0f0f0f 0%, #080808 100%);
  --gradient-card:      linear-gradient(145deg, #141414 0%, #0f0f0f 100%);
  --gradient-hero:      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,99,255,0.18) 0%, transparent 70%);
  --gradient-glow-top:  radial-gradient(ellipse 60% 40% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 60%);

  /* Typographie */
  --font-main:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:   0.75rem;   /* 12px */
  --font-size-sm:   0.875rem;  /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg:   1.125rem;  /* 18px */
  --font-size-xl:   1.25rem;   /* 20px */
  --font-size-2xl:  1.5rem;    /* 24px */
  --font-size-3xl:  1.875rem;  /* 30px */
  --font-size-4xl:  2.25rem;   /* 36px */
  --font-size-5xl:  3rem;      /* 48px */

  /* Espacement */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Rayons */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(108,99,255,0.3);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(1rem, 5vw, 2rem);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Override GeneratePress body background */
body.hia-site {
  background: var(--bg-base) !important;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}



/* ── Conteneur global ───────────────────────────────────────── */
.hia-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Typographie globale ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--font-size-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Utilitaires ─────────────────────────────────────────────── */
.hia-text-accent    { color: var(--accent); }
.hia-text-muted     { color: var(--text-muted); }
.hia-text-secondary { color: var(--text-secondary); }
.hia-text-center    { text-align: center; }

.hia-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Contenu principal — espace sous le header fixe */
#page,
.site,
main,
.content-area,
#content {
  padding-top: 0 !important;
}

.hia-main-content {
  min-height: 100vh;
}