/* ═══════════════════════════════════════════════════════════════════════════
   style.css — Portfolio Victor Le Corre
   Design dark, épuré, responsive — 0 framework externe
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Variables CSS (design tokens) ──────────────────────────────────────── */
:root {
  /* Palette */
  --clr-bg:           #0f0f0f;
  --clr-bg-alt:       #161616;
  --clr-bg-card:      #1a1a1a;
  --clr-bg-card-hover:#1f1f1f;
  --clr-border:       rgba(255,255,255,.07);
  --clr-border-focus: rgba(108,99,255,.6);

  --clr-accent:       #6C63FF;
  --clr-accent-hover: #8b85ff;
  --clr-accent-dim:   rgba(108,99,255,.15);

  --clr-text:         #e8e8e8;
  --clr-text-muted:   #8a8a8a;
  --clr-text-dimmed:  #5a5a5a;

  --clr-success:      #22c55e;
  --clr-error:        #ef4444;

  /* Typographie */
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'Fira Code', 'Cascadia Code', monospace;

  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Espacements */
  --space-1:  .25rem;
  --space-2:  .5rem;
  --space-3:  .75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Rayons */
  --radius-sm: .375rem;
  --radius-md: .75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-card: 0 4px 24px rgba(0,0,0,.4);
  --shadow-hover: 0 8px 40px rgba(108,99,255,.2);
  --shadow-focus: 0 0 0 3px rgba(108,99,255,.35);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    68px;
}

/* ── 2. Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent-hover); }
a:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── 3. Container & layout utilitaires ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-20);
}

.section--alt {
  background-color: var(--clr-bg-alt);
}

.section--page {
  padding-top: calc(var(--nav-height) + var(--space-16));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  color: var(--clr-text-muted);
  font-size: var(--text-lg);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-10);
}

/* ── 4. Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .6875rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108,99,255,.4);
}

.btn-outline {
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
}
.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-1px);
}

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

/* ── 5. Tags / badges ───────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: .25rem .75rem;
  background: var(--clr-accent-dim);
  color: var(--clr-accent-hover);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid rgba(108,99,255,.25);
}

.tag--small {
  padding: .15rem .55rem;
  font-size: var(--text-xs);
}

/* ── 6. Navigation ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15,15,15,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

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

/* Logo */
.navbar-brand {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.navbar-brand:hover { color: #fff; }
.brand-dot { color: var(--clr-accent); }

/* Liens desktop */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* Lien CTA dans la nav */
.nav-link--cta {
  background: var(--clr-accent-dim);
  color: var(--clr-accent-hover);
  border: 1px solid rgba(108,99,255,.3);
}
.nav-link--cta:hover {
  background: var(--clr-accent);
  color: #fff;
}
.nav-link--cta.active {
  background: var(--clr-accent);
  color: #fff;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.burger-line {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Animation burger ouvert */
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 90;
}

/* ── 7. Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Fond dégradé subtil */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16);
}

.hero-greeting {
  font-size: var(--text-lg);
  color: var(--clr-accent);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 400;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-6);
  min-height: 2em;
}

