@charset "UTF-8";
/* typographie */
/* export CSS custom properties for runtime theming */
:root {
  --bg-1: #0B132B;
  --bg-2: #1C2541;
  --txt: #ffffff;
  --muted: #C9D6E6;
  --glow-a: #6FFFE9;
  --glow-b: #FFB6B6;
  --glow-c: #87A7FF;
  --radius: 0.8rem;
  --space-1: 1rem;
  --space-2: 2rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Light mode */
:root[data-theme=light] {
  --bg-1: #F5F5F0; /* crème */
  --bg-2: #EAEAE5; /* crème plus foncé pour les blocs */
  --txt: #1C2541; /* bleu foncé comme l'ancien fond */
  --muted: #4A5568;
  --shadow: 0 10px 30px rgba(0, 0, 0, .1);
  --glow-a: #0D9488; /* vert turquoise foncé pour meilleure lisibilité */
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* Styles globaux / typographie de base */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  /* Offset pour les ancres - évite que la navbar cache les titres */
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

/* Mobile: navbar avec brand = plus haute */
@media (max-width: 52rem) {
  html {
    scroll-padding-top: 8rem;
  }
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 1rem;
  background-color: var(--bg-1);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* espace global si besoin (déplacé depuis main.scss) */
  padding: 2rem;
}

/* block */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-radius: 0.8rem;
  /* fallback solid gradient with alpha so aurora shows through */
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.94), rgba(11, 19, 43, 0.78));
  /* nicer perceptual mix when supported */
}
@supports (color: color-mix(in oklab, white 50%, black 50%)) {
  .header {
    background: linear-gradient(180deg, color-mix(in oklab, var(--bg-2) 86%, transparent), color-mix(in oklab, var(--bg-1) 70%, transparent));
  }
}
.header {
  padding: 0.75rem 0;
  /* subtle glass effect */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.35);
}

/* element */
.header__nav {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
  padding: 1rem;
}
@supports (width: min(100% - 2rem, 72rem)) {
  .header__nav {
    width: min(100% - 2rem, 72rem);
    padding-inline: 0;
  }
}
.header__nav {
  max-width: 56rem; /* aligner avec hero__card et about */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-inline: 1rem;
}

/* exemples d'éléments internes BEM */
.header__brand {
  color: var(--txt);
  flex: 1 1 0; /* prendre l'espace en mobile */
  min-width: 0; /* permet au texte de se wrapper si besoin */
}

/* burger button (mobile) */
.burger {
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--txt);
  flex-shrink: 0;
  order: 2; /* reste à droite */
}
.burger .burger__box {
  display: inline-block;
  width: 28px;
  height: 20px;
  position: relative;
}
.burger .burger__inner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
.burger .burger__inner::before,
.burger .burger__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
.burger .burger__inner::before {
  transform: translateY(-8px);
}
.burger .burger__inner::after {
  transform: translateY(8px);
}

.header__nav-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
  list-style: none;
}

.header__nav-item {
  list-style: none;
}

.header__nav-link {
  color: var(--txt);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: background 180ms ease, color 180ms ease;
}

.header__nav-link:hover,
.header__nav-link:focus {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  outline: none;
}

/* Mobile: nav hidden by default, toggled with .is-open */
.header__nav-list {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background: transparent; /* keep header background visible */
  padding: 0.75rem 0;
  flex-basis: 100%; /* prend toute la largeur, passe en dessous */
  list-style: none;
  margin: 0;
  order: 3; /* passe en dessous du brand et burger */
}
.header__nav-list.is-open {
  display: flex;
}

/* Also support toggling via aria-expanded on the burger button */
.burger[aria-expanded=true] + .header__nav-list {
  display: flex;
}

/* When nav-open on body, animate burger to X using transforms (keep vertical centered inside the .burger__inner) */
body.nav-open .burger .burger__inner {
  background: transparent;
}

body.nav-open .burger .burger__inner::before {
  transform: translateY(0) rotate(45deg);
}

body.nav-open .burger .burger__inner::after {
  transform: translateY(0) rotate(-45deg);
}

