/* Sobre : une couleur d'accent, des bordures fines, aucun dégradé, aucune bande de couleur, aucun mouvement décoratif.
   Chargée en dernier sur les pages publiques ; les règles de base restent dans styles.css, marketing.css et sectors.css. */
:root {
  --paper: #fafaf8;
  --hair: #e6e6e1;
  --mute: #6b6f72;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
body,
.site {
  background: var(--paper);
}

/* Texte d'accent : une couleur pleine, pas de dégradé. */
.home em,
.sx em,
.h-final em {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--sage);
  font-style: normal;
}

/* Étiquettes : police à chasse fixe, discrètes. */
.h-eyebrow,
.sx .eyebrow,
.lf-head .eyebrow {
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--mute);
}
.h-live {
  width: 7px;
  height: 7px;
  background: var(--sage);
  animation: none;
  box-shadow: none;
}
.beta-tag {
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--mute);
}

/* En-tête de page : centré, fond quadrillé de points, sans halo. */
.h-hero {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 40px;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 5vw, 72px) clamp(32px, 6vw, 72px);
  background: radial-gradient(circle, #dcdcd6 1px, transparent 1.2px) 0 0 / 22px 22px, var(--paper);
}
.h-copy {
  max-width: 820px;
  display: grid;
  justify-items: center;
}
.h-brand {
  display: none;
}
.h-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: -0.04em;
}
.h-lead {
  margin-inline: auto;
  max-width: 38em;
}
.h-cta,
.h-trust {
  justify-content: center;
}
.h-trust {
  font-size: 0.86rem;
}

/* Boutons : noirs et plats, rayon modéré. */
.h-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  box-shadow: none;
  font-weight: 600;
}
.h-btn:hover {
  transform: none;
  box-shadow: none;
  background: #000;
}
.h-btn.ghost {
  background: #fff;
  border: 1px solid var(--hair);
}
.h-btn.ghost:hover {
  background: #f2f2ee;
}

/* Chiffres du jour : trois cases, filets fins. */
.pulse-strip {
  margin-inline: auto;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.pulse-strip strong,
.pulse-strip .hot {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Illustration : une fenêtre d'application, immobile. */
.h-visual {
  width: min(560px, 100%);
}
.phone {
  max-width: none;
  border-radius: 14px;
  border: 1px solid var(--hair);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -32px rgba(0, 0, 0, 0.25);
  text-align: left;
}
.streak {
  display: none !important;
}
.phone .star {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 10px;
}
.phone .star .star-k {
  font: 500 0.7rem var(--mono);
  color: var(--mute);
}
.phone .star .star-m {
  color: var(--mute);
}
.ph-card,
.ph-card.hot,
.ph-card.warm,
.ph-card.award {
  border: 1px solid var(--hair);
  border-radius: 10px;
}
.ph-card .lot-badge,
.ph-card.hot .lot-badge,
.ph-card.warm .lot-badge,
.ph-card.award .lot-badge {
  background: #f4f4f0;
  border-radius: 8px;
}
.ph-card .lot-badge strong,
.ph-card.warm .lot-badge strong,
.ph-card.award .lot-badge strong {
  color: var(--ink);
  font-family: var(--mono);
}
.ph-card.hot .lot-badge strong {
  color: var(--hot);
  font-family: var(--mono);
}
.pill,
.pill.hit,
.pill.new,
.pill.award {
  background: #fff;
  border: 1px solid var(--hair);
  color: var(--mute);
}


/* Bandeau de chiffres et sections. */
.h-band {
  background: #fff;
  border-block: 1px solid var(--hair);
}
.h-band strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
}
.h-section h2,
.sx h2 {
  letter-spacing: -0.03em;
}
.h-alt {
  background: transparent;
}
.h-steps li,
.h-duo article,
.h-grid div,
.h-sectors a {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: none;
  transform: none;
}
.h-grid div:hover,
.h-sectors a:hover {
  border-color: #c9c9c2;
  transform: none;
  box-shadow: none;
}
.h-num {
  background: transparent;
  color: var(--mute);
  border: 1px solid var(--hair);
  font: 500 0.8rem var(--mono);
}
.h-sectors a > span,
.h-duo .h-ico,
.h-grid span {
  display: none;
}
.t-hot,
.t-warm {
  color: inherit;
}
.h-field a,
.h-field img {
  border-radius: 12px;
}
.h-final {
  background: var(--ink);
  border-radius: 16px;
  margin: 0 clamp(16px, 5vw, 72px) 56px;
}
.h-final em {
  color: #8fd1b4;
}


/* Pages secteurs : pas de halo coloré ni d'éléments qui tournent. */
.sx [class*='hero'] {
  background: var(--paper);
}
.sx *:not(.tk-track) {
  animation: none !important;
}
.op,
.op.hot,
.op.warm,
.lc {
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: none;
}
.lc-hot {
  background: transparent;
  color: var(--hot);
  border: 1px solid currentColor;
}
.lf-chip {
  border: 1px solid var(--hair);
}
.lf-chip.on {
  background: var(--ink);
}

@media (max-width: 760px) {
  .h-hero {
    text-align: left;
    justify-items: stretch;
  }
  .h-copy {
    justify-items: start;
  }
  .h-cta,
  .h-trust {
    justify-content: flex-start;
  }
}
.trade,
.trade:hover {
  border: 1px solid var(--hair);
  border-radius: 12px;
  transform: none;
  box-shadow: none;
}
html.hide-brand .marketing-nav > .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Questions avant inscription. */
.h-faq {
  display: grid;
  gap: 8px;
  max-width: 820px;
}
.h-faq details {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 0 18px;
}
.h-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.h-faq summary::-webkit-details-marker {
  display: none;
}
.h-faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--mute);
}
.h-faq details[open] summary::after {
  content: '−';
}
.h-faq p {
  margin: 0 0 16px;
  color: var(--mute);
  line-height: 1.6;
}

