/* ============================================================
   RESPONSIVE.CSS — Media Queries
   Breakpoints: 1024px | 768px | 480px
   ============================================================ */

/* ══════════════════════════════════════════
   1024px — Tablette paysage / petits laptops
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-py: var(--sp-20); }

  /* Nav : hamburger dès 1024px (tablette) */
  .nav__links,
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero__title { font-size: var(--fs-5xl); }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    text-align: center;
  }

  .hero__visual {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__desc,
  .section-subtitle { max-width: 100%; }

  .hero__ctas { justify-content: center; }

  .hero__stats {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__photo-frame {
    width: 260px;
    height: 330px;
  }

  /* About */
  #about .about__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  /* Skills */
  #skills .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stack */
  #stack .stack__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Certifications */
  #certifications .certs__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  /* Contact */
  .contact__channels {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }

  /* Clients */
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section titles */
  .section-title { font-size: var(--fs-3xl); }
}


/* ══════════════════════════════════════════
   768px — Tablette portrait / grand mobile
══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-py: var(--sp-16); }

  /* Hero */
  .hero__title { font-size: var(--fs-4xl); }
  .hero__subtitle { font-size: var(--fs-lg); }
  .hero__subtitle-en { font-size: var(--fs-xs); }

  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .hero__photo-frame {
    width: 240px;
    height: 300px;
  }

  /* Skills */
  #skills .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Projects */
  #projects .projects__grid {
    grid-template-columns: 1fr;
  }

  /* Stack */
  #stack .stack__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Section title */
  .section-title { font-size: var(--fs-2xl); }

  /* Timeline */
  .timeline { padding-left: var(--sp-6); }
  .timeline-dot { left: calc(-1 * var(--sp-6) + 4px); }
  .timeline-title { font-size: var(--fs-lg); }

  /* Clients */
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
  }
  .client-badge { font-size: var(--fs-xs); padding: var(--sp-2) var(--sp-3); }
  .client-badge span { display: none; }

  /* Contact */
  .contact__channels {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;
    gap: var(--sp-4);
  }

  /* Certifications : empêcher overflow */
  .certs__list { overflow: hidden; }
  .cert-card { gap: var(--sp-3); }
  .cert-card__title { font-size: var(--fs-sm); }

  /* About card */
  .about__card { padding: var(--sp-6); }

  /* Experience grid: stack */
  .experience__grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════
   480px — Mobile standard
══════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --section-py: var(--sp-12); }

  .container { padding: 0 var(--sp-4); }

  /* Hero */
  .hero__title { font-size: var(--fs-3xl); }
  .hero__subtitle { font-size: var(--fs-base); }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero__ctas .btn-primary,
  .hero__ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
  }
  .stat-card__value { font-size: var(--fs-2xl); }

  .hero__photo-frame {
    width: 220px;
    height: 275px;
  }

  .hero__location { font-size: var(--fs-xs); }

  /* Skills : 1 colonne */
  #skills .skills__grid { grid-template-columns: 1fr; }

  /* Stack */
  #stack .stack__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
  }
  .stack-item { padding: var(--sp-3); }
  .stack-item__icon { font-size: 1.3rem; width: 32px; height: 32px; }
  .stack-item__icon img { width: 32px; height: 32px; }
  .stack-item__name { font-size: 10px; }

  /* Section labels */
  .section-label { font-size: 10px; }
  .section-title { font-size: var(--fs-xl); }

  /* Certifications */
  .cert-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  .cert-card__title { font-size: 0.8rem; }
  .cert-card__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  /* Clients : 2 colonnes, description masquée */
  .clients__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
  .client-badge span { display: none; }

  /* Contact : 1 colonne */
  .contact__channels {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--sp-3);
  }
  .contact__channel-card { flex-direction: row; gap: var(--sp-4); text-align: left; padding: var(--sp-4) var(--sp-5); }
  .contact__channel-icon { font-size: 1.25rem; }

  /* Footer */
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3) var(--sp-4);
  }
  .footer__tagline { font-size: var(--fs-xs); text-align: center; }

  /* Stat cards */
  .stat-card { padding: var(--sp-4); }
}


/* ══════════════════════════════════════════
   Print
══════════════════════════════════════════ */
@media print {
  .nav, .hero__ctas, .contact__channels { display: none !important; }
  body { background: #fff; color: #000; }
}
