@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=Fira+Code:wght@500&display=swap');

:root {
  --bg: #0c0d10;
  --surface: #15171c;
  --surface-raised: #1a1d24;
  --border: #23262e;
  --border-active: #7c6cf7;

  --violet: #7c6cf7;
  --violet-dim: rgba(124, 108, 247, 0.14);
  --violet-glow: rgba(124, 108, 247, 0.30);
  --blue: #4d8dff;
  --blue-dim: rgba(77, 141, 255, 0.14);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.14);
  --amber: #f0a94c;
  --amber-dim: rgba(240, 169, 76, 0.14);
  --rose: #f472b6;
  --rose-dim: rgba(244, 114, 182, 0.14);

  --text-title: #eaeaec;
  --text-body: #9698a3;
  --text-dim: #5c5f6a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a, a:visited { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

main {
  flex: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px) 90px;
  width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

header {
  background: rgba(10, 11, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 40px);
  flex-wrap: wrap;
  gap: 10px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-title);
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--violet);
  letter-spacing: 0.4px;
}

nav ul {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--text-title);
}

nav a.active {
  border-bottom-color: var(--violet);
}

.hero {
  padding: 56px 0 20px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-kicker .logo-dot { box-shadow: 0 0 6px var(--green); }

.hero h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent-number {
  color: var(--violet);
}

.hero-bio {
  font-size: 1.1rem;
  max-width: 56ch;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .hero h1 { font-size: 2.2rem; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 48px;
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.status-card-head span:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52, 211, 153, 0.32);
  padding: 3px 10px;
  border-radius: 20px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-metric {
  padding: 22px 18px;
  border-right: 1px solid var(--border);
}

.status-metric:last-child { border-right: none; }

.status-metric-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-title);
  display: block;
}

.status-metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.btn-solid {
  background: var(--violet);
  color: #0a0b0f !important;
}

.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--violet-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-title) !important;
}

.btn-outline:hover {
  border-color: var(--violet);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.page-title {
  font-size: clamp(1.7rem, 4vw + 0.8rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 40px 0 12px;
}

@media (max-width: 720px) {
  .page-title { font-size: 1.9rem; }
}

.page-subtitle {
  color: var(--text-body);
  max-width: 60ch;
  margin-bottom: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--border-active); }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--violet);
  margin-bottom: 8px;
  display: block;
}

.card p { margin-top: 8px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-body);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.styled-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.96rem;
}

.styled-list li::before {
  content: "\203a";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--violet);
  font-family: var(--font-mono);
  font-weight: 700;
}

.styled-list li strong {
  color: var(--text-title);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--violet);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--violet);
  margin-bottom: 6px;
  display: block;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.timeline-org {
  color: var(--text-body);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

@media (max-width: 720px) {
  .grid-2, .grid-3, .status-grid { grid-template-columns: 1fr; }
  .status-metric { border-right: none; border-bottom: 1px solid var(--border); }
  .status-metric:last-child { border-bottom: none; }
  nav ul { gap: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52, 211, 153, 0.32);
  padding: 3px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}

.cert-info h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.watch-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.watch-item:last-child { border-bottom: none; }

.watch-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.watch-item h3 {
  font-size: 1.02rem;
  margin: 4px 0 6px;
}

.contact-card {
  text-align: left;
}

.contact-card .card-icon-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-title);
  margin: 10px 0 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-body);
  margin: 32px 0 0;
}

.back-link:hover { color: var(--violet); }

.project-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.project-meta-row strong {
  color: var(--text-body);
  font-weight: 600;
}

.project-body h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.project-body p { margin-bottom: 4px; }

footer {
  text-align: center;
  padding: 36px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}


/* ============================================================
   ACCENTS — un violet/bleu dominant, le vert reserve au statut
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Deux halos discrets, dans la meme famille de teinte */
body {
  background-image:
    radial-gradient(820px circle at 10% -8%, rgba(124, 108, 247, 0.14), transparent 62%),
    radial-gradient(680px circle at 95% 6%, rgba(77, 141, 255, 0.10), transparent 64%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

header {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--violet), var(--blue)) 1;
  border-bottom: 1px solid var(--border);
}

/* Menu mobile : case a cocher masquee mais focalisable au clavier */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.burger { display: none; }

footer {
  border-top: 1px solid var(--border);
}

/* Le chiffre du hero : seul endroit avec un degrade */
.hero h1 .accent-number {
  color: var(--violet);
  background: linear-gradient(120deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-solid {
  background: linear-gradient(120deg, var(--violet), var(--blue));
  color: #ffffff !important;
  border-color: transparent;
}

.btn-outline:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
}

/* Le vert ne sert qu'a la disponibilite */
.logo-dot { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.55); }
.hero-kicker { color: var(--green); }

/* Cartes : un seul lisere, toujours violet */
.card {
  border-left: 3px solid var(--violet);
}

