/* ==================================================
   LAYOUT — Header + Drawer + Footer
================================================== */

/* ==================================================
   HEADER
================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 11, 13, 0.6);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header__container {
  max-width: var(--container);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem var(--gutter);
}

.header__logo img {
  display: block;
  width: 40px;
  height: auto;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font: 600 0.95rem/1 var(--ff-heading);
  letter-spacing: 0.02em;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.nav__link[aria-current="page"] {
  color: #ffffff;
}

/* burger (mobile) */
.header__toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.header__toggle-bar,
.header__toggle-bar::before,
.header__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.header__toggle-bar {
  top: 50%;
  transform: translateY(-50%);
}
.header__toggle-bar::before {
  top: -6px;
}
.header__toggle-bar::after {
  top: 6px;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar {
  background: transparent;
}
.header__toggle[aria-expanded="true"] .header__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}
.header__toggle[aria-expanded="true"] .header__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ✅ Responsive header : burger visible / nav cachée */
@media (max-width: 980px) {
  .header__toggle {
    display: inline-block;
  }
  .header__nav {
    display: none;
  }
}

/* ==================================================
   DRAWER (mobile)
================================================== */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 18rem;
  height: 100vh;
  padding: 4rem 1.75rem 2rem;
  background: #14121b;
  color: #fff;
  overflow-y: auto;
  z-index: 1100;
  transition: right 0.35s ease;
}

/* ✅ ouvert via class JS */
.drawer.is-open {
  right: 0;
}

.drawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.drawer__close::before,
.drawer__close::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.drawer__close::before {
  transform: translateY(-50%) rotate(45deg);
}
.drawer__close::after {
  transform: translateY(-50%) rotate(-45deg);
}

.drawer__intro {
  margin-bottom: 2rem;
}

.drawer__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.drawer__text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #e6e6e6;
}

.drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
}

.drawer__list a {
  font: 600 1.05rem/1 var(--ff-heading);
  color: #fff;
}

.drawer__list a[aria-current="page"] {
  color: #cfc6ff;
}

.drawer__info {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
.drawer__info li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.drawer__info span {
  color: var(--clr-accent-text);
}

.drawer__social {
  display: flex;
  gap: 1.25rem;
  font-size: 1.25rem;
}
.drawer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0.92;
}
.drawer__social a:hover {
  opacity: 1;
}

.drawer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2rem 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
  z-index: 1000;
}

/* ✅ actif via class JS */
.drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* ✅ lock scroll */
html.is-locked,
body.is-locked {
  overflow: hidden;
}
body.is-locked {
  touch-action: none;
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  color: #fff;
  background: rgba(12, 11, 13, 0.6);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer__container {
  width: 100%;
  margin-inline: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer__logo {
  margin: 0;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--clr-accent) -20%, #b9afff 112%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer__tagline {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #e6e6e6;
}

.footer__nav {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer__nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease-in-out;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--clr-accent-text);
  outline: none;
}

.footer__nav .sep {
  opacity: 0.8;
  font-size: 16px;
}

.footer__copy {
  margin-top: 16px;
  font-size: 14.4px;
  color: #cfcaf2;
}

@media (max-width: 768px) {
  .site-footer__container {
    padding: 24px var(--gutter);
  }
  .footer__logo {
    font-size: 20px;
  }
  .footer__tagline {
    font-size: 15px;
  }
  .footer__nav a,
  .footer__nav .sep {
    font-size: 14.4px;
  }
}

.footer__nav a:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