/* At tablet and up, hide burger and show horizontal nav */
@media (min-width: 52rem) {
  .burger {
    display: none;
  }
  .header__nav-list {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0;
    padding: 0;
    margin-left: auto; /* push the nav to the right */
    align-items: center; /* ensure links vertically centered */
    width: auto; /* override mobile full-width */
    justify-content: flex-end; /* align items to the right */
    flex: 0 0 auto; /* ne pas grandir, juste prendre la taille nécessaire */
    white-space: nowrap; /* empêcher le wrap des liens */
  }
  .header__nav-link {
    white-space: nowrap; /* empêcher "À propos" de passer sur 2 lignes */
  }
  /* ensure the nav container keeps items aligned */
  .header__nav {
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
  }
  .header__brand {
    flex: 0 0 auto; /* ne pas grandir */
  }
}
/* small screens: reduce padding and gaps */
@media (min-width: 52rem) {
  .header {
    padding: 1rem 0;
  }
}
/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: background 180ms ease;
  display: flex;
  align-items: center;
}
.theme-toggle:hover, .theme-toggle:focus {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.theme-toggle__icon {
  display: none;
}

/* Dark mode: show moon */
.theme-toggle__icon--dark {
  display: inline;
}

/* Light mode: show sun */
:root[data-theme=light] .theme-toggle__icon--dark {
  display: none;
}

:root[data-theme=light] .theme-toggle__icon--light {
  display: inline;
}

/* Light mode header */
:root[data-theme=light] .header {
  background: linear-gradient(180deg, rgba(245, 245, 240, 0.94), rgba(234, 234, 229, 0.78));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

:root[data-theme=light] .theme-toggle:hover,
:root[data-theme=light] .theme-toggle:focus {
  background: rgba(0, 0, 0, 0.06);
}

.footer {
  /* Full-bleed footer background / bar */
  width: 100%;
  /* remove flex on the root so the inner container's margin-auto can center it */
  text-align: center; /* center text inside the footer */
  /* Inner constrained area (keeps previous container behavior) */
}
.footer .footer__inner {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
  padding: 1rem;
}
@supports (width: min(100% - 2rem, 72rem)) {
  .footer .footer__inner {
    width: min(100% - 2rem, 72rem);
    padding-inline: 0;
  }
}
.footer .footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer p {
  margin: 0;
  display: inline-block;
}

/* --- Hero: always center the card horizontally and constrain width --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(1.5rem, 6vw, 3.5rem);
  max-width: 100%; /* Remove max-width constraint */
  width: 100%; /* Ensure it spans the full width */
  margin-inline: auto; /* Center the hero section */
}

.hero__card {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  box-sizing: border-box;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

/* --- Projects: fluid container + responsive grid (1 -> 2 cols) --- */
.projects__inner {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
  padding: 1rem;
}
@supports (width: min(100% - 2rem, 72rem)) {
  .projects__inner {
    width: min(100% - 2rem, 72rem);
    padding-inline: 0;
  }
}
.projects__inner {
  padding-block: clamp(1rem, 3vw, 2rem);
}

.projects__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 52rem) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
/* --- Header: ensure brand left, links right on larger screens --- */
@media (min-width: 52rem) {
  .header__brand {
    flex: 0 0 auto; /* keep brand at left */
  }
  .header__nav-list {
    margin-left: auto; /* push links to the right */
  }
}
/* --- Large screens: keep vertical layout, centered and constrained --- */
@media (min-width: 87.4375rem) {
  .main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 56rem;
    margin-inline: auto;
    padding-inline: 1rem;
  }
  .main > * {
    width: 100%;
  }
  /* Hero centered */
  .main > .hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .hero .hero__card {
    margin-inline: auto;
    max-width: 56rem;
  }
  /* Sections spacing */
  .main > .about,
  .main > .projects,
  .main > #certifications,
  .main > #notes {
    margin-block: 1.5rem;
  }
}
/* Safety: on very large screens keep projects content readable */
@media (min-width: 90rem) {
  .projects__inner {
    max-width: 1100px;
    margin-inline: 0; /* container already centers the main column */
  }
}
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: -8vmax;
  /* Prefer modern color-mix when available for nicer blending */
  background: radial-gradient(60vmax 60vmax at 10% 20%, color-mix(in oklab, var(--glow-a) 35%, transparent), transparent 70%), radial-gradient(50vmax 50vmax at 90% 10%, color-mix(in oklab, var(--glow-b) 35%, transparent), transparent 70%), radial-gradient(70vmax 70vmax at 50% 100%, color-mix(in oklab, var(--glow-c) 35%, transparent), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
  filter: saturate(112%);
  animation: bgShift 18s ease-in-out infinite alternate;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in oklab, white 50%, black 50%)) {
  .site-bg::before {
    background: radial-gradient(60vmax 60vmax at 10% 20%, rgba(111, 255, 233, 0.35), transparent 70%), radial-gradient(50vmax 50vmax at 90% 10%, rgba(255, 182, 182, 0.35), transparent 70%), radial-gradient(70vmax 70vmax at 50% 100%, rgba(135, 167, 255, 0.35), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
  }
}
@keyframes bgShift {
  0% {
    background-position: 10% 20%, 90% 10%, 50% 100%, 0 0;
    transform: translateZ(0);
  }
  100% {
    background-position: 15% 30%, 85% 5%, 45% 95%, 0 0;
    transform: translateZ(0);
  }
}
/* Ribbon decorative layer */
.site-ribbon {
  position: fixed;
  inset: -12vmax;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(111, 255, 233, 0.22) 0%, rgba(135, 167, 255, 0.22) 50%, rgba(255, 182, 182, 0.2) 100%);
}
@supports (color: color-mix(in oklab, white 50%, black 50%)) {
  .site-ribbon {
    background: linear-gradient(135deg, color-mix(in oklab, var(--glow-a) 22%, transparent) 0%, color-mix(in oklab, var(--glow-c) 22%, transparent) 50%, color-mix(in oklab, var(--glow-b) 20%, transparent) 100%);
  }
}
.site-ribbon {
  clip-path: polygon(100% 0%, 100% 12%, 85% 18%, 72% 22%, 60% 30%, 55% 42%, 48% 56%, 45% 64%, 40% 72%, 32% 80%, 24% 86%, 18% 92%, 0% 100%, 0% 88%, 15% 80%, 26% 70%, 34% 60%, 40% 50%, 46% 40%, 58% 26%, 70% 18%, 82% 10%, 92% 6%, 100% 4%);
  filter: blur(28px) saturate(120%);
  opacity: 0.65;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  /* animate only if user allows motion */
}
@media (prefers-reduced-motion: no-preference) {
  .site-ribbon {
    animation: ribbonDrift 22s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }
}