.typed-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--clr-accent);
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-description {
  color: var(--clr-text-muted);
  font-size: var(--text-lg);
  max-width: 480px;
  margin-bottom: var(--space-6);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Bloc de code décoratif */
.code-block {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--clr-border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-dot--red    { background: #ff5f57; }
.code-dot--yellow { background: #febc2e; }
.code-dot--green  { background: #28c840; }

.code-filename {
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
}

.code-body {
  padding: var(--space-6);
  overflow-x: auto;
}

.code-body code {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--clr-text-muted);
}

/* Coloration syntaxique simplifiée */
.token-keyword { color: #c084fc; }
.token-class   { color: #60a5fa; }
.token-var     { color: #34d399; }
.token-string  { color: #f97316; }
.token-fn      { color: #fbbf24; }

/* Indicateur scroll */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(8px); opacity: .3; }
}

/* ── 8. Projects grid ──────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.project-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108,99,255,.3);
}

.project-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-bg-alt);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,15,15,.7));
}

.project-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__meta {
  margin-bottom: var(--space-2);
}

.project-year {
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
  font-weight: 500;
  letter-spacing: .06em;
}

.project-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.project-card__desc {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-accent);
  margin-top: auto;
}

.project-card__link:hover { color: var(--clr-accent-hover); }

/* Badge "Dépôt privé" — même mise en page que le lien, mais non cliquable */
.project-card__link--private {
  color: var(--clr-text-dimmed);
  cursor: default;
  font-style: italic;
}

/* ── 9. Filter bar ─────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .4rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--clr-accent);
}

.filter-btn--active {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 .35rem;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.no-results {
  text-align: center;
  color: var(--clr-text-muted);
  padding: var(--space-12) 0;
  font-size: var(--text-lg);
}

/* Animation de masquage des cartes filtrées */
.project-card.hidden {
  display: none;
}

/* ── 10. About page ─────────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
}

/* Sidebar */
.about-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;   /* conteneur rond */
  overflow: hidden;     /* coupe l'image aux bords du cercle */
  border: 3px solid var(--clr-accent);
  background: var(--clr-bg-card);
  /* flex centre la lettre placeholder si l'image est absente */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  position: relative;   /* ancre le positionnement absolu de l'img */
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* favorise le visage en haut du cadre */
  border-radius: 50%;
  /* Couvre le conteneur et cache le placeholder en dessous */
  display: block;
}

.about-avatar__placeholder {
  /* Caché par défaut — affiché uniquement si l'image ne charge pas (voir main.js) */
  display: none;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.about-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.about-info-label {
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.about-info-value {
  font-size: var(--text-sm);
  color: var(--clr-text);
  font-weight: 500;
}

.about-info-value--green { color: var(--clr-success); }

/* Contenu principal */
.about-content__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-5);
}

.about-content p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.about-content p strong { color: var(--clr-text); }

/* ── 11. Compétences ─────────────────────────────────────────────────────────── */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.skills-group {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.skills-group__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-5);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.skill-item { display: flex; flex-direction: column; gap: var(--space-1); }

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name { font-size: var(--text-sm); font-weight: 500; color: var(--clr-text); }
.skill-percent { font-size: var(--text-xs); color: var(--clr-text-dimmed); font-family: var(--font-mono); }

.skill-bar {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* La barre se remplit via l'animation déclenchée en JS quand elle entre dans le viewport */
.skill-bar__fill {
  height: 100%;
  width: 0;                  /* Commence à 0 */
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-hover));
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

/* Classe ajoutée par JS pour lancer l'animation */
.skill-bar__fill.animate {
  width: var(--width);
}

/* ── 12. Timeline (situations pro) ─────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 3px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 2px solid var(--clr-bg);
  box-shadow: 0 0 0 4px var(--clr-accent-dim);
}

.timeline-body {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-1);
}

.timeline-meta {
  font-size: var(--text-sm);
  color: var(--clr-text-dimmed);
  display: block;
  margin-bottom: var(--space-4);
}

.timeline-missions {
  list-style: disc;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-missions li {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

/* ── 13. CTA section ─────────────────────────────────────────────────────────── */
.cta-section { background: var(--clr-bg-alt); }

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.cta-inner h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}

.cta-inner p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 14. About home (mini) ──────────────────────────────────────────────────── */
.about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-home__text p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.about-home__text p strong { color: var(--clr-text); }
.about-home__text .btn { margin-top: var(--space-4); }

.about-home__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.stat-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  border-color: rgba(108,99,255,.3);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--clr-accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* ── 15. Contact page ────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: var(--space-4);
}

.contact-info__intro {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.75;
}

.contact-info__intro strong { color: var(--clr-text); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-details__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.contact-details__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--clr-accent-dim);
  border-radius: var(--radius-sm);
  color: var(--clr-accent);
  flex-shrink: 0;
}

.contact-details__item a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}
.contact-details__item a:hover { color: var(--clr-accent); }

/* ── Formulaire ─────────────────────────────────────────────────────────────── */
.contact-form-wrapper {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
}

.form-required { color: var(--clr-accent); }

.form-control {
  width: 100%;
  padding: .6875rem var(--space-4);
  background: var(--clr-bg-alt);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-control::placeholder { color: var(--clr-text-dimmed); }

.form-control:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,.2);
}

.form-control--textarea { min-height: 140px; }

.form-group--error .form-control {
  border-color: var(--clr-error);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--clr-error);
  font-weight: 500;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
  text-align: right;
  margin-top: var(--space-1);
}

