/* Accueil uniquement. Le SVG cadre le PNG officiel sans altérer ses pixels. */
.site-header {
  background: #140a06;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-footer {
  position: relative;
  padding-top: 25px;
  padding-bottom: 39px;
}

.home-footer .footer-inner {
  grid-template-columns: 250px auto minmax(0, 1fr);
  align-items: last baseline;
  column-gap: 40px;
}

.home-footer .footer-brand-block,
.home-footer .footer-brand {
  display: grid;
}

.home-footer .footer-brand {
  justify-items: center;
}

.home-footer .footer-copyright {
  margin: 0;
  /* Conserver la ligne de grille pour ne déplacer ni la marque ni les liens. */
  min-block-size: 1lh;
}

.home-footer .footer-copyright::before {
  content: "\00a0";
}

.home-footer .footer-copyright > span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
}

.home-footer .footer-inner nav {
  position: static;
  flex-wrap: nowrap;
}

.home-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  max-width: 250px;
  gap: 3px;
}

.home-brand .official-lettering {
  display: block;
  flex: none;
  width: 190px;
  height: auto;
  overflow: hidden;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .18));
}

.home-brand .official-signature {
  display: block;
  text-align: center;
  color: #e8dfcc;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.footer-brand.home-brand {
  gap: 6px;
  max-width: 100%;
}

.footer-brand.home-brand .official-lettering {
  width: 250px;
  max-width: 100%;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .25));
}

.footer-brand.home-brand .official-signature {
  font-size: 9.5px;
  line-height: 15px;
}

/* L'en-tête mobile existant mesure 72px : seule la marque s'adapte. */
@media (max-width: 720px) {
  .brand.home-brand {
    width: 220px;
    max-width: 220px;
    gap: 2px;
  }

  .brand.home-brand .official-lettering {
    width: 150px;
  }

  .brand.home-brand .official-signature {
    font-size: 8.5px;
    line-height: 13px;
  }
}

/* Les liens conservent leur ligne et leur emplacement responsive. */
@media (max-width: 1080px) {
  .home-footer .footer-inner {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
  }

  .home-footer .footer-inner nav {
    grid-column: 1 / -1;
    margin-right: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .home-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .home-footer .footer-inner nav {
    justify-self: start;
    gap: 12px 24px;
  }
}

@media (max-width: 420px) {
  .footer-brand.home-brand .official-lettering {
    width: clamp(142px, calc(100vw - 178px), 242px);
  }
}


@media (max-width: 720px) {
  .brand.home-brand .official-signature {
    font-size: 11px;
    line-height: 14px;
    white-space: normal;
    text-wrap: balance;
  }
}
@media (max-width: 768px) {
  .footer-brand.home-brand { width: 100%; max-width: 300px; }
  .footer-brand.home-brand .official-signature {
    font-size: 12px;
    line-height: 17px;
    white-space: normal;
    text-wrap: balance;
  }
  .home-footer .footer-inner nav { gap: 4px 24px; }
  .home-footer .footer-inner nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .home-footer .footer-inner nav a:focus-visible {
    outline: 2px solid var(--amber-2);
    outline-offset: 2px;
    border-radius: 3px;
  }
}
@media (max-width: 420px) {
  .home-footer .footer-inner nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  .home-footer .footer-inner { grid-template-columns: 300px minmax(0, 1fr); }
}

/* Le bloc grandit seulement quand la signature dépasse la hauteur habituelle. */
@media (max-width: 720px) {
  .site-header .header-inner {
    height: auto;
    min-height: 72px;
  }
  header.site-header:not(.home-menu-ready) .header-inner {
    grid-template-rows: minmax(72px, max-content) auto;
  }
  .brand.home-brand .official-signature {
    flex-shrink: 0;
    line-height: calc(14 / 11);
    overflow-wrap: anywhere;
  }
  .site-header.home-menu-ready .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: max(44px, calc(100dvh - 100%));
  }
}
@media (max-width: 768px) {
  .footer-brand.home-brand .official-signature {
    line-height: calc(17 / 12);
    overflow-wrap: anywhere;
  }
}

/* Finition tablette Accueil : seul le bloc logo descend, sans déplacer la grille. */
@media (min-width: 721px) and (max-width: 1180px) {
  .home-footer .footer-brand-block { transform: translateY(8px); }
}

/* Equivalent local de l'alignement mobile valide sur iPhone. */
@media (max-width:720px) {
 header.site-header.home-menu-ready .header-inner { grid-template-columns:minmax(0,1fr) auto; }
 header.site-header.home-menu-ready .brand.home-brand { width:170px; max-width:170px; }
 header.site-header.home-menu-ready .home-menu-toggle { grid-column:2; justify-self:end; }
}
