/* Accueil : texte lisible sur une photo pâle, vidéo bord à bord à droite. */
.sc-approved .sc-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  width: 100%;
  height: clamp(590px, 48.65vw, 810px);
  min-height: 590px;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  background: #f5f8fc !important;
}
.sc-approved .sc-hero-visual::before,
.sc-approved .sc-hero-visual::after { content: none !important; display: none !important; }
.sc-approved .sc-final-hero-video {
  --sc-video-overlap: clamp(40px, 5.4vw, 76px);
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: calc(100% + var(--sc-video-overlap));
  transform: translateX(calc(-1 * var(--sc-video-overlap)));
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: #dce8f5;
}
.sc-approved .sc-final-hero-video::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(70px, 10vw, 150px);
  background: linear-gradient(90deg, rgba(247,250,254,.98) 0%, rgba(247,250,254,.78) 24%, rgba(247,250,254,0) 100%);
  pointer-events: none;
}
.sc-approved .sc-hero-video-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: #dce8f5;
  box-shadow: none;
}
.sc-approved .sc-hero-video-frame::-webkit-media-controls-start-playback-button,
.sc-approved .sc-hero-video-frame::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.sc-approved .sc-visual-inner {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 56px clamp(32px, 5.2vw, 78px) 56px clamp(38px, 7vw, 108px) !important;
  isolation: isolate;
}
.sc-approved .sc-visual-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(247,250,254,.96) 0%, rgba(247,250,254,.92) 58%, rgba(247,250,254,.82) 100%),
    url("./assets/realisations/saint-hubert/duplex-jumele-perspective-3d.jpg");
  background-size: cover;
  background-position: center 46%;
}
.sc-approved .sc-visual-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 20px 0;
}
.sc-approved .sc-visual-copy > .sc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #55718f !important;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sc-approved #home-title {
  margin: 0 0 21px;
  color: #183652 !important;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.02;
  font-weight: 660;
  letter-spacing: -2.5px;
  text-wrap: balance;
  text-shadow: none;
}
.sc-approved #home-title .sc-title-line { display: block; white-space: normal; }
.sc-approved #home-title .sc-title-blue { margin-top: 6px; color: #0b62c4 !important; }
.sc-approved .sc-hero-description {
  max-width: 545px;
  margin: 0 0 25px;
  color: #526c87 !important;
  font-size: 15px;
  line-height: 1.72;
}
.sc-approved .sc-hero-actions { display: flex; flex-wrap: wrap; width: 100%; max-width: 620px; gap: 10px; }
.sc-approved .sc-main-action {
  min-height: 55px;
  max-height: none;
  margin: 0;
  padding: 12px 15px;
  gap: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.3;
  box-shadow: 0 8px 22px rgba(11, 73, 143, .12);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.sc-approved .sc-main-action:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(11, 73, 143, .17); }
