/* ================================================================
   Portfolio Adriana Voahangimalala — Design System
   Assistante polyvalente & virtuelle · Ivoire chaud + Indigo + Rose poudré
   Typo : Fraunces (serif display) + Chillax (sans body)
   ================================================================ */

/* ─── FONT FACES ─────────────────────────────────────────── */
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-Variable.woff2') format('woff2'),
       url('../fonts/Chillax-Variable.woff') format('woff');
  font-weight: 200 700;
  font-display: swap;
}

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Identité couleur — Indigo profond + Rose poudré */
  --indigo:        #5546c9;
  --indigo-light:  #6d5fe0;
  --indigo-dark:   #3f32a6;
  --indigo-xlight: #ecebfb;
  --indigo-glow:   rgba(85,70,201,0.14);

  --rose:          #d98ba5;
  --rose-deep:     #c46a88;
  --rose-xlight:   #fbeef2;

  /* Surfaces — ivoire chaud */
  --bg:            #fbf8f3;
  --bg2:           #f4ede4;
  --surface:       #ffffff;
  --surface-md:    #fdfaf6;

  /* Texte — encre indigo */
  --text:          #211d3a;
  --text-muted:    #655f7d;
  --text-subtle:   #9a94ac;
  --bleu-blanc:    #211d3a;

  /* Bordures */
  --border:        rgba(85,70,201,0.11);
  --border-hover:  rgba(85,70,201,0.30);
  --border-accent: rgba(85,70,201,0.22);

  /* Glass */
  --glass-bg:      rgba(255,255,255,0.65);
  --glass-border:  rgba(85,70,201,0.12);

  /* Shadows */
  --sh-xs:  0 1px 4px rgba(74,54,120,0.06);
  --sh-sm:  0 2px 12px rgba(74,54,120,0.09);
  --sh-md:  0 8px 32px rgba(74,54,120,0.11);
  --sh-lg:  0 20px 60px rgba(74,54,120,0.13);
  --sh-btn: 0 4px 20px rgba(85,70,201,0.28);
  --sh-hover: 0 24px 60px rgba(74,54,120,0.16);

  /* Layout */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --section-pad: 7rem 6%;

  /* Typography */
  --font:         'Chillax', -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Animation */
  --dur:  0.25s;
  --ease: cubic-bezier(0.34, 1, 0.64, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(85,70,201,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,70,201,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--text);
  min-height: 100vh;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── CURSOR ─────────────────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--indigo);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width .15s, height .15s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(85,70,201,0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.revealed { opacity: 1; transform: none; }
.h-anim { opacity: 0; }

/* ─── CONTAINER ──────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; }

/* ─── SECTION BASE ───────────────────────────────────────── */
section { padding: var(--section-pad); }
.section-alt { background: var(--surface); }

.section-head { margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-xlight);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6%;
  z-index: 1000;
  transition: background var(--dur), padding var(--dur), box-shadow var(--dur), border-color var(--dur);
}
#navbar.scrolled {
  background: rgba(251,248,243,0.90);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 0.7rem 6%;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}

.nav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-logo span { color: var(--indigo); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.2rem;
  background: var(--indigo) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem !important;
  box-shadow: var(--sh-btn);
  transition: background var(--dur) !important;
}
.nav-cta:hover { background: var(--indigo-light) !important; }

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
#hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

#mobileMenu {
  display: none;
  position: fixed;
  inset: 0; top: 60px;
  background: rgba(251,248,243,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  list-style: none;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--sh-btn);
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
}
.btn-primary:hover {
  background: var(--indigo-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(85,70,201,0.40);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 6% 5rem;
  background:
    radial-gradient(ellipse 65% 55% at 50% -5%, rgba(85,70,201,0.09) 0%, transparent 65%),
    transparent;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-content { text-align: left; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-xlight);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 0.38rem 1rem;
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 480px;
  margin: 0 0 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* SIGNATURE — profil + carte agenda */
.hero-panel {
  position: relative;
}
.hero-avatar {
  position: absolute;
  top: -28px;
  right: -120px;
  width: 300px; height: 300px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--indigo), var(--rose));
  box-shadow: var(--sh-lg);
  z-index: 1;                 /* DERRIÈRE la carte */
}
.hero-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 5px solid var(--surface);
  background: var(--indigo-xlight);
}
.agenda-card {
  margin: 170px auto 0;       /* descend la carte pour laisser la photo occuper le haut-droite */
  position: relative;
  z-index: 3;                 /* DEVANT la photo */
}
.hero-namecard {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 1.4rem;
}
.hero-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-role {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 500;
}
.agenda-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-lg);
  padding: 1.5rem 1.5rem 1.3rem;
  position: relative;
  overflow: hidden;
}
.agenda-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--rose));
}
.agenda-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.agenda-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.agenda-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 2px;
}
.agenda-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-xlight);
  border-radius: 20px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.agenda-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.agenda-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.agenda-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
}
.agenda-item.done .agenda-check {
  background: var(--indigo);
  color: #fff;
  box-shadow: var(--sh-btn);
}
.agenda-item.done { color: var(--text-subtle); text-decoration: line-through; text-decoration-color: var(--border-accent); }
.agenda-check.pending {
  border: 2px dashed var(--border-hover);
  background: transparent;
}
.agenda-item.active {
  color: var(--text);
  font-weight: 600;
}
.agenda-item.active .agenda-check.pending {
  border-style: solid;
  border-color: var(--rose);
  position: relative;
}
.agenda-item.active .agenda-check.pending::after {
  content: '';
  width: 7px; height: 7px;
  background: var(--rose);
  border-radius: 50%;
  animation: pulse-green 1.6s infinite;
}
.agenda-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* STATS BAR */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem auto 0;
  max-width: 700px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  overflow: hidden;
  animation: slideUp .7s .5s var(--ease) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.stat-item {
  flex: 1;
  padding: 1.6rem 1rem;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--indigo);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ─── EXPERTISE CARDS ─────────────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--border-hover);
  will-change: transform;
}
.card-icon {
  width: 46px; height: 46px;
  background: var(--indigo-xlight);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-muted);
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.tag.accent {
  background: var(--indigo-xlight);
  color: var(--indigo);
  border-color: var(--border-accent);
}

