@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;700;800&display=swap');

/* ========================================================================== 
   TOKENS
   ========================================================================== */
:root {
  --bp-yellow: #FFCD00;
  --bp-green: #69CD5A;
  --bp-taupe: #4B3D3C;
  --bp-page: #FFFDF8;
  --bp-soft: #F6F3F1;
  --bp-line: #EBE6E4;
  --bp-yellow-wash: #FFFAE3;
  --bp-shadow: 0 12px 32px rgba(75, 61, 60, .10);
}

/* ========================================================================== 
   SHARED HEADER AND LAYOUT
   ========================================================================== */
.bp-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.bp-global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--bp-line);
}

.bp-global-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.bp-global-logo img {
  display: block;
  width: auto;
  height: 40px;
}

/* ========================================================================== 
   FORMULAIRE DE DEMANDE
   ========================================================================== */
#bp-request-page {
  color: var(--bp-taupe);
  background: var(--bp-page);
  font-family: Barlow, Arial, sans-serif;
  line-height: 1.55;
}

#bp-request-page *,
#bp-request-page *::before,
#bp-request-page *::after {
  box-sizing: border-box;
}

#bp-request-page h1,
#bp-request-page h2,
#bp-request-page h3 {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  letter-spacing: -.01em;
  line-height: 1.02;
}

.bp-hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--bp-yellow);
  border-radius: 0 0 32px 32px;
}

.bp-hero-inner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 28px 0;
}

.bp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.bp-eyebrow,
.bp-chip {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font: 700 12px 'Barlow Condensed', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bp-eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
}

.bp-chip {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bp-soft);
}

.bp-chip-yellow {
  background: var(--bp-yellow);
}

.bp-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
}

.bp-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.bp-photon {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.bp-photon-d {
  inset: 0;
  width: 100%;
  height: 100%;
}

.bp-photon-m {
  display: none;
}

.bp-photon-g {
  animation: bp-launch 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes bp-launch {
  from { opacity: 0; transform: translate(-40px, 40px); }
  to { opacity: 1; transform: none; }
}

.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 32px;
  padding: 32px 0 64px;
}

.bp-form-panel {
  min-width: 0;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 24px;
  box-shadow: var(--bp-shadow);
}

.bp-form-panel h2 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
}

.bp-intro {
  max-width: 580px;
  color: #6B5E5D;
  font-size: 18px;
}

.bp-form-help {
  margin: -10px 0 26px;
  color: #6B5E5D;
  font-size: 15px;
}

.bp-form-help a,
.bp-help-link {
  color: var(--bp-taupe);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--bp-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bp-right-rail {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.bp-help-card,
.bp-booking-details {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(75, 61, 60, .07);
}

.bp-help-card {
  padding: 24px;
}

.bp-help-card h2 {
  margin: 14px 0 10px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
}

.bp-help-card p {
  margin: 0;
  color: #6B5E5D;
  font-size: 16px;
}

.bp-help-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
}

/* ========================================================================== 
   ACCOMPAGNEMENT PERSONNALISÉ
   ========================================================================== */
.bp-booking-details {
  overflow: hidden;
}

.bp-booking-details[open] {
  border-color: #D9C000;
}

.bp-booking-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
}

.bp-booking-details summary::-webkit-details-marker {
  display: none;
}

.bp-summary-copy {
  display: grid;
  gap: 8px;
}

.bp-booking-details summary strong {
  font: 700 23px/1.05 'Barlow Condensed';
}

.bp-booking-details summary small {
  color: #6B5E5D;
  font-size: 14px;
  line-height: 1.45;
}

.bp-summary-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bp-yellow);
  font: 500 24px/1 Barlow;
  transition: transform .2s;
}

.bp-booking-details[open] .bp-summary-icon {
  transform: rotate(45deg);
}

.bp-booking-content {
  padding: 0 22px 24px;
  border-top: 1px solid var(--bp-line);
}

.bp-booking-content > p {
  margin: 20px 0;
  color: #6B5E5D;
  font-size: 15px;
  line-height: 1.5;
}

