/* ================================================================
   PORTFOLIO — FEUILLE DE STYLE
   Direction : minimalisme premium (inspiration Apple / Linear / Vercel / Notion)
   Blanc dominant, noir profond, nuances de gris, une seule couleur d'accent.
   Une seule famille de police système, hiérarchie par le poids et la taille.
   Aucune ressource externe, aucune police téléchargée, aucun CDN.
   ================================================================ */

/* ---------- 1. Jetons de design ---------- */
:root {
  /* Couleurs neutres */
  --white: #ffffff;
  --off-white: #fafafa;
  --grey-50: #f4f4f4;
  --grey-100: #e6e6e6;
  --grey-300: #c9c9c9;
  --grey-500: #8a8a8a;
  --grey-700: #4a4a4a;
  --black: #0a0a0a;

  /* Couleur d'accent unique, utilisée avec parcimonie */
  --accent: #2f6b52;
  --accent-soft: rgba(47, 107, 82, 0.08);

  /* Typographie : une seule famille, la hiérarchie vient du poids et de la taille */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica Neue, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  /* Structure */
  --container-width: 1120px;
  --radius: 8px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --border: 1px solid var(--grey-100);
}

/* ---------- 2. Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 200;
  transition: top var(--ease) 200ms;
}
.skip-link:focus { top: 1rem; }

/* Focus clavier visible partout */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 3. Mise en page ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 6rem; }
.section-alt { background: var(--off-white); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 34ch;
  margin-bottom: 3rem;
}

/* Apparition discrète au défilement */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 4. Boutons et liens ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--ease) 180ms, border-color var(--ease) 180ms, opacity var(--ease) 180ms;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { opacity: 0.82; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--grey-300); }
.btn-outline:hover { border-color: var(--black); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.8rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease) 180ms, gap var(--ease) 180ms;
}
.btn-text:hover { border-color: var(--black); gap: 0.6rem; }

/* ---------- 5. En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: var(--border);
  transition: box-shadow var(--ease) 200ms;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}
.logo { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-list { display: flex; gap: 1.75rem; }
.nav-link {
  font-size: 0.9rem;
  color: var(--grey-700);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color var(--ease) 180ms, border-color var(--ease) 180ms;
}
.nav-link:hover { color: var(--black); }
.nav-link[aria-current="true"] { color: var(--black); border-color: var(--accent); }
.nav-cta { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--black);
  transition: transform var(--ease) 200ms, opacity var(--ease) 200ms;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 6. Hero / Accueil ---------- */
.hero { padding-block: 5.5rem 6rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-block: 1.1rem 1.4rem;
  max-width: 18ch;
}
.hero-subtitle {
  color: var(--grey-700);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* Emplacement photo : cadre sobre, aucune image générée */
.portrait-wrap { display: flex; justify-content: center; }
.portrait-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
}
.portrait-icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--grey-300);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portrait-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-500);
}
.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- 7. Timeline (Mon parcours) ---------- */
.timeline {
  display: grid;
  gap: 2.25rem;
  padding-left: 2rem;
  border-left: 1px solid var(--grey-100);
}
.timeline-item { position: relative; }
.timeline-marker {
  position: absolute;
  left: -2.42rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-head { display: flex; align-items: center; gap: 0.75rem; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--grey-500);
  margin-bottom: 0.35rem;
}
.timeline-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; }
.timeline-org { color: var(--grey-700); font-size: 0.92rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-muted { background: var(--grey-50); color: var(--grey-500); }

/* ---------- 8. Ma façon de travailler ---------- */
.method-list {
  display: grid;
  gap: 0;
  border-top: var(--border);
  margin-bottom: 4rem;
}
.method-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-bottom: var(--border);
}
.method-item dt {
  font-size: 1.05rem;
  font-weight: 600;
}
.method-item dd {
  color: var(--grey-700);
  font-size: 0.95rem;
  max-width: 60ch;
}

.skills-block { padding-top: 0.5rem; }
.skills-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 1rem;
}
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skills-tags li {
  font-size: 0.85rem;
  border: 1px solid var(--grey-100);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--grey-700);
}

/* ---------- 9. Expériences ---------- */
.experience-list { display: grid; gap: 1.5rem; }
.experience-item {
  padding: 1.75rem;
  border: var(--border);
  border-radius: var(--radius);
}
.experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.experience-head h3 { font-size: 1.05rem; font-weight: 600; }
.experience-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 0.75rem;
}
.experience-desc { color: var(--grey-700); font-size: 0.92rem; max-width: 60ch; }

/* ---------- 10. Réalisations (état vide élégant) ---------- */
.empty-state {
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.empty-state p {
  color: var(--grey-500);
  max-width: 46ch;
  margin-inline: auto;
  font-size: 0.95rem;
}

/* ---------- 11. Contact ---------- */
.contact-inner { max-width: 640px; }
.contact-text { color: var(--grey-700); max-width: 50ch; margin-bottom: 2.25rem; }
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- 12. Pied de page ---------- */
.site-footer { border-top: var(--border); padding-block: 2rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--grey-500);
}
.footer-top { color: var(--grey-700); }
.footer-top:hover { color: var(--black); }

/* ================================================================
   RESPONSIVE — mobile-first
   ================================================================ */

/* Tablette */
@media (min-width: 640px) {
  .method-item { grid-template-columns: 220px 1fr; gap: 2rem; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .section { padding-block: 8rem; }
}

/* Navigation mobile (< 1024px) */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 68px 1rem auto 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease) 200ms, transform var(--ease) 200ms;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 1.1rem; }
  .nav-cta { align-self: flex-start; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
