/* Import de la même police que le portfolio */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

:root{
  --bg: #f4f4f6;          /* fond général doux */
  --paper: #ffffff;       /* cartes blanches */
  --ink: #111111;         /* texte principal */
  --muted: #6b6b6b;       /* texte secondaire */
  --accent: #3a3a3c;      /* liens / petits accents */
  --border: #e5e5e5;      /* bordures légères */
  --radius: 18px;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* ===== Containers ===== */
.container{
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px;
}

.grid{
  display: grid;
  gap: 16px;
}
@media (min-width: 800px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ===== Header & Footer ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244,244,246,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header h1{
  margin: 10px 0 4px;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
  letter-spacing: .5px;
  font-weight: 600;
}

.site-footer{
  margin-top: 20px;
  border-top: 1px solid var(--border);
  background: rgba(244,244,246,0.9);
}

/* ===== Cartes ===== */
.card{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: #d4d4d8;
}
.card h2{
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

/* ===== Listes “chips” (intérêts) ===== */
.chips{
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li{
  background: #ffffff;
  border: 1px dashed #d4d4d8;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .92rem;
  transition: background .15s ease, transform .15s ease;
}
.chips li:hover{
  background: #f3f4f6;
  transform: translateY(-2px);
}

/* ===== Liens (contacts) ===== */
.links{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.links a{
  display: inline-block;
  text-decoration: none;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.links a:hover{
  transform: translateY(-2px);
  border-color: #d4d4d8;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  color: #111111;
}

/* ===== Bouton “Retour” façon pill, neutre ===== */
.back{
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  transition: background .15s ease, transform .15s ease, border-color .15s, box-shadow .15s ease, color .15s ease;
}
.back:hover{
  background: #f3f4f6;
  transform: translateY(-1px);
  border-color: #d4d4d8;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  color: #111111;
}

/* ===== Focus accessibilité ===== */
a:focus-visible{
  outline: 3px solid #d4d4d8;
  outline-offset: 2px;
}