.bp-booking-content h3 {
  margin: 0 0 8px;
  font: 700 24px/1 'Barlow Condensed';
}

.bp-eligibility {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.bp-eligibility li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bp-line);
}

.bp-eligibility li > span:not(.bp-ticket-tag) {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bp-yellow);
  font: 800 14px 'Barlow Condensed';
}

.bp-eligibility strong,
.bp-eligibility small {
  display: block;
}

.bp-eligibility strong {
  font-size: 16px;
}

.bp-eligibility small {
  margin-top: 2px;
  color: #6B5E5D;
  font-size: 13px;
  line-height: 1.4;
}

.bp-ticket-tag {
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 9px 12px !important;
  color: var(--bp-taupe) !important;
  background: var(--bp-soft) !important;
  border-left: 4px solid #777 !important;
  border-radius: 0 12px 12px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.bp-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: var(--bp-taupe);
  font-size: 14px;
  cursor: pointer;
}

.bp-confirm input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--bp-yellow);
}

.bp-booking-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  color: var(--bp-taupe);
  background: var(--bp-yellow);
  border-radius: 999px;
  font: 700 16px Barlow, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

.bp-booking-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(75, 61, 60, .15);
}

.bp-booking-button.is-disabled {
  pointer-events: none;
  opacity: .45;
  filter: grayscale(.25);
}

/* ========================================================================== 
   FORMULAIRE ZENDESK NATIF V3
   ========================================================================== */
#new-request-form .form-field {
  margin: 0 0 24px;
}

#new-request-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--bp-taupe);
  font-size: 16px;
  font-weight: 600;
}

#new-request-form .optional,
#new-request-form label .optional {
  display: inline-block !important;
  margin-left: 6px !important;
  color: #6B5E5D !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#new-request-form input:not([type='checkbox']):not([type='radio']):not([type='file']),
#new-request-form select,
#new-request-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--bp-taupe);
  background: #fff;
  border: 1px solid #CFC7C4;
  border-radius: 12px;
  font: 16px Barlow, Arial, sans-serif;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

#new-request-form textarea {
  min-height: 160px;
  resize: vertical;
}

#new-request-form input:focus,
#new-request-form select:focus,
#new-request-form textarea:focus {
  outline: 3px solid rgba(255, 205, 0, .35);
  outline-offset: 2px;
  border-color: var(--bp-taupe);
}

/* Selects natifs et listes Zendesk Copenhagen v3. */
#new-request-form .form-field .nesty-input {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 48px !important;
  padding: 12px 42px 12px 14px !important;
  color: var(--bp-taupe) !important;
  background-color: #fff !important;
  border: 1px solid #CFC7C4 !important;
  border-radius: 12px !important;
  font: 16px Barlow, Arial, sans-serif !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

/* Les select techniques natifs Zendesk restent contrôlés par le thème. */
#new-request-form .form-field select {
  max-width: 100%;
  border-radius: 12px;
}

#new-request-form .form-field select:focus,
#new-request-form .form-field .nesty-input:focus,
#new-request-form .form-field .nesty-input[aria-expanded='true'] {
  outline: 3px solid rgba(255, 205, 0, .35) !important;
  outline-offset: 2px !important;
  border-color: var(--bp-taupe) !important;
}

#new-request-form .nesty-panel {
  z-index: 100 !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--bp-shadow) !important;
}

#new-request-form .upload-dropzone {
  min-height: 110px;
  padding: 24px;
  background: var(--bp-yellow-wash);
  border: 1px dashed #B9A900;
  border-radius: 16px;
}

#new-request-form .form-field p,
#new-request-form .help-text {
  color: #6B5E5D;
  font-size: 14px;
}

#new-request-form .notification-error,
#new-request-form .zd-form-error {
  margin: 8px 0 0;
  color: #5A2B2B;
  font-size: 14px;
}

#new-request-form button[type='submit'],
#new-request-form input[type='submit'] {
  min-height: 50px;
  padding: 12px 24px;
  color: var(--bp-taupe);
  background: var(--bp-yellow);
  border: 0;
  border-radius: 999px;
  font: 700 18px Barlow, Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