/* ===== Mouvement : lent, doux, jamais en boucle rapide. ===== */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
html {
  scroll-behavior: smooth;
}

/* Apparition au défilement : fondu et léger glissement, une seule fois. */
.motion .rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.motion .rv[data-from='left'] {
  transform: translateX(-24px);
}
.motion .rv[data-from='right'] {
  transform: translateX(24px);
}
.motion .rv.in {
  opacity: 1;
  transform: none;
}

/* En-tête : le quadrillage glisse très lentement, le titre et la fenêtre entrent en douceur. */
.h-hero {
  animation: dots-drift 40s linear infinite;
}
@keyframes dots-drift {
  to {
    background-position: 22px 22px, 0 0;
  }
}
.h-copy > * {
  animation: rise 0.8s var(--ease) both;
}
.h-copy > :nth-child(2) {
  animation-delay: 0.05s;
}
.h-copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.h-copy > :nth-child(4) {
  animation-delay: 0.2s;
}
.h-copy > :nth-child(5) {
  animation-delay: 0.28s;
}
.h-copy > :nth-child(n + 6) {
  animation-delay: 0.36s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.h-visual {
  position: relative;
  animation: rise 1s 0.35s var(--ease) both;
}
.phone {
  animation: hover-y 7s ease-in-out infinite;
}
@keyframes hover-y {
  50% {
    transform: translateY(-8px);
  }
}
.phone .star,
.ph-card {
  animation: card-up 0.7s var(--ease) both;
}
.phone .star {
  animation-delay: 0.6s;
}
.ph-card:nth-of-type(1) {
  animation-delay: 0.75s;
}
.ph-card:nth-of-type(2) {
  animation-delay: 0.9s;
}
.ph-card:nth-of-type(3) {
  animation-delay: 1.05s;
}
@keyframes card-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.ph-card.hot .lot-badge {
  animation: soft-pulse 2.6s ease-in-out infinite;
}
@keyframes soft-pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(180, 67, 43, 0.1);
  }
}
.h-live {
  animation: live-dot 2.4s ease-out infinite;
}
@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 104, 85, 0.45);
  }
  80%,
  100% {
    box-shadow: 0 0 0 8px rgba(37, 104, 85, 0);
  }
}

/* Étiquettes flottantes : blanches, filet fin, chacune à son rythme. */
.ph-top,
.ph-card {
  position: relative;
}
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.35);
  font: 500 0.74rem var(--mono);
  color: var(--ink);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.float-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.chip-new {
  top: -26px;
  right: -64px;
  left: auto;
}
.chip-tech {
  top: -14px;
  right: -88px;
  left: auto;
  animation-delay: -2s;
}
.chip-tech::before {
  background: var(--new);
}
.chip-won {
  bottom: -16px;
  left: -72px;
  right: auto;
  top: auto;
  animation-delay: -4s;
}
.chip-won::before {
  background: #8c6a3f;
}
@keyframes chip-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(3px, -7px);
  }
  66% {
    transform: translate(-3px, -3px);
  }
}

