/* =====================================================================
   Romaric Sylvain SAWADOGO — CV / Portfolio
   Design system : "Data Pipeline"
   Palette encre-marine + teal pipeline, ambre réservé aux distinctions
   Typo : Space Grotesk (display) · IBM Plex Sans (corps) · IBM Plex Mono
   Aucune dépendance CSS externe (pas de Bootstrap).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Encre / surfaces sombres */
  --ink:        #0e1621;
  --ink-2:      #16212e;
  --ink-3:      #1e2b3a;

  /* Clair / papier */
  --paper:      #f3f5f8;
  --card:       #ffffff;

  /* Texte */
  --text:       #17222f;
  --muted:      #5b6b7a;
  --muted-2:    #8493a1;
  --d-text:     #e9eef3;
  --d-muted:    #93a3b2;
  --d-faint:    #6c7e8e;

  /* Traits */
  --line:       #e2e8ee;
  --line-2:     #d6dee6;
  --line-dark:  rgba(255,255,255,.09);

  /* Accents — bleu azur repris du CV (#28A8E0) */
  --accent:     #28a8e0;   /* azur "pipeline" */
  --accent-br:  #4bbdef;   /* azur clair (hover / actif) */
  --accent-dk:  #146d99;   /* azur foncé (texte sur fond clair, contraste) */
  --accent-soft:#e3f3fb;   /* azur très clair (fonds teintés) */
  --amber:      #d99b34;   /* distinctions / trophées */
  --amber-soft: #f6ecd8;

  /* Typo */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Mesures */
  --sidebar-w: 340px;
  --radius:  14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent-br); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* =====================================================================
   Layout : sidebar fixe + contenu défilant
   ===================================================================== */
.layout { display: block; }

@media (min-width: 981px) {
  .layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
}

/* ---------- Sidebar ---------- */
.sidebar {
  background:
    radial-gradient(120% 60% at 15% -10%, rgba(40,168,224,.16), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: var(--d-text);
  position: relative;
  isolation: isolate;
}
@media (min-width: 981px) {
  .sidebar {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; flex-direction: column;
    padding: 40px 30px 28px;
    border-right: 1px solid var(--line-dark);
    overflow-y: auto;
  }
  /* liseré teal vertical (spine du pipeline) */
  .sidebar::after {
    content: ""; position: absolute; top: 0; right: -1px; width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
    opacity: .55;
  }
}

.brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar-wrap {
  position: relative; width: 132px; height: 132px; margin-bottom: 22px;
}
.avatar-wrap::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-br), var(--accent-dk), var(--accent));
  opacity: .9;
}
.avatar {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--ink-2);
}
.avatar-status {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-br); border: 3px solid var(--ink-2);
  box-shadow: 0 0 0 0 rgba(75,189,239,.6); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(75,189,239,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(75,189,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(75,189,239,0); }
}

.brand h1 { font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.brand h1 .sur { color: var(--accent-br); }
.role-eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-br); margin-top: 12px; padding: 5px 11px;
  border: 1px solid var(--line-dark); border-radius: 100px; background: rgba(40,168,224,.08);
}

