:root {
  --header-ink: #171411;
  --header-ink-soft: #251f1a;
  --header-orange: #ff6000;
}

/* Le logo, le slogan et la navigation forment désormais un seul bandeau. */
.brand-intro {
  display: block;
  margin: 0;
}

.brand-intro > .brand-message {
  padding: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(112px, 10vw, 126px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  border: 1px solid #e9dfd5;
  border-left: 7px solid var(--header-orange);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fffaf6 68%, #fff1e7 100%);
  box-shadow: 0 18px 42px rgba(86, 54, 32, .12);
}

.brand-intro .brand-identity {
  min-width: 0;
}

.home-closure-notice {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #ffbd90;
  border-left: 6px solid var(--header-orange);
  border-radius: 16px;
  background: #fff0e5;
  color: #302923;
  text-align: left;
}

.home-closure-notice h2 {
  margin: 0 0 8px;
  color: #a43a00;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.2;
}

.home-closure-notice p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.home-closure-notice .home-closure-reopening {
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: #a43a00;
}

@media (max-width: 700px) {
  .home-closure-notice {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px;
    gap: 14px;
  }
}

.brand-intro .logo {
  width: clamp(96px, 10vw, 122px);
}

.brand-intro .brand-tagline {
  max-width: 520px;
  padding-block: 7px;
  font-size: clamp(1.35rem, 2.15vw, 1.8rem);
  line-height: 1.08;
  white-space: normal;
}

header,
header.home-navigation {
  isolation: isolate;
  width: min(1180px, calc(100% - 40px));
  height: auto;
  min-height: 92px;
  margin: 32px auto 22px;
  padding: 10px 12px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: visible;
  border: 1px solid #e5dbd1;
  border-radius: 24px;
  background: rgba(255, 253, 250, .97);
  box-shadow: 0 18px 42px rgba(86, 54, 32, .15), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 48px;
  z-index: 60;
  transition: transform .3s ease, box-shadow .25s ease;
}

body > header {
  margin-top: 56px;
}

main > header.home-navigation {
  --home-menu-top: 48px;
  --home-menu-height: 82px;
  width: calc(100% - 48px);
  min-height: 82px;
  margin: -112px auto 22px;
  padding-inline: 12px;
  justify-content: center;
  border-color: transparent;
  border-radius: 17px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  /* À la descente, le menu peut quitter entièrement l'écran avec la page. */
  top: calc(-1 * var(--home-menu-height) - 2px);
  transition: top .28s ease;
}

main > header.home-navigation.is-scroll-return {
  top: var(--home-menu-top);
}

/* Le logo de rappel ne doit pas décaler le centre de la navigation. */
.home-navigation .header-brand-copy {
  display: none;
}

.brand-intro .logo-link {
  opacity: var(--logo-opacity, 1);
  transition: opacity .22s ease-out;
}

header.home-navigation > .brand {
  opacity: var(--logo-opacity, 0);
  transition: opacity .22s ease-out;
}

@media (min-width: 1041px) {
  main > header.home-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  header.home-navigation > .brand {
    grid-area: 1 / 1;
    min-width: 0;
    justify-self: start;
  }

  header.home-navigation > nav {
    grid-area: 1 / 2;
    justify-self: center;
  }
}

header:hover {
  box-shadow: 0 22px 48px rgba(86, 54, 32, .19), inset 0 1px 0 #fff;
}

header .brand {
  position: static;
  left: auto;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 1 auto;
}

header .brand-logo {
  display: block;
  width: 66px;
  height: 66px;
  padding: 4px;
  object-fit: contain;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24), 0 0 0 1px rgba(255, 255, 255, .55);
}

.header-brand-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
  font-family: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.header-brand-copy strong {
  color: #1d1916;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.header-brand-copy small {
  color: #e75400;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: .025em;
  white-space: nowrap;
}

header nav {
  min-width: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  border: 1px solid #ece2d9;
  border-radius: 17px;
  background: #f7f2ed;
  font-size: .88rem;
  font-weight: 800;
}

