/* ==========================================================================
   INDEX.CSS — Styles spécifiques à la page d'accueil
   ========================================================================== */

/* ── CURSOR (desktop only) ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.35s ease, opacity 0.3s;
  opacity: 0.6;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rust));
  z-index: 200;
  transition: width 0.1s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 6rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
h1 em { font-style: italic; color: var(--brown); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 440px;
  margin: 1.6rem 0 2.8rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, transform 0.2s, border-color 0.25s;
}
.btn-primary {
  background: var(--dark);
  color: var(--cream);
}
.btn-primary:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--dark);
  padding: 0.9rem 1.8rem;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ── HERO STATS ── */
.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--dark);
  line-height: 1;
}
.stat-num span { color: var(--gold); }
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-top: 0.3rem;
}

/* ── HERO RIGHT ── */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg-text {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(8rem, 15vw, 18rem);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.hero-card-grid {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 1.2rem;
  padding: 2rem;
}
.showcase-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1.2rem 1.6rem;
  width: 100%;
  max-width: 320px;
  backdrop-filter: blur(4px);
  animation: floatCard 4s ease-in-out infinite;
}
.showcase-card:nth-child(2) { animation-delay: -1.5s; margin-left: 2rem; }
.showcase-card:nth-child(3) { animation-delay: -3s; margin-left: -1rem; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.sc-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.sc-title { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }
.sc-desc { color: rgba(255,255,255,0.45); font-size: 0.75rem; margin-top: 0.2rem; }
.sc-bar { margin-top: 0.8rem; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.sc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--rust));
  border-radius: 2px;
  animation: loadBar 2.5s ease forwards;
}
@keyframes loadBar { from { width: 0%; } }

/* ── SECTIONS ── */
section { padding: 7rem 0; }

/* ── PARCOURS & EXPERTISE ── */
#parcours { background: var(--cream); }
.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 4rem;
}
.parcours-bio p {
  color: var(--mid);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.parcours-bio p:last-child { margin-bottom: 0; }
.parcours-bio strong { color: var(--dark); font-weight: 500; }

/* ── COMPETENCES GRID ── */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.competence-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.competence-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(26,24,20,0.08); }
.competence-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.competence-logo { width: 48px; height: 48px; display: block; margin-bottom: 0.8rem; }
.competence-card h3 { font-size: 0.9rem; font-weight: 500; color: var(--dark); margin-bottom: 0.5rem; }
.competence-card p { font-size: 0.82rem; color: var(--mid); line-height: 1.6; }

/* ── EXPÉRIENCE ── */
#experience { background: var(--light); }
.timeline {
  position: relative;
  margin-top: 4rem;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -2.5rem; top: 0.3rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--light);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-date {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.timeline-content h3 span { color: var(--mid); font-weight: 400; }
.timeline-stack {
  font-size: 0.8rem;
  color: var(--mid);
  margin-bottom: 1rem;
  font-weight: 400;
}
.timeline-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-achievements li {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}
.timeline-achievements li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--gold); font-weight: 600;
}

/* ── PROJETS CLÉS ── */
#projets-cles { background: var(--light); }
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(26,24,20,0.08); }
.project-img {
  height: 180px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.project-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #2d2820 100%);
}
.project-img span { position: relative; z-index: 1; }
.project-img .competence-logo,
.project-img svg.competence-logo,
.project-img img.competence-logo {
  position: relative;
  z-index: 1;
}
.project-img-accent {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.1;
  bottom: -30px; right: -20px;
  z-index: 0;
}
.project-body { padding: 1.4rem; }
.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tag {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--cream);
  color: var(--brown);
}
.project-title { font-size: 0.95rem; font-weight: 500; color: var(--dark); margin-bottom: 0.4rem; line-height: 1.3; }
.project-desc { font-size: 0.8rem; color: var(--mid); line-height: 1.6; margin-bottom: 0.6rem; }
.project-stack { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.project-metrics {
  display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem;
  font-size: 0.7rem; color: var(--gold); font-weight: 500;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 500;
  color: var(--gold); text-decoration: none;
  letter-spacing: 0.04em; transition: gap 0.2s;
}
.project-link:hover { gap: 0.5rem; }

/* ── PROJETS PERSOS ── */
#projets-persos { background: var(--cream); }
.projects-intro {
  max-width: 700px;
  margin: 2rem auto 3rem;
  text-align: justify;
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  font-weight: 300;
}
.projects-intro p { margin: 0; font-style: italic }
.project-card.personal .project-img { background: transparent; }
.project-card.personal .project-img::before { display: none; }
.project-card.personal .project-img-accent { display: none; }
.project-card.github-card {
  text-decoration: none; color: inherit;
  background: var(--dark); border-color: var(--dark);
}
.project-card.github-card:hover {
  background: #1a1a1a;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.project-card.github-card .project-img { color: var(--cream); }
.project-card.github-card .project-body { color: var(--cream); }
.project-card.github-card .project-title { color: var(--cream); }
.project-card.github-card .project-desc { color: rgba(255,255,255,0.6); }
.project-card.github-card .project-link { color: var(--gold); }
.project-card.github-card .tag { background: rgba(255,255,255,0.1); color: var(--gold); }
.project-card.github-card .project-img::before { display: none; }

/* ── RESPONSIVE: TABLETTE (≤1024px) ── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .hero-left { padding: 4rem 2rem; }
  .parcours-grid { grid-template-columns: 1fr; gap: 3rem; }
  .competences-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVE: MOBILE (≤640px) ── */
@media (max-width: 640px) {
  #hero { min-height: auto; padding-top: var(--nav-h); }
  .hero-left { padding: 2.5rem 1.2rem 3rem; }
  h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { text-align: center; justify-content: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.8rem; }

  section { padding: 4rem 0; }

  .competences-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.5rem; }
  .timeline-marker { left: -2rem; width: 12px; height: 12px; }

  .cursor, .cursor-ring { display: none; }
}