.sc-approved .sc-client-action {
  width: auto;
  min-width: 246px;
  justify-content: flex-start;
  color: #fff !important;
  border: 1px solid #0b62c4 !important;
  background: #0b62c4 !important;
}
.sc-approved .sc-client-action:hover { background: #084f9f !important; }
.sc-approved .sc-contractor-action {
  width: auto;
  min-height: 55px;
  color: #164b81 !important;
  border: 1px solid #bfd4eb !important;
  background: rgba(255,255,255,.82) !important;
}
.sc-approved .sc-contractor-action:hover { background: #fff !important; }
.sc-approved .sc-cta-icon { width: 21px; height: 21px; stroke-width: 1.7; }
.sc-approved .sc-cta-arrow { width: 17px; height: 17px; margin-left: 2px; }
.sc-approved .sc-new-free-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0 2px;
  color: #5a708a;
  font-size: 10px;
}
.sc-approved .sc-free-item { display: inline-flex; align-items: center; gap: 7px; }
.sc-approved .sc-tick { color: #0b62c4; background: #e5f0fc; }
.sc-approved .sc-return-client { margin: 13px 0 0 2px; color: #607994; font-size: 10px; }
.sc-approved .sc-return-client a { color: #0757aa; font-weight: 700; }
.sc-approved-header .sc-nav-realisations { display: inline-flex !important; text-decoration: none; }
.sc-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #bfd7f8;
  border-radius: 10px;
  background: #fff;
  color: #0756aa;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.sc-language-toggle:hover { background: #f2f7ff; }
.sc-language-toggle:focus-visible { outline: 3px solid #77a9e4; outline-offset: 2px; }

@media (min-width: 761px) and (max-width: 1100px) {
  .sc-approved .sc-hero-visual { grid-template-columns: minmax(0, .94fr) minmax(300px, 1.06fr); }
  .sc-approved .sc-visual-inner { padding-inline: 32px 27px !important; }
  .sc-approved #home-title { font-size: clamp(38px, 4.4vw, 51px); letter-spacing: -1.9px; }
  .sc-approved .sc-main-action { font-size: 11px; min-width: 0; }
}
@media (max-width: 760px) {
  .sc-approved .sc-hero-visual {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 0 !important;
    background: #f5f8fc !important;
  }
  .sc-approved .sc-visual-inner {
    order: 1;
    align-items: flex-start;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 46px 24px 34px !important;
  }
  .sc-approved .sc-visual-inner::before {
    background-image:
      linear-gradient(105deg, rgba(247,250,254,.96) 0%, rgba(247,250,254,.92) 58%, rgba(247,250,254,.86) 100%),
      url("./assets/realisations/saint-hubert/duplex-jumele-perspective-3d.jpg");
  }
  .sc-approved .sc-visual-copy { width: 100%; max-width: 640px; padding: 0; }
  .sc-approved .sc-visual-copy > .sc-eyebrow { margin-bottom: 17px; font-size: 9px; letter-spacing: 1.5px; }
  .sc-approved #home-title { margin-bottom: 17px; font-size: clamp(37px, 9vw, 53px); letter-spacing: -1.9px; }
  .sc-approved .sc-hero-description { margin-bottom: 20px; font-size: 14px; line-height: 1.62; }
  .sc-approved .sc-hero-actions { flex-direction: column; width: 100%; gap: 9px; }
  .sc-approved .sc-main-action { width: 100%; min-width: 0; min-height: 54px; justify-content: flex-start; padding: 12px 15px; font-size: 12px; }
  .sc-approved .sc-cta-arrow { margin-left: auto; }
  .sc-approved .sc-new-free-note { flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 14px; }
  .sc-approved .sc-return-client { margin-top: 13px; }
  .sc-approved .sc-final-hero-video {
    order: 2;
    flex: none;
    width: 100%;
    transform: none;
    height: clamp(500px, 150vw, 690px);
    min-height: 0;
    padding: 0;
    border: 0;
  }
  .sc-approved .sc-final-hero-video::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(180deg, rgba(247,250,254,.98) 0%, rgba(247,250,254,0) 100%);
  }
}
@media (max-width: 600px) {
  .sc-approved-header { height: auto; }
  .sc-approved-header .sc-header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: calc(100% - 32px);
    height: auto;
    min-height: 0;
    padding-block: 12px;
  }
  .sc-approved-header .sc-approved-brand { align-self: flex-start; }
  .sc-approved-header .sc-public-nav {
    justify-content: space-between;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }
  .sc-approved-header .sc-nav-realisations {
    display: inline-flex !important;
    align-items: center;
    min-height: 42px;
    font-size: 11px;
    white-space: nowrap;
  }
  .sc-approved-header .sc-portal-header { max-width: 126px; min-height: 42px; margin-left: auto; padding: 8px 9px; font-size: 10px; }
  .sc-approved-header .sc-portal-header svg { width: 15px; height: 15px; }
  .sc-approved-header .brand-name { font-size: 15px; }
  .sc-approved .sc-visual-inner { padding: 36px 18px 27px !important; }
  .sc-approved .sc-visual-copy > .sc-eyebrow { margin-bottom: 14px; font-size: 8px; letter-spacing: 1.2px; }
  .sc-approved #home-title { font-size: clamp(33px, 9.4vw, 45px); line-height: 1.05; letter-spacing: -1.4px; }
  .sc-approved .sc-hero-description { margin-bottom: 17px; font-size: 13px; }
  .sc-approved .sc-main-action { min-height: 51px; font-size: 11px; }
  .sc-approved .sc-final-hero-video { height: min(178vw, 690px); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-approved .sc-main-action { transition: none; }
}

/* En paysage, garde le texte à gauche et la vidéo à droite, même sur mobile. */
@media (max-width: 760px) and (orientation: landscape) {
  .sc-approved .sc-hero-visual {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: stretch;
    height: auto;
    min-height: 100vh;
    padding: 0 !important;
  }
  .sc-approved .sc-visual-inner {
    grid-column: 1;
    grid-row: 1;
    order: 0;
    align-items: center;
    height: 100%;
    padding: 24px clamp(12px, 3vw, 24px) !important;
  }
  .sc-approved .sc-visual-copy { max-width: 100%; }
  .sc-approved .sc-visual-copy > .sc-eyebrow { font-size: clamp(7px, 1.35vw, 10px); }
  .sc-approved #home-title {
    font-size: clamp(20px, 4.3vw, 34px);
    line-height: 1.04;
    letter-spacing: -.8px;
  }
  .sc-approved .sc-hero-description {
    margin-bottom: 12px;
    font-size: clamp(10px, 1.65vw, 13px);
    line-height: 1.42;
  }
  .sc-approved .sc-hero-actions { gap: 6px; }
  .sc-approved .sc-main-action {
    min-height: 42px;
    padding: 7px 9px;
    gap: 7px;
    font-size: clamp(8px, 1.4vw, 11px);
  }
  .sc-approved .sc-cta-icon { width: 18px; height: 18px; }
  .sc-approved .sc-cta-arrow { width: 14px; height: 14px; }
  .sc-approved .sc-new-free-note { gap: 5px 10px; margin-top: 10px; font-size: 9px; }
  .sc-approved .sc-return-client { margin-top: 8px; font-size: 9px; }
  .sc-approved .sc-final-hero-video {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    width: calc(100% + clamp(18px, 4vw, 34px));
    height: 100%;
    min-height: 100vh;
    transform: translateX(calc(-1 * clamp(18px, 4vw, 34px)));
  }
  .sc-approved .sc-final-hero-video::before {
    inset: 0 auto 0 0;
    width: clamp(34px, 7vw, 64px);
    height: auto;
    background: linear-gradient(90deg, rgba(247,250,254,.94), rgba(247,250,254,0));
  }
}

/* Une transition fondue relie le panneau de texte à la vidéo. */
.sc-approved .sc-hero-visual { background: #f7fafe !important; }

/* Le portrait et les questions partagent la même section sous un titre commun. */
.sc-approved .sc-approved-faq {
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.5fr);
  align-items: start;
  column-gap: clamp(36px, 6vw, 86px);
  row-gap: 27px;
}
.sc-approved .sc-approved-faq > .sc-section-heading { grid-column: 1 / -1; }
.sc-approved .sc-approved-faq h2 { font-size: clamp(28px, 3vw, 38px); }
.sc-representative {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  align-self: start;
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce7f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 13px 36px rgba(31,64,100,.07);
}
.sc-representative-photo {
  position: relative;
  flex: 0 0 clamp(148px, 14vw, 172px);
  width: clamp(148px, 14vw, 172px);
  height: clamp(148px, 14vw, 172px);
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eaf2fb;
  box-shadow: 0 0 0 1px #dce7f3, 0 6px 18px rgba(31,64,100,.12);
}
.sc-representative-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.sc-representative-copy { width: 100%; min-width: 0; padding: 0; }
.sc-representative-name {
  display: block;
  margin: 0 0 3px;
  color: #183652;
  font-size: 23px;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -.55px;
  text-align: center;
}
.sc-representative-label {
  display: block;
  margin-bottom: 12px;
  color: #5a708a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .2px;
  text-align: center;
  text-transform: none;
}
.sc-representative-copy p { max-width: 32ch; margin: 0 auto; color: #607591; font-size: 14px; line-height: 1.6; text-align: center; }
.sc-representative-cta {
  max-width: 100%;
  margin-top: 4px;
  gap: 8px;
  text-align: center;
  white-space: normal;
}
.sc-representative-cta svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-approved .sc-approved-faq .sc-faq-list { min-width: 0; }

@media (max-width: 900px) {
  .sc-approved .sc-approved-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 22px; }
  .sc-representative { gap: 13px; padding: 18px; }
  .sc-representative-photo { flex-basis: 148px; width: 148px; height: 148px; }
  .sc-representative-copy p { font-size: 13px; }
}
@media (max-width: 600px) {
  .sc-approved .sc-approved-faq { grid-template-columns: 1fr; row-gap: 20px; }
  .sc-approved .sc-approved-faq > .sc-section-heading { grid-column: 1; }
  .sc-representative { gap: 14px; padding: 18px; }
  .sc-representative-photo { flex-basis: 148px; width: 148px; height: 148px; }
}


/* Hero: filets fins dégradés et losanges creux, symétriques sur toute la largeur. */
.sc-approved .sc-visual-copy .sc-eyebrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: clamp(9px, 1.25vw, 16px);
  white-space: nowrap;
}
.sc-approved .sc-visual-copy > .sc-eyebrow::before,
.sc-approved .sc-visual-copy > .sc-eyebrow::after {
  content: "" !important;
  display: block;
  width: 100%;
  min-width: 0;
  height: 9px;
  flex: none;
  background: none !important;
  background-repeat: no-repeat !important;
  background-size: 9px 9px, max(0px, calc(100% - 14px)) 1px !important;
}
.sc-approved .sc-visual-copy > .sc-eyebrow::before {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%229%22%20height%3D%229%22%20viewBox%3D%220%200%209%209%22%3E%3Cpath%20d%3D%22M4.5%201%208%204.5%204.5%208%201%204.5Z%22%20fill%3D%22none%22%20stroke%3D%22%230b62c4%22%20stroke-opacity%3D%22.65%22%20stroke-width%3D%22.85%22%2F%3E%3C%2Fsvg%3E"),
    linear-gradient(90deg, rgba(11,98,196,0), rgba(11,98,196,.48)) !important;
  background-position: right center, left center !important;
}
.sc-approved .sc-visual-copy > .sc-eyebrow::after {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%229%22%20height%3D%229%22%20viewBox%3D%220%200%209%209%22%3E%3Cpath%20d%3D%22M4.5%201%208%204.5%204.5%208%201%204.5Z%22%20fill%3D%22none%22%20stroke%3D%22%230b62c4%22%20stroke-opacity%3D%22.65%22%20stroke-width%3D%22.85%22%2F%3E%3C%2Fsvg%3E"),
    linear-gradient(90deg, rgba(11,98,196,.48), rgba(11,98,196,0)) !important;
  background-position: left center, right center !important;
}
@media (min-width: 761px) and (max-width: 900px) {
  .sc-approved .sc-visual-copy > .sc-eyebrow {
    gap: 8px;
    font-size: 9px;
    letter-spacing: 1.4px;
  }
}
.sc-approved .sc-visual-copy .sc-hero-description {
  font-weight: 600;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .sc-approved .sc-visual-copy .sc-eyebrow {
    gap: 8px;
    font-size: 9px;
    letter-spacing: 1.8px;
  }
}


/* Le bandeau d'accueil grandit avec son contenu : aucun texte ne passe sous l'en-tête ni hors du bas. */
@media (min-width: 761px) {
  .sc-approved .sc-hero-visual {
    height: auto !important;
    min-height: max(720px, calc(100vh - 76px)) !important;
    grid-template-rows: minmax(720px, auto);
  }
  .sc-approved .sc-visual-inner {
    height: auto !important;
    min-height: max(720px, calc(100vh - 76px)) !important;
    padding-top: clamp(68px, 6vw, 88px) !important;
    padding-bottom: clamp(68px, 6vw, 88px) !important;
  }
  .sc-approved .sc-visual-copy {
    overflow: visible;
  }
  .sc-approved .sc-visual-copy .sc-hero-description {
    width: calc(100% + clamp(32px, 5.2vw, 78px));
    max-width: 700px !important;
  }
}
.sc-approved .sc-return-client {
  margin-bottom: 12px !important;
  padding-bottom: 8px;
}

/* Le territoire reste juste sous les projets, avec moins d'espace vide. */
.gallery-section {
  padding-bottom: 14px !important;
}
.gallery-section .marquee {
  padding-bottom: 10px !important;
}

/* La vidéo reste un vrai MP4, sans bouton de lecture superposé par Safari. */
.sc-approved .sc-final-hero-video {
  pointer-events: auto !important;
}
.sc-approved .sc-hero-video-frame {
  pointer-events: auto !important;
}
.sc-approved .sc-hero-video-frame::-webkit-media-controls,
.sc-approved .sc-hero-video-frame::-webkit-media-controls-panel,
.sc-approved .sc-hero-video-frame::-webkit-media-controls-overlay-play-button,
.sc-approved .sc-hero-video-frame::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none !important;
}


/* Texte du héros, largeur intermédiaire pour garder une marge avant la vidéo. */
@media (min-width: 761px) {
  .sc-approved .sc-visual-copy .sc-hero-description {
    width: calc(100% + clamp(16px, 3vw, 42px)) !important;
    max-width: 680px !important;
  }
}

/* Petits libellés lisibles sur les fonds blancs et bleus pâles. */
.sc-approved .sc-assurance p,
.sc-approved .sc-smallprint,
.sc-approved .sc-smallprint .sc-pilot-status {
  color: #5a708a;
}

/* Étapes ouvertes et bandeau d’engagements : les deux rangées gardent les mêmes repères. */
.sc-approved .sc-steps-section,
.sc-approved .sc-assurance {
  --sc-card-gap: 20px;
  --sc-card-padding: 24px;
  --sc-card-icon-track: 64px;
  --sc-card-symbol-size: 38px;
  --sc-card-content-gap: 18px;
  width: min(1320px, calc(100% - 112px)) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
.sc-approved .sc-steps-section {
  padding-block: 28px 20px !important;
}
.sc-approved .sc-steps-section .sc-approved-steps,
.sc-approved .sc-assurance {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: var(--sc-card-gap) !important;
}
.sc-approved .sc-steps-section .sc-approved-steps {
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
}
.sc-approved .sc-assurance {
  position: relative;
  padding: 0 !important;
  background: #f0f6fd !important;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: inset 0 0 0 1px #dce7f3 !important;
}
.sc-approved .sc-steps-section .sc-approved-steps article,
.sc-approved .sc-steps-section .sc-approved-steps article:first-child,
.sc-approved .sc-steps-section .sc-approved-steps article:last-child,
.sc-approved .sc-assurance article,
.sc-approved .sc-assurance article:first-child,
.sc-approved .sc-assurance article:last-child {
  position: relative;
  display: grid !important;
  grid-template-columns: var(--sc-card-icon-track) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: var(--sc-card-content-gap) !important;
  min-width: 0;
  padding: var(--sc-card-padding) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none;
  text-align: left !important;
  transform: none;
  transition: none;
}
.sc-approved .sc-steps-section .sc-approved-steps article {
  min-height: 176px;
}
.sc-approved .sc-assurance article {
  min-height: 130px;
}
.sc-approved .sc-steps-section .sc-approved-steps article + article::before,
.sc-approved .sc-assurance article + article::before {
  content: "";
  position: absolute;
  top: var(--sc-card-padding);
  bottom: var(--sc-card-padding);
  left: calc(-1 * var(--sc-card-gap) / 2);
  width: 1px;
  background: #d3e0ef;
}
.sc-approved .sc-steps-section .sc-step-icon {
  width: var(--sc-card-icon-track) !important;
  height: var(--sc-card-icon-track) !important;
}
.sc-approved .sc-steps-section .sc-step-icon,
.sc-approved .sc-assurance article > svg {
  grid-column: 1;
  grid-row: 1;
  justify-self: center !important;
  align-self: start !important;
  margin: 0 !important;
}
.sc-approved .sc-steps-section .sc-step-icon svg,
.sc-approved .sc-assurance article > svg {
  width: var(--sc-card-symbol-size) !important;
  height: var(--sc-card-symbol-size) !important;
}
.sc-approved .sc-steps-section .sc-approved-steps article > div:not(.sc-step-icon),
.sc-approved .sc-assurance article > div {
  grid-column: 2;
  grid-row: 1;
  width: auto !important;
  min-width: 0;
  text-align: left !important;
}
.sc-approved .sc-steps-section .sc-step-number,
.sc-approved .sc-steps-section .sc-approved-steps h3,
.sc-approved .sc-steps-section .sc-approved-steps p,
.sc-approved .sc-assurance h2,
.sc-approved .sc-assurance p {
  text-align: left !important;
}
.sc-approved .sc-assurance .sc-assurance-rating {
  margin-top: 3px;
}
.sc-approved .sc-approved-steps .sc-step-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}
.sc-approved .sc-approved-steps .sc-step-card-link:focus-visible {
  outline: 3px solid #0b62c4;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .sc-approved .sc-steps-section .sc-approved-steps article.sc-step-card--link {
    border-radius: 16px !important;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }
  .sc-approved .sc-steps-section .sc-approved-steps .sc-step-card--link:hover {
    z-index: 1;
    transform: translateY(-3px) scale(1.015);
    background: #fff !important;
    border-radius: 16px !important;
    border-color: #bfd3ec !important;
    box-shadow: 0 12px 28px rgba(12, 58, 110, .1);
  }
}
@media (max-width: 1100px) {
  .sc-approved .sc-steps-section,
  .sc-approved .sc-assurance {
    --sc-card-gap: 16px;
    --sc-card-padding: 20px;
    --sc-card-icon-track: 56px;
    --sc-card-symbol-size: 34px;
    --sc-card-content-gap: 16px;
    width: calc(100% - 64px) !important;
  }
}
@media (max-width: 900px) {
  .sc-approved .sc-steps-section,
  .sc-approved .sc-assurance {
    --sc-card-gap: 14px;
    --sc-card-icon-track: 60px;
    --sc-card-symbol-size: 36px;
    width: calc(100% - 40px) !important;
  }
  .sc-approved .sc-steps-section {
    padding-block: 24px 16px !important;
  }
  .sc-approved .sc-steps-section .sc-approved-steps,
  .sc-approved .sc-assurance {
    grid-template-columns: 1fr !important;
  }
  .sc-approved .sc-steps-section .sc-approved-steps article,
  .sc-approved .sc-assurance article {
    min-height: 0;
  }
  .sc-approved .sc-steps-section .sc-approved-steps article + article::before,
  .sc-approved .sc-assurance article + article::before {
    top: calc(-1 * var(--sc-card-gap) / 2);
    right: var(--sc-card-padding);
    bottom: auto;
    left: var(--sc-card-padding);
    width: auto;
    height: 1px;
  }
}
@media (max-width: 540px) {
  .sc-approved .sc-steps-section,
  .sc-approved .sc-assurance {
    --sc-card-gap: 12px;
    --sc-card-padding: 18px;
    --sc-card-icon-track: 56px;
    --sc-card-symbol-size: 34px;
    --sc-card-content-gap: 14px;
    width: calc(100% - 32px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sc-approved .sc-steps-section .sc-approved-steps article.sc-step-card--link {
    transition: none;
  }
  .sc-approved .sc-steps-section .sc-approved-steps .sc-step-card--link:hover {
    transform: none;
  }
}

/* Demande gratuite : progression adaptée aux deux ou trois étapes du parcours. */
.guest-request-form .guest-step-labels {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.guest-request-form .guest-step-labels > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.guest-request-form .guest-project-section {
  min-width: 0;
}
.guest-request-form .guest-project-section + .guest-project-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}
.guest-request-form #plans-upload-rule {
  grid-column: 1 / -1;
  margin: 0;
}
@media (max-width: 600px) {
  .guest-request-form .guest-project-section + .guest-project-section {
    margin-top: 24px;
    padding-top: 20px;
  }
}

/* En-têtes des formulaires et connexions : les mêmes repères sur petit écran. */
@media (max-width: 600px) {
  .sc-public-header:not(.sc-approved-header) {
    height: auto;
  }
  .sc-public-header:not(.sc-approved-header) .sc-header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: calc(100% - 32px);
    height: auto;
    min-height: 0;
    padding-block: 12px;
  }
  .sc-public-header:not(.sc-approved-header) .brand {
    align-self: flex-start;
    max-width: 100%;
    min-width: 0;
    gap: 7px;
  }
  .sc-public-header:not(.sc-approved-header) .brand-name {
    font-size: 15px;
  }
  .sc-public-header:not(.sc-approved-header) .brand svg.sc-logo {
    width: 35px;
    height: 35px;
  }
  .sc-public-header:not(.sc-approved-header) .sc-header-inner > nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .sc-public-header:not(.sc-approved-header) .sc-header-inner > nav > a {
    min-height: 42px;
    white-space: normal;
  }
  .sc-public-header:not(.sc-approved-header) .sc-language-toggle {
    flex: 0 0 auto;
  }
}

