/* ====================================================
   03-layout.css
   Structure : navbar fixe (verre dépoli), menu mobile,
   pied de page, adaptations responsive.
   ==================================================== */

/* --- Navbar fixe en pilule de verre --- */

.header {
  position: fixed;
  top: clamp(12px, 1.6vw, 20px);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(94%, 1200px);
  z-index: 50;
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(250, 246, 240, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(250, 246, 240, 0.06);
  color: var(--cream);
  transition:
    padding .4s var(--ease),
    background .4s var(--ease),
    border-color .4s var(--ease),
    box-shadow .4s var(--ease);
}

.header.is-scrolled {
  padding: 6px 6px 6px 20px;
  background: rgba(13, 13, 13, 0.78);
  border-color: rgba(250, 246, 240, 0.14);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(250, 246, 240, 0.08);
}

body.menu-open .header {
  background: rgba(13, 13, 13, 0.85);
  border-color: rgba(250, 246, 240, 0.22);
}

body.menu-open {
  overflow: hidden;
}

/* --- Logo --- */

.header-logo {
  font-family: var(--heading);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: var(--orange);
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}

.header-logo:hover {
  color: var(--gold);
}

/* --- Liens de menu (desktop) --- */

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: .005em;
  transition: color .25s var(--ease);
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}

.header-nav a:hover {
  color: var(--orange);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after,
.header-nav a.is-active::after {
  transform: scaleX(1);
}

.header-nav a.is-active {
  color: var(--orange);
}

/* --- CTA du header --- */

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--background-deep);
  font-family: var(--heading);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background .25s var(--ease),
    transform .25s var(--ease),
    scale .2s var(--ease);
}

.header-cta:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.header-cta:active {
  scale: .96;
}

/* --- Bouton hamburger --- */

.header-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  background: transparent;
  border-radius: 999px;
  color: var(--cream);
  transition: background .25s var(--ease);
}

.header-toggle:hover {
  background: rgba(250, 246, 240, 0.08);
}

.header-toggle-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform .4s var(--ease),
    opacity .25s var(--ease);
}

.header-toggle-line:nth-child(1) {
  transform: translate(-50%, -7px);
}
.header-toggle-line:nth-child(2) {
  transform: translate(-50%, 0);
}
.header-toggle-line:nth-child(3) {
  transform: translate(-50%, 7px);
}

.header-toggle[aria-expanded="true"] .header-toggle-line:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}
.header-toggle[aria-expanded="true"] .header-toggle-line:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, 0) scaleX(0.2);
}
.header-toggle[aria-expanded="true"] .header-toggle-line:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* --- Overlay mobile --- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 110px 8% 60px;
  overflow-y: auto;
  background: rgba(13, 13, 13, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .4s var(--ease),
    visibility 0s linear .4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity .4s var(--ease),
    visibility 0s linear 0s;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.mobile-menu-inner a {
  display: inline-block;
  padding: 14px 8px;
  font-family: var(--heading);
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .5s var(--ease),
    transform .6s var(--ease),
    color .25s var(--ease);
}

.mobile-menu-inner a:hover {
  color: var(--orange);
}

.mobile-menu.is-open .mobile-menu-inner a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu-inner a:nth-child(1) {
  transition-delay: .15s;
}
.mobile-menu.is-open .mobile-menu-inner a:nth-child(2) {
  transition-delay: .21s;
}
.mobile-menu.is-open .mobile-menu-inner a:nth-child(3) {
  transition-delay: .27s;
}
.mobile-menu.is-open .mobile-menu-inner a:nth-child(4) {
  transition-delay: .33s;
}
.mobile-menu.is-open .mobile-menu-inner a:nth-child(5) {
  transition-delay: .39s;
}

.mobile-menu-inner a.mobile-menu-cta {
  margin-top: 24px;
  padding: 14px 26px;
  font-size: clamp(18px, 3.6vw, 22px);
  background: var(--orange);
  color: var(--background-deep);
  border-radius: 999px;
}

.mobile-menu-inner a.mobile-menu-cta:hover {
  background: var(--gold);
  color: var(--background-deep);
}

/* --- Pied de page (inchangé) --- */

.footer {
  position: relative;
  background: var(--background-deep);
  padding-top: clamp(50px, 7vw, 101px);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(20px, 3vw, 43px);
  background: var(--background);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-description {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--heading);
  font-size: 20px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-brand {
  margin-top: clamp(80px, 12vw, 173px);
  text-align: center;
  font-family: var(--heading);
  font-size: clamp(90px, 23vw, 331px);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.025em;
  white-space: nowrap;
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
  color: var(--muted);
  font-size: 12px;
}

.footer-photo {
  width: 58%;
  height: clamp(150px, 24vw, 346px);
  margin: 38px auto -30px;
  overflow: hidden;
  border-radius: 48% 48% 0 0;
  background: #48311F;
  rotate: -3deg;
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .header {
    padding: 6px 6px 6px 18px;
    gap: 12px;
  }

  .header-nav,
  .header-cta {
    display: none !important;
  }

  .header-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .container {
    width: 88%;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-brand {
    font-size: 22vw;
    margin-top: 70px;
  }

  .footer-bottom {
    font-size: 11px;
  }

  .footer-photo {
    width: 80%;
    height: 210px;
  }
}