:root {
  --bg: #0f1724;
  /* bleu profond */
  --card: #0f1b2b;
  --muted: #9aa7bd;
  --accent: #7dd3fc;
  /* cyan */
  --accent-2: #60a5fa;
  /* bleu */
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --max-width: 1100px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071026 0%, #071833 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  touch-action: manipulation;
}

.container {
  width: 100%;
  margin: 0;
  padding: 20px;
}



/* Header */
header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 12px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  margin: 12px;
  z-index: 40;
}

.nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 30px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

nav a.active, nav a:hover {
  color: var(--bg);
  background: var(--accent);
}


/* === HAMBURGER === */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  display: block;
}

.nav-desktop {
  display: none;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 50vw;
  transform: translateX(-120%);
  transition: transform .28s ease-out;
  background: var(--bg);
  box-shadow:2px 0 24px rgba(0,0,0,.35);
  border-right:1px solid rgba(255,255,255,.07);
}

.mobile-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.mobile-sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.mobile-sidebar a.active,
.mobile-sidebar a:hover {
  color: var(--bg);
  background: var(--accent);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 20;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}


body.sidebar-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Etat ouvert */
body.sidebar-open .mobile-sidebar {
  transform: translateX(-10%);
}

body.sidebar-open .nav-desktop {
  display: none !important;
}

body.sidebar-open {
  overflow: hidden;
}




/* Main */
section {
  margin-top: 26px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

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

p.lead {
  color: var(--muted);
  margin-top: 12px;
  text-align: justify;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}


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

.location {
  display: flex;
  align-items: center;
  gap: 6px;
}

.location a {
  text-decoration: underline;
  color: currentColor;
}

.project {
  padding: 14px;
  border-radius: 12px;
  background: var(--glass);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

h3.project-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.project .content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project .img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.project .img img {
  height: 180px;
  width: auto;
  border-radius: 8px;
}




/* Footer */
footer {
  margin-top: 40px;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.muted {
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.name {
  font-weight: bold;
}

.status {
  font-size: 13px;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.social a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s ease;
}

.social a svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.social a:hover {
  color: var(--accent);
}




/* === RESPONSIVE === */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  footer {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  header {
    top: 8px;
    margin: 8px;
    padding: 6px 8px;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-desktop {
    display: none !important;
  }
}