/* Défilé des projets réels du jour : sobre, lent, en pause au survol. */
.ticker,
.home-ticker {
  background: #fff;
  color: var(--ink);
  border-block: 1px solid var(--hair);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tk-track {
  animation-duration: 90s;
}
.tk {
  font-size: 0.86rem;
}
.tk i {
  color: var(--mute);
}
.tk-j {
  background: transparent;
  color: var(--hot);
  border: 1px solid currentColor;
  font: 500 0.74rem var(--mono);
}

/* Survol : les cartes se soulèvent, les photos respirent. */
.h-steps li,
.h-duo article,
.h-sectors a,
.trade,
.lc,
.op,
.h-faq details {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.h-steps li:hover,
.h-duo article:hover,
.h-sectors a:hover,
.trade:hover,
.lc:hover,
.op:hover {
  transform: translateY(-3px);
  border-color: #cfcfc8;
  box-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.35);
}
.h-field a,
.h-sectors a {
  overflow: hidden;
}
.h-field img,
.h-sectors img {
  transition: transform 0.9s var(--ease);
}
.h-field a:hover img,
.h-sectors a:hover img {
  transform: scale(1.04);
}
.h-btn {
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.h-btn:active {
  transform: scale(0.98);
}
.h-faq details[open] p {
  animation: rise 0.4s var(--ease) both;
}

@media (max-width: 860px) {
  .float-chip {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .motion .rv {
    opacity: 1;
    transform: none;
  }
}

.h-login {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--mute);
}
.h-login a {
  color: var(--ink);
}
.h-band strong {
  white-space: nowrap;
}
.h-band strong {
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Réglages facultatifs repliés pendant l'inscription. */
.client details.more {
  margin: 14px 0;
  border: 1px solid var(--hair, #e6e6e1);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}
.client details.more > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  color: var(--soft);
}
.client details.more[open] > summary {
  color: var(--ink);
}

input[type=checkbox],
input[type=radio] {
  accent-color: var(--sage);
}

/* Page d'avis depuis l'e-mail. */
.mf {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 110px) 20px;
  text-align: center;
}
.mf h1 {
  font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.15 Figtree, system-ui, sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.mf-title {
  font-weight: 600;
  margin: 0 0 12px;
}
.mf p {
  color: var(--mute);
}
.mf .h-cta {
  justify-content: center;
  margin-top: 22px;
}

/* « Donner votre avis » dans l'espace client. */
.op-open {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 10px 16px;
  border: 1px solid var(--ink, #1d2b33);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #1d2b33);
  font: 600 14px/1 Figtree, system-ui, sans-serif;
  box-shadow: 0 6px 20px rgba(29, 43, 51, 0.12);
  cursor: pointer;
}
.op-open:hover {
  background: var(--ink, #1d2b33);
  color: #fff;
}
.op-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 24px;
}
.op-dialog::backdrop {
  background: rgba(29, 43, 51, 0.35);
}
.op-dialog h2 {
  margin: 0 0 14px;
  font: 800 1.35rem/1.2 Figtree, system-ui, sans-serif;
}
.op-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.op-scale input {
  position: absolute;
  opacity: 0;
}
.op-scale span {
  display: grid;
  gap: 2px;
  padding: 10px 4px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  cursor: pointer;
}
.op-scale b {
  font-size: 18px;
  color: var(--ink, #1d2b33);
}
.op-scale input:checked + span {
  border-color: var(--sage);
  background: #eef5f1;
  color: var(--ink, #1d2b33);
}
.op-scale input:focus-visible + span {
  outline: 2px solid var(--sage);
}
.op-text {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.op-text textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px;
  border: 1px solid var(--hair);
  border-radius: 10px;
}
.op-note {
  font-size: 12px;
  color: var(--mute);
}
.op-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 640px) {
  .op-open {
    bottom: 76px;
  }
}
.op-actions button {
  padding: 10px 16px;
  border: 1px solid var(--ink, #1d2b33);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #1d2b33);
  font: 600 14px/1 Figtree, system-ui, sans-serif;
  cursor: pointer;
}
.op-actions button[type="submit"] {
  background: var(--ink, #1d2b33);
  color: #fff;
}
.op-actions button:disabled {
  opacity: 0.6;
}

/* A request is running: the form cannot be sent a second time. */
.is-busy button[type='submit'],
.is-busy [data-once] {
  pointer-events: none;
  cursor: progress;
}

/* ===================== Cadre d'application de l'espace client ===================== */
/* Menu latéral fixe, barre du haut, contenu large. Couleurs et polices de Clairlot (sauge, encre, Newsreader, Figtree). */
body.in-app {
  --side-w: 252px;
  --app-bg: #f6f7f5;
  background: var(--app-bg);
}
body.in-app .site {
  max-width: none;
  background: var(--app-bg);
}
body.in-app .marketing-nav,
body.in-app .marketing-footer,
body.in-app .skip {
  display: none !important;
}
body.in-app main {
  padding: 0;
}
body.in-app .client {
  max-width: none;
  margin: 0;
  padding: 0;
}
.app {
  min-height: 100vh;
}
.app-side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--hair);
  padding: 18px 12px 14px;
  overflow-y: auto;
}
.app-side-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 18px;
}
.client .app-brand {
  font: 400 1.55rem/1 Newsreader, Georgia, serif;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.app-side-top .beta-tag {
  margin-left: 2px;
}
.app-side-close {
  display: none;
  margin-left: auto;
}
.client nav.app-nav {
  display: block;
  flex: 1;
}
.app-group + .app-group {
  margin-top: 18px;
}
.app-group-h {
  margin: 0 0 6px;
  padding: 0 10px;
  font: 600 0.68rem/1.4 Figtree, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.client .app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--soft);
  font: 500 0.92rem/1.2 Figtree, sans-serif;
  text-decoration: none;
}
.app-nav a svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.85;
}
.client .app-nav a:hover {
  background: var(--sky);
  color: var(--ink);
}
.client .app-nav a[aria-current='page'] {
  background: #e7f0ec;
  color: var(--sage-d);
  font-weight: 600;
}
.app-nav a[aria-current='page'] svg {
  opacity: 1;
}
.app-side-foot {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--hair);
  padding-top: 12px;
  margin-top: 16px;
}
.app-trial .trial-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--app-bg);
  font: 500 0.8rem/1.35 Figtree, sans-serif;
  color: var(--ink);
}
.app-trial .trial-chip a {
  grid-column: 2;
  font-weight: 600;
  color: var(--sage-d);
}
.app-trial .trial-chip.soon {
  border-color: #efd9b7;
  background: var(--warm-bg);
}
.client .app-foot-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--soft);
  font: 500 0.86rem Figtree, sans-serif;
  text-decoration: none;
}
.app-foot-link svg {
  width: 17px;
  height: 17px;
}
.client .app-foot-link:hover {
  background: var(--sky);
  color: var(--ink);
}
.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--hair);
}
.app-user .avatar {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font: 600 0.85rem Figtree, sans-serif;
}
.app-user-mail {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink);
}
.client .app-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--soft);
}
.client .app-icon-btn:hover {
  background: var(--sky);
  color: var(--ink);
}
.app-main {
  margin-left: var(--side-w);
  min-width: 0;
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 32px;
  background: rgba(246, 247, 245, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.app-burger {
  display: none !important;
}
.app-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  font: 500 0.9rem Figtree, sans-serif;
  color: var(--mute);
  white-space: nowrap;
}
.app-crumb b {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-top-actions .op-open {
  position: static;
  transform: none;
  box-shadow: none;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 0.85rem Figtree, sans-serif;
}
.app-top-actions .op-open:hover {
  border-color: var(--sage);
  color: var(--sage-d);
}
.app-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}
.app-content > .panel {
  max-width: 720px;
}
.app-content h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--ink);
}
.app-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(29, 43, 51, 0.35);
}
body.in-app .status {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 420px;
  margin: 0;
  border-radius: 10px;
}
@media (max-width: 960px) {
  .app-side {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  body.side-open .app-side {
    transform: none;
    box-shadow: 0 10px 40px rgba(29, 43, 51, 0.2);
  }
  .app-side-close {
    display: inline-grid !important;
  }
  .app-main {
    margin-left: 0;
  }
  .app-burger {
    display: inline-grid !important;
    margin-left: -8px;
  }
  .app-top {
    padding: 0 16px;
  }
  .app-content {
    padding: 20px 16px 48px;
  }
  .app-content h1 {
    font-size: 1.6rem;
  }
  body.in-app .status {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
@media (max-width: 520px) {
  .app-crumb > span:first-child,
  .app-crumb > span[aria-hidden] {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-side {
    transition: none;
  }
}

/* ----- Espace client : liste de projets ----- */
.client .app-side-close {
  display: none;
}
.app-content .ico {
  flex: none;
  vertical-align: -2px;
}
.app-content .sel-head {
  align-items: flex-end;
  margin-bottom: 18px;
}
.app-content .sel-count {
  margin: 4px 0 0;
  color: var(--soft);
}
/* « À ne pas rater » : une carte claire avec un liseré, pas un bloc sombre. */
.app-content .star {
  position: relative;
  margin: 0 0 20px;
  padding: 14px 18px 14px 20px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(29, 43, 51, 0.04);
}
.app-content .star::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--hot);
}
.app-content .star:hover {
  border-color: #d9cfc9;
}
.app-content .star-k {
  color: var(--hot);
  font-size: 0.68rem;
}
.app-content .star strong {
  font-size: 1.02rem;
}
.app-content .star-m {
  color: var(--soft);
}
.app-content .progress-label {
  display: none;
}
/* Filtres : des onglets avec compteur, sur une seule ligne avec les outils de tri. */
.app-content .stats {
  margin: 0;
  padding: 0 0 2px;
  gap: 6px;
}
.app-content .stat {
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.app-content .stat span {
  font: 600 0.85rem Figtree, sans-serif;
  color: var(--ink);
}
.app-content .stat strong {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sky);
  font: 700 0.78rem/1.4 Figtree, sans-serif;
  text-align: center;
}
.app-content .stat:hover {
  border-color: var(--sage);
}
.app-content .stat[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
}
.app-content .stat[aria-pressed='true'] strong {
  background: rgba(255, 255, 255, 0.16);
}
.app-content .toolbar {
  align-items: center;
  margin: 12px 0 8px;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.app-content .toolbar select {
  min-height: 36px;
  padding: 4px 30px 4px 10px;
  border-color: var(--hair);
  background-color: #fff;
  font-size: 0.88rem;
}
.app-content .toolbar [data-map] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-left: auto;
  border-radius: 8px;
  border: 1px solid var(--hair);
  font-size: 0.88rem;
}
.app-content .result-line {
  margin: 6px 0;
  font-size: 0.85rem;
  color: var(--mute);
}
.app-content h2.group {
  margin: 22px 0 8px;
  font: 600 0.72rem/1.4 Figtree, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
/* Cartes : lignes nettes, l'urgence portée par l'étiquette de date (les projets qui ferment aujourd'hui ne sont plus grisés). */
.app-content .lot {
  margin: 0 0 8px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: none;
  animation: none;
}
.app-content .lot.u-today {
  opacity: 1;
}
.app-content .lot.dimmed {
  opacity: 0.55;
}
.app-content .lot:hover {
  border-color: #cfdcd5;
}
.app-content .lot[open] {
  border-color: #cfdcd5;
  box-shadow: 0 12px 28px -18px rgba(29, 43, 51, 0.35);
}
.app-content .lot summary {
  gap: 14px;
  padding: 14px 16px;
  align-items: center;
}
.app-content .lot-badge {
  width: 88px;
  padding: 7px 4px;
  border-radius: 8px;
}
.app-content .lot-badge strong {
  font: 700 0.95rem/1.15 Figtree, sans-serif;
  overflow-wrap: anywhere;
}
.app-content .u-today .lot-badge strong,
.app-content .u-unknown .lot-badge strong,
.app-content .u-past .lot-badge strong {
  font-size: 0.8rem;
}
.app-content .lot-badge small {
  font-size: 0.66rem;
}
.app-content .lot h3 {
  font: 600 0.98rem/1.35 Figtree, sans-serif;
}
.app-content .lot-tags {
  margin-bottom: 5px;
}
.app-content .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  letter-spacing: 0;
}
.app-content .pill .ico {
  width: 11px;
  height: 11px;
}
.app-content .lot-meta {
  gap: 4px 16px;
  margin-top: 5px;
}
.app-content .lot-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.app-content .lot-meta .ico {
  color: var(--mute);
}
.app-content .lot-count {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--sage-d);
  font-weight: 600;
}
.app-content .chev {
  align-self: center;
  margin-top: 0;
}
.app-content .fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 640px) {
  .app-content .lot summary {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .app-content .lot-badge {
    width: 70px;
  }
  .app-content .stats {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .app-content .toolbar [data-map] {
    margin-left: 0;
  }
}
.app-content .stat[aria-pressed='true'] span,
.app-content .stat[aria-pressed='true'] strong {
  color: #fff;
}

/* Zone de dépôt du dossier : aux couleurs de Clairlot. */
.app-content .drop {
  border: 1.5px dashed #b7cdc2;
  border-radius: 12px;
  background: #f6faf8;
}
.app-content .drop-btn {
  background: var(--sage) !important;
  border-radius: 8px;
}
.app-content .drop-btn:hover {
  background: var(--sage-d) !important;
}
/* Pages en panneau (réglages, abonnement) : alignées à gauche comme les autres. */
.app-content > .panel,
.app-content .panel {
  margin-left: 0;
  border-color: var(--hair);
  border-radius: 12px;
}
/* Détail d'un projet : libellés discrets. */
.app-content .lot-body dl {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 8px 20px;
  margin: 14px 0;
  font-size: 0.92rem;
}
.app-content .lot-body dt {
  color: var(--mute);
}
.app-content .lot-body dd {
  margin: 0;
}
@media (max-width: 640px) {
  /* L'échéance devient une pastille au-dessus du titre : plus de mot coupé en deux. */
  .app-content .lot summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }
  .app-content .lot-badge {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: auto;
    padding: 3px 9px;
    border-radius: 999px;
  }
  .app-content .lot-badge strong,
  .app-content .u-today .lot-badge strong {
    display: inline;
    font-size: 0.78rem;
  }
  .app-content .lot-badge small {
    display: inline;
    margin: 0;
  }
  .app-content .lot summary .chev {
    grid-column: 2;
    grid-row: 1;
  }
  .app-content .lot-main {
    grid-column: 1 / -1;
  }
  .app-content .lot-body dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .app-content .lot-body dd {
    margin-bottom: 8px;
  }
}
.app-content label:has(> select[data-powner]),
.app-content select[data-powner] {
  max-width: 420px;
}
body.in-app .status.toast {
  left: auto;
  right: 20px;
  transform: none;
  animation: app-toast-in 0.2s ease-out;
  box-shadow: 0 12px 30px -12px rgba(29, 43, 51, 0.45);
}
@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 960px) {
  body.in-app .status.toast {
    left: 16px;
    right: 16px;
  }
}