header nav > a,
header .services-trigger {
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #302923;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

header nav > a:hover,
header nav > a:focus-visible,
header .services-trigger:hover,
header .services-trigger:focus-visible {
  background: #fff;
  color: #d94f00;
  transform: translateY(-1px);
}

header nav > a[aria-current="page"],
header .services-trigger[aria-current="page"] {
  background: #fff0e6;
  color: #dc5000 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 96, 0, .2);
}

header nav > a:last-child {
  padding-inline: 18px;
  background: var(--header-orange);
  color: #fff;
  box-shadow: 0 9px 20px rgba(255, 96, 0, .23);
}

header nav > a:last-child:hover,
header nav > a:last-child:focus-visible,
header nav > a:last-child[aria-current="page"] {
  background: #ff7420;
  color: #fff !important;
  box-shadow: 0 12px 25px rgba(255, 96, 0, .3);
}

header .services-menu {
  position: relative;
}

header .services-trigger::after {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease;
}

header .services-menu.open .services-trigger::after,
header .services-menu:focus-within .services-trigger::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

header .services-menu .submenu {
  top: calc(100% + 14px);
  left: 50%;
  width: 310px;
  padding: 9px;
  overflow: visible;
  transform: translateX(-50%);
  border: 1px solid #e9ded3;
  border-top: 3px solid var(--header-orange);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(43, 28, 18, .24);
}

header .services-menu .submenu::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid #e9ded3;
  border-left: 1px solid #e9ded3;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

header .services-menu .submenu a {
  position: relative;
  padding: 13px 14px;
  display: block;
  border-radius: 11px;
  color: #302923;
  font-size: .88rem;
  font-weight: 750;
  text-align: left;
}

header .services-menu .submenu a:hover,
header .services-menu .submenu a:focus-visible,
header .services-menu .submenu a[aria-current="page"] {
  background: #fff1e8;
  color: #df5200 !important;
}

header .menu {
  border: 0;
  background: transparent;
  color: var(--header-orange);
}

.mobile-menu-backdrop,
.mobile-menu-actions {
  display: none !important;
}

@media (max-width: 900px) {
  .brand-intro > .brand-message {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand-intro .brand-tagline {
    max-width: none;
  }
}

@media (max-width: 1040px) {
  header,
  header.home-navigation {
    width: calc(100% - 28px);
    min-height: 80px;
    margin-bottom: 18px;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    border-radius: 20px;
  }

  header .brand {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
  }

  main > header.home-navigation {
    width: calc(100% - 42px);
  }

  header .brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  header .menu {
    grid-column: 2;
    justify-self: center;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0 0 3px;
    place-items: center;
    border: 1px solid rgba(255, 142, 72, .42);
    border-radius: 15px;
    background: rgba(255, 96, 0, .13);
    color: #ff8b43;
    font: 800 1.8rem/1 Arial, sans-serif;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  header .menu[aria-expanded="true"] {
    background: var(--header-orange);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 96, 0, .28);
  }

  header::after {
    grid-column: 3;
    content: "";
  }

  header nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100dvh - 150px);
    padding: 12px;
    display: none;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border: 1px solid #e8ddd3;
    border-top: 3px solid var(--header-orange);
    border-radius: 19px;
    background: rgba(255, 253, 250, .99);
    box-shadow: 0 24px 55px rgba(43, 28, 18, .27);
  }

  header nav.open {
    display: flex;
    animation: header-menu-in .2s ease both;
  }

  header nav > a,
  header .services-trigger {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    justify-content: flex-start;
    border-radius: 11px;
    color: #302923;
    font-size: .92rem;
    text-align: left;
  }

  header nav > a:hover,
  header nav > a:focus-visible,
  header .services-trigger:hover,
  header .services-trigger:focus-visible,
  header nav > a[aria-current="page"],
  header .services-trigger[aria-current="page"] {
    background: #fff0e6;
    color: #dc5000 !important;
    box-shadow: none;
    transform: none;
  }

  header nav > a:last-child,
  header nav > a:last-child:hover,
  header nav > a:last-child:focus-visible,
  header nav > a:last-child[aria-current="page"] {
    justify-content: center;
    background: var(--header-orange);
    color: #fff !important;
  }

  header .services-menu {
    width: 100%;
    padding: 4px;
    border-radius: 14px;
    background: #f5efe9;
  }

  header .services-trigger {
    justify-content: space-between;
  }

  header .services-menu .submenu {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 3px;
    overflow: visible;
    transform: none;
    border: 0;
    border-radius: 11px;
    background: transparent;
    box-shadow: none;
  }

  header .services-menu .submenu::before {
    display: none;
  }

  header .services-menu .submenu a {
    min-height: 42px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    background: transparent;
    font-size: .88rem;
  }

}

@media (max-width: 700px) {
  .brand-intro > .brand-message {
    padding: 20px 17px;
    padding-bottom: 102px;
    gap: 16px;
    border-left-width: 5px;
    border-radius: 19px;
  }

  .brand-intro .brand-identity {
    gap: 15px;
  }

  .brand-intro .logo {
    width: 82px;
  }

  .brand-intro .brand-tagline {
    padding: 4px 0 4px 16px;
    font-size: clamp(1.25rem, 5.8vw, 1.65rem);
  }

  body > header {
    margin-top: 48px;
  }

  main > header.home-navigation {
    width: calc(100% - 22px);
    min-height: 70px;
    margin: -91px auto 18px;
  }

  header,
  header.home-navigation {
    min-height: 72px;
    padding: 7px 9px;
    border-radius: 18px;
  }

  header .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .header-brand-copy {
    display: none;
  }

  header .menu {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

@keyframes header-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  main > header.home-navigation,
  .brand-intro .logo-link,
  header.home-navigation > .brand,
  header,
  header nav.open,
  header nav > a,
  header .services-trigger {
    animation: none;
    transition: none;
  }
}