.contact { width: 100%; margin-top: 26px; display: grid; gap: 3px; }
.contact a, .contact span.c-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 9px; border-radius: var(--radius-sm);
  color: var(--d-muted); font-size: .86rem; transition: background .2s var(--ease), color .2s var(--ease);
}
.contact a:hover { background: rgba(255,255,255,.05); color: #fff; }
.contact .ic { flex: none; width: 17px; height: 17px; color: var(--accent-br); }
.contact .c-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.socials { display: flex; gap: 9px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  color: var(--d-text); transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #06222f; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.cv-btn {
  margin-top: 20px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--accent); color: #06222f; font-weight: 600; font-family: var(--display);
  font-size: .92rem; letter-spacing: -.01em;
  transition: background .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 8px 22px -12px rgba(40,168,224,.9);
}
.cv-btn:hover { background: var(--accent-br); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(75,189,239,1); }
.cv-btn svg { width: 17px; height: 17px; }
.cv-btn-alt {
  margin-top: 9px; background: transparent; color: var(--d-muted);
  border: 1px solid var(--line-dark); box-shadow: none; font-size: .82rem;
}
.cv-btn-alt:hover { background: rgba(255,255,255,.06); color: #fff; transform: none; box-shadow: none; }

/* ---------- Nav = étapes du pipeline ---------- */
.side-nav { margin-top: 28px; }
@media (min-width: 981px) { .side-nav { margin-top: auto; padding-top: 26px; } }
.side-nav .nav-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--d-faint); padding-left: 9px; margin-bottom: 8px;
}
.side-nav ul { display: grid; gap: 1px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 9px 10px 9px 22px; border-radius: var(--radius-sm);
  color: var(--d-muted); font-size: .87rem; transition: color .2s var(--ease), background .2s var(--ease);
}
.side-nav a::before { /* nœud */
  content: ""; position: absolute; left: 7px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 7px; height: 7px; border: 1.5px solid var(--d-faint); border-radius: 1.5px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-nav a:hover::before { border-color: var(--accent-br); }
.side-nav a.active { color: #fff; background: rgba(40,168,224,.12); }
.side-nav a.active::before { background: var(--accent-br); border-color: var(--accent-br); transform: translateY(-50%) rotate(45deg) scale(1.15); }
.side-nav .idx { font-family: var(--mono); font-size: .72rem; color: var(--d-faint); margin-left: auto; }
.side-nav a.active .idx { color: var(--accent-br); }

.side-foot { margin-top: 22px; font-family: var(--mono); font-size: .64rem; color: var(--d-faint); letter-spacing: .04em; text-align: center; }

/* ---------- Barre mobile ---------- */
/* Barre + menu + voile : masqués par défaut, réactivés uniquement en mobile */
.mobile-bar { display: none; }
.m-menu { display: none; }
.scrim { display: none; }
@media (max-width: 980px) {
  .sidebar { padding: 26px 22px 30px; }
  .side-nav { display: none; }         /* nav gérée par la barre mobile */
  .mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 50;
    background: rgba(14,22,33,.92); backdrop-filter: blur(10px);
    color: var(--d-text); padding: 11px 16px; border-bottom: 1px solid var(--line-dark);
  }
  .mobile-bar .mb-name { font-family: var(--display); font-weight: 600; font-size: .95rem; }
  .mobile-bar .mb-name b { color: var(--accent-br); }
  .mobile-bar .burger {
    margin-left: auto; width: 42px; height: 42px; border-radius: 10px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
    display: grid; place-items: center; cursor: pointer; color: var(--d-text);
  }
  .mobile-bar .burger svg { width: 22px; height: 22px; }
  .m-menu {
    display: block;
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 320px); z-index: 60;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border-left: 1px solid var(--line-dark); padding: 20px 18px;
    transform: translateX(105%); transition: transform .32s var(--ease);
    overflow-y: auto; box-shadow: -20px 0 50px -20px rgba(0,0,0,.6);
  }
  .m-menu.open { transform: translateX(0); }
  .m-menu .close { margin-left: auto; display: block; color: var(--d-muted); background: none; border: 0; cursor: pointer; padding: 6px; }
  .m-menu .close svg { width: 24px; height: 24px; }
  .m-menu ul { margin-top: 8px; display: grid; gap: 2px; }
  .m-menu a { display: flex; gap: 12px; padding: 12px 12px; border-radius: 10px; color: var(--d-muted); font-size: .95rem; }
  .m-menu a .idx { font-family: var(--mono); font-size: .78rem; color: var(--d-faint); }
  .m-menu a.active, .m-menu a:hover { background: rgba(40,168,224,.14); color: #fff; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(6,10,15,.55); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
}

/* =====================================================================
   Contenu
   ===================================================================== */
.content { min-width: 0; }
.section {
  max-width: 860px;
  padding: 76px clamp(22px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}
.section:last-child { border-bottom: 0; }

/* En-tête de section */
.sec-head { margin-bottom: 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-dk); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.eyebrow .step { color: var(--muted-2); }
.section h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); color: var(--ink); letter-spacing: -.025em; }
.sec-intro { color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* ---------- HERO / À propos ---------- */
#about { padding-top: clamp(52px, 8vh, 96px); }
.hero-kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-dk); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title { font-size: clamp(2.1rem, 6vw, 3.4rem); color: var(--ink); letter-spacing: -.03em; line-height: 1.04; }
.hero-title .sur { color: var(--accent); }
.hero-sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--muted); margin-top: 14px; }
.hero-lead { margin-top: 22px; font-size: 1.05rem; color: #2c3a48; max-width: 60ch; }
.hero-lead strong { color: var(--ink); font-weight: 600; }

/* bandeau de faits (mono, discret) */
.facts { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--card); padding: 18px 18px; }
.fact .k { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.fact .k .u { color: var(--accent); }
.fact .l { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

/* =====================================================================
   Signature : timeline "pipeline" (expériences)
   ===================================================================== */
.pipeline { position: relative; margin-left: 6px; }
.pipeline::before { /* la conduite */
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line-2) 90%);
  border-radius: 2px;
}
.node { position: relative; padding-left: 40px; padding-bottom: 40px; }
.node:last-child { padding-bottom: 0; }
.node::before { /* marqueur composant (losange) */
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background: var(--card); border: 2px solid var(--accent); border-radius: 4px;
  transform: rotate(45deg); transition: background .2s var(--ease), box-shadow .2s var(--ease);
  z-index: 1;
}
.node:hover::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.node .period {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--accent-dk);
  background: var(--accent-soft); display: inline-block; padding: 3px 10px; border-radius: 100px; margin-bottom: 9px;
}
.node .role { font-size: 1.16rem; color: var(--ink); letter-spacing: -.015em; }
.node .org { font-family: var(--display); font-weight: 500; color: var(--muted); margin-top: 2px; font-size: .96rem; }
.node .org .sep { color: var(--line-2); margin: 0 7px; }
.node .ctx { margin-top: 12px; color: #33414f; font-size: .96rem; }
.node .ctx .client { color: var(--ink); font-weight: 600; }

/* blocs "activités" */
.tasks { margin-top: 16px; display: grid; gap: 16px; }
.task .task-h {
  display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 600;
  color: var(--ink); font-size: .96rem;
}
.task .task-h .tno {
  font-family: var(--mono); font-size: .7rem; color: var(--accent-dk);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; flex: none;
}
.task ul { margin-top: 8px; display: grid; gap: 5px; }
.task li { position: relative; padding-left: 18px; color: #44525f; font-size: .92rem; }
.task li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }

/* stack technique = puces mono façon composants */
.stack { margin-top: 16px; }
.stack .stack-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono); font-size: .74rem; color: #2f3d4b;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 7px;
  padding: 4px 9px; transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-soft); }

