/* =============================================================
   LAYOUT.CSS — Header, Navigation, Footer
   Maison de Renaissance Elyria
============================================================= */

/* -------------------------------------------------------------
   HEADER
------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 160, 122, 0.18);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(74, 55, 40, 0.09);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   NAVIGATION DESKTOP
------------------------------------------------------------- */
.header__nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.header__nav-link {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-fonce);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  cursor: pointer;
}

.header__nav-link--priority {
  color: var(--taupe);
  font-weight: 400;
}

/* Soulignement animé — sauf pour la flèche dropdown */
.header__nav-link:not(.header__nav-link--arrow)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--taupe);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header__nav-link:hover {
  color: var(--brun);
}

.header__nav-link:not(.header__nav-link--arrow):hover::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------------
   DROPDOWN QUESTIONNAIRES
------------------------------------------------------------- */
.header__nav-dropdown {
  position: relative;
  list-style: none;
}

/* Flèche indicatrice */
.header__nav-link--arrow::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.6;
  position: static;
  display: inline;
  background: none;
  transform: none;
  height: auto;
}

/* Rotation flèche quand ouvert */
.header__nav-dropdown.open .header__nav-link--arrow::after {
  content: ' ▴';
}

/* Menu déroulant */
.header__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(253, 248, 244, 0.98);
  border: 0.5px solid rgba(201, 160, 122, 0.25);
  min-width: 240px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(74, 55, 40, 0.1);
}

/* Pont invisible pour éviter fermeture entre le lien et le menu */
.header__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0; right: 0;
  height: 16px;
}

/* Afficher via classe JS */
.header__nav-dropdown.open .header__dropdown-menu {
  display: block;
}

/* Items du dropdown */
.header__dropdown-menu li a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-fonce);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(201, 160, 122, 0.12);
  transition: var(--transition);
}

.header__dropdown-menu li:last-child a {
  border-bottom: none;
}

.header__dropdown-menu li a:hover {
  background: rgba(201, 160, 122, 0.06);
  color: var(--brun);
  padding-left: 1.5rem;
}

/* -------------------------------------------------------------
   CTA nav
------------------------------------------------------------- */
.header__cta {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blanc);
  background: var(--taupe);
  border: 1px solid var(--taupe);
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--taupe-fonce);
  border-color: var(--taupe-fonce);
}

/* -------------------------------------------------------------
   BURGER MOBILE
------------------------------------------------------------- */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--taupe-fonce);
  transition: var(--transition);
}

/* -------------------------------------------------------------
   MENU MOBILE
------------------------------------------------------------- */
.header__mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(253, 248, 244, 0.98);
  border-top: 1px solid rgba(201, 160, 122, 0.18);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
}

.header__mobile-menu.open {
  display: flex;
}

.header__mobile-link {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe-fonce);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 160, 122, 0.15);
  transition: color var(--transition);
}

.header__mobile-link:hover {
  color: var(--brun);
}

/* Style pour le lien prioritaire mobile */
.header__mobile-link--priority {
  color: var(--taupe);
  font-weight: 400;
}

/* Séparateur visuel avant les questionnaires dans le menu mobile */
.header__mobile-link--indent {
  padding-left: 1rem;
  font-size: 0.72rem;
  opacity: 0.8;
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.footer {
  padding: 3.5rem 2rem;
  background: var(--brun);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--taupe);
  margin-bottom: 0.8rem;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.footer__nav-link {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253, 248, 244, 0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--taupe);
}

.footer__copy {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253, 248, 244, 0.25);
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 860px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }
}