/* ============================================================
   CV Emilie Loizon — feuille de style
   ============================================================ */

/* ---------- Tokens : direction "Terre & Soin" ---------- */
:root {
  --bg:        #f7f2ea;
  --bg-deep:   #efe6d8;
  --surface:   #fffdf9;
  --surface-2: #fbf4ea;
  --ink:       #2c2620;
  --ink-soft:  #6f6557;
  --ink-faint: #a59a89;
  --line:      rgba(44, 38, 32, 0.12);
  --line-soft: rgba(44, 38, 32, 0.07);
  --accent:    #bd6347;
  --accent-2:  #d99c6a;
  --accent-soft: #ecd8c4;
  --halo-1: #e9c9a6;
  --halo-2: #d99c6a;
  --halo-3: #c98e74;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --maxw: 1160px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-title em { font-style: italic; color: var(--accent); }

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 18px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 11px 32px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta {
  font-size: 13.5px !important;
  font-weight: 600;
  color: var(--surface) !important;
  background: var(--ink);
  padding: 10px 18px !important;
  border-radius: 999px !important;
  transition: transform 0.25s var(--ease), background 0.25s !important;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--accent) !important; color: var(--surface) !important; }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } }

/* progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--accent);
  z-index: 60; width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-tag .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero-tag .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0.6;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { to { transform: scale(2.4); opacity: 0; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; }
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-role {
  font-size: clamp(16px, 1.8vw, 21px);
  color: var(--ink-soft);
  margin-top: 26px;
  max-width: 40ch;
  font-weight: 450;
}
.hero-role b { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { transform: translateY(-3px); background: var(--accent); box-shadow: 0 14px 32px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--ink); background: var(--surface); }
.btn svg { width: 17px; height: 17px; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* hero portrait */
.hero-portrait { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px 24px 24px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(44,38,32,0.4);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.placeholder {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--surface-2), var(--surface-2) 11px,
    color-mix(in srgb, var(--accent-soft) 60%, transparent) 11px,
    color-mix(in srgb, var(--accent-soft) 60%, transparent) 22px
  );
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 24px;
}
.placeholder .ph-icon {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.7;
  display: grid; place-items: center;
}
.placeholder code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; color: var(--accent);
  background: var(--surface); padding: 4px 9px; border-radius: 6px;
  letter-spacing: 0.02em;
}
.portrait-badge {
  position: absolute; left: -26px; bottom: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: 0 18px 40px -22px rgba(44,38,32,0.45);
  font-size: 13px;
}
.portrait-badge b { font-family: var(--font-display); font-size: 21px; display: block; }
.portrait-badge span { color: var(--ink-soft); }

/* floating organic shapes */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.blob.b1 {
  width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--halo-1), transparent 70%);
}
.blob.b2 {
  width: 380px; height: 380px; bottom: -120px; left: -100px;
  background: radial-gradient(circle at 50% 50%, var(--halo-2), transparent 70%);
  opacity: 0.4;
}
.blob.b3 {
  width: 300px; height: 300px; top: 30%; left: 40%;
  background: radial-gradient(circle at 50% 50%, var(--halo-3), transparent 72%);
  opacity: 0.25;
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-hint .line {
  width: 1px; height: 38px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--accent); animation: scrolldown 1.8s var(--ease) infinite;
}
@keyframes scrolldown { to { top: 100%; } }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 38px 30px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat .num .suffix { color: var(--ink); font-size: 0.5em; }
.stat .label { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   DOMAINES (marquee)
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  color: var(--ink);
  padding: 0 34px;
  display: inline-flex; align-items: center; gap: 34px;
  white-space: nowrap;
}
.marquee-item::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-2);
}

/* ============================================================
   SKILLS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.skill-list { display: flex; flex-direction: column; gap: 22px; }
.skill {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: baseline;
}
.skill .name { font-size: 16px; font-weight: 500; }
.skill .pct { font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.skill .bar {
  grid-column: 1 / -1;
  height: 7px; border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.skill .fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 1.2s var(--ease);
}

/* ============================================================
   STRONG POINTS (cards)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(44,38,32,0.5); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .idx {
  font-family: var(--font-display);
  font-size: 15px; color: var(--accent);
  margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.card h3 { font-family: var(--font-display); font-weight: 480; font-size: 24px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 15px; margin-top: 12px; }

/* posture list */
.posture { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.posture-item {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), color 0.35s;
}
.posture-item:hover { padding-left: 18px; }
.posture-item:hover .p-num { color: var(--accent); }
.posture-item .p-num {
  font-family: var(--font-display); font-size: 14px; color: var(--ink-faint);
  width: 32px; transition: color 0.35s; font-variant-numeric: tabular-nums;
}
.posture-item .p-text { font-size: clamp(17px, 2vw, 22px); font-family: var(--font-display); font-weight: 420; }

/* ============================================================
   TIMELINE (experiences + formations)
   ============================================================ */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1.5px; background: var(--line);
}
.tl-item {
  position: relative;
  padding: 0 0 42px 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--accent-2);
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
  z-index: 1;
}
.tl-item:hover::before { border-color: var(--accent); transform: scale(1.25); background: var(--accent-soft); }
.tl-date {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 7px;
}
.tl-card { transition: transform 0.35s var(--ease); }
.tl-item:hover .tl-card { transform: translateX(6px); }
.tl-role { font-family: var(--font-display); font-weight: 470; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.01em; line-height: 1.15; }
.tl-org { color: var(--ink-soft); font-size: 15px; margin-top: 5px; font-weight: 500; }
.tl-org .sep { color: var(--ink-faint); margin: 0 7px; }
.tl-desc { color: var(--ink-soft); font-size: 15px; margin-top: 12px; max-width: 62ch; }
.tl-bullets { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.tl-bullets li {
  list-style: none; position: relative; padding-left: 22px;
  font-size: 14.5px; color: var(--ink-soft); max-width: 62ch;
}
.tl-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
}
.tl-thesis {
  margin-top: 14px;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  font-size: 16px;
}

/* ============================================================
   INTERESTS
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 26px 14px 20px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 430;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
  cursor: default;
}
.chip:hover { transform: translateY(-4px) rotate(-1.2deg); background: var(--surface-2); border-color: var(--accent-2); }
.chip .emo { font-size: 26px; line-height: 1; filter: saturate(0.95); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}
.contact .blob { opacity: 0.18; filter: blur(8px); }
.contact .eyebrow { color: var(--accent-2); }
.contact .eyebrow::before { background: var(--accent-2); }
.contact h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
}
.contact h2 em { font-style: italic; color: var(--accent-2); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 48px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: color-mix(in srgb, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.contact-card:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--bg) 14%, transparent); }
.contact-card .ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 30%, transparent);
  color: var(--bg);
}
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card .k { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.contact-card .v { display: block; font-size: 16px; font-weight: 500; word-break: break-word; }
.contact-foot {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
html.js-anim .reveal { opacity: 0; transform: translateY(28px); }
html.js-anim .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