/* =====================================================================
   Cartes (projets universitaires / freelance / éducation)
   ===================================================================== */
.cards { display: grid; gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 16px 34px -24px rgba(23,34,47,.4); transform: translateY(-2px); }
.card .card-top { display: flex; align-items: flex-start; gap: 14px; }
.card .card-num {
  font-family: var(--mono); font-size: .8rem; color: var(--accent-dk);
  border: 1px solid var(--accent); border-radius: 8px; width: 34px; height: 34px;
  display: grid; place-items: center; flex: none; background: var(--accent-soft);
}
.card h3 { font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.card .card-meta { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); margin-top: 3px; letter-spacing: .03em; }
.card p { color: #44525f; font-size: .94rem; margin-top: 10px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-family: var(--mono); font-size: .78rem; color: var(--accent-dk); font-weight: 500;
}
.card .card-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.card .card-link:hover svg { transform: translate(2px,-2px); }
.card ul.card-list { margin-top: 10px; display: grid; gap: 5px; }
.card ul.card-list li { position: relative; padding-left: 18px; color: #44525f; font-size: .92rem; }
.card ul.card-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }

/* éducation : ligne verticale simple */
.edu { display: grid; gap: 16px; }
.edu-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  border-left: 3px solid var(--accent);
}
.edu-item .edu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.edu-item h3 { font-size: 1.08rem; color: var(--ink); }
.edu-item .edu-when { font-family: var(--mono); font-size: .74rem; color: var(--accent-dk); background: var(--accent-soft); padding: 3px 10px; border-radius: 100px; }
.edu-item .edu-deg { font-family: var(--display); font-weight: 500; color: var(--muted); margin-top: 4px; }
.edu-item .edu-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: .82rem; color: var(--accent-dk); font-weight: 600; }
.edu-item .edu-badge svg { width: 15px; height: 15px; }
.edu-year { margin-top: 14px; }
.edu-year > .yl { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.edu-year .courses { margin-top: 6px; color: #4a5866; font-size: .9rem; }

/* =====================================================================
   Compétences
   ===================================================================== */
.skill-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .skill-grid { grid-template-columns: 1fr 1fr; } }
.skill-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.skill-card .sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.skill-card .sc-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dk); flex: none; }
.skill-card .sc-ic svg { width: 18px; height: 18px; }
.skill-card h3 { font-size: .98rem; color: var(--ink); }
.skill-card .rows { display: grid; gap: 10px; }
.skill-row .sr-k { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.skill-card.full { grid-column: 1 / -1; }

.langs { display: grid; gap: 12px; }
@media (min-width: 560px) { .langs { grid-template-columns: repeat(3, 1fr); } }
.lang .ln { font-family: var(--display); font-weight: 600; color: var(--ink); }
.lang .ll { font-size: .82rem; color: var(--muted); }
.lang .bar { margin-top: 8px; height: 5px; border-radius: 100px; background: var(--line); overflow: hidden; }
.lang .bar span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-br)); }

