/* XRENT — ossature : en-tête, navigation, pied de page. */

/* ---------- En-tête ---------- */

.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.head.is-stuck {
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.head__in {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 92px;
}

.head__logo { flex: none; line-height: 0; }
.head__logo img { width: 132px; height: auto; }

.head__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.head__tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.head__tel:hover { color: var(--amber); }

/* ---------- Navigation ---------- */

.nav { display: flex; align-items: center; margin-left: var(--s5); }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__foot { display: none; }

.nav__link {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
  transition: color .2s var(--ease);
  position: relative;
}
.nav__link:hover { color: var(--white); }

.nav__link.is-current { color: var(--white); }
.nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 2px;
  width: 6px; height: 6px;
  background: var(--amber);
}

/* ---------- Bouton menu ---------- */

.burger {
  display: none;
  width: 46px; height: 46px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  /* le panneau de navigation est un frère au z-index 49 : le bouton doit rester au-dessus
     pour servir de bouton de fermeture. */
  position: relative;
  z-index: 60;
}

.burger__bars,
.burger__bars::before,
.burger__bars::after {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  background: var(--white);
  transition: transform .24s var(--ease), opacity .15s linear;
}
.burger__bars { top: 22px; }
.burger__bars::before { content: ""; left: 0; top: -6px; }
.burger__bars::after  { content: ""; left: 0; top: 6px; }

.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-veil {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(3px);
}

@media (max-width: 1100px) {
  .head__in { min-height: 72px; gap: var(--s2); }
  .head__logo img { width: 112px; }
  .head__actions { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 49;
    width: min(380px, 88vw);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 104px var(--s4) var(--s5);
    background: var(--carbon);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .34s var(--ease-out);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }

  .nav__link {
    padding: 18px 0;
    font-size: 1.125rem;
    letter-spacing: .03em;
    color: var(--white);
  }
  .nav__link.is-current { color: var(--amber); }
  .nav__link.is-current::after { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); }

  .nav__foot { display: grid; gap: var(--s3); margin-top: var(--s5); }
  .nav__tel {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--amber);
    text-decoration: none;
  }
}

/* ---------- Pied de page ---------- */

.foot { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s4); }

.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}

.foot__claim {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
  padding: var(--s6) 0;
}

.foot__brand img { width: 118px; margin-bottom: var(--s3); }

.foot__pitch { max-width: 38ch; font-size: var(--fs-sm); color: var(--mute); }

.foot__coords {
  margin-top: var(--s3);
  display: grid;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--mute);
}
.foot__coords a { color: var(--white); text-decoration: none; }
.foot__coords a:hover { color: var(--amber); }

.foot__title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mute-2);
  margin-bottom: var(--s3);
}

.foot__col li { margin-bottom: 12px; }
.foot__col a {
  font-size: var(--fs-sm);
  color: var(--white);
  text-decoration: none;
}
.foot__col a:hover { color: var(--amber); }

.foot__legal {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: var(--fs-micro);
  color: var(--mute-2);
}
.foot__legal p { margin: 0; }
.foot__legal a { color: inherit; }

@media (max-width: 900px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
  .foot__brand { grid-column: 1 / -1; }
  .foot__top { padding-bottom: var(--s5); }
}

/* ---------- Ajustements charte 2025 ---------- */

.head__logo img { width: 168px; }

.head.is-stuck { background: rgba(22, 22, 22, .9); }
.nav-veil { background: rgba(22, 22, 22, .74); }

/* Les deux commerciaux, dans le menu mobile et le pied de page */
.nav__tel span,
.foot__coords span {
  display: block;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 3px;
}
.nav__foot .nav__tel + .nav__tel { margin-top: var(--s2); }
.foot__coords li { line-height: 1.35; }
.foot__todo { color: var(--mute-2); font-size: var(--fs-micro); padding-top: 4px; }

.foot { padding-top: 0; border-top: 0; }
.foot > .wrap { padding-top: var(--s7); }
.foot__brand img { width: 176px; }

@media (max-width: 1100px) {
  .head__logo img { width: 138px; }
}
