/* 1. VARIABLES — change ici pour retoucher tout le site d'un coup */
:root {
  /* Papier / fond */
  --paper: #faf7ef;
  --paper-raised: #fffdf8;
  --paper-line: #ece4d1;

  /* Encre / texte */
  --ink: #23211c;
  --ink-soft: #6f6a5c;
  --ink-faint: #a49c86;

  /* Couleur dominante : jaune */
  --yellow: #ffc629;
  --yellow-deep: #e6a600;
  --yellow-pale: #fff3cc;
  --yellow-ink: #4a3200;

  /* Couleurs d'accent (icônes, boutons, tags — pour donner de la vie) */
  --teal: #2fb7a5;
  --teal-pale: #dcf3ef;
  --coral: #ff6b5e;
  --coral-pale: #ffe3df;
  --blue: #4c7eff;
  --blue-pale: #e3ebff;
  --purple: #9b6bff;
  --purple-pale: #ece3ff;
  --green: #43ad6b;
  --green-pale: #dcf3e4;
  --pink: #ff6fa5;
  --pink-pale: #ffe3ee;

  /* Typographie */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Rayons & ombres */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(35, 33, 28, 0.06), 0 1px 1px rgba(35, 33, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 33, 28, 0.08), 0 2px 6px rgba(35, 33, 28, 0.05);
  --shadow-lg: 0 20px 48px rgba(35, 33, 28, 0.12), 0 4px 12px rgba(35, 33, 28, 0.06);

  /* Rythme */
  --nav-height: 72px;
  --container-w: 1100px;
}

/* 2. RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Texture papier très subtile façon feuille pointée */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(35, 33, 28, 0.1) 1px, transparent 0);
  background-size: 26px 26px;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. UTILITAIRES */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.page-main {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 100px;
  min-height: 70vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  padding: 7px 16px 7px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.page-header {
  margin-bottom: 48px;
  max-width: 620px;
}

.page-header .eyebrow {
  margin-bottom: 18px;
}

.page-header h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin-bottom: 14px;
}

.page-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.highlight {
  background: var(--yellow-pale);
  color: var(--yellow-ink);
  padding: 0.05em 0.35em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.pill-label.c-yellow { background: var(--yellow-pale); color: var(--yellow-ink); }
.pill-label.c-teal   { background: var(--teal-pale); color: #0f5f54; }
.pill-label.c-coral  { background: var(--coral-pale); color: #a13224; }
.pill-label.c-blue   { background: var(--blue-pale); color: #1f3f9e; }
.pill-label.c-purple { background: var(--purple-pale); color: #5a30c9; }
.pill-label.c-green  { background: var(--green-pale); color: #1f6b3d; }
.pill-label.c-pink   { background: var(--pink-pale); color: #a1265b; }

/* 4. NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 239, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--paper-line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow-ink);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--paper-raised);
}

.nav-links a.active {
  color: var(--yellow-ink);
  background: var(--yellow-pale);
  font-weight: 600;
}

/* Bouton hamburger — visible seulement en mobile */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 5. BOUTONS & BADGES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--yellow-deep);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--paper-raised);
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost:hover {
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.86rem;
}

.btn svg { width: 16px; height: 16px; }

/* Icônes sociales (Accueil) */
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { transform: translateY(-3px) rotate(-4deg); box-shadow: var(--shadow-md); }
.social-btn.linkedin:hover { background: var(--yellow-pale); }
.social-btn.github:hover { background: #ece4d1; }
.social-btn.mail:hover { background: var(--yellow-pale); }

/* 6. CARTES "NOTE" */
.note-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.note-card:hover {
  box-shadow: var(--shadow-md);
}

/* 7. PAGE ACCUEIL */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  max-width: 660px;
}

.hero .eyebrow { margin-bottom: 26px; width: fit-content; }
.hero .eyebrow svg { width: 18px; height: 18px; fill: var(--yellow); }

.hero h1 {
  font-size: 4rem;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
  margin-top: 10px;
  text-align: center;
}

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

.hero-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-location svg { width: 15px; height: 15px; color: var(--ink-soft); }

/* Section "Ce que je fais" */
.focus-section {
  padding: 20px 0 100px;
  margin-bottom: 5rem;
  padding: 0 30px
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.focus-card {
  padding: 30px 26px;
}

.focus-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.focus-icon.c-teal   { background: var(--teal-pale); }
.focus-icon.c-blue   { background: var(--blue-pale); }
.focus-icon.c-coral  { background: var(--coral-pale); }
.focus-icon.c-pink  { background: var(--pink-pale); }

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

.focus-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 1.7rem;
}

.section-heading span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* 8. PAGE COMPÉTENCES */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.skill-group {
  padding: 30px 30px 32px;
  position: relative;
}

.skill-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.skill-group-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}

.skill-group-head h3 {
  font-size: 1.22rem;
}

.skill-group-head p {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-line);
  background: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--ink-faint);
}

.skill-pill .icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.skill-group.dev .skill-group-icon      { background: var(--blue-pale); }
.skill-group.sysnet .skill-group-icon   { background: var(--teal-pale); }
.skill-group.tools .skill-group-icon    { background: var(--purple-pale); }

.skill-group.dev .icon      { background: var(--blue-pale); }
.skill-group.sysnet .icon   { background: var(--teal-pale); }
.skill-group.tools .icon    { background: var(--purple-pale); }

/* 9. PAGE PROJETS */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.project-card {
  overflow: hidden;
}

.project-image {
  position: relative;
  background:
    url("./assets/test3.jpg");
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--paper-line);
}

.project-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.project-tag {
  align-self: flex-start;
  margin-bottom: 14px;
}

.project-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.tech-badge .icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* 10. PAGE CERTIFICATIONS */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.cert-card {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.cert-image {
  background:
    url("./assets/test.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--paper-line);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.cert-body {
  padding: 20px 22px;
}

.cert-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cert-body h3 {
  font-size: 1.3rem;
}

.cert-provenance {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-pale);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.cert-desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--green-pale);
  color: var(--green);
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid rgba(67, 173, 107, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cert-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cert-link-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper-raised);
  color: var(--green);
}

.cert-link-icon svg {
  width: 13px;
  height: 13px;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cert-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  color: var(--ink-soft);
}

/* 11. FOOTER */
.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--paper-line);
  padding: 10px 0;
  background: var(--paper-raised);
  z-index: 1000;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
}

/* 12. ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.35; r: 4; }
  50% { opacity: 0.9; r: 6; }
}

.hero-network .pulse {
  animation: node-pulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

.hero-network .pulse:nth-child(2n) {
  animation-delay: 1.1s;
}

.hero-network .pulse:nth-child(3n) {
  animation-delay: 0.6s;
}

/* 13. RESPONSIVE */
@media (max-width: 900px) {
  .project-card { grid-template-columns: 1fr; }
  .project-image { border-right: none; border-bottom: 1px solid var(--paper-line); min-height: 180px; background: url("./assets/test2.jpg"); background-size: cover; background-position: center;}
  .cert-card { grid-template-columns: 1fr; }
  .cert-image { border-right: none; border-bottom: 1px solid var(--paper-line); min-height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-logo .logo-text { display: none; }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--paper-line);
    padding: 10px 20px 18px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
  }

  .focus-grid { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 560px) {
  .eyebrow { align-self: center; }
  .hero .eyebrow { font-size: 0.7rem;}
  .hero h1 { font-size: 3.5rem; align-self: center;}
  .hero-social { justify-content: center;}
  .container { padding: 0 18px; }
  .project-body, .cert-body { padding: 24px 20px; }
  .skill-group { padding: 24px 20px 26px; }
}