/* Abonnement : carte de tarif. */
.app-content .plan-intro {
  margin: 0 0 18px;
}
.plan-card {
  max-width: 460px;
  padding: 22px 24px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 43, 51, 0.04), 0 16px 32px -24px rgba(29, 43, 51, 0.3);
}
.plan-name {
  margin: 0 0 6px;
  font: 600 0.78rem/1.4 Figtree, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-d);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.plan-price strong {
  font: 400 2.8rem/1 Newsreader, Georgia, serif;
  color: var(--ink);
}
.plan-price span {
  color: var(--soft);
}
.plan-sub {
  margin: 6px 0 16px;
  font-size: 0.82rem;
  color: var(--mute);
}
.plan-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 10px;
}
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
}
.plan-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e7f0ec;
}
.plan-card .actions {
  margin: 0 0 8px;
}
.plan-card .actions .btn {
  width: 100%;
  justify-content: center;
}
.plan-card .muted.small {
  margin: 0;
  font-size: 0.78rem;
}

/* Sous-onglets (Permis, Subventions, Achats prévus, Relances) : une barre d'onglets soulignés. */
.app-content .seg-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 1px solid var(--hair);
  overflow-x: auto;
  scrollbar-width: none;
}
.client .app-content .seg-row .seg-btn {
  flex: none;
  min-height: 40px;
  padding: 10px 12px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--soft);
  font: 500 0.9rem Figtree, sans-serif;
  text-decoration: none;
}
.client .app-content .seg-row .seg-btn:hover {
  color: var(--ink);
}
.client .app-content .seg-row .seg-btn[aria-current='page'] {
  color: var(--sage-d);
  border-bottom-color: var(--sage);
  font-weight: 600;
  background: none;
}
.plan-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 3px;
  height: 6px;
  border: solid var(--sage-d);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.app-content .panel:has(.plan-card) {
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.app-content .ico-auto {
  margin-right: 0.35em;
  vertical-align: -2px;
}

/* ----- Pages d'accès (connexion, inscription) : écran partagé, en-tête réduit au logo ----- */
.ico-auto {
  margin-right: 0.35em;
  vertical-align: -2px;
}
body.in-auth .mainnav,
body.in-auth .burger,
body.in-auth .marketing-footer {
  display: none !important;
}
body.in-auth .marketing-nav {
  border-bottom: 0;
  background: transparent;
}
body.in-auth .client {
  max-width: 1160px;
  padding: 8px 24px 48px;
}
body.in-auth .auth {
  min-height: calc(100vh - 140px);
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 16px 0;
}
body.in-auth .auth-card {
  border-color: var(--hair);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(29, 43, 51, 0.04), 0 24px 48px -32px rgba(29, 43, 51, 0.35);
  animation: none;
}
body.in-auth .auth-card .btn.full {
  border-radius: 10px;
}
.auth-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 520px;
  padding: 40px;
  border-radius: 20px;
  background: var(--sage-d);
  color: #e8f2ed;
}
.auth-side-k {
  margin: 0;
  font: 400 1.4rem/1 Newsreader, Georgia, serif;
  color: #fff;
}
.client .auth-side h2 {
  margin: 0;
  font: 400 2rem/1.15 Newsreader, Georgia, serif;
  color: #fff;
}
.auth-side ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-side li {
  display: grid;
  gap: 2px;
  padding-left: 26px;
  position: relative;
}
.auth-side li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.auth-side li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  width: 3px;
  height: 6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-side li b {
  color: #fff;
  font-weight: 600;
}
.auth-side li span {
  font-size: 0.9rem;
  color: #c9ddd3;
}
.auth-sample {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.5);
}
.auth-sample-k {
  font: 600 0.68rem Figtree, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.auth-sample-d {
  grid-row: span 2;
  align-self: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--hot-bg);
  color: var(--hot);
  font: 700 0.9rem Figtree, sans-serif;
}
.auth-sample strong {
  font-size: 0.95rem;
}
.auth-sample small {
  grid-column: 1 / -1;
  color: var(--soft);
}
.auth-side-foot {
  margin: 0;
  font-size: 0.78rem;
  color: #a9c6b8;
}
@media (max-width: 960px) {
  body.in-auth .auth {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }
  .auth-side {
    width: 100%;
    max-width: 440px;
    padding: 24px;
  }
  .client .auth-side h2 {
    font-size: 1.5rem;
  }
  .auth-sample {
    display: none;
  }
}
/* Projet ouvert : le titre complet est déjà dans l'en-tête de la carte. */
.app-content .lot[open] .full-title {
  display: none;
}
.app-content .lot-body {
  padding: 4px 18px 18px 118px;
}
@media (max-width: 640px) {
  .app-content .lot-body {
    padding: 0 12px 14px;
  }
}

