:root {
  --background: #0f1117;
  --sidebar: #171a22;
  --card: #1d212b;
  --card-border: rgba(214, 177, 87, 0.25);
  --gold: #d6b157;
  --gold-light: #f0d58b;
  --text: #f5f3ec;
  --muted: #b8bac3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(214, 177, 87, 0.08), transparent 32rem),
    var(--background);
}

img {
  max-width: 100%;
}

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

/* Menu vertical */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 0 24px 36px;
  overflow-y: auto;
  background: rgba(23, 26, 34, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.sidebar-banner {
  position: relative;
  width: calc(100% + 48px);
  aspect-ratio: 16 / 9;
  margin: 0 -24px 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(214, 177, 87, 0.15), rgba(93, 72, 170, 0.34)),
    url("images/banner.webp") center / cover no-repeat;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.sidebar-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.sidebar-banner-overlay span {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.vertical-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vertical-menu a {
  padding: 14px 16px;
  color: var(--muted);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vertical-menu a:hover,
.vertical-menu a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(214, 177, 87, 0.22), rgba(214, 177, 87, 0.08));
  transform: translateX(4px);
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--text);
  background: var(--sidebar);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Contenu principal */
.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-card,
.projects-section,
.about-section {
  width: 100%;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(145deg, rgba(29, 33, 43, 0.98), rgba(21, 24, 32, 0.98));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.content-header h2 {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
}

.paragraphs {
  margin-top: 28px;
}

.paragraphs p,
.section-description,
.project-card p,
.person-content p {
  color: #d8d9de;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.paragraphs p {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.paragraphs p:last-child {
  margin-bottom: 0;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-header h3 {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
}

.section-description {
  margin: 18px 0 0;
}

/* Liste des projets */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border);
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.project-card-content {
  min-width: 0;
  padding: 0;
}

.project-card h4 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.project-card p {
  margin: 0;
}

.project-card a {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  color: #111318;
  background: var(--gold-light);
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-card a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* Liste des personnes */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.person-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.person-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.person-content {
  min-width: 0;
}

.person-content h4 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.person-content p {
  margin: 0;
}



.empty-list {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

/* Pied de page */
.site-footer {
  width: 100%;
  padding: 22px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(23, 26, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--gold-light);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Mobile : les cartes projets et personnes restent horizontales */
@media (max-width: 820px) {

  .site-footer {
    padding: 18px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
  }

  .footer-links {
    gap: 10px 18px;
  }

  .menu-toggle {
    display: grid;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 82px 12px 18px;
    gap: 12px;
  }

  .content-card,
  .projects-section,
  .about-section {
    padding: 18px;
    border-radius: 18px;
  }

  .projects-grid,
  .people-list {
    gap: 12px;
    margin-top: 22px;
  }

  .project-card {
    grid-template-columns: minmax(90px, 30%) 1fr;
    gap: 14px;
    padding: 14px;
  }

  .project-card img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    min-height: 0;
    object-fit: cover;
    border-radius: 12px;
  }

  .project-card-content {
    min-width: 0;
    padding: 0;
  }

  .project-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .project-card p,
  .person-content p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .project-card a {
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .person-card {
    grid-template-columns: minmax(90px, 30%) 1fr;
    gap: 14px;
    padding: 14px;
  }

  .person-card img {
    border-radius: 12px;
  }

  .person-content h4 {
    margin-bottom: 8px;
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .project-card,
  .person-card {
    grid-template-columns: 88px 1fr;
  }

  .project-card-content,
  .person-card {
    min-width: 0;
  }

  .project-card p,
  .person-content p {
    overflow-wrap: anywhere;
  }
}


.project-card-content p + p,
.person-content p + p {
  margin-top: 12px;
}

/* People grid two columns */

/* Liste des personnes : deux cartes par ligne sur ordinateur */
.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.person-card {
  grid-template-columns: minmax(100px, 135px) 1fr;
}

@media (max-width: 820px) {
  .people-list {
    grid-template-columns: 1fr;
  }

  .person-card {
    grid-template-columns: minmax(90px, 30%) 1fr;
  }
}
