/* ═══════════════════════════════════════
   INDEX — Styles spécifiques à la home
═══════════════════════════════════════ */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem 6rem;
  position: relative;
}

.hero-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-name span {
  color: var(--accent);
  font-style: italic;
}

.hero-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #9e9891;
  max-width: 420px;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

/* ── Hero visual (droite) ── */

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
}

.visual-circle {
  position: absolute;
  border-radius: 50%;
}

.visual-circle:nth-child(1) {
  inset: 0;
  border: 1px solid var(--border);
}

.visual-circle:nth-child(2) {
  inset: 40px;
  border: 1px solid rgba(232, 213, 163, 0.15);
}

.visual-circle:nth-child(3) {
  inset: 80px;
  border: 1px solid rgba(196, 149, 106, 0.2);
}

.visual-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 4s ease-in-out infinite;
}

.visual-label {
  position: absolute;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.visual-label:nth-of-type(1) {
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

.visual-label:nth-of-type(2) {
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

.skill-badge {
  position: absolute;
  --radius: 168px;
  top:  calc(50% + var(--radius) * sin(var(--angle)));
  left: calc(50% + var(--radius) * cos(var(--angle)));
  transform: translate(-50%, -50%);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(196, 149, 106, 0.35);
  padding: 0.28rem 0.65rem;
  background: rgba(13, 13, 13, 0.85);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ── Scroll hint ── */

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   TICKER
══════════════════════════════════════ */

.ticker {
  background: var(--accent);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  animation: ticker 25s linear infinite;
}

.ticker span {
  color: var(--bg);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 2rem;
  font-weight: 500;
}

.ticker-sep {
  color: var(--accent2);
}

/* ══════════════════════════════════════
   SECTION PROJETS (aperçu)
══════════════════════════════════════ */

.section {
  padding: 7rem 6rem;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.see-all {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.see-all:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.project-card {
  display: block;
  background: var(--bg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: none;
  text-decoration: none;
  color: inherit;
}

.project-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover {
  background: var(--surface);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.card-num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.card-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.project-card:hover .card-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */

.stats-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.stat-item {
  background: var(--bg);
  padding: 3rem 2.5rem;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════
   RESPONSIVE INDEX
══════════════════════════════════════ */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 8rem 3rem 4rem;
  }

  .hero-right {
    min-height: 360px;
  }

  .section {
    padding: 5rem 3rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  /* Hero : on passe en colonne simple, hauteur auto */
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh; /* safe viewport height sur iOS */
  }

  .hero-left {
    padding: 5.5rem 1.5rem 3rem; /* moins d'espace en haut */
    justify-content: center;
    min-height: 100svh;
  }

  .hero-tag {
    margin-bottom: 1.2rem;
  }

  .hero-role {
    font-size: 0.7rem;
    margin-bottom: 2rem;
    line-height: 1.5;
  }

  /* Masquer complètement le visuel décoratif — y compris overflow */
  .hero-right {
    display: none !important;
  }

  /* Masquer le scroll hint */
  .scroll-hint {
    display: none;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    cursor: pointer;
    padding: 2rem 1.5rem;
  }

  .stats-section {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: 2rem 1.2rem;
  }
}

/* Mobile ≤ 480px — iPhone 15 Pro (393px) et similaires */
@media (max-width: 480px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    overflow: hidden; /* bloque tout débordement du visuel */
  }

  .hero-left {
    padding: 5rem 1.2rem 2.5rem;
    min-height: 100svh;
    justify-content: center;
  }

  .hero-right {
    display: none !important;
  }

  .scroll-hint {
    display: none !important;
  }

  .hero-tag {
    font-size: 0.6rem;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
  }

  .hero-name {
    font-size: clamp(3.2rem, 17vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 0.92;
  }

  .hero-role {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .hero-ctas {
    flex-direction: row; /* côte à côte si possible */
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    padding: 0.85rem 1.4rem;
    font-size: 0.68rem;
    white-space: nowrap;
    cursor: pointer;
  }

  /* Projets */
  .section {
    padding: 3rem 1.2rem;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .card-desc {
    font-size: 0.78rem;
  }

  /* Stats */
  .stats-section {
    grid-template-columns: 1fr 1fr;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }
}
