.alp-copy {
  --alp-journey-wine: #833238;
  --alp-journey-ink: #342a28;
  --alp-journey-pink: #f8eeec;
  --alp-journey-line: #e8d6d2;
  --alp-mobile-header-height: 3.5rem;
}

#alp-main :where(section[id], nav[id], h2[id], div[id]) {
  scroll-margin-block-start: 8.75rem;
}

#alp-home-opening-film {
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 72vh;
  max-height: 72svh;
  background: #252421;
  object-fit: cover;
}

.alp-main-navigation > .alp-agency-menu-link,
#alp-mobile-menu .alp-agency-menu-link {
  color: #803036 !important;
  background: #f8eeec;
  font-weight: 750;
}

#alp-main .alp-journey-nav,
#alp-main .alp-td-jumps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  box-sizing: border-box;
  width: 100%;
  margin-block: clamp(1rem, 3vw, 1.65rem);
  padding: .8rem 1rem;
  border: 1px solid var(--alp-journey-line);
  border-radius: .9rem;
  background: #fffcfa;
}
#alp-main :where(.alp-journey-nav, .alp-td-jumps) > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  padding: .45rem .72rem;
  color: var(--alp-journey-wine);
  background: var(--alp-journey-pink);
  border-radius: .48rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
#alp-main :where(.alp-journey-nav, .alp-td-jumps) > a:is(:hover, :focus-visible) {
  color: #60272b;
  text-decoration: underline;
  text-underline-offset: .2em;
}

#alp-main :is(.alp-journey-proof, #chantiers-alp, #accueils-alp-com,
  .alp-trade-page > #prestations, .alp-trade-page > #chantiers-budgets, .alp-trade-page > #questions) {
  box-sizing: border-box;
  border: 1px solid var(--alp-journey-line);
  border-radius: 1.05rem;
  padding: clamp(1rem, 3vw, 2.3rem);
}
#alp-main .alp-journey-proof {
  color: var(--alp-journey-ink);
  border-inline-start: 4px solid var(--alp-journey-wine);
  background: var(--alp-journey-pink);
}
#alp-main :is(#chantiers-alp, .alp-trade-page > #chantiers-budgets) { background: #f8f2e8; }
#alp-main .alp-trade-page > #prestations { background: #fdfaf7; }
#alp-main .alp-trade-page > #questions { background: #f4f7f5; border-color: #dbe5df; }
#alp-main .alp-trade-page #demander-un-devis { border-radius: 1.05rem; }
#alp-main .alp-td-contact .alp-td-actions { margin-block-start: 1rem; }

#alp-main #accueils-alp-com {
  color: var(--alp-journey-ink);
  background: #f9efed;
  border-color: #e8d5d0;
  border-inline-start: 4px solid var(--alp-journey-wine);
}
#accueils-alp-com .agency-band-inner {
  width: 100%;
  padding: 0;
}
#accueils-alp-com .agency-band-title > h2 {
  margin: 0;
  color: #803036 !important;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.18;
  font-weight: 760;
}
#accueils-alp-com .alp-agency-intro { margin-block-end: .8rem; }
#accueils-alp-com .alp-agency-intro p { margin: 0; color: #4c413e; }
#accueils-alp-com .agency-band-inner > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: .5rem;
  overflow: visible;
}
#accueils-alp-com .agency-band-inner > ul > li { min-width: 0; }
#accueils-alp-com .agency-band-inner > ul a {
  height: 100%;
  min-height: 54px;
  padding: .45rem .65rem;
  color: #762f33;
  overflow-wrap: anywhere;
}
#accueils-alp-com .alp-agency-extra {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin-top: .55rem;
}
#accueils-alp-com .alp-agency-extra a {
  flex-wrap: wrap;
  gap: .25rem .45rem;
}
#accueils-alp-com .alp-agency-extra :is(strong, small) { color: inherit; }

.alp-desktop-header a[data-alp-header-service] {
  background: #f8eeec !important;
  color: #803036 !important;
  border-color: #e9d7d3 !important;
}

#alp-mobile-masthead { display: none; }

@layer base {
  @media (max-width: 1023px) {
    body.alp-copy.home #alp-main[data-alp-home-kind="principal"],
    body.alp-copy.alp-trade-body #alp-main { padding-block-start: 0 !important; }
    html:root body.alp-copy.home #alp-main#alp-main[data-alp-home-kind="principal"] .alp-home-refresh .alp-home-hero-section {
      margin-block-start: 0 !important;
    }
  }
}