.traits { display: flex; flex-wrap: wrap; gap: 8px; }
.trait { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: #33414f; background: var(--paper); border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 13px; }
.trait svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* =====================================================================
   Certifications & distinctions
   ===================================================================== */
.awards-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .awards-grid { grid-template-columns: 1fr 1fr; } }
.award-col h3 { font-size: 1rem; color: var(--ink); display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.award-col h3 svg { width: 18px; height: 18px; color: var(--amber); }
.cert-list { display: grid; gap: 8px; }
.cert {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.cert:hover { border-color: var(--accent); transform: translateX(3px); }
.cert .cert-ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--accent-dk); }
.cert .cert-ic svg { width: 18px; height: 18px; }
.cert .cert-name { font-size: .9rem; color: #2c3a48; }
.cert.link .cert-name { color: var(--ink); }
.cert.link:hover .cert-name { color: var(--accent-dk); }
.cert .ext { margin-left: auto; color: var(--muted-2); }
.cert .ext svg { width: 13px; height: 13px; }

.honor { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.honor:last-child { border-bottom: 0; }
.honor .medal { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-family: var(--mono); font-weight: 600; font-size: .82rem; }
.honor .h-body b { color: var(--ink); font-family: var(--display); }
.honor .h-body span { display: block; font-size: .82rem; color: var(--muted); margin-top: 1px; }

/* =====================================================================
   Centres d'intérêt / engagement
   ===================================================================== */
.interests { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .interests { grid-template-columns: repeat(3, 1fr); } }
.interest { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: left; }
.interest .i-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dk); margin-bottom: 12px; }
.interest .i-ic svg { width: 20px; height: 20px; }
.interest h3 { font-size: .98rem; color: var(--ink); }
.interest p { color: var(--muted); font-size: .88rem; margin-top: 6px; }

.assoc { margin-top: 22px; background: var(--ink); color: var(--d-text); border-radius: var(--radius); padding: 24px; }
.assoc h3 { color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.assoc h3 svg { width: 18px; height: 18px; color: var(--accent-br); }
.assoc ul { margin-top: 14px; display: grid; gap: 9px; }
.assoc li { position: relative; padding-left: 20px; color: var(--d-muted); font-size: .9rem; }
.assoc li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent-br); }
.assoc li b { color: #fff; font-weight: 500; }

/* ---------- Pied ---------- */
.foot { background: var(--ink); color: var(--d-muted); padding: 34px clamp(22px,5vw,68px); }
.foot .foot-in { max-width: 860px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.foot .fname { font-family: var(--display); color: #fff; font-weight: 600; }
.foot .fname b { color: var(--accent-br); }
.foot .fmeta { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.foot a { color: var(--accent-br); }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Bouton haut de page ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark);
  background: var(--ink); color: var(--d-text); display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s var(--ease);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.6);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #06222f; }
.to-top svg { width: 20px; height: 20px; }
