@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap");

/* Couche prioritaire pour remplacer les anciennes surcharges du hero. */
@layer iia-header {
  html body.home section.lh h1.lh-title {
    margin: 0 !important;
    font-family: "Satoshi", system-ui, sans-serif !important;
    font-size: clamp(36px, 4.1vw, 60px) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -.045em !important;
    color: #f5f3f0 !important;
    -webkit-text-fill-color: #f5f3f0 !important;
    text-wrap: balance;
  }
  html body.home section.lh .lh-title em {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-style: normal !important;
    color: #ed5f54 !important;
    -webkit-text-fill-color: #ed5f54 !important;
  }
  html body.home section.lh p.lh-lead {
    margin: 24px 0 28px !important;
    max-width: 47ch !important;
    font-family: "Satoshi", system-ui, sans-serif !important;
    font-size: clamp(16px, 1.4vw, 18px) !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #bdb9b5 !important;
    -webkit-text-fill-color: #bdb9b5 !important;
  }
  html body.home section.lh .lh-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  html body.home section.lh .lh-actions a.lh-btn {
    min-height: 46px !important;
    padding: 12px 20px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    font-family: "Satoshi", system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    gap: 12px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .18s ease, border-color .18s ease !important;
  }
  html body.home section.lh .lh-actions a.lh-btn--main,
  html body.home section.lh .lh-actions a.lh-btn--main * {
    color: #151413 !important;
    -webkit-text-fill-color: #151413 !important;
  }
  html body.home section.lh .lh-actions a.lh-btn--main { background: #ed5f54 !important; }
  html body.home section.lh .lh-actions a.lh-btn--main:hover { background: #c9443a !important; }
  html body.home section.lh .lh-actions a.lh-btn--alt {
    background: transparent !important;
    border-color: #ffffff38 !important;
    color: #edeae7 !important;
    -webkit-text-fill-color: #edeae7 !important;
  }
  html body.home section.lh .lh-actions a.lh-btn--alt:hover {
    background: #ffffff0a !important;
    border-color: #ffffff70 !important;
  }
  html body.home section.lh .lh-actions a.lh-btn:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 4px !important;
  }
  @media (max-width: 560px) {
    html body.home section.lh h1.lh-title {
      font-size: clamp(30px, 7.6vw, 42px) !important;
      letter-spacing: -.035em !important;
    }
    html body.home section.lh .lh-actions a.lh-btn {
      flex: 1 1 auto !important;
      justify-content: center !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html body.home section.lh .lh-actions a.lh-btn { transition: none !important; }
  }
}

/* Hero aligne sur le header : memes marges a gauche et a droite, a toutes les largeurs. */
@layer iia-header {
  html:not(.high-contrast) body.home section.lh {
    padding-left: max(clamp(16px, 2vw, 32px), calc((100% - 1280px) / 2)) !important;
    padding-right: max(clamp(16px, 2vw, 32px), calc((100% - 1280px) / 2)) !important;
  }
  html:not(.high-contrast) body.home section.lh :is(.lh-inner, .lh-proof) {
    max-width: none !important;
  }
  /* Le canape s'arrete au niveau du bouton de droite (l'image a une marge noire de 1,3 %). */
  @media (min-width: 1025px) {
    html:not(.high-contrast) body.home section.lh .lh-visual {
      margin: 0 !important;
    }
    html:not(.high-contrast) body.home section.lh .lh-visual img {
      width: 115% !important;
      margin-left: -13.5% !important;
    }
  }
}

/* Titre du hero : le plus grand possible sur 2 lignes (la 2e ligne mesure environ 10,2 fois la taille). */
@layer iia-header {
  @media (max-width: 1024px) {
    html:not(.high-contrast) body.home section.lh .lh-title {
      --iia-heading-size: min(calc((100vw - 32px) / 10.3), 5rem);
      font-size: min(calc((100vw - 32px) / 10.3), 5rem) !important;
    }
  }
  @media (min-width: 1025px) {
    html:not(.high-contrast) body.home section.lh .lh-title {
      --iia-heading-size: calc(min(5.6vw, 4.75rem) - 1rem);
      font-size: calc(min(5.6vw, 4.75rem) - 1rem) !important;
    }
    html:lang(en):not(.high-contrast) body.home section.lh .lh-title {
      --iia-heading-size: calc(min(4.9vw, 4.4rem) - 1rem);
      font-size: calc(min(4.9vw, 4.4rem) - 1rem) !important;
    }
    html:not(.high-contrast) body.home section.lh .lh-inner {
      grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr) !important;
    }
  }
  @media (min-width: 561px) {
    html:not(.high-contrast) body.home section.lh .lh-copy {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      column-gap: 24px !important;
    }
    html:not(.high-contrast) body.home section.lh .lh-copy > :is(.lh-title, .lh-lead) {
      flex: 0 0 100% !important;
    }
    html:not(.high-contrast) body.home section.lh .lh-copy > .lh-actions {
      max-width: 100% !important;
      flex: 0 0 auto !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }
  }
}

/* Bouton Candidater du hero : texte et fleche en blanc. */
@layer iia-header {
  html:not(.high-contrast) body.home.home.home section.lh a.lh-btn--main,
  html:not(.high-contrast) body.home.home.home section.lh a.lh-btn--main:is(:link, :visited, :hover, :focus, :active),
  html:not(.high-contrast) body.home.home.home section.lh a.lh-btn--main * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
}

/* Header flottant : le fond noir du hero remonte derriere la barre. */
@layer iia-header {
  @media (min-width: 1141px) {
    html:not(.high-contrast) body.home.home.home section.lh {
      margin-top: 0 !important;
      padding-top: calc(70px + clamp(32px, 4.5vw, 64px) + 2rem) !important;
    }
  }
}

/* Rangee du hero : quatre petites boites identiques. */
@layer iia-header {
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    gap: 10px !important;
    margin-top: calc(clamp(28px, 3.5vw, 44px) + 2rem) !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof li {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof b {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof span {
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  @media (max-width: 900px) {
    html:not(.high-contrast) body.home.home.home section.lh .lh-proof {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    html:not(.high-contrast) body.home.home.home section.lh .lh-proof li {
      padding: 12px 14px !important;
    }
    html:not(.high-contrast) body.home.home.home section.lh .lh-proof b {
      font-size: 15px !important;
    }
  }
}

/* Accueil : un seul bouton Candidater, celui du hero. */
@layer iia-header {
  html:not(.high-contrast) body.home #arbree-header#arbree-header#arbree-header:not(#_):not(#_) a.arbree-cta-btn {
    display: none !important;
  }
}

/* Boite Entreprises de l'accueil, cible de l'ancre #entreprises. */
@layer iia-header {
  html body.home section#entreprises.home-biz {
    scroll-margin-top: 90px;
  }
  html body.home section#entreprises .home-biz__box {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: clamp(24px, 4vw, 56px) !important;
    align-items: center !important;
    padding: clamp(28px, 4vw, 56px) !important;
    border-radius: 24px !important;
    background: #151413 !important;
  }
  html body.home section#entreprises .home-biz__kick {
    display: block !important;
    margin: 0 0 12px !important;
    color: #ed5f54 !important;
    -webkit-text-fill-color: #ed5f54 !important;
    font: 600 14px/1.3 "Satoshi", system-ui, sans-serif !important;
  }
  html body.home section#entreprises h2.home-biz__title {
    margin: 0 !important;
    color: #f5f3f0 !important;
    -webkit-text-fill-color: #f5f3f0 !important;
    font: 700 clamp(28px, 3.2vw, 44px)/1.1 "Satoshi", system-ui, sans-serif !important;
    letter-spacing: -.035em !important;
    text-align: left !important;
  }
  html body.home section#entreprises h2.home-biz__title em {
    font-style: normal !important;
    color: #ed5f54 !important;
    -webkit-text-fill-color: #ed5f54 !important;
  }
  html body.home section#entreprises p.home-biz__text {
    margin: 16px 0 24px !important;
    max-width: 52ch !important;
    color: #bdb9b5 !important;
    -webkit-text-fill-color: #bdb9b5 !important;
    font: 400 16px/1.6 "Satoshi", system-ui, sans-serif !important;
    text-align: left !important;
  }
  html body.home section#entreprises a.home-biz__btn,
  html body.home section#entreprises a.home-biz__btn:is(:link, :visited, :hover, :focus, :active),
  html body.home section#entreprises a.home-biz__btn * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
  }
  html body.home section#entreprises a.home-biz__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 46px !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #ed5f54 !important;
    font: 600 14px/1.4 "Satoshi", system-ui, sans-serif !important;
    transition: background-color .18s ease !important;
  }
  html body.home section#entreprises a.home-biz__btn:hover {
    background: #c9443a !important;
  }
  html body.home section#entreprises a.home-biz__btn:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 4px !important;
  }
  html body.home section#entreprises .home-biz__facts {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  html body.home section#entreprises .home-biz__facts li {
    margin: 0 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    background: #2e2b29 !important;
  }
  html body.home section#entreprises .home-biz__facts b {
    display: block !important;
    margin-bottom: 4px !important;
    color: #f5f3f0 !important;
    -webkit-text-fill-color: #f5f3f0 !important;
    font: 700 18px/1.2 "Satoshi", system-ui, sans-serif !important;
  }
  html body.home section#entreprises .home-biz__facts span {
    display: block !important;
    color: #bdb9b5 !important;
    -webkit-text-fill-color: #bdb9b5 !important;
    font: 400 14px/1.4 "Satoshi", system-ui, sans-serif !important;
  }
  @media (max-width: 860px) {
    html body.home section#entreprises .home-biz__box {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }
  @media (max-width: 560px) {
    html body.home section#entreprises a.home-biz__btn {
      display: flex !important;
      justify-content: center !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html body.home section#entreprises a.home-biz__btn { transition: none !important; }
  }
}

