/* Boxed layout: full-bleed sections, 1200px content column */

.boxed {
  --content: 1200px;
}

.boxed .eyebrow,
.boxed .eyebrow--light {
  background: none;
  padding: 0;
  color: var(--gold-link);
  font-size: 11px;
}

.boxed .wrap {
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

.boxed #site-header {
  padding-inline: 0;
}

.boxed #site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.boxed #top > .wrap {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 2 * var(--pad)));
}

.boxed #hero-text {
  max-width: none;
  padding-inline: 0;
}

.boxed .hero-pager {
  inset-inline-end: max(var(--pad), calc((100% - var(--content)) / 2));
}

.boxed #edito,
.boxed #promesse,
.boxed #univers,
.boxed #demarche {
  padding-inline: 0;
}

.boxed #vision,
.boxed #insights {
  padding-inline: 0;
}

.boxed #insights {
  overflow: hidden;
}

.boxed .insights-head,
.boxed #insights-rail {
  padding-inline-end: 0;
}

.boxed #insights-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 56, 61, .32) transparent;
}

.boxed #insights-rail::-webkit-scrollbar { height: 4px; }
.boxed #insights-rail::-webkit-scrollbar-track { background: transparent; }
.boxed #insights-rail::-webkit-scrollbar-thumb { background: rgba(108, 56, 61, .28); }

.boxed #privileges .copy {
  padding-inline-end: 0;
}

.boxed .contact-form-wrap {
  padding-inline-end: 0;
}

.boxed .site-footer {
  padding-inline: 0;
}

.boxed #agences {
  --agences-panel: 460px;
  padding: clamp(48px, 5vw, 72px) 0;
  background: var(--cream);
  scroll-margin-top: 88px;
}

.boxed .agences-head .display {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.8vw, 38px);
  max-width: 16ch;
}

.boxed .agences-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(18px, 2.5vw, 32px);
  margin-top: 22px;
  align-items: stretch;
}

.boxed .agences-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: var(--agences-panel);
}

.boxed .agences-filter-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.boxed .agences-filter-label .field-label {
  color: var(--label);
}

.boxed #agences-filter {
  width: 100%;
  border: 1px solid rgba(108, 56, 61, .28);
  border-radius: 4px;
  background: #fff;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--burgundy);
  outline: none;
  cursor: pointer;
}

.boxed #agences-filter:focus {
  border-color: var(--gold);
}

.boxed #agences-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(108, 56, 61, .16);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 56, 61, .32) transparent;
}

.boxed #agences-list::-webkit-scrollbar { width: 4px; }
.boxed #agences-list::-webkit-scrollbar-track { background: transparent; }
.boxed #agences-list::-webkit-scrollbar-thumb { background: rgba(108, 56, 61, .28); }

.boxed #agences-list.is-filtered .agency-city { display: none; }

.boxed .agency-item {
  position: relative;
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(108, 56, 61, .16);
  padding: 10px;
  padding-inline-start: 12px;
  cursor: pointer;
  color: inherit;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.boxed .agency-item:hover,
.boxed .agency-item.is-on {
  background: rgba(108, 56, 61, .04);
}

.boxed .agency-item.is-on {
  box-shadow: inset 2px 0 0 var(--gold);
}

html[dir="rtl"] .boxed .agency-item.is-on {
  box-shadow: inset -2px 0 0 var(--gold);
}

.boxed .agency-city {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-link);
}

.boxed .agency-name {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.014em;
  line-height: 1.3;
}

.boxed .agency-addr {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.boxed .agency-hours {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.boxed #agences-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: var(--agences-panel);
  min-height: 0;
  background: #EFEBE4;
  overflow: hidden;
}

.boxed #agences-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.boxed .agency-pop {
  position: relative;
  box-sizing: border-box;
  width: 320px;
  min-width: 300px;
  max-width: 360px;
  padding: 20px 22px 20px;
  color: var(--burgundy);
  font-family: Montserrat, sans-serif;
}

.boxed .agency-pop-card {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  background: #fff;
  box-shadow: 0 16px 40px rgba(46, 18, 21, .16);
}

.boxed .agency-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 22px;
}

.boxed .agency-pop-close {
  flex-shrink: 0;
  margin: 0;
  margin-inline-end: -6px;
  border: 0;
  background: none;
  padding: 0 2px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

.boxed .agency-pop-city {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-link);
  line-height: 1;
}

.boxed .agency-pop-name {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.016em;
  line-height: 1.3;
}

.boxed .agency-pop-addr {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.boxed .agency-pop-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

.boxed .agency-pop-meta span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 2px;
}

.boxed .agency-pop-dir {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-link);
  border-bottom: 1px solid rgba(184, 137, 74, .35);
  padding-bottom: 3px;
}

.boxed .gm-style .gm-style-iw-c {
  border-radius: 4px;
  padding: 0 !important;
  max-width: none !important;
  box-shadow: 0 16px 40px rgba(46, 18, 21, .16);
}

.boxed .gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
}

.boxed .gm-style-iw-ch,
.boxed .gm-style-iw-chr {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
}

.boxed .gm-style .gm-ui-hover-effect {
  display: none !important;
}

@media (max-width: 1080px) {
  .boxed #agences {
    --agences-panel: 400px;
  }

  .boxed .agences-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .boxed .agences-side {
    height: auto;
    max-height: none;
  }

  .boxed #agences-list {
    max-height: 320px;
  }

  .boxed #agences-map {
    height: 400px;
  }
}

@media (max-width: 1080px) {
  .boxed #vision,
  .boxed #insights {
    padding-inline: 0;
  }

  .boxed #hero-text {
    max-width: none;
  }

  .boxed #privileges .copy,
  .boxed .contact-aside,
  .boxed .contact-form-wrap {
    padding-inline: 0;
  }
  
  .boxed .contact-aside{
	padding-left: 20px;
    padding-right: 20px;
  }
}