@media (max-width: 1023px) {
  #alp-mobile-masthead {
    display: block;
    position: sticky;
    inset-block-start: var(--wp-admin--admin-bar--height, 0px);
    z-index: 6000;
    background: #fffefa;
    border-block-end: 1px solid var(--alp-journey-line);
  }
  #alp-mobile-masthead .alp-mobile-row {
    display: grid;
    grid-template-areas: "brand actions menu";
    grid-template-columns: clamp(5.1rem, 19vw, 7rem) minmax(0, 1fr) 44px;
    align-items: center;
    gap: .4rem;
    min-height: var(--alp-mobile-header-height);
    padding: .22rem clamp(.55rem, 2.45vw, 1.15rem);
  }
  #alp-mobile-masthead .alp-mobile-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  #alp-mobile-masthead .alp-mobile-brand :is(.alp-batiment-lockup, .dg-logo-header) {
    display: block;
    width: min(100%, 5.6rem) !important;
    max-width: 100%;
    height: auto !important;
    margin: 0;
    object-fit: contain;
    object-position: left center;
  }
  #alp-mobile-masthead .alp-mobile-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .4rem;
    min-width: 0;
  }
  #alp-mobile-masthead :is(.alp-mobile-call, .alp-mobile-quote, .alp-mobile-menu-toggle) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .34rem;
    min-height: 44px;
    padding: .35rem clamp(.42rem, 1.2vw, .8rem);
    border: 1px solid var(--alp-journey-line);
    border-radius: .52rem;
    font-size: .83rem;
    font-weight: 720;
    line-height: 1.15;
    white-space: nowrap;
    text-decoration: none;
  }
  #alp-mobile-masthead svg { flex: none; }
  #alp-mobile-masthead .alp-mobile-actions svg { width: 16px; height: 16px; }
  #alp-mobile-masthead .alp-mobile-call {
    background: var(--alp-journey-pink);
    color: #762f33;
    font-variant-numeric: tabular-nums;
  }
  #alp-mobile-masthead .alp-mobile-quote {
    background: var(--alp-journey-wine);
    border-color: var(--alp-journey-wine);
    color: #fff;
  }
  #alp-mobile-masthead .alp-mobile-menu-toggle {
    grid-area: menu;
    width: 44px;
    padding: 0;
    background: #fffefa;
    color: var(--alp-journey-wine);
  }
  #alp-mobile-menu .alp-nav-mobile-links > a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .65rem;
    border-radius: .45rem;
  }
  #alp-main :where(section[id], nav[id], h2[id], div[id]),
  #alp-main .alp-trade-page #demander-un-devis {
    scroll-margin-block-start: calc(var(--alp-mobile-header-height) + .85rem);
  }
}

@media (max-width: 767px) {
  #alp-home-opening-film { max-height: none; object-fit: contain; }
  #alp-main .alp-trade-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: clamp(.85rem, 4vw, 1.6rem);
  }
  #alp-main .alp-td-hero { margin-top: 0; padding-block-start: 1.1rem; }
  #alp-main .alp-td-hero h1 { font-size: clamp(1.85rem, 7.25vw, 2.75rem); line-height: 1.12; }
  #alp-main .alp-td-hero-copy > p { font-size: 1rem; line-height: 1.62; }
  #alp-main .alp-td-brief { padding: .9rem 1rem; }
  #alp-main :is(.alp-journey-nav, .alp-td-jumps) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .38rem;
    padding: .65rem;
  }
  #alp-main .alp-td-jumps > span { grid-column: 1 / -1; }
  #alp-main :where(.alp-journey-nav, .alp-td-jumps) > a {
    padding: .4rem .55rem;
    white-space: normal;
    font-size: .86rem;
    overflow-wrap: anywhere;
  }
  #alp-main .alp-trade-page :is(.alp-td-offers, .alp-experience-grid, .alp-td-checklist) {
    grid-template-columns: minmax(0, 1fr);
  }
  #alp-main .alp-trade-page .alp-td-offers article { min-height: 0; padding: .85rem 1rem; }
  #alp-main .alp-trade-page .alp-td-index { display: none; }
  #alp-main .alp-trade-page #demander-un-devis { min-width: 0; padding: clamp(1rem, 4vw, 1.75rem); }
  #alp-main .alp-trade-page #demander-un-devis :is(.alp-td-quote-intro, .alp-td-quote-form) { min-width: 0; }
  #accueils-alp-com .agency-band-inner > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #accueils-alp-com a.agency-see-all { min-height: 44px; }
  .dg-site-footer .dg-footer-nav a { overflow-wrap: anywhere; }
}

@media (max-width: 479px) {
  .alp-copy { --alp-mobile-header-height: 6rem; }
  #alp-mobile-masthead .alp-mobile-row {
    grid-template-areas: "brand menu" "actions actions";
    grid-template-columns: minmax(0, 1fr) 44px;
    row-gap: .24rem;
  }
  #alp-mobile-masthead .alp-mobile-brand { min-height: 44px; }
  #alp-mobile-masthead .alp-mobile-actions > a { flex: 1; }
}