/* Essai : hero sur fond blanc. Pour revenir au noir, retirer ce bloc et remettre l'image fond-noir. */
@layer iia-header {
  html:not(.high-contrast) body.home.home.home section.lh {
    background: #fff !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh::before {
    content: none !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh h1.lh-title {
    color: #151413 !important;
    -webkit-text-fill-color: #151413 !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh p.lh-lead {
    color: #4a4541 !important;
    -webkit-text-fill-color: #4a4541 !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-visual img {
    mix-blend-mode: normal !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-actions a.lh-btn:focus-visible {
    outline-color: #151413 !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof li {
    background: #f3f1ee !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof b {
    color: #151413 !important;
    -webkit-text-fill-color: #151413 !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-proof span {
    color: #5c5650 !important;
    -webkit-text-fill-color: #5c5650 !important;
  }
}

/* Bouton Parler a un conseiller : fond gris fonce et texte corail. */
@layer iia-header {
  html:not(.high-contrast) body.home.home.home section.lh .lh-actions a.lh-btn--alt,
  html:not(.high-contrast) body.home.home.home section.lh .lh-actions a.lh-btn--alt:is(:link, :visited, :focus, :active) {
    background: #151413 !important;
    border-color: transparent !important;
    color: #ed5f54 !important;
    -webkit-text-fill-color: #ed5f54 !important;
  }
  html:not(.high-contrast) body.home.home.home section.lh .lh-actions a.lh-btn--alt:hover {
    background: #2e2b29 !important;
    border-color: transparent !important;
    color: #ed5f54 !important;
    -webkit-text-fill-color: #ed5f54 !important;
  }
}