#new-request-form button[type='submit']:hover,
#new-request-form input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(75, 61, 60, .15);
}

#new-request-form button[type='submit']:focus-visible,
#new-request-form input[type='submit']:focus-visible {
  outline: 3px solid var(--bp-green);
  outline-offset: 3px;
}

/* ========================================================================== 
   VARIANTES COLLABORATEUR / CLIENT
   ========================================================================== */
[data-audience][hidden],
.bp-audience-content[hidden] {
  display: none !important;
}

/* ========================================================================== 
   LIEN D'ACCESSIBILITÉ ZENDESK
   ========================================================================== */
.skip-navigation,
.skip-nav,
.skip-link {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.skip-navigation:focus,
.skip-nav:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 1000 !important;
  top: 16px !important;
  left: 16px !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 14px !important;
  overflow: visible !important;
  clip: auto !important;
  color: var(--bp-taupe) !important;
  background: var(--bp-yellow) !important;
  border-radius: 8px !important;
  white-space: normal !important;
}

/* ========================================================================== 
   PAGE DE CONFIRMATION request_page.hbs
   ========================================================================== */
#bp-request-confirmation {
  --bp-confirm-taupe: #4B3D3C;
  --bp-confirm-page: #FFFDF8;
  --bp-confirm-green-soft: #E6F6E3;
  --bp-confirm-green-line: #A5E397;
  min-height: calc(100vh - 72px);
  color: var(--bp-confirm-taupe);
  background: var(--bp-confirm-page);
  font-family: Barlow, Arial, sans-serif;
  line-height: 1.55;
}

#bp-request-confirmation *,
#bp-request-confirmation *::before,
#bp-request-confirmation *::after {
  box-sizing: border-box;
}

#bp-request-confirmation .bp-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

#bp-request-confirmation .bp-confirmation-page {
  min-height: calc(100vh - 72px);
  padding: 42px 0 80px;
}

#bp-request-confirmation .bp-confirmation-content {
  max-width: 620px;
}

#bp-request-confirmation .bp-success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #338D2C;
  background: var(--bp-confirm-green-soft);
  border: 2px solid var(--bp-confirm-green-line);
  border-radius: 50%;
}

#bp-request-confirmation .bp-success-icon svg {
  width: 32px;
  height: 32px;
}

#bp-request-confirmation h1 {
  margin: 0 0 14px;
  color: var(--bp-confirm-taupe);
  font: 800 clamp(34px, 5vw, 40px)/.98 'Barlow Condensed', Arial Narrow, sans-serif;
  letter-spacing: -.02em;
}

#bp-request-confirmation p {
  max-width: 620px;
  margin: 0;
  color: #6B5E5D;
  font-size: 19px;
  line-height: 1.4;
}

/* ========================================================================== 
   NOTIFICATION DE SUCCÈS ZENDESK
   ========================================================================== */
.notification-notice,
.notification-success {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  color: var(--bp-taupe) !important;
  background: #fff !important;
  border: 1px solid #CFC7C4 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(75, 61, 60, .08) !important;
  font-family: Barlow, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.notification-notice p,
.notification-success p,
.notification-notice span,
.notification-success span {
  margin: 0 !important;
  color: var(--bp-taupe) !important;
  font-family: Barlow, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.notification-notice a,
.notification-success a,
.notification-notice .close,
.notification-success .close,
.notification-notice button,
.notification-success button {
  color: var(--bp-taupe) !important;
  font-family: Barlow, Arial, sans-serif !important;
  font-weight: 600 !important;
}

/* ========================================================================== 
   PAGE D'ACCUEIL home_page.hbs
   ========================================================================== */
#bp-home-routing {
  --bp-home-yellow: #FFCD00;
  --bp-home-taupe: #4B3D3C;
  --bp-home-page: #FFFDF8;
  --bp-home-line: #EBE6E4;
  --bp-home-shadow: 0 12px 32px rgba(75, 61, 60, .10);
  min-height: calc(100vh - 72px);
  color: var(--bp-home-taupe);
  background: var(--bp-home-page);
  font-family: Barlow, Arial, sans-serif;
  line-height: 1.55;
}

#bp-home-routing *,
#bp-home-routing *::before,
#bp-home-routing *::after {
  box-sizing: border-box;
}