@media (max-width: 26rem) {
  .site-ribbon {
    inset: -10vmax;
    opacity: 0.62;
    filter: blur(26px) saturate(118%);
    transform: translateX(2%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-ribbon {
    animation: none;
  }
  .site-bg::before {
    animation: none;
  }
}
@keyframes ribbonDrift {
  0% {
    transform: translate3d(1%, -1%, 0) rotate(0.3deg);
    opacity: 0.62;
  }
  50% {
    transform: translate3d(-1%, 1%, 0) rotate(-0.2deg);
    opacity: 0.68;
  }
  100% {
    transform: translate3d(-2%, 0.5%, 0) rotate(0.1deg);
    opacity: 0.64;
  }
}
.cta-buttons {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(1rem, 3vw, 1.5rem);
}

.btn {
  display: inline-block;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.9rem, 2vw, 1.25rem);
  border-radius: 0.8rem;
  text-decoration: none;
  color: #87A7FF;
  background-color: #6FFFE9;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  transform: translateY(2px);
  filter: brightness(0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus {
  outline: 2px dashed var(--glow-a);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Utilities pour le fond "verre" déplacées ici (composant réutilisable) */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
  display: inline-block; /* s'ajuste au contenu */
  width: auto;
  max-width: 100%;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
  box-sizing: border-box;
}

.glass-card--constrained {
  display: block;
  max-width: 70ch; /* limite la largeur du bloc texte */
  margin-inline: auto;
}

.glass-card--full {
  display: block;
  width: 100%;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
}

/* comportements responsive / préférences */
@media (max-width: 40rem) {
  .glass-card,
  .glass-card--constrained,
  .glass-card--full {
    padding: 0.75rem;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.28);
  }
}
/* Fix: ensure glass panels fill the available width and align correctly on small devices (~700px and below) */
@media (max-width: 43.75rem) {
  .glass-card,
  .glass-card--constrained,
  .glass-card--full {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .glass-card--constrained {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glass-card,
  .glass-card--full {
    transition: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* Light mode glass cards */
:root[data-theme=light] .glass-card,
:root[data-theme=light] .glass-card--constrained,
:root[data-theme=light] .glass-card--full {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 37, 65, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Pastilles / tags pour les technologies des projets */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.8rem;
  background: var(--tag-bg, rgba(255, 255, 255, 0.02)); /* transparent colored background */
  border: 1px solid var(--tag-border, rgba(255, 255, 255, 0.06));
  color: var(--tag-fg, var(--txt));
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  font-weight: 600; /* plus visible */
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

/* ensure tags list has spacing when used in project cards */
.project__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* variante compacte */
.tag--sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

/* Modifiers for technologies set a translucent background via --tag-bg and a subtle border */
.tag--node {
  --tag-bg: rgba(111,255,233,0.18);
  --tag-border: rgba(111,255,233,0.32);
}

.tag--docker {
  --tag-bg: rgba(255,182,182,0.18);
  --tag-border: rgba(255,182,182,0.32);
}

.tag--react {
  --tag-bg: rgba(135,167,255,0.18);
  --tag-border: rgba(135,167,255,0.32);
}

.tag--html {
  --tag-bg: rgba(227,76,38,0.18);
  --tag-border: rgba(227,76,38,0.32);
}

.tag--css {
  --tag-bg: rgba(100,150,255,0.22);
  --tag-border: rgba(100,150,255,0.45);
}

.tag--js {
  --tag-bg: rgba(240,219,79,0.20);
  --tag-border: rgba(240,219,79,0.36);
  --tag-fg: #001014;
}

.tag--mongo {
  --tag-bg: rgba(77,179,61,0.18);
  --tag-border: rgba(77,179,61,0.32);
}

.tag--postgres {
  --tag-bg: rgba(100,160,220,0.22);
  --tag-border: rgba(100,160,220,0.45);
}

.tag--expo {
  --tag-bg: rgba(255,200,50,0.22);
  --tag-border: rgba(255,200,50,0.45);
}

.tag--jwt {
  --tag-bg: rgba(208,56,130,0.20);
  --tag-border: rgba(208,56,130,0.40);
}

.tag--traefik {
  --tag-bg: rgba(36,190,226,0.20);
  --tag-border: rgba(36,190,226,0.40);
}

.tag--ia {
  --tag-bg: rgba(156,39,176,0.20);
  --tag-border: rgba(156,39,176,0.40);
}

.tag--express {
  --tag-bg: rgba(150,150,150,0.22);
  --tag-border: rgba(180,180,180,0.45);
}

.tag--socket {
  --tag-bg: rgba(255,105,180,0.22);
  --tag-border: rgba(255,105,180,0.45);
}

.tag--ntfy {
  --tag-bg: rgba(255,152,0,0.20);
  --tag-border: rgba(255,152,0,0.40);
}

.tag--saas {
  --tag-bg: rgba(0,150,136,0.20);
  --tag-border: rgba(0,150,136,0.40);
}

.tag--access {
  --tag-bg: rgba(33,150,243,0.20);
  --tag-border: rgba(33,150,243,0.40);
}

.tag--rgpd {
  --tag-bg: rgba(76,175,80,0.20);
  --tag-border: rgba(76,175,80,0.40);
}

.tag--secu {
  --tag-bg: rgba(244,67,54,0.20);
  --tag-border: rgba(244,67,54,0.40);
}

.tag--perf {
  --tag-bg: rgba(255,193,7,0.20);
  --tag-border: rgba(255,193,7,0.40);
}

/* Light mode - increase opacity for visibility */
:root[data-theme=light] .tag {
  --tag-bg: rgba(0,0,0,0.06);
  --tag-border: rgba(0,0,0,0.15);
}
:root[data-theme=light] .tag--node {
  --tag-bg: rgba(13,148,136,0.15);
  --tag-border: rgba(13,148,136,0.35);
}
:root[data-theme=light] .tag--docker {
  --tag-bg: rgba(200,80,80,0.15);
  --tag-border: rgba(200,80,80,0.35);
}
:root[data-theme=light] .tag--react {
  --tag-bg: rgba(97,218,251,0.20);
  --tag-border: rgba(97,218,251,0.40);
}
:root[data-theme=light] .tag--html {
  --tag-bg: rgba(227,76,38,0.15);
  --tag-border: rgba(227,76,38,0.35);
}
:root[data-theme=light] .tag--css {
  --tag-bg: rgba(38,77,228,0.15);
  --tag-border: rgba(38,77,228,0.35);
}
:root[data-theme=light] .tag--js {
  --tag-bg: rgba(240,219,79,0.25);
  --tag-border: rgba(200,180,50,0.45);
  --tag-fg: #1C2541;
}
:root[data-theme=light] .tag--mongo {
  --tag-bg: rgba(77,179,61,0.15);
  --tag-border: rgba(77,179,61,0.35);
}
:root[data-theme=light] .tag--postgres {
  --tag-bg: rgba(51,103,145,0.20);
  --tag-border: rgba(51,103,145,0.40);
}
:root[data-theme=light] .tag--expo {
  --tag-bg: rgba(50,50,60,0.15);
  --tag-border: rgba(50,50,60,0.35);
  --tag-fg: #1C2541;
}
:root[data-theme=light] .tag--jwt {
  --tag-bg: rgba(208,56,130,0.15);
  --tag-border: rgba(208,56,130,0.35);
}
:root[data-theme=light] .tag--traefik {
  --tag-bg: rgba(36,190,226,0.15);
  --tag-border: rgba(36,190,226,0.40);
}
:root[data-theme=light] .tag--ia {
  --tag-bg: rgba(156,39,176,0.15);
  --tag-border: rgba(156,39,176,0.35);
}
:root[data-theme=light] .tag--express {
  --tag-bg: rgba(80,80,80,0.15);
  --tag-border: rgba(80,80,80,0.35);
}
:root[data-theme=light] .tag--socket {
  --tag-bg: rgba(50,50,50,0.15);
  --tag-border: rgba(50,50,50,0.35);
}
:root[data-theme=light] .tag--ntfy {
  --tag-bg: rgba(255,152,0,0.15);
  --tag-border: rgba(255,152,0,0.40);
}
:root[data-theme=light] .tag--saas {
  --tag-bg: rgba(0,150,136,0.15);
  --tag-border: rgba(0,150,136,0.35);
}
:root[data-theme=light] .tag--access {
  --tag-bg: rgba(33,150,243,0.15);
  --tag-border: rgba(33,150,243,0.35);
}
:root[data-theme=light] .tag--rgpd {
  --tag-bg: rgba(76,175,80,0.15);
  --tag-border: rgba(76,175,80,0.35);
}
:root[data-theme=light] .tag--secu {
  --tag-bg: rgba(244,67,54,0.15);
  --tag-border: rgba(244,67,54,0.35);
}
:root[data-theme=light] .tag--perf {
  --tag-bg: rgba(255,193,7,0.20);
  --tag-border: rgba(255,193,7,0.45);
}

/* small responsive tweak */
@media (max-width: 40rem) {
  .tag {
    font-size: 0.9rem;
  }
}
/* Chat widget component (floating button + modal) */
.chat-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--glow-a);
  color: #042029;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1.125rem rgba(2, 6, 23, 0.32);
  border: none;
  cursor: pointer;
  z-index: 80;
}

.chat-toggle:focus {
  outline: 2px dashed color-mix(in oklab, var(--glow-a) 30%, black);
  outline-offset: 3px;
}

/* Hint bubble above chat button */
.chat-hint {
  position: fixed;
  right: 0.5rem;
  bottom: 5.5rem;
  background: linear-gradient(135deg, rgba(111, 255, 233, 0.95), rgba(80, 220, 200, 0.95));
  color: #042029;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  z-index: 79;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: chat-hint-bounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-hint__text {
  white-space: nowrap;
}

.chat-hint__arrow {
  font-size: 1.2rem;
  margin-top: 0.2rem;
  animation: chat-arrow-bounce 1s ease-in-out infinite;
}

.chat-hint--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

@keyframes chat-hint-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes chat-arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
.chat-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.chat-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 1rem; /* padding autour de la modal */
  background: rgba(0, 0, 0, 0.5); /* fond plus sombre pour contraste */
}

.chat-modal.is-open {
  display: flex;
}

.chat-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: linear-gradient(180deg, rgba(30, 42, 70, 0.98), rgba(20, 32, 58, 0.98)); /* fond plus clair */
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1); /* bordure subtile */
}

.chat-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Close button (green background, black cross) */
.chat-close {
  background: var(--glow-a);
  color: #002a27; /* cross color */
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-close:focus {
  outline: 2px dashed color-mix(in oklab, var(--glow-a) 30%, black);
  outline-offset: 3px;
}

.chat-messages {
  padding: 1rem 1.25rem;
  overflow: auto;
  flex: 1 1 auto;
  color: #eaeef6;
  min-height: 200px;
  position: relative;
}

/* Welcome placeholder - stays at top */
.chat-welcome {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  background: rgba(111, 255, 233, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(111, 255, 233, 0.3);
}

.chat-welcome__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6fffef;
  margin-bottom: 0.5rem;
}

.chat-welcome__text {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.5;
}

.chat-welcome__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #6fffef;
}

.chat-welcome__options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

.chat-welcome__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(111, 255, 233, 0.1);
}

.chat-back-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid rgba(111, 255, 233, 0.3);
  color: rgba(111, 255, 233, 0.7);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.chat-back-link:hover {
  border-color: rgba(111, 255, 233, 0.7);
  color: #6fffef;
  background: rgba(111, 255, 233, 0.1);
}

.chat-back-link:active {
  transform: scale(0.98);
}

.chat-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(30, 42, 70, 0.8), rgba(20, 32, 58, 0.8));
  border: 2px solid rgba(111, 255, 233, 0.3);
  border-radius: 0.75rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
}