.card:hover {
  border-color: var(--border-active);
  border-left-color: var(--violet);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

.card-eyebrow { color: var(--violet); }

/* Etiquettes : une seule teinte, discrete */
.tag {
  color: #b7b0f4;
  background: rgba(124, 108, 247, 0.10);
  border-color: rgba(124, 108, 247, 0.22);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tag:hover {
  color: #d5d0ff;
  border-color: var(--violet);
}

/* Chiffres cles */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.status-grid { gap: 0; }

.status-metric-value {
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.status-metric:nth-child(2) .status-metric-value { color: var(--violet); }

.timeline::before {
  width: 2px;
  left: 5px;
  background: linear-gradient(180deg, var(--violet), rgba(124, 108, 247, 0.15));
}

.cert-card { border-left: 3px solid var(--violet); }

/* ============================================================
   LARGE — occuper la page au lieu d'une colonne au milieu
   ============================================================ */

@media (min-width: 940px) {
  /* Hero sur deux colonnes : texte a gauche, chiffres a droite */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    column-gap: 56px;
    align-items: start;
    padding: 72px 0 24px;
  }

  .hero-kicker,
  .hero h1,
  .hero-bio,
  .hero-actions { grid-column: 1; }

  .hero-bio { max-width: 46ch; }

  .hero .status-card {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-bottom: 0;
  }

  .hero .status-grid { grid-template-columns: 1fr; }

  .hero .status-metric {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero .status-metric:last-child { border-bottom: none; }

  /* Parcours : date a gauche, contenu a droite */
  .timeline { padding-left: 30px; }

  .timeline-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 36px;
    margin-bottom: 44px;
  }

  .timeline-date {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    padding-top: 3px;
  }

  .timeline-item > *:not(.timeline-date) { grid-column: 2; }

  /* Deux blocs cote a cote sur l'accueil */
  .section-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .section-pair .section { margin-top: 56px; }

  /* Confort de lecture : paragraphes et listes alignes sur la meme largeur */
  .project-body p,
  .timeline-item p,
  .card > p,
  .project-body .styled-list,
  .timeline-item .styled-list,
  .card > .styled-list { max-width: 92ch; }
}

@media (min-width: 1100px) {
  .cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cert-card { margin-bottom: 0; }
}

/* ============================================================
   MOBILE — le texte etait calibre pour le desktop
   ============================================================ */

@media (max-width: 720px) {
  body { background-attachment: scroll; }

  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px clamp(16px, 5vw, 24px);
  }

  .logo-block { order: 1; }
  .burger { order: 2; }
  nav ul { order: 3; }

  /* Bouton menu */
  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-title);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
  }

  .burger::before { content: "\2630"; }

  .nav-toggle:checked ~ .burger {
    border-color: var(--violet);
    color: var(--violet);
  }

  .nav-toggle:checked ~ .burger::before { content: "\2715"; }

  .nav-toggle:focus-visible ~ .burger {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
  }

  /* Panneau : ferme par defaut, deplie au clic */
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0 4px;
  }

  .nav-toggle:checked ~ ul { display: flex; }

  nav li { width: 100%; }

  nav a {
    display: block;
    font-size: 1rem;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    white-space: normal;
  }

  nav a.active {
    color: var(--violet);
    border-color: var(--violet);
    background: var(--violet-dim);
    border-bottom-color: var(--violet);
  }

  .logo-name { font-size: 1.1rem; }
  .logo-tag { font-size: 0.75rem; }

  body { font-size: 1.02rem; line-height: 1.7; }
  .hero-bio { font-size: 1.08rem; }
  .hero-kicker { font-size: 0.88rem; }
  .page-subtitle { font-size: 1.02rem; }
  .card p, .styled-list li { font-size: 1.02rem; }
  .card h3 { font-size: 1.25rem; }
  .card-eyebrow { font-size: 0.84rem; }
  .section-head h2 { font-size: 1.4rem; }
  .section-index { font-size: 0.85rem; }

  .tag { font-size: 0.85rem; padding: 6px 12px; }
  .status-card-head span:first-child { font-size: 0.85rem; }
  .status-metric { padding: 20px 18px; }
  .status-metric-value { font-size: 2rem; }
  .status-metric-label { font-size: 0.82rem; }
  .timeline-date { font-size: 0.86rem; }
  .timeline-item h3 { font-size: 1.25rem; }
  .timeline-org { font-size: 1rem; }
  .cert-badge { font-size: 0.82rem; padding: 5px 11px; }
  .cert-info h3 { font-size: 1.1rem; }
  .cert-info p { font-size: 0.95rem; }
  .watch-date { font-size: 0.84rem; }
  .watch-item h3 { font-size: 1.12rem; }
  .project-meta-row { font-size: 0.98rem; gap: 10px 20px; }
  .contact-card .card-icon-line { font-size: 0.98rem; }
  .back-link { font-size: 0.98rem; padding: 8px 0; }
  footer { font-size: 0.92rem; padding: 32px 20px; }

  .btn { font-size: 1rem; padding: 14px 24px; min-height: 48px; }

  .section { margin-top: 44px; }
  .card { padding: 22px 20px; }
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 16px; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.6rem); }
  .hero-bio { font-size: 1.06rem; }
  .page-title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .status-metric-value { font-size: 1.9rem; }
  .cert-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .container { padding-bottom: 56px; }
}
