/* ═══════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════ */
:root {
  --bg:           #1a1612;
  --bg-alt:       #221e18;
  --surface:      #2a2420;
  --surface-2:    #332d27;
  --border:       #3d3630;
  --text:         #f0ebe3;
  --muted:        #8a8078;
  --accent:       #d4854a;
  --accent-light: rgba(212,133,74,0.12);
  --accent-hover: #c07040;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       20px;
  --radius-sm:    12px;
  --nav-h:        68px;
  --max-w:        1060px;
  --transition:   0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft:  0 4px 20px rgba(0,0,0,0.25);
  --shadow-card:  0 10px 44px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.13s; }
.delay-2 { transition-delay: 0.26s; }
.delay-3 { transition-delay: 0.39s; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,22,18,0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(26,22,18,0.97);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-bracket { color: var(--accent); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links a.active { color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  gap: 4px;
}
.nav-mobile a {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--accent); background: var(--surface); }
.nav-mobile.open { display: flex; }

/* ═══════════════════════════════════════════════════════
   PAGE WRAPPER (toutes les pages sauf accueil)
═══════════════════════════════════════════════════════ */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 28px 80px;
}

.page-header {
  margin-bottom: 56px;
}
.page-header .page-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}
.page-header p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════
   HERO (index.html)
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 28px 80px;
}

.hero-content { flex: 1; min-width: 280px; }

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 22px;
}
.accent { color: var(--accent); }

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 38px;
  line-height: 1.78;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats rapides sous le CTA */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item {}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* PHOTO */
.hero-photo { flex-shrink: 0; }
.photo-frame {
  width: 255px; height: 315px;
  border-radius: 999px 999px 32px 32px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(212,133,74,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.photo-placeholder svg { width: 72px; opacity: 0.35; }
.photo-placeholder p { font-size: 0.83rem; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #1a1612;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(212,133,74,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,133,74,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   CARDS GÉNÉRIQUES
═══════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ═══════════════════════════════════════════════════════
   TIMELINE (formation.html)
═══════════════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 2px;
}

.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}

.timeline-body {
  padding: 26px 30px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-body:hover { transform: translateX(5px); }

.timeline-date {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 11px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.timeline-place {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════
   COMPÉTENCES (competences.html)
═══════════════════════════════════════════════════════ */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.comp-card { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }

.comp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}
.comp-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.comp-card > p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

.preuves { margin-top: 6px; }
.preuves h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.preuves-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preuve-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.preuve-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.preuve-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: border-color var(--transition), background var(--transition);
}
.preuve-thumb:hover .preuve-placeholder {
  border-color: var(--accent);
  background: var(--accent-light);
}
.preuve-thumb span { font-size: 0.68rem; color: var(--muted); line-height: 1.3; }
.comp-link {
  display: inline-block;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing var(--transition);
}
.comp-link:hover { letter-spacing: 0.03em; }

/* ═══════════════════════════════════════════════════════
   CV (cv.html)
═══════════════════════════════════════════════════════ */
.cv-zone {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
  padding: 48px 52px;
}
.cv-preview { flex-shrink: 0; }
.cv-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 175px; height: 235px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.cv-placeholder p { font-size: 0.9rem; font-weight: 500; }
.cv-placeholder small { font-size: 0.73rem; line-height: 1.45; }
.cv-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cv-actions > p { color: var(--muted); max-width: 360px; line-height: 1.75; }

/* ═══════════════════════════════════════════════════════
   CONTACT (contact.html)
═══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.contact-icon { font-size: 1.7rem; flex-shrink: 0; }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.contact-card span { font-size: 0.8rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  background: #110f0c;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero {
    flex-direction: column-reverse;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 36px);
    text-align: center;
    gap: 36px;
  }
  .hero-cta { justify-content: center; }
  .hero-desc { margin: 0 auto 32px; }
  .photo-frame { width: 180px; height: 222px; }
  .hero-stats { justify-content: center; }

  .page-wrapper { padding-top: calc(var(--nav-h) + 40px); }
  .cv-zone { flex-direction: column; padding: 28px 24px; }
  .competences-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