.chat-option-btn:hover {
  border-color: rgba(111, 255, 233, 0.6);
  background: linear-gradient(180deg, rgba(30, 42, 70, 0.95), rgba(20, 32, 58, 0.95));
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(111, 255, 233, 0.25);
}

.chat-option-btn:active {
  transform: translateY(-2px);
}

.chat-option-title {
  display: block;
  font-weight: 600;
  color: #6fffef;
  font-size: 1.05rem;
  margin: 0;
}

.chat-option-desc {
  display: block;
  font-size: 0.85rem;
  color: #a8b3c7;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

.chat-message {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

/* Messages from others (Admin/Visiteur) */
.chat-message:not(.chat-message--own) {
  align-items: flex-start;
}

/* Messages from user (Own messages) */
.chat-message--own {
  align-items: flex-end;
}

/* Identity inputs (Prénom / Nom / Société) shown above the message input */
.chat-identity-section {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-identity-label {
  display: block;
  color: #fff;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-identity input {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 120px;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  font-size: 0.95rem;
}

.chat-identity input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-identity input:last-child {
  flex: 1 1 100%;
}

.chat-message__name {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

/* Message from Admin - Cyan/Turquoise */
.chat-message:not(.chat-message--own) .chat-message__name {
  color: #6fffef;
}

.chat-message:not(.chat-message--own) .chat-message__text {
  background: linear-gradient(135deg, rgba(111, 255, 233, 0.2), rgba(111, 255, 233, 0.12));
  border-left: 3px solid rgba(111, 255, 233, 0.6);
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  color: #e0f7f6;
  max-width: 85%;
  word-wrap: break-word;
}

/* Message from Visitor/Own - Muted blue */
.chat-message--own .chat-message__name {
  color: #94b3d5;
}

.chat-message--own .chat-message__text {
  background: linear-gradient(135deg, rgba(107, 142, 178, 0.25), rgba(107, 142, 178, 0.15));
  border-right: 3px solid rgba(107, 142, 178, 0.6);
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  color: #c8dff0;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-section {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
}

.chat-form input {
  flex: 1 1 auto;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 0.95rem;
}

.chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-form input:focus {
  outline: none;
  border-color: var(--glow-a);
}

.chat-form .chat-send {
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--glow-a);
  border: none;
  color: #002a27;
  cursor: pointer;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.chat-form .chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111, 255, 233, 0.3);
}

.chat-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(111, 255, 233, 0.1);
}

.chat-section .chat-back-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid rgba(111, 255, 233, 0.3);
  color: rgba(111, 255, 233, 0.7);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.chat-section .chat-back-link:hover {
  border-color: rgba(111, 255, 233, 0.7);
  color: #6fffef;
  background: rgba(111, 255, 233, 0.1);
}

.chat-section .chat-back-link:active {
  transform: scale(0.98);
}

@media (min-width: 52rem) {
  .chat-panel {
    width: min(520px, 48rem);
  }
}
@media (max-width: 40rem) {
  .chat-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .chat-hint {
    right: 0.25rem;
    bottom: 5rem;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  .chat-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}
/* Light mode chat */
:root[data-theme=light] .chat-toggle {
  box-shadow: 0 0.5rem 1.125rem rgba(0, 0, 0, 0.15);
}
:root[data-theme=light] .chat-hint {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(10, 120, 110, 0.95));
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}
:root[data-theme=light] .chat-panel {
  background: linear-gradient(180deg, #fff, #f8f8f6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
:root[data-theme=light] .chat-header {
  color: #1C2541;
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme=light] .chat-messages {
  color: #1C2541;
}
:root[data-theme=light] .chat-message__bubble {
  background: rgba(0, 0, 0, 0.05);
  color: #1C2541;
}
:root[data-theme=light] .chat-message--own .chat-message__bubble {
  background: var(--glow-a);
  color: #fff;
}
:root[data-theme=light] .chat-identity-section {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme=light] .chat-identity-label {
  color: #000;
  font-weight: 700;
}
:root[data-theme=light] .chat-identity input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1C2541;
}
:root[data-theme=light] .chat-identity input::placeholder {
  color: rgba(28, 37, 65, 0.4);
}
:root[data-theme=light] .chat-form {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme=light] .chat-form input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1C2541;
}
:root[data-theme=light] .chat-form input::placeholder {
  color: rgba(28, 37, 65, 0.4);
}
:root[data-theme=light] .chat-welcome__title {
  color: #0D9488;
}
:root[data-theme=light] .chat-welcome__text {
  color: #1C2541;
}
:root[data-theme=light] .chat-welcome__hint {
  color: #0D9488;
}
:root[data-theme=light] .chat-welcome {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.3);
}
:root[data-theme=light] {
  /* Messages text in light mode */
}
:root[data-theme=light] .chat-message:not(.chat-message--own) .chat-message__text {
  background: rgba(13, 148, 136, 0.1);
  border-left-color: #0D9488;
  color: #1C2541;
}
:root[data-theme=light] .chat-message--own .chat-message__text {
  background: rgba(100, 130, 160, 0.15);
  border-right-color: #64829F;
  color: #1C2541;
}
:root[data-theme=light] .chat-message__name {
  color: #0D9488;
}
:root[data-theme=light] .chat-message--own .chat-message__name {
  color: #64829F;
}