/* Portail client : action de nouveau projet détachée du tableau. */
.sc-client-projects > .page-heading {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.sc-client-projects > .page-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}
.sc-client-projects > .page-heading > .button {
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
}
.guest-request-form .portal-contact-summary {
  margin-bottom: 20px;
}
.guest-request-form .portal-contact-fields {
  margin-block: 20px;
}
.guest-request-form .portal-contact-summary + .portal-contact-fields {
  margin-top: 0;
}
@media (max-width: 700px) {
  .sc-client-projects > .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 28px;
  }
  .sc-client-projects > .page-heading > .button {
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .sc-client-projects > .page-heading > .button {
    align-self: stretch;
    width: 100%;
  }
}

/* Portails : commandes de langue et de thème, suivi du dossier et filtres. */
.sc-phone-verification-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
}
body.sc-portal-active .sc-portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
body.sc-portal-active .sc-portal-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  background: #fff;
  color: #315fd6;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
body.sc-portal-active .sc-portal-theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
body.sc-portal-active .sc-portal-theme-toggle:hover {
  border-color: #aac4e3;
  background: #edf3ff;
}
body.sc-portal-active .sc-portal-theme-toggle:focus-visible {
  outline: 2px solid #0b62c4;
  outline-offset: 3px;
}
body.sc-portal-active .topbar { gap: 12px; }
body.sc-portal-active .breadcrumb { min-width: 0; }
body.sc-portal-active .breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-request-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 28px;
}
.sc-request-status > .step {
  min-width: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.sc-request-status > .step small {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.4;
}
.sc-request-status > .step strong {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.contractor-opportunities .opportunity-filters,
.contractor-opportunities .opportunity-filters:has(.contractor-filter-reset) {
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}
.contractor-opportunities .opportunity-filters .field:first-child { grid-column: auto; }
.contractor-opportunities .opportunity-filters .contractor-filter-reset { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .contractor-opportunities .opportunity-filters,
  .contractor-opportunities .opportunity-filters:has(.contractor-filter-reset) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contractor-opportunities .opportunity-filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .sc-request-status { grid-template-columns: 1fr; gap: 12px; }
  .sc-request-status > .step {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: baseline;
    gap: 12px;
    padding-top: 12px;
  }
  .sc-request-status > .step small { margin-bottom: 0; }
}
@media (max-width: 460px) {
  .contractor-opportunities .opportunity-filters,
  .contractor-opportunities .opportunity-filters:has(.contractor-filter-reset) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.sc-portal-active .sc-portal-theme-toggle { transition: none; }
}

/* Mode nuit : bleu profond, uniquement dans un portail authentifié. */
html[data-portal-theme="dark"] body.sc-portal-active {
  --paper: #081323;
  --surface: #101e32;
  --surface-soft: #14253d;
  --ink: #e4edf8;
  --muted: #a4b3c8;
  --line: #253950;
  --line-strong: #526c89;
  --accent: #67a8ff;
  --accent-hover: #8abcff;
  --accent-soft: #183552;
  --accent-soft-2: #132a44;
  --green: #9ae5c3;
  --green-soft: #11362f;
  --amber: #f8d48f;
  --amber-soft: #3d311c;
  --red: #ffb7c2;
  --red-soft: #312039;
  --shadow-sm: 0 2px 12px rgba(2, 9, 21, .2);
  --shadow-md: 0 12px 32px rgba(2, 9, 21, .32);
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .sidebar,
  .topbar,
  .demo-bar
) {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active .workspace {
  background: var(--paper);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .brand-name,
  .metric-value,
  .crm-card strong,
  .project-report-field strong,
  .trash-card h3,
  .qt-shell legend,
  .qt-shell summary
) {
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  p,
  .muted,
  .sub,
  .caps,
  .breadcrumb,
  .topnote,
  .nav-caption,
  .metric-label,
  .sidebar-help p,
  .user-block small,
  .field label,
  .field-label,
  .field small,
  .datum dt,
  .fine-footer,
  .inline-note,
  .progress-caption,
  .result-step p,
  .project-report-field span,
  .project-report-muted,
  .project-report-footer small,
  .opportunity-heading p,
  .opportunity-count,
  .opportunity-details,
  .opportunity-ref,
  .opportunity-slots,
  .opportunity-no-result,
  .contractor-metrics span,
  .my-quote-card p,
  .my-quote-card h3 small,
  .agreement-intro p,
  .signature-form > p,
  .trash-card p,
  .trash-card small,
  .trash-toolbar > span,
  .trash-empty p,
  .trash-footnote,
  .trash-delete-field small,
  .qt-heading p,
  .qt-field label,
  .qt-field small,
  .qt-help,
  .qt-facts b,
  .qt-summary-field h4,
  .contractor-filter-status
) {
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .section,
  .card,
  .metric,
  .list-table,
  .document-row,
  .activity,
  .crm-card,
  .sidebar-help,
  .next-meeting,
  .date-square,
  .opportunity-card,
  .contractor-metrics > article,
  .contractor-opportunities,
  .my-quote-card,
  .agreement-text,
  .signature-form,
  .request-progress,
  .success-steps,
  .success-panel,
  .portal-create-card,
  .project-summary-card,
  .project-report,
  .qt-shell,
  .qt-proposal,
  .trash-card,
  .trash-confirm-dialog,
  .dialog
) {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .qt-shell .qt-heading,
  .qt-proposal > .qt-heading,
  .qt-shell fieldset,
  .qt-price-read > div,
  .qt-proposal,
  .project-report-field,
  .opportunity-bottom,
  .file-row,
  .section,
  .fine-footer,
  .project-overview,
  .user-block,
  .sidebar-help,
  .summary-head
) {
  border-color: var(--line);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .qt-shell .qt-heading,
  .qt-proposal > .qt-heading
) {
  background: var(--surface);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .crm-column,
  .crm-empty,
  .empty,
  .opportunity-empty,
  .trash-empty,
  .user-block,
  .tabs,
  .topnote,
  .nav-count
) {
  background: #0c192c;
  border-color: var(--line);
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .crm-column header h2,
  .crm-card span,
  .trash-delete-check,
  .agreement-text pre.legal-text,
  .qt-check,
  .qt-price-read,
  .qt-summary-field p
) {
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .crm-column header span,
  .crm-column-count,
  .project-icon,
  .user-icon,
  .qt-state
) {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  color: #c8dfff;
}
html[data-portal-theme="dark"] body.sc-portal-active .nav-link {
  background: transparent;
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active .nav-link:hover {
  background: #18314e;
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active .nav-link.active {
  background: #1f4d80;
  color: #f4f8ff;
  box-shadow: 0 6px 18px rgba(2, 9, 21, .24);
}
html[data-portal-theme="dark"] body.sc-portal-active .nav-link.active .nav-count {
  background: #2b6199;
  color: #f4f8ff;
}
html[data-portal-theme="dark"] body.sc-portal-active .tab {
  background: transparent;
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active .tab.active {
  background: #1b3555;
  color: #c8dfff;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .button,
  .sc-language-toggle,
  .sc-portal-theme-toggle,
  .trash-icon-button,
  .qt-remove
) {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .button:not(.primary):hover,
  .sc-language-toggle:hover,
  .sc-portal-theme-toggle:hover,
  .trash-icon-button:hover
) {
  background: #1b3555;
  border-color: #527ca9;
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active .button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #081323;
  box-shadow: 0 6px 18px rgba(2, 9, 21, .24);
}
html[data-portal-theme="dark"] body.sc-portal-active .button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #081323;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .link-button,
  .crm-summary strong,
  .contractor-metrics strong,
  .my-quote-card h3,
  .qt-kicker,
  .qt-shell legend b,
  .project-report-body h3,
  .project-report-footer strong,
  .trash-metric [aria-current="page"]
) {
  color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  input,
  select,
  textarea,
  .sc-select-trigger
) {
  background: #0c192c;
  border-color: var(--line-strong);
  color: var(--ink);
  caret-color: var(--ink);
  box-shadow: none;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  input,
  select
) {
  accent-color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  input::placeholder,
  textarea::placeholder,
  .sc-select-trigger.is-placeholder
) {
  color: #a4b3c8;
  opacity: 1;
}
html[data-portal-theme="dark"] body.sc-portal-active .field input[type="file"]::file-selector-button {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  input:read-only,
  textarea:read-only,
  select:disabled,
  .sc-select-trigger:disabled
) {
  background: #142136;
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus
) {
  -webkit-box-shadow: 0 0 0 1000px #0c192c inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible
) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .field input:focus,
  .field select:focus,
  .field textarea:focus,
  .qt-field input:focus,
  .qt-field textarea:focus,
  .qt-field select:focus,
  .qt-price-table input:focus,
  .sc-select-trigger:focus-visible
) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, .15);
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-select-trigger > svg {
  stroke: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-select.is-open .sc-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, .15);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .sc-select-menu,
  .sc-address-suggestions
) {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(2, 9, 21, .48);
  scrollbar-color: #49617d var(--surface);
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-select-option {
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-select-option::after {
  color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .sc-select-option.is-active,
  .sc-address-suggestion:hover,
  .sc-address-suggestion.is-highlighted,
  .sc-address-suggestion:focus-visible
) {
  background: #1b3658;
  color: #e4edf8;
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-select-option[aria-disabled="true"] {
  color: #74869e;
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-address-suggestion {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .list-table th,
  .quote-table th,
  .qt-price-table th
) {
  background: #14253d;
  border-color: var(--line);
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .list-table td,
  .quote-table td,
  .qt-price-table td
) {
  border-color: var(--line);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .quote-table td + td,
  .quote-table th + th,
  .qt-price-read > div
) {
  border-color: var(--line);
}
html[data-portal-theme="dark"] body.sc-portal-active .list-table tbody tr:hover {
  background: #162b46;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .checkbox,
  .choice,
  .sc-exterior-field,
  .sc-exterior-option
) {
  background: #14253d;
  border-color: var(--line-strong);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .choice:has(input:checked),
  .sc-exterior-option:has(input:checked)
) {
  background: #1b3555;
  border-color: var(--accent);
  color: #e4edf8;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .note,
  .line-note,
  .request-review,
  .signer-privacy-hint,
  .sc-email-verification-block,
  .project-report-copy,
  .project-report-footer,
  .agreement-intro,
  .qt-total,
  .qt-info,
  .qt-notice,
  .trash-notice,
  .trash-confirm-note
) {
  background: #132a44;
  border-color: #2b4869;
  color: #c8d9ef;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .note p,
  .line-note p,
  .request-review p,
  .qt-info p,
  .qt-notice p,
  .trash-notice p,
  .trash-confirm-note p
) {
  color: inherit;
}
html[data-portal-theme="dark"] body.sc-portal-active .qt-total strong {
  color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .state,
  .opportunity-pill,
  .qualification-tag,
  .crm-qual-status
) {
  background: #183552;
  border-color: #31577f;
  color: #c8dfff;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .state.green,
  .opportunity-pill.is-selected,
  .qualification-tag.is-qualified,
  .crm-qual-status.is-qualified,
  .note.success,
  .contractor-ready,
  .demo-company-note,
  .demo-sidebar-help
) {
  background: #11362f;
  border-color: #2d6a57;
  color: #9ae5c3;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .contractor-ready p,
  .contractor-ready .contractor-alert-icon,
  .demo-company-note p,
  .demo-company-note strong,
  .demo-sidebar-help p,
  .demo-sidebar-help strong,
  .sc-verify-status.is-verified
) {
  color: #9ae5c3;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .state.amber,
  .opportunity-pill.is-waiting,
  .qt-return-note
) {
  background: #3d311c;
  border-color: #675127;
  color: #f8d48f;
}
html[data-portal-theme="dark"] body.sc-portal-active .qt-return-note p {
  color: inherit;
}
html[data-portal-theme="dark"] body.sc-portal-active .state.gray {
  background: #1d2b3f;
  color: #b7c4d6;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .note.warning,
  .warning-note,
  .contractor-alert:not(.contractor-ready),
  .contractor-not-ready,
  .contractor-signing-warning,
  .trash-delete-warning,
  .trash-notice.is-error,
  .qt-error
) {
  background: #312039;
  border-color: #714153;
  color: #ffb7c2;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .contractor-alert:not(.contractor-ready) p,
  .contractor-alert:not(.contractor-ready) strong,
  .contractor-not-ready p,
  .contractor-signing-warning p,
  .contractor-signing-warning strong,
  .trash-delete-warning p,
  .contractor-filter-status[role="alert"],
  .qt-field label span,
  .trash-delete-dialog h2
) {
  color: #ffb7c2;
}
html[data-portal-theme="dark"] body.sc-portal-active .contractor-alert-icon {
  background: #532a40;
  color: #ffd4db;
}
html[data-portal-theme="dark"] body.sc-portal-active .contractor-ready .contractor-alert-icon {
  background: #1a4b3f;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .form-error,
  .sc-notification.is-error,
  .line-note.is-error,
  .guest-request-form [data-form-error].is-error
) {
  background: #312039 !important;
  border-color: #ad5c74 !important;
  color: #ffb7c2 !important;
}
html[data-portal-theme="dark"] body.sc-portal-active [aria-invalid="true"] {
  outline-color: #ff94aa !important;
  border-color: #ff94aa !important;
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-select-trigger[aria-invalid="true"] {
  box-shadow: 0 0 0 3px rgba(255, 148, 170, .15);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .trash-delete-confirm,
  .trash-permanent,
  .qt-remove
) {
  background: #532a40;
  border-color: #9b526b;
  color: #ffd4db;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .trash-delete-confirm:hover:not(:disabled),
  .trash-permanent:hover:not(:disabled),
  .qt-remove:hover
) {
  background: #70374e;
  border-color: #bf6b85;
  color: #ffe8ed;
}
html[data-portal-theme="dark"] body.sc-portal-active .trash-delete-confirm:disabled {
  background: #322b3f;
  border-color: #524256;
  color: #af9dab;
}
html[data-portal-theme="dark"] body.sc-portal-active .project-report-head {
  background: linear-gradient(125deg, #123253, #194b7b);
  color: #f4f8ff;
}
html[data-portal-theme="dark"] body.sc-portal-active .project-report-head h2 {
  color: #f4f8ff;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .project-report-head p,
  .project-report-eyebrow
) {
  color: #c8dfff;
}
html[data-portal-theme="dark"] body.sc-portal-active .project-report-status {
  background: #1c4269;
  border-color: #537599;
  color: #e4edf8;
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .step,
  .sc-request-status > .step,
  .stepper,
  .result-step:not(:last-child)::before
) {
  border-color: var(--line);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .step strong,
  .result-step strong
) {
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .step-number,
  .result-step > span
) {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--muted);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .step.done,
  .step.current
) {
  border-top-color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .step.done .step-number,
  .step.current .step-number
) {
  border-color: var(--accent);
  color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active .result-step.active > span {
  background: var(--accent);
  border-color: var(--accent);
  color: #081323;
}
html[data-portal-theme="dark"] body.sc-portal-active .result-step:not(:last-child)::before {
  background: var(--line);
}
html[data-portal-theme="dark"] body.sc-portal-active .result-step.active:not(:last-child)::before {
  background: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active :is(
  .dialog::backdrop,
  .trash-confirm-dialog::backdrop
) {
  background: rgba(3, 12, 25, .76);
}
html[data-portal-theme="dark"] body.sc-portal-active a:not(.button):not(.nav-link):not(.brand):not(.tab):hover {
  color: var(--accent);
}
html[data-portal-theme="dark"] body.sc-portal-active .nav-badge-red {
  background: #80324a !important;
  border-color: #b95a75 !important;
  color: #ffe4ec !important;
}

/* Corbeille : accès secondaire près des occasions, sans encombrer la navigation. */
.sc-trash-access {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #5a708a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.sc-trash-access svg { width: 16px; height: 16px; }
.sc-trash-access:hover { background: #edf3ff; color: #185b9e; }
.sc-trash-access:focus-visible { outline: 2px solid #0b62c4; outline-offset: 3px; }
.sc-trash-access-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 20px;
  padding: 1px 6px;
  border: 1px solid #d2deec;
  border-radius: 999px;
  background: #e8eff8;
  color: #375774;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-trash-access { color: var(--muted); }
html[data-portal-theme="dark"] body.sc-portal-active .sc-trash-access:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
html[data-portal-theme="dark"] body.sc-portal-active .sc-trash-access-count {
  background: #183552;
  border-color: #31577f;
  color: #c8dfff;
}

/* Coordonnées de contact public. */
.sc-footer-contact{display:flex;flex-direction:column;gap:7px;font-style:normal;font-size:13px;line-height:1.5;color:#45617e}.sc-footer-contact strong{color:#183652}.sc-footer-contact a:hover{color:#0b62c4;text-decoration:underline;text-underline-offset:4px}.sc-footer-contact a{overflow-wrap:anywhere}.sc-approved-footer .sc-footer-inner{align-items:flex-start;gap:28px;flex-wrap:wrap}


/* Accueil : une composition plus aérée, adaptée au texte et à la vidéo. */
.sc-approved .sc-hero-visual{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);background:#fff!important}
.sc-approved .sc-hero-visual .sc-visual-inner{padding-inline:clamp(28px,6vw,96px) clamp(28px,4vw,64px)!important}
.sc-approved .sc-hero-visual .sc-visual-inner::before{background:#fff}
.sc-approved .sc-hero-visual .sc-visual-copy{max-width:680px;padding:0}
.sc-approved .sc-hero-visual .sc-eyebrow{margin-bottom:24px;font-weight:600;letter-spacing:1.7px;color:#62758b!important}
.sc-approved .sc-hero-visual #home-title{margin:0 0 24px;font-size:clamp(38px,3.55vw,52px);font-weight:600;line-height:1.13;letter-spacing:-1.6px;color:#1c3354!important;text-wrap:pretty}
.sc-approved .sc-hero-visual #home-title .sc-title-blue{margin-top:10px;font-size:clamp(32px,3.05vw,44px);line-height:1.16;font-weight:550}
.sc-approved .sc-hero-visual .sc-visual-copy .sc-hero-description{width:100%!important;max-width:47ch!important;margin:0 0 30px;font-size:16px;line-height:1.75;font-weight:400;color:#52677f!important}
.sc-approved .sc-hero-visual .sc-hero-actions{width:100%;max-width:none;gap:12px;align-items:stretch}
.sc-approved .sc-hero-visual .sc-main-action{flex:0 1 auto;min-height:56px;min-width:0;width:auto;padding:15px 18px;font-size:14px;font-weight:650;gap:11px;border-radius:9px;box-shadow:none;white-space:normal}
.sc-approved .sc-hero-visual .sc-client-action{box-shadow:0 6px 18px rgba(11,98,196,.13)}
.sc-approved .sc-hero-visual .sc-contractor-action{background:#fff!important;border-color:#d8e2ee!important;color:#405b77!important;font-weight:550}
.sc-approved .sc-hero-visual .sc-main-action:focus-visible{outline:3px solid #80afe3;outline-offset:4px}
.sc-approved .sc-hero-visual .sc-cta-icon{width:19px;height:19px;flex-shrink:0}
.sc-approved .sc-hero-visual .sc-cta-arrow{width:16px;height:16px;flex-shrink:0}
.sc-approved .sc-hero-visual .sc-new-free-note{gap:8px 20px;margin:18px 0 0;font-size:12px;line-height:1.5;font-weight:450}
.sc-approved .sc-hero-visual .sc-return-client{margin:18px 0 0!important;padding:0;font-size:12px;line-height:1.6}
.sc-approved .sc-hero-visual .sc-final-hero-video{--sc-video-overlap:0px;width:100%;transform:none;background:#fff}
.sc-approved .sc-hero-visual .sc-final-hero-video::before{width:clamp(100px,12vw,200px);background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.82) 25%,rgba(255,255,255,0) 100%)}
@media(min-width:761px){
.sc-approved .sc-hero-visual{height:auto!important;min-height:clamp(600px,calc(100svh - 76px),760px)!important;grid-template-rows:minmax(600px,auto)}
.sc-approved .sc-hero-visual .sc-visual-inner{height:auto!important;min-height:0!important;padding-block:64px!important}
}
@media(min-width:761px) and (max-width:1050px){
.sc-approved .sc-hero-visual .sc-visual-inner{padding-inline:30px 24px!important}
.sc-approved .sc-hero-visual #home-title{font-size:36px}
.sc-approved .sc-hero-visual #home-title .sc-title-blue{font-size:30px}
.sc-approved .sc-hero-visual .sc-visual-copy .sc-hero-description{font-size:15px}
.sc-approved .sc-hero-visual .sc-main-action{font-size:12px;padding-inline:14px}
}
@media(max-width:760px) and (orientation:portrait){
.sc-approved .sc-hero-visual .sc-visual-inner{padding:42px 24px 34px!important}
.sc-approved .sc-hero-visual .sc-eyebrow{margin-bottom:20px;font-size:9px;letter-spacing:1.3px}
.sc-approved .sc-hero-visual #home-title{font-size:clamp(34px,8vw,46px);letter-spacing:-1.2px}
.sc-approved .sc-hero-visual #home-title .sc-title-blue{font-size:clamp(30px,7.3vw,40px);margin-top:9px}
.sc-approved .sc-hero-visual .sc-visual-copy .sc-hero-description{font-size:15px;line-height:1.7;margin-bottom:26px}
.sc-approved .sc-hero-visual .sc-main-action{width:100%;justify-content:flex-start}
.sc-approved .sc-hero-visual .sc-cta-arrow{margin-left:auto}
.sc-approved .sc-hero-visual .sc-new-free-note{flex-direction:row;align-items:center;gap:8px 18px}
.sc-approved .sc-hero-visual .sc-final-hero-video{height:clamp(300px,75vw,460px)}
.sc-approved .sc-hero-visual .sc-final-hero-video::before{width:100%;height:52px;background:linear-gradient(180deg,#fff,rgba(255,255,255,0))}
}
@media(max-width:760px) and (orientation:landscape){
.sc-approved .sc-hero-visual .sc-visual-inner{padding:28px 20px!important}
.sc-approved .sc-hero-visual #home-title{font-size:clamp(22px,3.5vw,29px);letter-spacing:-.7px;margin-bottom:16px}
.sc-approved .sc-hero-visual #home-title .sc-title-blue{font-size:clamp(20px,3.1vw,26px);margin-top:7px}
.sc-approved .sc-hero-visual .sc-visual-copy .sc-hero-description{font-size:12px;line-height:1.6;margin-bottom:18px}
.sc-approved .sc-hero-visual .sc-main-action{min-height:44px;font-size:11px;padding:10px}
.sc-approved .sc-hero-visual .sc-final-hero-video::before{inset:0 auto 0 0;width:70px;height:auto;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
}
@media(prefers-reduced-motion:reduce){.sc-approved .sc-hero-visual .sc-main-action{transform:none!important;transition:none!important}}


/* Le texte et la vidéo partagent un cadre, séparés par un trait continu. */
.sc-approved .sc-hero-visual{
  width:calc(100% - 48px);
  margin:24px auto 32px;
  border:1px solid #dce5ef;
  border-radius:24px;
  box-sizing:border-box;
  overflow:hidden;
}
.sc-approved .sc-hero-visual .sc-final-hero-video{
  border-left:1px solid #dce5ef;
  box-sizing:border-box;
}
.sc-approved .sc-hero-visual .sc-final-hero-video::before{
  content:none;
  display:none;
}
@media(max-width:760px) and (orientation:portrait){
  .sc-approved .sc-hero-visual{
    width:calc(100% - 24px);
    margin:12px auto 24px;
    border-radius:18px;
  }
  .sc-approved .sc-hero-visual .sc-final-hero-video{
    border-left:0;
    border-top:1px solid #dce5ef;
  }
}
@media(max-width:760px) and (orientation:landscape){
  .sc-approved .sc-hero-visual{
    width:calc(100% - 24px);
    margin:12px auto 24px;
    border-radius:18px;
  }
}


/* Le bandeau rejoint les bords de la page, sans marge autour du cadre. */
.sc-approved .sc-hero-visual{
 width:100%;margin:0;border-radius:0;border-left:0;border-right:0;
}
@media(max-width:760px){
 .sc-approved .sc-hero-visual{width:100%;margin:0;border-radius:0}
}

/* Cadre plus affirmé, avec la vidéo légèrement avancée vers la gauche. */
.sc-approved .sc-hero-visual{grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);border:2px solid #c3d0df}
.sc-approved .sc-hero-visual .sc-final-hero-video{border-left:2px solid #c3d0df}
@media(max-width:760px) and (orientation:portrait){
 .sc-approved .sc-hero-visual .sc-final-hero-video{border-left:0;border-top:2px solid #c3d0df}
}

/* Directory: keep long lists compact while preserving the full verification form. */
.sc-company-directory { display:grid;gap:.65rem; }
.sc-company-directory .sc-company-disclosure { margin:0;padding:0;overflow:hidden; }
.sc-company-directory .sc-company-disclosure[hidden] { display:none; }
.sc-company-disclosure > summary { display:flex;align-items:center;gap:.8rem;min-height:52px;padding:.85rem 1.2rem;cursor:pointer;list-style:none; }
.sc-company-disclosure > summary::-webkit-details-marker { display:none; }
.sc-company-disclosure > summary:hover { background:var(--accent-soft); }
.sc-company-disclosure > summary:focus-visible { outline:2px solid var(--accent);outline-offset:-3px; }
.sc-company-disclosure > summary strong { flex:1;min-width:0;overflow-wrap:anywhere; }
.sc-company-state { color:var(--muted);font-size:.8rem; }
.sc-company-chevron { border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:.48rem;height:.48rem;transform:rotate(45deg);flex:none; }
.sc-company-disclosure[open] .sc-company-chevron { transform:rotate(225deg); }
.sc-company-details { padding:1rem 1.2rem;border-top:1px solid var(--line); }

/* Project conversations */
.sc-client-chat { display:grid;grid-template-columns:minmax(12rem,16rem) minmax(0,1fr);gap:1rem;align-items:start; }
.sc-client-chat > .section { min-width:0;margin:0; }
.sc-chat-projects h2,.sc-chat-panel-heading h2 { font-size:1.15rem;margin:0; }
.sc-chat-project-list { display:grid;gap:.35rem;margin-top:.75rem; }
.sc-chat-project { display:grid;gap:.2rem;padding:.7rem .8rem;border:1px solid transparent;border-radius:.65rem;color:var(--ink);text-decoration:none;overflow-wrap:anywhere; }
.sc-chat-project span,.sc-chat-message-meta,.sc-chat-empty { color:var(--muted);font-size:.8rem; }
.sc-chat-project:hover,.sc-chat-project[aria-current="page"] { background:var(--accent-soft);border-color:var(--line); }
.sc-chat-project:focus-visible,.sc-chat-thread:focus-visible { outline:2px solid var(--accent);outline-offset:3px; }
.sc-chat-panel-heading { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem; }
.sc-chat-panel-heading h2 { display:flex;align-items:center;gap:.6rem;min-width:0;overflow-wrap:anywhere; }
.sc-chat-panel-heading svg,.sc-chat-empty svg { width:1.15rem;height:1.15rem;color:var(--accent); }
.sc-chat-thread { min-height:11rem;max-height:min(52vh,32rem);overflow:auto;scrollbar-gutter:stable;margin-top:.9rem;padding:.9rem .35rem .9rem 0;border-block:1px solid var(--line); }
.sc-chat-empty { min-height:8rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;text-align:center;padding:1rem; }
.sc-chat-messages { display:grid;gap:.75rem;margin:0;padding:0;list-style:none; }
.sc-chat-message { display:flex;min-width:0; }
.sc-chat-message--mine { justify-content:flex-end; }
.sc-chat-bubble { width:fit-content;max-width:88%;padding:.65rem .85rem;border:1px solid var(--line);border-radius:1rem 1rem 1rem .3rem;background:var(--surface-soft);overflow-wrap:anywhere; }
.sc-chat-message--mine .sc-chat-bubble { background:var(--accent-soft);border-radius:1rem 1rem .3rem 1rem; }
.sc-chat-message-meta { display:flex;gap:.25rem .8rem;flex-wrap:wrap; }
.sc-chat-bubble p { margin:.3rem 0 0;white-space:pre-wrap; }
.sc-chat-compose { margin-top:.85rem; }
.sc-chat-compose textarea { width:100%;resize:vertical; }
.sc-chat-compose .form-actions { justify-content:flex-end; }
.sc-chat-other-threads > summary { cursor:pointer;font-weight:600; }
.sc-chat-other-threads[open] > summary { margin-bottom:1rem; }
@media (max-width:720px) {
 .sc-client-chat { grid-template-columns:minmax(0,1fr); }
 .sc-chat-project-list { max-height:10rem;overflow:auto; }
 .sc-chat-bubble { max-width:94%; }
}

.sc-chat-compose-head { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem; }
.button.sc-chat-template-trigger { min-height:2.2rem;padding:.3rem .7rem;font-size:.82rem; }
.sc-chat-template-options { display:grid;gap:.45rem;margin:.75rem 0; }
.button.sc-chat-template-option { justify-content:flex-start;text-align:start; }

.sc-chat-template-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;align-items:stretch; }
.button.sc-chat-template-option { min-width:0;white-space:normal;overflow-wrap:anywhere;gap:.45rem;flex-wrap:wrap; }
.sc-chat-template-option small { color:var(--muted);font-weight:500; }

.scl-company-agreement { margin-block-end:1rem; }

.sc-staff-revoke { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.sc-staff-revoke svg { flex: none; }

@media (max-width: 900px) {
  .sc-approved .sc-hero-visual + .sc-territory-strip {
    margin-top: 14px;
  }
}

.sc-create-account.sc-portal-entry-options {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}
.sc-portal-entry-options > section {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d6dfeb;
  border-radius: 16px;
  background: #fff;
}
.sc-portal-entry-options > section > h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}
.sc-portal-entry-options > section > p { margin: 0 0 16px; }
.sc-portal-entry-options .sc-portal-entry-actions { display: grid; gap: 8px; }
.sc-portal-entry-options .button { display: flex; justify-content: center; width: 100%; text-align: center; }

.sc-approved .sc-visual-copy > h1 + .sc-eyebrow{margin-top:13px;margin-bottom:14px;}
.sc-home-client-proof{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:18px;align-items:stretch;margin-block:28px;}
.sc-client-quote,.sc-featured-project{margin:0;border:1px solid #dce5ef;border-radius:16px;background:#fff;color:#183652;overflow:hidden;}
.sc-featured-project{display:grid;grid-template-columns:minmax(95px,.9fr) minmax(0,1fr);align-items:center;}
.sc-featured-project img{width:100%;height:100%;min-height:104px;object-fit:cover;}
.sc-featured-project figcaption{padding:13px 14px;font-size:.87rem;font-weight:650;line-height:1.4;}
.sc-client-quote{padding:17px 19px;border-left:3px solid #b99858;}
.sc-client-quote figcaption{font-size:.82rem;font-weight:720;color:#174f87;}
.sc-client-quote blockquote{margin:8px 0 0;}
.sc-client-quote p{margin:0;max-width:65ch;font-family:Georgia,'Times New Roman',serif;font-size:1.02rem;font-style:italic;line-height:1.62;}
@media(max-width:640px){.sc-home-client-proof{grid-template-columns:minmax(0,1fr);gap:12px;margin-block:20px;}}

.sc-home-client-proof{grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(16px,2vw,28px);align-items:stretch;}
.sc-home-client-proof .sc-featured-project{display:flex;flex-direction:column;align-items:stretch;}
.sc-home-client-proof .sc-featured-project-title{display:block;padding:17px 20px;font-family:Georgia,'Times New Roman',serif;font-weight:600;font-size:clamp(1.05rem,1.8vw,1.45rem);line-height:1.32;}
.sc-home-client-proof .sc-featured-project-title strong{font-weight:inherit;}
.sc-home-client-proof .sc-featured-project img{width:100%;height:auto;min-height:0;aspect-ratio:16/9;object-fit:cover;object-position:center 57%;}
.sc-home-client-proof .sc-client-quote{display:flex;flex-direction:column;justify-content:center;padding:clamp(22px,3.5vw,42px);}
.sc-home-client-proof .sc-client-quote blockquote{margin-top:12px;}
@media(max-width:640px){.sc-home-client-proof{grid-template-columns:minmax(0,1fr);}}