.form-legal {
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
  text-align: center;
  margin-top: var(--space-4);
}

/* Honeypot */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Alertes */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

.form-alert--success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--clr-success);
}

.form-alert--error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--clr-error);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── 16. Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-10);
}

.footer-brand .brand-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--clr-text-dimmed);
  margin-top: var(--space-1);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.footer-nav a:hover { color: var(--clr-accent); }

.footer-social {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--clr-accent);
  border-color: rgba(108,99,255,.4);
  background: var(--clr-accent-dim);
}

.footer-copy {
  text-align: center;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--clr-border);
  font-size: var(--text-sm);
  color: var(--clr-text-dimmed);
}

/* ── 17. Page erreur 404 ─────────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}

.error-content { text-align: center; }

.error-code {
  display: block;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  color: var(--clr-accent-dim);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-content h1 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-3);
}

.error-content p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
}

/* ── 18. Animations (fade-in au scroll) ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in--delay {
  transition-delay: .2s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── 19. Veille technologique ───────────────────────────────────────────────── */

/* Grille de cards articles */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* Card article */
.veille-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.veille-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108,99,255,.3);
}

/* Masquage par le filtre JS */
.veille-card--hidden {
  display: none;
}

/* Corps de la card */
.veille-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Ligne meta : badge thème + date */
.veille-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

/* Date de publication */
.veille-card__date {
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Titre de l'article */
.veille-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

/* Description / résumé */
.veille-card__desc {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

/* Pied de card : source + bouton "Lire l'article" */
.veille-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  flex-wrap: wrap;
}

/* Nom de la source avec icône */
.veille-card__source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--clr-text-dimmed);
  font-weight: 500;
}

/* ── Badges de thème (couleur différente par thème) ─────────────────────────── */
.veille-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Cybersécurité — rouge */
.badge--cyber {
  background: rgba(239,68,68,.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.25);
}

/* Intelligence artificielle — violet */
.badge--ia {
  background: rgba(168,85,247,.15);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,.25);
}

/* Développement web — bleu */
.badge--web {
  background: rgba(59,130,246,.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.25);
}

/* Cloud & DevOps — cyan */
.badge--cloud {
  background: rgba(6,182,212,.15);
  color: #22d3ee;
  border: 1px solid rgba(6,182,212,.25);
}

/* Mobile — vert */
.badge--mobile {
  background: rgba(34,197,94,.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.25);
}

/* Fallback */
.badge--default {
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  border: 1px solid rgba(108,99,255,.25);
}

/* Variante petite du bouton primaire pour les cards */
.btn--sm {
  padding: .35rem .85rem;
  font-size: var(--text-xs);
}

/* ── 20. Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text { order: 1; }
  .hero-visual { order: 2; max-width: 480px; margin-inline: auto; }

  .hero-description { margin-inline: auto; }

  .hero-tags, .hero-actions {
    justify-content: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .about-avatar { width: 80px; height: 80px; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-5); }
  .footer-social { justify-content: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 768px) {
  /* Menu mobile */
  .burger-btn { display: flex; }

  .navbar-nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--clr-bg-alt);
    border-left: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: var(--space-1);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 95;
    overflow-y: auto;
  }

  .navbar-nav.open {
    transform: translateX(0);
  }

  .nav-overlay.open {
    display: block;
  }

  .nav-link { width: 100%; padding: var(--space-3) var(--space-4); }

  /* Sections */
  .section { padding-block: var(--space-12); }

  .about-home { grid-template-columns: 1fr; }
  .about-home__stats { grid-template-columns: repeat(3, 1fr); }

  .projects-grid { grid-template-columns: 1fr; }
  .veille-grid   { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }

  .hero-visual { display: none; } /* Masqué sur mobile */
}

@media (max-width: 480px) {
  :root { --space-6: 1rem; }

  .container { padding-inline: var(--space-4); }

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

  .about-home__stats { grid-template-columns: 1fr; }

  .contact-form-wrapper { padding: var(--space-5); }

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
