@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --blue:   #2C3F50;
  --green:  #80BAA8;
  --yellow: #E0FECA;
  --ink:    var(--blue);
  --paper:  var(--yellow);
  --accent: var(--green);
  --muted:  #5a7a6e;
  --rule:   #c4dfd7;
  --card:   #edfce8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

header.scrolled {
  background: var(--ink);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 0.7rem 2rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-fallback {
  display: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
  line-height: 1.1;
}

.logo-fallback em {
  font-style: normal;
  color: var(--green);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-head {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-head:hover {
  background: rgba(224,254,202,0.12);
}

.cta {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--ink);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: background-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
}

.cta:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.25s, opacity 0.25s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════
   HERO IDENTITÉ
════════════════════════════════════════ */
.cv-hero {
  background-color: var(--ink);
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.cv-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.cv-hero-lines {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(128,186,168,0.06) 59px, rgba(128,186,168,0.06) 60px),
    repeating-linear-gradient(0deg,  transparent, transparent 59px, rgba(128,186,168,0.06) 59px, rgba(128,186,168,0.06) 60px);
}
.cv-hero-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(128,186,168,0.1);
  right: -100px; top: 50%;
  transform: translateY(-50%);
}

.cv-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* ── Photo + anneaux ── */
.cv-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  animation: ringPulse 3s ease-in-out infinite;
}
.cv-photo-ring.r1 { width: 160px; height: 160px; opacity: 0.4; animation-delay: 0s; }
.cv-photo-ring.r2 { width: 180px; height: 180px; opacity: 0.2; animation-delay: 0.6s; }
.cv-photo-ring.r3 { width: 204px; height: 204px; opacity: 0.1; animation-delay: 1.2s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: inherit; }
  50%       { transform: scale(1.04); opacity: 0.6; }
}

.cv-photo-img {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green);
  background-color: rgba(128,186,168,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.cv-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.cv-photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cv-photo-fallback .material-icons { font-size: 3.5rem !important; color: var(--green); }

/* ── Identité ── */
.cv-identity { flex: 1; min-width: 260px; }

.cv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(128,186,168,0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s ease both;
}
.cv-tag .material-icons { font-size: 0.9rem !important; }

.cv-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s 0.1s ease both;
}
.cv-name-accent { color: var(--green); }

/* Pills infos */
.cv-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s 0.2s ease both;
}
.cv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(128,186,168,0.2);
  color: rgba(224,254,202,0.75);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.cv-pill .material-icons { font-size: 0.9rem !important; color: var(--green); }
.cv-pill--link {
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.cv-pill--link:hover {
  background-color: rgba(128,186,168,0.15);
  color: var(--yellow);
}

/* Liens sociaux */
.cv-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: fadeUp 0.5s 0.3s ease both;
}
.cv-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background-color: var(--green);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: background-color 0.2s, transform 0.15s;
}
.cv-social svg { width: 14px; height: 14px; flex-shrink: 0; }
.cv-social .material-icons { font-size: 1rem !important; }
.cv-social:hover { background-color: var(--yellow); transform: translateY(-2px); }

/* ── Logo partenaire ── */
.cv-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 0.5s 0.35s ease both;
}
.cv-partner-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224,254,202,0.4);
}
.cv-partner-logo {
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(128,186,168,0.2);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  min-width: 140px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-partner-logo img { max-height: 60px; max-width: 120px; object-fit: contain; }
.cv-partner-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cv-partner-fallback .material-icons { font-size: 2rem !important; }

/* ════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════ */
.cv-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Section label commun */
.cv-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.cv-section-label .material-icons { font-size: 1.1rem !important; }
.cv-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--rule);
}

/* ── MOTIVATION ── */
.cv-motivation {
  margin-bottom: 2rem;
}
.cv-moti-inner {
  background-color: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cv-moti-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-weight: 300;
  font-style: normal;
}
.cv-moti-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.55rem 1rem;
  border-radius: 2px;
  align-self: flex-start;
  transition: background-color 0.2s, color 0.2s;
}
.cv-moti-link .material-icons { font-size: 1rem !important; }
.cv-moti-link:hover { background-color: var(--ink); color: var(--yellow); }

/* ── GRILLE ── */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

/* Placement des cards */
.cv-records  { grid-column: span 5; }
.cv-goals    { grid-column: span 7; }
.cv-volume   { grid-column: span 8; }
.cv-sports   { grid-column: span 4; }
.cv-daily    { grid-column: span 4; }
.cv-skills   { grid-column: span 4; }
.cv-projects { grid-column: span 4; }