/* Équipe : membres à gauche, invitation à droite. */
.tm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.tm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
}
.tm-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}
.tm-row + .tm-row {
  border-top: 1px solid var(--hair);
}
.tm-row .avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font: 600 0.85rem Figtree, sans-serif;
}
.tm-row .avatar.wait {
  background: var(--sky);
  color: var(--soft);
}
.tm-who {
  display: grid;
  min-width: 0;
}
.tm-who b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-who small {
  color: var(--mute);
}
.tm-status {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f0ec;
  color: var(--sage-d);
  font: 600 0.75rem Figtree, sans-serif;
}
.tm-status.wait {
  background: var(--warm-bg);
  color: var(--warm);
}
.tm-invite {
  padding: 18px 20px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
}
.client .tm-invite h2 {
  margin: 0 0 4px;
  font: 600 1.05rem Figtree, sans-serif;
}
.tm-invite label {
  margin: 14px 0 10px;
}
.tm-invite .btn {
  width: 100%;
  justify-content: center;
  border-radius: 10px;
}
.tm-invite .small {
  margin: 8px 0 0;
}
@media (max-width: 860px) {
  .tm-grid {
    grid-template-columns: 1fr;
  }
  .tm-row {
    grid-template-columns: auto 1fr;
  }
  .tm-row .tm-status,
  .tm-row .btn {
    grid-column: 2;
    justify-self: start;
  }
}
.client .app-content .seg-row .seg-btn b,
.client .app-content .seg-row .seg-btn span {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--soft);
  font-size: 0.75rem;
}
/* États vides : une carte calme, pas un cadre en pointillés. */
.app-content .empty {
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  padding: 36px 24px;
}
.client .app-content .empty h2 {
  font: 600 1.05rem Figtree, sans-serif;
  margin: 0 0 6px;
}
.app-content .empty p {
  color: var(--soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
/* Onglets « Qui a gagné » : même barre soulignée que les autres pages. */
.app-content .d-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--hair);
  overflow-x: auto;
  scrollbar-width: none;
}
.client .app-content .d-tabs button {
  flex: none;
  min-height: 40px;
  padding: 10px 12px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--soft);
  font: 500 0.9rem Figtree, sans-serif;
}
.client .app-content .d-tabs button[aria-selected='true'] {
  color: var(--sage-d);
  border-bottom-color: var(--sage);
  font-weight: 600;
  background: none;
}
.client .app-content .d-tabs button b {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--soft);
  font-size: 0.75rem;
}

