/* =========================================================================
   Microlev — En-tête et pied de page
   ========================================================================= */

/* ================================================================ HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--hi) 0 42%, rgba(255, 255, 255, .22) 42% 100%);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* ---- Marque ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
}

/* Le pied de page reprend le même bloc .brand mais garde une pastille discrète */
.footer-brand .brand img { width: 44px; height: 44px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.brand-tag {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #cfe3f2;
  margin-top: 3px;
}

/* ---- Navigation ---- */
.nav { margin-left: auto; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .85rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: -2px;
  height: 2px;
  background: #fff;
}

.nav-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.has-submenu[data-open="true"] .nav-caret { transform: rotate(-135deg) translate(-3px, -3px); }

/* ---- Sous-menu ---- */
.submenu {
  list-style: none;
  margin: 0;
  padding: .45rem;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 274px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--hi);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu[data-open="true"] .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--ink-800);
  text-decoration: none;
  transition: background-color .14s var(--ease);
}
.submenu a:hover { background: var(--paper); }
.submenu .sub-meta {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.submenu .submenu-all {
  border-top: 1px solid var(--line);
  margin-top: .35rem;
  padding-top: .55rem;
}
.submenu .submenu-all a { color: var(--ink); font-weight: 700; text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: .05em; }

/* ---- Actions à droite ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: .6rem;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.1rem;
  background: var(--hi);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s var(--ease);
}
.nav-phone:hover { background: #fff; color: var(--brand); }
.nav-phone svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---- Burger ---- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform .22s var(--ease), opacity .16s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile ---- */
@media (max-width: 1200px) {
  .burger { display: block; order: 3; }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 3px) 0 0 0;
    background: var(--brand);
    padding: 1.25rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .26s var(--ease);
    margin: 0;
  }
  .nav[data-open="true"] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem .25rem;
    font-size: 1rem;
  }
  .nav-link[aria-current="page"]::after { display: none; }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--hi);
    border-radius: 0;
    background: rgba(255, 255, 255, .05);
    margin: 0 0 .75rem;
    padding: .25rem 0 .25rem .75rem;
    display: none;
  }
  .has-submenu[data-open="true"] .submenu { display: block; }
  .submenu a { color: rgba(255, 255, 255, .85); }
  .submenu a:hover { background: rgba(255, 255, 255, .08); }
  .submenu .sub-meta { color: #cfe3f2; }
  .submenu .submenu-all { border-top-color: rgba(255, 255, 255, .15); }
  .submenu .submenu-all a { color: #fff; }

  .nav-actions {
    margin: 1.5rem 0 0;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-phone { justify-content: center; padding: .9rem 1rem; font-size: 1rem; }

  body[data-nav-open="true"] { overflow: hidden; }
}

/* ================================================================ FOOTER */
.site-footer {
  background: var(--brand);
  color: var(--ink-200);
  border-top: 3px solid var(--hi);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: var(--ink-200);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-brand .brand { margin-bottom: 1rem; }
.footer-desc { color: var(--ink-200); max-width: 34ch; margin-bottom: 1.25rem; }

.footer-contact {
  font-style: normal;
  line-height: 1.85;
}
.footer-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

/* Lien Instagram : l'icone seule passait inapercue sur le bleu du pied de
   page. Elle est desormais accompagnee de son libelle, et dessinee en SVG
   plutot qu'en PNG blanc sur fond transparent, qui se voyait a peine. */
.footer-social { margin-top: 1.25rem; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .95rem .5rem .5rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 100px;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 550;
  text-decoration: none;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.footer-social a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--hi);
}

.footer-social-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--hi);
  border-radius: 50%;
  color: #fff;
}
.footer-social-icon svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner a { color: var(--ink-200); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