.hero {
  /* Ensure hero__card remains centered on max width */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: clamp(1.25rem, 4vw, 2rem);
  position: relative;
}
.hero__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
  width: 100%; /* allow the card to grow to container width */
  max-width: 56rem; /* constrain at desired max width */
  margin-inline: auto; /* center when max-width is reached */
  padding: clamp(0.6rem, 2vw, 1rem);
  box-sizing: border-box;
}
.hero h2 {
  margin: 0 0 0.5rem 0;
  color: var(--txt);
  font-size: clamp(1rem, 4vw, 2.5rem);
  font-weight: 500;
  text-align: center;
}
.hero p {
  text-align: center;
}
.hero__cta {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(111, 255, 233, 0.1);
  border: 1px solid rgba(111, 255, 233, 0.3);
  border-radius: 0.5rem;
  color: var(--glow-a);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Helper: reusable section-card (glass look) */
.section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 1.5rem;
}

/* Apply the container to main sections — glass background applied per-section via .glass-card wrappers */
.about,
.projects,
.notes {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
  padding: 1rem;
}
@supports (width: min(100% - 2rem, 72rem)) {
  .about,
  .projects,
  .notes {
    width: min(100% - 2rem, 72rem);
    padding-inline: 0;
  }
}
.about,
.projects,
.notes {
  position: relative;
  z-index: 0;
  /* layout specifics */
  margin: clamp(1rem, 4vw, 2rem) 0;
  color: var(--txt);
}

