:root {
  --bg: #ffffff;
  --bg-alt: #fdf7dc;
  --card: #ffffff;
  --border: #f1e9bd;
  --text: #2b2118;
  --text-mid: #7d6b52;
  --text-dim: #ab9a7c;
  --accent: #fbe64c;
  --accent-2: #1d528b;
  --radius: 14px;
  --shadow: 0 20px 45px rgba(43,33,24,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: 'Fraunces', Georgia, serif;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.kicker {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
#profil.section { padding-top: 8px; }
#loisirs.section { padding-top: 8px; }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 30px; margin: 0 0 14px; font-weight: 600; }
.section-lead { font-size: 17px; color: var(--text-mid); max-width: 640px; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin: 0;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a.nav-link {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.header-nav a.nav-link:hover,
.header-nav a.nav-link.is-current { color: var(--accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-text .lead {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
}
h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero-ctas { display: flex; gap: 14px; margin: 28px 0 40px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { background: #dcca42; }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-facts { display: flex; gap: 40px; flex-wrap: wrap; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.fact-value { font-size: 14px; font-weight: 600; }

.hero-photo { justify-self: center; }
.hero-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* ---------- Profil / tags ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.tag-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 700;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline-period {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.timeline-content h3 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.timeline-company { color: var(--text-mid); font-size: 14px; margin: 0 0 10px; font-weight: 600; }
.timeline-content p:not(.timeline-company) { color: var(--text-mid); font-size: 14.5px; margin: 0; }

/* ---------- Hobbies ---------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hobby:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hobby-emoji { font-size: 32px; line-height: 1; }
.hobby-detail { font-size: 13px; font-weight: 400; color: var(--text-mid); line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-tagline { color: var(--text-mid); margin: 6px 0 0; font-size: 14px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-contact a { text-decoration: none; color: var(--text-mid); font-size: 14px; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-contact span { color: var(--text-dim); font-size: 13px; }
.copyright { color: var(--text-dim); font-size: 13px; margin: 0; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin: 0 auto; }
  .hero-facts { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-photo { order: -1; }

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

  .nav-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a.nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .hero { padding: 100px 0 16px; }
  h1 { font-size: 42px; }
  .section { padding: 64px 0; }
  .hobby-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-contact { align-items: flex-start; }
}