/* ── CARD BASE ── */
.cv-card {
  background-color: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cv-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.cv-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.cv-card-header .material-icons { font-size: 1.1rem !important; }

/* ── RECORDS ── */
.cv-records-list { display: flex; flex-direction: column; gap: 0.9rem; }
.cv-record {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.cv-record-dist {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.cv-record-bar {
  height: 6px;
  background-color: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.cv-record-bar div {
  height: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  animation: barGrow 0.8s ease both;
}
.cv-record-time {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

/* ── OBJECTIFS ── */
.cv-goals-list { display: flex; flex-direction: column; gap: 0.75rem; }

.cv-goal {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background-color: rgba(128,186,168,0.08);
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  position: relative;
  cursor: default;
  transition: background-color 0.2s;
}
.cv-goal:hover { background-color: rgba(128,186,168,0.16); }

.cv-goal-icon { font-size: 1.3rem; flex-shrink: 0; }
.cv-goal-body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.cv-goal-title { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.cv-goal-desc  { font-size: 0.75rem; color: var(--muted); }
.cv-goal-link  { color: var(--accent); text-decoration: underline; }

.cv-goal-badge {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--ink);
  color: var(--yellow);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.cv-goal-badge--team   { background-color: #4a7fa5; }
.cv-goal-badge--pr     { background-color: var(--accent); color: var(--ink); }
.cv-goal-badge--future { background-color: #6b7d8f; }

/* ── VOLUME GRAPHIQUE ── */
.cv-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 200px;
}
.cv-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.cv-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}
.cv-bar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.cv-bar-fill {
  width: 100%;
  background-color: var(--accent);
  border-radius: 2px 2px 0 0;
  position: relative;
  transition: background-color 0.2s;
  animation: barRise 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
  cursor: default;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.3rem;
}

.cv-bar-col:nth-child(6) .cv-bar-fill { background-color: rgba(128,186,168,0.45); }

@keyframes barRise {
  from { height: 0 !important; }
}

.cv-bar-fill:hover { background-color: var(--ink); }
.cv-bar-col:nth-child(6) .cv-bar-fill:hover { background-color: rgba(44,63,80,0.6); }

.cv-bar-val {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--ink);
  font-weight: 500;
  writing-mode: horizontal-tb;
  opacity: 0.8;
}

.cv-bar-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--ink);
  color: var(--yellow);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 10;
  text-align: center;
  line-height: 1.5;
  pointer-events: none;
}
.cv-bar-tooltip small { color: var(--green); display: block; }
.cv-bar-col:hover .cv-bar-tooltip { display: block; }

.cv-chart-xaxis {
  display: flex;
  gap: 0.5rem;
}
.cv-chart-xaxis span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── SPORTS ── */
.cv-chrono-badge {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  background-color: var(--ink);
  color: var(--yellow);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

.cv-sports-list { display: flex; flex-direction: column; gap: 0.8rem; }
.cv-sport {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cv-sport-icon { font-size: 1.2rem; flex-shrink: 0; }
.cv-sport-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--ink);
}
.cv-sport-name em { font-style: italic; color: var(--muted); font-size: 0.78rem; }
.cv-sport-dots {
  display: flex;
  gap: 4px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--rule);
  border: 1.5px solid var(--rule);
}
.dot.active {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ── VIE QUOTIDIENNE ── */
.cv-daily-list { display: flex; flex-direction: column; gap: 1rem; }
.cv-daily-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  cursor: default;
}
.cv-daily-item:last-child { border-bottom: none; padding-bottom: 0; }
.cv-daily-icon { color: var(--accent); font-size: 1.2rem !important; flex-shrink: 0; }
.cv-daily-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.cv-daily-val { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.cv-daily-aside {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.cv-daily-aside--hint { color: var(--accent); }

/* ── COMPÉTENCES ── */
.cv-skills-list { display: flex; flex-direction: column; gap: 0.85rem; }
.cv-skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}
.cv-skill-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── PROJETS ── */
.cv-projects-list { display: flex; flex-direction: column; gap: 1rem; }
.cv-project {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cv-project-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
}
.cv-project p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  padding-top: 0.25rem;
}

/* ════════════════════════════════════════
   TOOLTIP générique
════════════════════════════════════════ */
.cv-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--ink);
  color: var(--yellow);
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
.cv-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
[data-tooltip]:hover .cv-tooltip { display: block; }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: var(--yellow);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 3rem;
  align-items: start;
}

.footer-brand { 
  grid-column: 1;
  align-self: end;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.6rem;
}

.footer-logo-fallback {
  display: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(224,254,202,0.5);
  font-style: italic;
}

.footer-tagline a {
  color: inherit;
  text-decoration: none;
}

.footer-tagline a:hover {
  color: var(--green);
}

.footer-links {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(224,254,202,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cv-records  { grid-column: span 6; }
  .cv-goals    { grid-column: span 6; }
  .cv-volume   { grid-column: span 12; }
  .cv-sports   { grid-column: span 6; }
  .cv-daily    { grid-column: span 6; }
  .cv-skills   { grid-column: span 6; }
  .cv-projects { grid-column: span 6; }
}

@media (max-width: 700px) {
  .cv-hero-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .cv-partner { align-items: flex-start; }

  .cv-records, .cv-goals, .cv-volume,
  .cv-sports, .cv-daily, .cv-skills, .cv-projects {
    grid-column: span 12;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background-color: var(--ink);
    padding: 1rem;
    gap: 0.25rem;
  }
  nav.open { display: flex; }
  .burger { display: flex; }
  header { padding: 0.9rem 1.25rem; }
  header.scrolled { padding: 0.6rem 1.25rem; }
  .cv-hero { padding: 6rem 1.25rem 3rem; }
  .cv-dashboard { padding: 2rem 1.25rem 4rem; }
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}