/* About specific tweaks */
.about {
  max-width: 100ch;
  line-height: 1.6;
  /* Scroll offset pour ancre navbar */
  scroll-margin-top: 6rem;
}
@media (max-width: 52rem) {
  .about {
    scroll-margin-top: 7rem;
  }
}
.about {
  /* Wrap the content in HTML with <div class="glass-card glass-card--constrained"> to get the glass only around the text */
}
.about h2 {
  margin: 0 0 1rem 0;
  color: var(--txt);
}
.about p + p {
  margin-top: 1rem;
}
.about a {
  color: var(--glow-a);
  text-decoration: underline;
}
.about blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--glow-a);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.4rem;
  font-style: italic;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@media (max-width: 40rem) {
  .about {
    padding: 1rem;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about {
    transition: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Full-width glass variant for the about section */
.about.glass-card--full {
  max-width: 56rem; /* même largeur que hero__card */
  width: 100%;
  margin: clamp(1rem, 4vw, 2rem) auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
  /* center the section heading when full-width */
}
.about.glass-card--full h2 {
  text-align: center;
  margin-inline: auto;
  max-width: 90ch;
}

/* Projects tweaks (lists etc.) */
.projects {
  padding-inline: 1rem;
}
.projects.glass-card--full {
  max-width: 100%; /* pleine largeur pour projets */
  width: 100%;
  margin: clamp(1rem, 4vw, 2rem) 0;
}
.projects {
  /* per-project variants: wrap project content in .glass-card to have glass only around that project's text */
}
.projects .project--personal .glass-card,
.projects .project--reflection .glass-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0 0 1rem 0;
  max-width: 70ch;
}

.notes,
.certifications {
  padding-inline: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.notes.glass-card--full,
.certifications.glass-card--full {
  max-width: 100%; /* pleine largeur comme projets */
  width: 100%;
  margin: clamp(1rem, 4vw, 2rem) 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
  color: var(--txt);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.notes h2,
.certifications h2 {
  text-align: center;
  margin-inline: auto;
}

/* Basic project list styles (kept minimal) */
.projects {
  padding-inline: 1rem;
}
.projects__title {
  text-align: center;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem) 0 0;
  color: var(--txt);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}
.projects__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding-top: 1rem; /* space under title */
}
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start; /* ensure columns start at the same top */
}
@media (min-width: 60rem) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
.projects {
  /* add gap between project items inside each column */
}
.projects__col {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.5rem); /* espace entre les articles */
  align-content: start; /* keep column content at top */
}
.projects__col h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: center; /* center column headings */
}
.projects .project .project__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--glow-a);
  display: flex;
  text-align: center;
  align-items: center;
}
.projects .project .project__description {
  margin: 0 0 0.75rem 0;
}
.projects .project .project__features {
  text-align: left; /* ensure list lines align under the bullet */
  margin: 0 0 0.75rem 0;
}