#bp-home-routing .bp-wrap {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

#bp-home-routing .bp-routing {
  padding: 58px 0 82px;
}

#bp-home-routing h1,
#bp-home-routing h2 {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  letter-spacing: -.01em;
}

#bp-home-routing h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
}

#bp-home-routing .bp-intro {
  margin: 0 0 28px;
  color: #6B5E5D;
  font-size: 18px;
}

#bp-home-routing .bp-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#bp-home-routing .bp-choice {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--bp-home-line);
  border-radius: 24px;
  box-shadow: var(--bp-home-shadow);
}

#bp-home-routing h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

#bp-home-routing .bp-choice p {
  margin: 0;
  color: #6B5E5D;
  font-size: 17px;
}

#bp-home-routing .bp-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 18px;
  color: var(--bp-home-taupe);
  background: var(--bp-home-yellow);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

#bp-home-routing .bp-button:hover,
#bp-home-routing .bp-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(75, 61, 60, .15);
}

#bp-home-routing .bp-button:focus-visible {
  outline: 3px solid var(--bp-green);
  outline-offset: 3px;
}

/* ========================================================================== 
   RESPONSIVE ET MOUVEMENT RÉDUIT
   ========================================================================== */
@media (max-width: 860px) {
  .bp-wrap {
    width: min(100% - 32px, 680px);
  }

  .bp-global-header-inner {
    min-height: 60px;
  }

  .bp-global-logo img {
    height: 28px;
  }

  .bp-hero-inner {
    display: block;
    min-height: 0;
    padding: 34px 0 0;
  }

  .bp-photon-d {
    display: none;
  }

  .bp-photon-m {
    position: relative;
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 620 / 420;
    margin: 12px 0 0 auto;
  }

  .bp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 56px;
  }

  .bp-right-rail {
    order: 2;
  }

  .bp-form-panel {
    padding: 28px 24px;
  }

  #bp-home-routing .bp-wrap,
  #bp-request-confirmation .bp-wrap {
    width: calc(100% - 32px);
  }

  #bp-home-routing .bp-routing {
    padding: 36px 0 54px;
  }

  #bp-home-routing .bp-choices {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #bp-home-routing .bp-choice {
    min-height: 0;
    padding: 24px;
  }

  #bp-request-confirmation {
    min-height: calc(100vh - 60px);
  }

  #bp-request-confirmation .bp-confirmation-page {
    min-height: calc(100vh - 60px);
    padding: 30px 0 60px;
  }

  #bp-request-confirmation .bp-success-icon {
    width: 56px;
    height: 56px;
  }

  #bp-request-confirmation .bp-success-icon svg {
    width: 28px;
    height: 28px;
  }

  #bp-request-confirmation h1 {
    font-size: 34px;
  }

  #bp-request-confirmation p {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .bp-hero h1 {
    font-size: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-photon-g,
  .bp-summary-icon,
  .bp-booking-button,
  #new-request-form button[type='submit'],
  #new-request-form input[type='submit'] {
    animation: none;
    transition: none;
  }
}


/* Compatibilité avec d'anciens templates Bpifrance encore présents dans le thème. */
.bp-support-warning {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--bp-soft);
  border-left: 4px solid #777;
  border-radius: 12px;
  font-size: 14px;
}

.bp-support-warning strong {
  font-size: 15px;
}


/* V9 : neutralisation des largeurs héritées du thème Zendesk. */
#new-request-form .form-field {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

#new-request-form .form-field[hidden] {
  display: none !important;
}


/* V10 : erreurs Zendesk visibles et cohérentes avec le style natif. */
body .notification-error,
body .notification-error * {
  font-family: 'Barlow', Arial, sans-serif !important;
}

body .notification-error:not(.notification-inline) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 12px 0 20px !important;
  padding: 12px 16px !important;
  color: #B42318 !important;
  background: #FFF1F0 !important;
  border: 2px solid #F04438 !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