/* ─── STACK ──────────────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.plugin-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--sh-xs);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.plugin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
  border-color: var(--border-hover);
}
.plugin-icon {
  width: 36px; height: 36px;
  background: var(--indigo-xlight);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.plugin-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.plugin-type {
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-top: 1px;
}

/* ─── APPROCHE ───────────────────────────────────────────── */
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.approach-quote {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.93rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  box-shadow: var(--sh-sm);
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  font-style: normal;
}
.quote-avatar {
  width: 34px; height: 34px;
  background: var(--indigo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: var(--sh-btn);
}
.quote-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.quote-role {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 1px;
}

.approach-steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── PROJETS ────────────────────────────────────────────── */
#projets { text-align: center; }
#projets .section-head { text-align: left; }
#projets .section-subtitle { text-align: left; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: left;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-hover);
  border-color: var(--border-hover);
}
.project-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
  position: relative;
}
.project-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--indigo);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  box-shadow: var(--sh-btn);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.project-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body {
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.project-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.project-tag {
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}
.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
  flex-shrink: 0;
}
.project-link:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-xlight);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.8rem;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur), border-color var(--dur), color var(--dur);
}
.btn-load-more:hover {
  background: var(--indigo-xlight);
  border-color: var(--border-hover);
  color: var(--indigo);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

/* ─── EXPÉRIENCES ────────────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.exp-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.9rem;
  box-shadow: var(--sh-xs);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--border-hover);
}
.exp-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--rose-xlight);
  color: var(--rose-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.exp-role {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.exp-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ─── ENGAGEMENTS ────────────────────────────────────────── */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.promise-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--border-hover);
}
.promise-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo-xlight);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.promise-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.promise-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── À PROPOS ───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-sidebar { position: sticky; top: 5rem; }

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  background: var(--indigo-xlight);
  margin-bottom: 1.2rem;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 3.5rem;
}
.about-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
  box-shadow: var(--sh-xs);
}
.dot-green {
  width: 7px; height: 7px;
  background: #34c759;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,199,89,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(52,199,89,0); }
}
.about-socials { display: flex; flex-direction: column; gap: 0.5rem; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--sh-xs);
  transition: background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.social-btn:hover {
  color: var(--indigo);
  border-color: var(--border-hover);
  box-shadow: var(--sh-sm);
}

.about-intro {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.about-intro strong { font-weight: 700; }

.about-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-body p { margin-bottom: 0.9rem; }
.about-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2rem;
}
.value-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.value-item:hover { border-color: var(--border-hover); box-shadow: var(--sh-sm); }
.value-icon { color: var(--indigo); font-size: 1rem; margin-bottom: 0.5rem; }
.value-title { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.value-desc { font-size: 0.72rem; color: var(--text-subtle); line-height: 1.5; }

.about-timeline { margin-top: 2rem; }
.timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 1.2rem;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.timeline-marker {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--indigo-xlight);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  border: 1px solid var(--border-accent);
}
.timeline-line {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
  margin: 4px 0 0 3px;
}
.timeline-role { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.timeline-where { font-size: 0.73rem; color: var(--text-subtle); margin-top: 2px; }

/* ─── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--surface); text-align: center; }

.contact-card {
  background: var(--text);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(85,70,201,0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-tag {
  color: rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.contact-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.contact-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.2rem;
  line-height: 1.6;
}
.contact-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: #fff;
  color: var(--text);
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background var(--dur), transform var(--dur);
}
.contact-btn-primary:hover { background: #f0f0f8; transform: translateY(-1px); }

.contact-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color var(--dur), background var(--dur);
}
.contact-btn-outline:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}
.contact-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur);
}
.contact-cv:hover { color: rgba(255,255,255,0.7); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 2rem 6%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg);
}
footer p { font-size: 0.78rem; color: var(--text-subtle); }
footer a { color: var(--indigo); transition: color var(--dur); }
footer a:hover { color: var(--indigo-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-panel { position: static; display: flex; flex-direction: column; align-items: center; }
  .hero-avatar { position: static; order: 1; width: 180px; height: 180px; margin: 0 auto 1rem; box-shadow: var(--sh-md); }
  .hero-namecard { order: 2; margin: 0 auto 1.6rem; }
  .agenda-card { order: 3; margin: 0 auto; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .approach-layout { grid-template-columns: 1fr; gap: 3rem; }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 240px 1fr; gap: 3.5rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: 5rem 5%; }
  #navbar .nav-links { display: none; }
  #hamburger { display: flex; }
  #hero { padding-top: 8rem; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .stats-bar { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { min-width: 50%; border-top: 1px solid var(--border); }
  .stat-item:nth-child(1), .stat-item:nth-child(3) { border-top: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-sidebar { position: static; display: flex; flex-direction: column; align-items: center; }
  .about-photo { max-width: 220px; aspect-ratio: 1; }
  .about-values { grid-template-columns: 1fr; }
  .contact-card { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-actions { flex-direction: column; align-items: center; }
  .agenda-card { max-width: 100%; }
}