/* Mobile: center project content for small screens */
.projects .project {
  text-align: center;
}

/* Keep project titles centered on all viewports */
.projects .project {
  text-align: center;
}
.projects .project .project__title {
  justify-content: center; /* if title uses flex, keep it centered */
  text-align: center;
}

/* Restore colored bullets for features using custom glow dots */
.project__features {
  list-style: none; /* we'll draw our own marker */
  padding-left: 0;
  margin: 0 0 1rem 0;
}

.project__features li {
  /* Use flex so the dot and the text form two columns and start at the same top */
  display: flex;
  align-items: flex-start; /* align items at their top so multi-line items start at the same baseline */
  gap: 0.4rem; /* reduced space between bullet and text to improve visual alignment */
  margin-bottom: 0.85rem; /* plus d'espace entre les items */
  line-height: 1.45;
}

.project__features li::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--glow-a);
  opacity: 0.95;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  /* slight top offset so the dot visually centers with the first line of text */
  margin-top: 0.18rem;
}

/* ensure long lines wrap nicely and align with the text column */
.project__features li > *:not(::before) {
  flex: 1 1 auto;
}

@media (max-width: 40rem) {
  .project__features li::before {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.14rem;
  }
}
/* center notes title as well */
.notes h2 {
  text-align: center;
}