body .notification-error:not(.notification-inline) p,
body .notification-error:not(.notification-inline) span {
  margin: 0 !important;
  color: #B42318 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

#new-request-form .notification-inline.notification-error,
#new-request-form .zd-form-error {
  display: block !important;
  margin: 7px 0 0 !important;
  padding: 0 !important;
  color: #B42318 !important;
  background: transparent !important;
  border: 0 !important;
  font-family: 'Barlow', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* Les conteneurs d'erreur vides, notamment celui des pièces jointes, restent masqués. */
#new-request-form .zd-form-error:empty,
#new-request-form .notification-inline.notification-error:empty {
  display: none !important;
}

/* L'icône native Zendesk reste utilisée lorsqu'un vrai message est présent. */
#new-request-form .zd-form-error::before,
#new-request-form .notification-inline.notification-error::before {
  content: none !important;
}


/* V15 : masquage forcé du champ profil après validation. */
#new-request-form .bp-profile-field-hidden,
#new-request-form .bp-profile-field-hidden[hidden] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}


/* V16 : le ticket_form_id est déjà défini par l'URL, le sélecteur Zendesk reste masqué. */
#new-request-form .request_ticket_form_id,
.request_ticket_form_id {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}


/* ========================================================================== 
   PAGE D'ERREUR error_page.hbs
   ========================================================================== */
#bp-error-page {
  --bp-error-taupe: #4B3D3C;
  --bp-error-page: #FFFDF8;
  --bp-error-red: #C92A2A;
  --bp-error-red-soft: #FFF0EF;
  --bp-error-red-line: #F0A6A2;
  min-height: calc(100vh - 72px);
  color: var(--bp-error-taupe);
  background: var(--bp-error-page);
  font-family: Barlow, Arial, sans-serif;
  line-height: 1.55;
}

#bp-error-page *,
#bp-error-page *::before,
#bp-error-page *::after {
  box-sizing: border-box;
}

#bp-error-page .bp-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

#bp-error-page .bp-error-page-main {
  min-height: calc(100vh - 72px);
  padding: 42px 0 80px;
}

#bp-error-page .bp-error-content {
  max-width: 760px;
}

#bp-error-page .bp-error-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--bp-error-red);
  background: var(--bp-error-red-soft);
  border: 2px solid var(--bp-error-red-line);
  border-radius: 50%;
}

#bp-error-page .bp-error-icon svg {
  width: 32px;
  height: 32px;
}

#bp-error-page h1 {
  margin: 0 0 20px;
  color: var(--bp-error-taupe);
  font: 800 clamp(40px, 5vw, 58px)/.98 'Barlow Condensed', Arial Narrow, sans-serif;
  letter-spacing: -.02em;
}

#bp-error-page h2 {
  margin: 0 0 14px;
  color: var(--bp-error-taupe);
  font: 700 clamp(28px, 4vw, 42px)/1.02 'Barlow Condensed', Arial Narrow, sans-serif;
}

#bp-error-page p {
  max-width: 700px;
  margin: 0;
  color: #6B5E5D;
  font-size: 20px;
  line-height: 1.4;
}

#bp-error-page .bp-error-home-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 11px 20px;
  color: var(--bp-error-taupe);
  background: var(--bp-yellow);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

#bp-error-page .bp-error-home-link:hover,
#bp-error-page .bp-error-home-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(75, 61, 60, .15);
}

#bp-error-page .bp-error-home-link:focus-visible {
  outline: 3px solid var(--bp-green);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  #bp-error-page {
    min-height: calc(100vh - 60px);
  }

  #bp-error-page .bp-wrap {
    width: calc(100% - 32px);
  }

  #bp-error-page .bp-error-page-main {
    min-height: calc(100vh - 60px);
    padding: 30px 0 60px;
  }

  #bp-error-page .bp-error-icon {
    width: 56px;
    height: 56px;
  }

  #bp-error-page .bp-error-icon svg {
    width: 28px;
    height: 28px;
  }

  #bp-error-page h1 {
    font-size: 46px;
  }

  #bp-error-page h2 {
    font-size: 34px;
  }

  #bp-error-page p {
    font-size: 18px;
  }
}