/* ----- Liste publique des appels d'offres ----- */
.lf-head .h-lead {
  margin-left: 0;
  max-width: 760px;
}
/* Détail réservé : une ligne nette avec un cadenas, pas de faux texte flouté. */
.lc-lock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-radius: 0;
  border-top: 1px solid var(--hair);
  background: none;
  overflow: visible;
}
.lc-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--mute);
}
.lc-cta {
  position: static;
  inset: auto;
  display: inline;
  background: none;
  font: 600 0.82rem Figtree, sans-serif;
  color: var(--sage-d) !important;
  text-decoration: none;
}
.lc-cta:hover {
  text-decoration: underline;
}
.lc {
  opacity: 1 !important;
  transform: none !important;
}
.lc-ico {
  flex: none;
}

/* ----- Guides : index en liste éditoriale, article avec sommaire ----- */
.gx-head,
.gx-list,
.gx-page {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(16px, 5vw, 72px);
  padding-right: clamp(16px, 5vw, 72px);
}
.gx-head {
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: 28px;
}
.gx-head h1 {
  font: 800 clamp(2rem, 5vw, 3.2rem)/1.08 Figtree, sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 820px;
}
.gx-head h1 em,
.gx-head h1 em {
  font-style: normal;
  color: var(--sage);
}
.gx-head .h-lead,
.gx-title .h-lead {
  margin: 0;
  max-width: 680px;
  color: var(--soft);
}
.gx-list {
  padding-bottom: 72px;
}
.gx-list .guides,
.gx-more .guides {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.guide {
  border-radius: 14px;
  border-color: var(--hair);
  padding: 22px 22px 20px;
  gap: 8px;
  align-content: start;
}
.guide:hover {
  transform: none;
  border-color: var(--sage);
  box-shadow: 0 10px 24px -18px rgba(24, 59, 50, 0.45);
}
.guide .g-k {
  font: 600 0.75rem Figtree, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mute);
}
.guide h3 {
  font: 700 1.1rem/1.3 Figtree, sans-serif;
}
.guide p {
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide b {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.gx-page {
  padding-top: 28px;
  padding-bottom: 72px;
}
.gx-crumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mute);
}
.gx-crumb a {
  color: var(--soft);
  text-decoration: none;
}
.gx-crumb a:hover {
  color: var(--sage-d);
  text-decoration: underline;
}
.gx-title {
  max-width: 760px;
  padding: 28px 0 8px;
}
.gx-title h1 {
  font: 800 clamp(2rem, 4.6vw, 2.9rem)/1.1 Figtree, sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.gx-body {
  display: grid;
  grid-template-columns: minmax(0, 720px) 240px;
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}
.gx-body .sx-article {
  max-width: none;
  margin: 0;
  padding: 0;
}
.gx-body .sx-article section {
  scroll-margin-top: 90px;
}
.gx-body .sx-article h2 {
  font: 700 1.3rem/1.3 Figtree, sans-serif;
  margin: 34px 0 8px;
}
.gx-body .sx-article p {
  font-size: 1.04rem;
  line-height: 1.75;
}
.gx-body .sx-cta {
  border-radius: 14px;
  padding: 24px;
}
.gx-body .sx-cta b {
  font-size: 1.1rem;
}
.gx-body .sx-note {
  padding: 0;
  margin-top: 18px;
}
.gx-toc {
  position: sticky;
  top: 96px;
  margin-top: 34px;
  padding-left: 16px;
  border-left: 1px solid var(--hair);
}
.gx-toc p {
  margin: 0 0 10px;
  font: 600 0.75rem Figtree, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.gx-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.gx-toc a {
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
}
.gx-toc a:hover {
  color: var(--sage-d);
}
.gx-more {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.gx-more h2 {
  font: 700 1.2rem Figtree, sans-serif;
  margin: 0 0 16px;
}
@media (max-width: 960px) {
  .gx-body {
    grid-template-columns: 1fr;
  }
  .gx-toc {
    display: none;
  }
}
.gx-body .sx-note {
  font-size: 0.85rem;
}

/* ----- Pages secteurs ----- */
/* Le chapeau suit le titre à gauche (le centrage ne vaut que pour l'accueil). */
.sx-hero .h-lead,
.lf-head .h-lead {
  margin-inline: 0;
}
/* Projets réservés : texte net, une mention claire, rien de flouté. */
.op.lock .op-b,
.op.lock .op-b * {
  filter: none !important;
  user-select: auto;
}
.op.lock {
  position: relative;
}
.op-locked {
  color: var(--mute);
}
.client .op-unlock,
.op-unlock {
  position: static;
  inset: auto;
  align-self: center;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: #fff;
  color: var(--sage-d) !important;
  font: 600 0.82rem Figtree, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.op-unlock:hover {
  border-color: var(--sage);
}
.sx-hero .h-cta,
.sx-hero .h-trust {
  justify-content: flex-start;
}

/* Menu latéral : jamais de défilement horizontal, le texte de la bêta passe à la ligne. */
.app-side {
  overflow-x: hidden;
}
.app-side * {
  min-width: 0;
}
.app-trial .trial-chip,
.app-trial .trial-chip * {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Listes déroulantes : arrondies, chevron discret, plus de case grise du navigateur. */
.client select,
.lf-region select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #5d6b72 50%),
    linear-gradient(135deg, #5d6b72 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 52%,
    calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--ink);
  font: 500 0.88rem Figtree, sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.client select:hover,
.lf-region select:hover {
  border-color: #c9d3cf;
}
.client select:focus-visible,
.lf-region select:focus-visible {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(37, 104, 85, 0.15);
}
.client select::-ms-expand {
  display: none;
}
.app-content .toolbar select {
  border-radius: 10px;
  padding-right: 34px;
}
/* Priorité sur les anciennes règles « .client .toolbar select { background: … } ». */
.client .app-content select,
.client .app-content .toolbar select,
.client .auth select,
.marketing .lf-region select,
.lf-filters .lf-region select {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #5d6b72 50%),
    linear-gradient(135deg, #5d6b72 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 52%,
    calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  border-radius: 10px;
}

/* Préparer ma candidature : ce que le projet apporte sous chaque étape. */
.response-box .check-extra {
  margin: 4px 0 0 30px;
  font-size: 0.84rem;
  color: var(--soft, #56646c);
}
.response-box .check-extra a {
  color: var(--sage-d);
  font-weight: 600;
}
.response-box .check-extra .hint-hot {
  color: var(--hot, #b0412e);
}
.response-box .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Liste de candidature : case à gauche, texte à droite, lignes compactes. */
.client .app-content .response-box {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
}
.client .app-content .response-box h2 {
  margin: 0 0 2px;
  font: 600 1.15rem Figtree, sans-serif;
}
.client .app-content .response-box .sel-count {
  margin: 0 0 14px;
  font-size: 0.88rem;
}
.client .app-content .response-box .checklist {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hair);
  border-radius: 10px;
}
.client .app-content .response-box .checklist li {
  margin: 0;
  padding: 11px 14px;
}
.client .app-content .response-box .checklist li + li {
  border-top: 1px solid var(--hair);
}
.client .app-content .response-box .check-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 400;
}
.client .app-content .response-box .check-line input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--sage);
}
.client .app-content .response-box .check-line span {
  display: grid;
  gap: 2px;
}
.client .app-content .response-box .check-line b {
  font-weight: 600;
  font-size: 0.93rem;
}
.client .app-content .response-box .check-line small {
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.45;
}
.client .app-content .response-box .check-line input:checked + span b {
  color: var(--mute);
  text-decoration: line-through;
}
.client .app-content .response-box .check-extra {
  margin: 6px 0 0 32px;
}

/* ----- Pages légales : même cadre que les guides ----- */
.legal-page {
  background: none;
}
.legal-page .legal {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.legal-page .gx-body.solo {
  grid-template-columns: minmax(0, 760px);
}
.legal-page .gx-title .h-lead,
.legal-page .gx-title .lead {
  margin: 0;
  max-width: 680px;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
}
.legal-page .legal h2 {
  scroll-margin-top: 90px;
  margin: 34px 0 10px;
  padding-top: 0;
  border-top: 0;
  font: 700 1.2rem/1.3 Figtree, sans-serif;
  color: var(--ink);
}
.legal-page .legal h2:first-child {
  margin-top: 6px;
}
.legal-page .legal p,
.legal-page .legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: #33434b;
}
.legal-page .legal dl {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.legal-page .legal dt,
.legal-page .legal dd {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--hair);
  line-height: 1.55;
}
.legal-page .legal dt:first-of-type,
.legal-page .legal dt:first-of-type + dd {
  border-top: 0;
}
.legal-page .legal dt {
  color: var(--mute);
  font-size: 0.9rem;
  background: #fafbfa;
}
.legal-page .legal dd {
  color: var(--ink);
}
@media (max-width: 640px) {
  .legal-page .legal dl {
    grid-template-columns: 1fr;
  }
  .legal-page .legal dd {
    border-top: 0;
    padding-top: 0;
  }
}
.legal-page .legal dl {
  gap: 0;
  column-gap: 0;
}
.legal-page .gx-title {
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}