/* Certifications Section */
.certifications h2 {
  text-align: center;
}
.certifications {
  /* Scroll offset pour ancre navbar */
  scroll-margin-top: 6rem;
}
@media (max-width: 52rem) {
  .certifications {
    scroll-margin-top: 7rem;
  }
}

.certifications__intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.certifications__group {
  margin-bottom: 1.5rem;
}
.certifications__group:last-child {
  margin-bottom: 0;
}

.certifications__group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--txt);
  margin: 1rem 0 0.75rem 0;
}

.certifications__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.certifications__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.certifications__name {
  flex: 1;
  color: var(--txt);
  font-weight: 500;
  font-size: 0.9rem;
}
.certifications__name::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--glow-a);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.certifications__date {
  color: var(--glow-a);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Tags pour statut certifications */
.tag--done {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.tag--progress {
  background: var(--glow-a);
  color: #0B132B;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.tag--todo {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Bouton Voir plus */
.certifications__toggle {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--txt);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease;
}
.certifications__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.certifications__more {
  margin-top: 1rem;
}

/* Light mode certifications */
:root[data-theme=light] .certifications__group-title {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
:root[data-theme=light] .certifications__item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
:root[data-theme=light] .tag--done {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}
:root[data-theme=light] .tag--todo {
  background: rgba(0, 0, 0, 0.08);
  color: #4A5568;
}
:root[data-theme=light] .tag--progress {
  color: #fff;
}
:root[data-theme=light] .certifications__toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}
:root[data-theme=light] .certifications__toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Notes styling - titre + sous-titre */
.notes__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.notes__intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.notes__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  position: relative;
}
.notes__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--glow-a);
}

.notes__title {
  color: var(--glow-a);
  font-weight: 600;
  font-size: 0.95rem;
}

.notes__desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/*# sourceMappingURL=style.css.map */
