/* ═══════════════════════════════════════════════════════════
   LOUAM PARADIS — style.css
   Design : minimaliste, typographie forte, accent amber
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS (variables CSS) ─────────────────────────── */
:root {
  /* Accent */
  --accent:        #F59E0B;
  --accent-dim:    #F59E0B33;   /* 20% opacité */
  --accent-hover:  #FBBF24;

  /* Typographie */
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
}

/* ─── THÈME SOMBRE (défaut) ──────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0A0A0A;
  --bg-alt:      #111111;
  --surface:     #1A1A1A;
  --border:      #2A2A2A;
  --text:        #F0F0F0;
  --text-muted:  #888888;
  --nav-bg:      rgba(10, 10, 10, 0.85);
}

/* ─── THÈME CLAIR ────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #FAFAFA;
  --bg-alt:      #F0F0F0;
  --surface:     #FFFFFF;
  --border:      #E0E0E0;
  --text:        #111111;
  --text-muted:  #666666;
  --nav-bg:      rgba(250, 250, 250, 0.85);
}

/* ─── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── 3. NAVIGATION ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.8; }

/* Liens de navigation */
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--text);
}
.nav__links a:hover::after {
  width: 100%;
}

/* Actions (toggle + burger) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Bouton thème */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Burger mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Menu mobile */
.nav__mobile {
  display: none;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.nav__mobile.is-open {
  display: block;
}
.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav__mobile a {
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__mobile a:hover {
  color: var(--accent);
}

/* ─── 4. HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  overflow: hidden;
}

/* Grille de fond */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Orbes de lumière */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  opacity: 0.06;
  top: -100px;
  left: -100px;
}
.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  opacity: 0.04;
  bottom: 0;
  right: 10%;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Contenu texte */
.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 640px;
}

/* Étiquette eyebrow */
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

/* Titre */
.hero__title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__title-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.6s forwards;
}
.hero__title-line:first-child  { animation-delay: 0.3s; }
.hero__title-line:nth-child(2) { animation-delay: 0.4s; }

.hero__title-line--accent {
  color: var(--accent);
}

/* Sous-titre + typewriter */
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  min-height: 2em;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}
.hero__typewriter {
  color: var(--text);
  font-weight: 600;
  border-right: 2px solid var(--accent);
  padding-right: 3px;
}

/* Boutons CTA */
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
}

/* ─── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.9s forwards;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Avatar */
.hero__avatar {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  opacity: 0;
  animation: fadeIn 0.8s 0.7s forwards;
}

.hero__avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  animation: spin 20s linear infinite;
}
.hero__avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__avatar-img svg {
  width: 80%;
  height: 80%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── 5. SECTIONS GÉNÉRIQUES ─────────────────────────────── */
.section {
  padding: 6rem 2rem;
}
.section--alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section__title::after {
  content: '.';
  color: var(--accent);
}

.section__placeholder {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ─── 6. FOOTER ─────────────────────────────────────────── */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── 7. ANIMATIONS UTILITAIRES ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Classe pour les éléments révélés au scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── 8. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }

  .hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    gap: 2rem;
  }

  .hero__avatar {
    width: 180px;
    height: 180px;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__scroll {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
}