:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #8b5cf6;
  --muted: #94a3b8;
  --glass: rgba(255,255,255,0.04);
  --radius: 12px;
  --maxw: 1100px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(180deg,#071024 0%, #07102a 60%);
  color: #e6eef8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 0 20px;
  line-height: 1.6;
}

/* WRAPPER */
.wrap {
  width: 100%;
  max-width: var(--maxw);
}

/* MENU */
nav.menu {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,36,0.85);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 100;
  padding: 16px 30px;
  backdrop-filter: blur(10px);
  transition: top 0.3s ease;
}
nav.menu ul {
  display: flex;
  gap: 18px;
  list-style: none;
}
nav.menu ul li a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.2s ease;
  font-size: 14px;
}
nav.menu ul li a:hover,
nav.menu ul li a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* HEADER */
header.header {
  display: grid;
  grid-template-columns: 120px 1fr 220px;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 24px;
  border-radius: var(--radius);
  align-items: center;
  border: 1px solid rgba(255,255,255,0.03);
  margin-top: 80px;
  transition: transform 0.3s ease;
}
header.header:hover {
  transform: translateY(-4px);
}
.photo {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.title h1 { font-size: 20px; }
.name { font-weight: 700; font-size: 28px; }
.badge {
  background: linear-gradient(90deg, rgba(139,92,246,0.12), rgba(99,102,241,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

/* CARDS */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
h2 {
  margin: 0 0 14px 0;
  font-size: 18px;
  color: #fff;
}
p.lead { color: var(--muted); }

/* CONTACT */
.contact-links a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.contact-links i {
  color: white;
  font-size: 16px;
}

/* FOOTER */
footer {
  margin-top: 70px;
  margin-bottom: 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  header.header {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }
  main.grid {
    grid-template-columns: 1fr;
  }
  .right { align-items: flex-start; }
}

.chip a {
  color: inherit;          /* reprend la couleur du texte parent */
  text-decoration: none;   /* supprime le soulignement */
  cursor: pointer;         /* montre que c'est cliquable */
  transition: color 0.2s ease;
}

.chip a:hover {
  color: var(--accent);    /* optionnel : couleur au survol */
}

/* Vignettes cliquables */
.card-thumb {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  color: #fff;             /* texte en blanc */
  text-decoration: none;    /* pas de soulignement */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;           /* pour que tout le bloc soit cliquable */
}

.card-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  color: var(--accent);     /* optionnel : change la couleur au survol */
}

/* Assurer que les liens à l'intérieur restent blancs */
.card-thumb a 
  color: inherit;
  text-decoration: none;
}

circles-row {
  display: flex;
  justify-content: center;
  gap: 40px; /* espace entre les cercles */
  flex-wrap: nowrap; /* les garde en ligne */
  overflow-x: auto; /* scroll horizontal si pas assez de place */
  padding: 20px 0;
}

/* Style des cercles */
.circle-thumb {
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.circle-thumb strong {
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}

.circle-thumb p {
  font-size: 13px;
  margin: 3px 0;
  line-height: 1.3em;
  color: var(--muted);
}

/* Effet hover */
.circle-thumb:hover {
  transform: scale(1.05);
  border-color: #fff;
}

/* Conteneur global */
.timeline-horizontal {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 40px 0;
  padding: 0 20px;
}

/* Ligne horizontale */
.timeline-line {
  position: absolute;
  top: 40px; /* position du trait */
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.8;
  z-index: 1;
  border-radius: 2px;
}

/* Étapes */
.timeline-step {
  position: relative;
  text-align: center;
  width: 33%;
  z-index: 2; /* au-dessus de la ligne */
}

/* Cercles */
.timeline-step .circle {
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 3px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Contenu sous les cercles */
.timeline-step .content {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4em;
}

.timeline-step .content strong {
  color: #fff;
  display: block;
  margin-bottom: 5px;
}

#submitBtn {
  background: transparent;              /* bouton transparent */
  border: 1px solid rgba(255,255,255,0.1); /* fin contour discret */
  color: #e6eef8;                       /* texte blanc/gris clair */
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submitBtn:hover {
  background: rgba(255,255,255,0.08);   /* léger fond au survol */
  border-color: rgba(255,255,255,0.2);
}