:root {
  --soho-bleu: #0871bb;
  --soho-vert: #004b33;
  --soho-vert-actif: #5ab500;
  --soho-sable: #f6eee6;
  --soho-sable-2: #f3d8ca;
  --soho-texte: #10241e;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--soho-texte);
  background: var(--soho-sable);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, a, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8dc900;
  outline-offset: 3px;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, #fff0e6, #f3d8ca);
}

.shell,
.topbar-inner,
.nav-inner,
.expertise,
.footer-inner,
.inner-page,
.inner-wide {
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(95deg, #fff2e9, #f6d8cc);
  position: relative;
  z-index: 10;
}

.topbar-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
}

.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 24px;
  padding: 0;
  color: #0b2320;
  text-decoration: none;
}

.brand-logo {
  width: 142px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.brand-rule {
  height: 50px;
  width: 1px;
  background: #a2aaa2;
  flex: none;
}

.brand-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-details strong {
  font-size: 19px;
  letter-spacing: -0.4px;
}

.brand-details small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3a4a42;
}

.brand-details small .sep { margin-left: 8px; }

.topbar-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.icon-button,
.icon-btn {
  border: 0;
  background: transparent;
  color: #092a23;
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  text-decoration: none;
  position: relative;
}

.notice-btn i,
.icon-button .dot {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #e62424;
  border-radius: 50%;
  border: 2px solid #fff;
}

.avatar {
  border: 0;
  background: #00613d;
  color: #fff;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.btn-link {
  background: transparent;
  border: 0;
  color: #0a548e;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn-link.danger { color: #b42318; }

.mobile-menu { display: none; }

.nav,
.nav-bar {
  background: #004b33;
  color: #fff;
  position: relative;
  z-index: 5;
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
}

.nav-item,
.nav-link {
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.nav-item:hover,
.nav-link:hover:not(.active) {
  background: #ffffff19;
}

.nav-item.active,
.nav-link.active {
  background: linear-gradient(110deg, #90d900, #5ab500);
  box-shadow: inset 0 -2px 0 #b8ed4a;
}

.search,
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3ed;
  border-radius: 24px;
  color: #213a31;
  padding: 0 15px;
  height: 41px;
  min-width: 230px;
}

.search input,
.search-box input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  color: #12281f;
}

/* ——— Hero maquette : photo + profil gauche, panneau droit ——— */
.hero {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 610px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #f8e3d6, #f4d5ca);
}

.hero-left {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #0a2f24;
}

.hero-photo {
  background-size: cover;
  background-position: 48% center;
  min-height: 360px;
  flex: 1 1 auto;
  background-image: url("/soho-office-full.jpg");
}

.hero-profil,
.hero-profil-invite {
  background: linear-gradient(180deg, #0f3d30, #0a2f24);
  color: #f4f7f5;
  padding: 16px 18px 20px;
  border-top: 1px solid #1f5a45;
}

.hero-profil-invite {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-profil-invite .btn-primary {
  text-decoration: none;
}

.hero-profil {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px 16px;
  align-items: start;
}

.hero-profil-photo {
  grid-row: span 2;
  text-align: center;
}

.hero-profil-photo img,
.profil-photo-fallback {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  background: #00613d;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.profil-photo-btn {
  display: inline-block;
  font-size: 11px;
  color: #b7dcc8;
  cursor: pointer;
  text-decoration: underline;
}

.hero-profil-infos strong {
  display: block;
  font-size: 15px;
}

.hero-profil-infos .meta-ligne,
.hero-profil .meta-ligne {
  color: #b7dcc8;
}

.hero-profil .btn-link {
  color: #d7f0e2;
}

.profil-mdp {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #1f5a45;
}

/* Bloc compte sur Mon profil (photo + mot de passe) */
.profil-compte {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px 16px;
  align-items: start;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #d7e3db;
  border-radius: 14px;
  background: #f7faf8;
  color: #173b30;
}
.profil-compte .hero-profil-photo {
  grid-row: span 2;
  text-align: center;
}
.profil-compte .profil-photo-btn {
  color: #0f5c3d;
}
.profil-compte .meta-ligne {
  color: #526c61;
}
.profil-compte .profil-mdp {
  border-top-color: #d7e3db;
}
.profil-compte .profil-mdp h2 {
  color: #173b30;
}

.profil-mdp h2 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #e8f6ee;
}

.profil-mdp label {
  color: #d5e8dd;
  font-size: 12px;
}

.profil-mdp input {
  width: 100%;
  margin-top: 4px;
}

.services-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.service-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid #d8e1db;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, #f4f8f5);
  text-decoration: none;
  color: inherit;
  min-height: 120px;
  transition: border-color 0.15s, transform 0.15s;
}

.service-hub-card:hover {
  border-color: #064b36;
  transform: translateY(-2px);
}

.service-hub-card strong {
  color: #064b36;
  font-size: 16px;
}

.service-hub-card span {
  font-size: 13px;
  color: #4a5c54;
  line-height: 1.4;
}

.hero-content {
  position: relative;
  padding: 54px clamp(28px, 5vw, 92px) 62px 54px;
  background: linear-gradient(115deg, #f8dfd2ed, #f8e3d9f5 55%, #eec6b8ed);
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -54px;
  top: -20px;
  bottom: -20px;
  width: 92px;
  background: inherit;
  border-radius: 50% 0 0 50%;
  transform: skew(-6deg);
  pointer-events: none;
}

.hero-content > * { position: relative; }

.accent-line,
.accent {
  width: 92px;
  height: 7px;
  background: #67b900;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 3.4vw, 55px);
  line-height: 1.11;
  letter-spacing: -1.8px;
  margin: 0 0 24px;
  color: #10291f;
  max-width: 740px;
}

.hero h1 em {
  font-style: normal;
  color: #398b11;
}

.hero p {
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 720px;
  color: #24352c;
}

.service-grid,
#missions.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  border: 1px solid #fff9f1;
  background: linear-gradient(145deg, #f8f5e6df, #f0e5c9d9);
  border-radius: 24px;
  padding: 20px 18px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 232px;
  color: #11261d;
  box-shadow: 0 8px 24px #7658471c;
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #7658472e;
}

.service-card:nth-child(2) {
  background: linear-gradient(145deg, #fff4e8ed, #f8d7afe3);
}

.service-card:nth-child(3) {
  background: linear-gradient(145deg, #fcece8ed, #f5c5bbe3);
}

.service-icon {
  color: #337c0d;
  background: #ffffff77;
  border-radius: 14px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex: none;
}

.service-card strong {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.25;
}

.arrow {
  align-self: flex-end;
  margin-top: auto;
  background: #277c08;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.no-results,
.empty {
  grid-column: 1 / -1;
  color: #5b6b61;
  padding: 8px 0;
}

.expertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -25px;
  margin-bottom: 28px;
  padding: 22px 25px;
  border: 1px solid #fff8f0;
  background: #fff5ebc9;
  backdrop-filter: blur(12px);
  border-radius: 28px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 22px #73513b1a;
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 4px 16px;
  color: #206c19;
}

.expertise-item:not(:last-child) {
  border-right: 1px solid #b9aaa1;
}

.expertise-item div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #172a22;
}

.expertise-item strong { font-size: 16px; }
.expertise-item span { font-size: 13px; color: #42544a; }

.page[hidden] { display: none !important; }

.inner-page,
.secondary {
  min-height: 45vh;
  padding: 60px 0 40px;
}

.inner-wide { width: min(1440px, calc(100% - 72px)); }

.inner-page h1,
.secondary h1 {
  font-size: 36px;
  margin: 0 0 16px;
  color: #10291f;
}

.inner-page p,
.secondary p {
  font-size: 17px;
  line-height: 1.6;
  color: #44546b;
  margin: 0 0 24px;
}

.accent-line + h1 { margin-top: 0; }

.back,
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #08603b;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 650;
}

.btn-muted {
  background: #f0e4da;
  color: #0c315e;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 650;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.page-head h1 { margin: 0; }

.msg {
  padding: 12px 14px;
  border-radius: 10px;
  background: #eaf6ff;
  color: #0c315e;
  margin: 0 0 16px;
}
.msg.erreur { background: #fdecea; color: #8a1f11; }
.msg.ok { background: #e8f8ec; color: #0d5c2e; }

.panel {
  background: #fff5ebc9;
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #fff8f0;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #44546b;
  font-size: 14px;
}

.filtre {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filtre select,
.form-stack input,
.form-stack textarea,
.form-stack select,
.dialog label > input:not([type="checkbox"]):not([type="radio"]),
.dialog label > select,
.dialog label > textarea {
  border: 1px solid #d4c0b4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf9;
  color: #0c254c;
  width: 100%;
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #e1cfc2;
  background: #fffdf9;
  max-height: 60vh;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #efe2d8;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #fff3ed;
  cursor: pointer;
  user-select: none;
}

.data-table tbody tr:hover { background: #fff8f2; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef3f8;
  color: #334a65;
}
.badge.actif { background: #e0f7e5; color: #0d5c2e; }
.badge.invite { background: #fff4d6; color: #8a5a00; }
.badge.desactive { background: #fdecea; color: #8a1f11; }
.badge.gele { background: #eee6ff; color: #4b2d86; }

/* ——— Connexion type PAM (sans date de naissance) ——— */
body.page-connexion {
  background: #fff;
}

body.page-connexion .app {
  background: #fff;
  min-height: 100vh;
}

body.page-connexion .topbar,
body.page-connexion .nav,
body.page-connexion .footer,
body.page-connexion .bottom-nav,
body.page-connexion .soho-rail,
body.page-connexion .soho-tabs {
  display: none !important;
}

body.page-connexion #contenu {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.page-connexion .page-connexion {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.scene-connexion {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  background: #fff;
}

#entete-connexion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 18px 24px 0;
}

.logo-connexion {
  width: 155px;
  max-width: 48vw;
  height: auto;
  object-fit: contain;
}

.marque-connexion {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #004b33;
}

.sous-marque-connexion {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #53647b;
}

#ecran-identification,
#ecran-canal,
#ecran-otp {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 24px 24px 16px;
}

#ecran-identification[hidden],
#ecran-canal[hidden],
#ecran-otp[hidden] {
  display: none !important;
}

.titre-vue {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  color: #004b33;
}

.scene-connexion .intro,
#otp-compte-a-rebours {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #53647b;
}

#ecran-identification label,
#ecran-canal label,
#ecran-otp label {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #004b33;
}

#ecran-identification label:has(+ .ui2-aide) {
  margin-bottom: 4px;
}

.ui2-aide {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: #6b7c90;
}

.captcha-rappel {
  margin-top: -6px;
  color: #8a5a00;
  font-weight: 600;
}

.etoile { color: #c4322a; }

#ecran-identification input,
#ecran-otp input,
#ecran-canal input {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}

#ecran-otp input {
  font-size: 18px;
  letter-spacing: 0.35em;
  text-align: center;
}

.scene-connexion .message {
  margin: 0 0 8px;
  min-height: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #8a1f11;
  text-align: center;
}

.scene-connexion .message:empty {
  display: none;
}

.scene-connexion .message.ok {
  color: #0d5c2e;
}

#continuer,
#canal-email,
#valider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #0871bb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.carte-canal {
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid #dce4ef;
  text-align: left;
}

.carte-canal-titre {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #004b33;
}

#canal-email-masque {
  margin: 0;
  font-size: 13px;
  color: #53647b;
}

.scene-connexion button.retour {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #0871bb;
  font-size: 14px;
  font-weight: 600;
}

.scene-connexion .etape {
  margin: auto 0 8px;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #6b7c90;
}

.aide-connexion {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #6b7c90;
}

.aide-connexion a {
  color: #0871bb;
  text-decoration: none;
  font-weight: 600;
}

.form-stack {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 18px 0 28px;
}

.form-stack label,
.dialog label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #334a65;
}

.meta-ligne { color: #44546b; margin: 0 0 8px; }

.dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(92vw, 420px);
  box-shadow: 0 20px 50px #0b315c33;
  background: #fff6ee;
}

.dialog.dialog-devis {
  width: min(96vw, 720px);
}

/* Recherche asynchrone (clients / articles) */
.soho-ra-mount,
.soho-ra {
  position: relative;
  min-width: min(100%, 280px);
  width: 100%;
}
.soho-ra-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c5d2de;
  border-radius: 10px;
  background: #fff;
  padding: 4px 8px;
}
.soho-ra-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  min-width: 0;
  padding: 6px 2px;
}
.soho-ra-clear {
  border: 0;
  background: transparent;
  color: #5a6d82;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.soho-ra-spin {
  width: 14px;
  height: 14px;
  border: 2px solid #c5d2de;
  border-top-color: #08603d;
  border-radius: 50%;
  animation: soho-ra-spin 0.7s linear infinite;
}
@keyframes soho-ra-spin {
  to { transform: rotate(360deg); }
}
.soho-ra-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: min(40vh, 280px);
  overflow: auto;
  background: #fff;
  border: 1px solid #c5d2de;
  border-radius: 10px;
  box-shadow: 0 12px 28px #0b315c22;
}
.soho-ra-opt {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #17342c;
}
.soho-ra-opt:hover,
.soho-ra-opt.is-active {
  background: #eef6f1;
}
.soho-ra-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #08603d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.soho-ra-more {
  padding: 6px 10px;
  text-align: center;
}
.soho-ra-more-btn {
  border: 0;
  background: transparent;
  color: #08603d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.soho-ra-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.soho-ra-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef6f1;
  color: #17342c;
  font-size: 12px;
  max-width: 100%;
}
.soho-ra-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #5a6d82;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.soho-ra-hint {
  margin: 4px 0 0;
  font-size: 12px;
}
@media (max-width: 720px) {
  .soho-ra-mount { min-width: 100%; }
  .soho-ra-list { max-height: 45vh; }
}

.catalogue-picker-liste {
  max-height: min(42vh, 320px);
  overflow: auto;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  background: #fff;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
}

.dialog .catalogue-picker-liste label,
.catalogue-picker-liste label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #17342c;
  white-space: normal;
}

.catalogue-picker-liste label:hover {
  background: #f3f7fb;
}

.dialog .catalogue-picker-liste input[type="checkbox"],
.catalogue-picker-liste input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #9bb0a4;
  border-radius: 3px;
  background: #fff;
  accent-color: #08603d;
}

.catalogue-picker-liste .picker-texte {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.catalogue-picker-liste .ref {
  color: #5a6d82;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
}

.devis-lignes-table {
  width: 100%;
  margin: 12px 0;
  font-size: 13px;
}

.devis-signature-choix {
  margin: 12px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.devis-signature-choix label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
  color: #334155;
}
.devis-signature-choix select {
  min-width: 220px;
  padding: 6px 10px;
  border: 1px solid #c5d0c8;
  border-radius: 8px;
  background: #fff;
}
.devis-ajout-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 8px 0 16px;
}

.dialog::backdrop { background: #061c17a8; }

.dialog form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.dialog h2 { margin: 0 0 4px; font-size: 22px; }

.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dialog-error {
  margin: 0;
  color: #8a1f11;
  font-size: 14px;
}

.fiche-grille {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 8px 16px;
  margin: 0 0 28px;
  padding: 18px 20px;
  background: #fff5ebc9;
  border: 1px solid #fff8f0;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.fiche-grille dt {
  margin: 0;
  font-weight: 700;
  color: #206c19;
  font-size: 13px;
}

.fiche-grille dd {
  margin: 0;
  color: #172a22;
}

.liste-demandes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.liste-demandes li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffdf9;
  border: 1px solid #e1cfc2;
  margin-bottom: 8px;
  font-size: 14px;
}

.sous-titre {
  margin: 28px 0 12px;
  font-size: 22px;
  color: #10291f;
}

.form-parametres {
  max-width: 640px;
}

.form-parametres label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.form-parametres label:has(input[type="checkbox"]) input {
  width: auto;
}

.bloc-calcul {
  background: #fffdf9;
  border: 1px solid #e1cfc2;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  overflow: auto;
  max-width: 640px;
}

.admin-pane {
  margin-top: 12px;
}

.tabs,
.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.tabs .tab {
  border: 1px solid #cbb9a8;
  background: #fffdf9;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  color: #10291f;
  white-space: nowrap;
  flex: 0 0 auto;
  border-radius: 8px;
}

.tabs .tab.actif {
  background: #064b33;
  color: #fff;
  border-color: #064b33;
}

.suivi-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}
.suivi-kpi {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 12px 14px;
  background: #f4faf5;
  border: 1px solid #d5e6d8;
  border-radius: 8px;
}
.suivi-kpi span {
  display: block;
  font-size: 0.82rem;
  color: #52665e;
  margin-bottom: 4px;
}
.suivi-kpi strong {
  font-size: 1.05rem;
  color: #064b33;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  color: #4c7962;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.admin-filters {
  flex-wrap: wrap;
}

.audit-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) minmax(140px, 1fr) minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: end;
  background: #fbf6f2;
  border: 1px solid #e8dcd2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.audit-filters label {
  font-size: 12px;
  font-weight: 700;
  color: #365549;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.audit-filters input,
.audit-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfc7bf;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #173b2c;
  font: inherit;
  font-size: 13px;
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 4px 2px 12px;
  font-size: 12px;
  color: #66766d;
}

.audit-table {
  border: 1px solid #e4dcd4;
  border-radius: 12px;
}

.audit-table .date-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.action-pill {
  display: inline-block;
  background: #eaf3eb;
  color: #18583c;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
}

.audit-alert {
  padding: 10px;
  background: #fff0e6;
  border: 1px solid #e6c9b2;
  border-radius: 7px;
  color: #8a5a00;
  margin: 0 0 12px;
}

.empty {
  padding: 20px;
  text-align: center;
  color: #66766d;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #11271e77;
  z-index: 99;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop[hidden] {
  display: none !important;
}

.audit-drawer {
  width: min(450px, 100%);
  height: 100%;
  background: #fffaf6;
  padding: 28px;
  box-shadow: -12px 0 40px #0002;
  overflow: auto;
}

.audit-drawer h2 {
  margin: 10px 0 24px;
  font-size: 22px;
}

.audit-drawer dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.audit-drawer dt {
  font-size: 12px;
  font-weight: 700;
  color: #688074;
  margin-top: 14px;
}

.audit-drawer dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.drawer-close {
  float: right;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #334a65;
}

@media (max-width: 900px) {
  .audit-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .audit-filters {
    grid-template-columns: 1fr;
  }
  .admin-section-head {
    flex-direction: column;
  }
}

.guide-md {
  line-height: 1.55;
  max-width: 860px;
}
.guide-md h2 { margin-top: 0; color: #102b26; }
.guide-md h3 { margin-top: 1.2em; color: #17362b; }
.guide-md code {
  font-family: ui-monospace, Consolas, monospace;
  background: #f3eee8;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}
.guide-md .doc-table-line {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
#doc-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
#doc-liste .meta-ligne {
  flex: 1 1 100%;
  margin: 0 0 4px;
}

#exports-liste {
  margin-top: 16px;
}

.cat-heading-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cat-secondary,.btn-grabbing{
  border:1px solid #0b5b32;background:#fffaf7;color:#0b5b32;border-radius:10px;
  padding:10px 14px;font-weight:700;cursor:pointer;font:inherit
}
.dialog-grabbing{max-width:min(760px,96vw)}
.grabbing-resume{
  background:#f4f8ed;border:1px solid #d6e2d0;border-radius:10px;padding:12px 14px;margin:10px 0;font-size:13px
}
.grabbing-resume strong{color:#0b5b32}
.grabbing-table-wrap{max-height:240px;overflow:auto;margin:10px 0}
.grabbing-match-ok{color:#0b5b32;font-weight:600}
.grabbing-match-no{color:#9a5d18}

#exports-liste a {
  color: #064b33;
}

.footer {
  margin-top: auto;
  background: #064b33;
  color: #fff;
}

.footer-inner {
  min-height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  padding: 12px 0;
}

.footer-inner > span,
.footer-inner > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.brand-logo-footer {
  height: 40px;
  width: auto;
  /* Logo couleur transparent — pas d’inversion sur le bandeau vert */
  filter: none;
}

.bottom-nav,
.mobile-bottom {
  display: none;
}

@media (max-width: 1100px) {
  .shell,
  .topbar-inner,
  .nav-inner,
  .expertise,
  .footer-inner,
  .inner-page,
  .inner-wide {
    width: min(100% - 40px, 1100px);
  }

  .brand-details small { font-size: 11px; }

  .hero { grid-template-columns: 39% 61%; }

  .hero-content { padding: 42px 28px 52px 36px; }

  .service-grid { gap: 9px; }

  .service-card {
    padding: 15px 12px;
    min-height: 225px;
  }

  .expertise-item {
    gap: 10px;
    padding: 2px 6px;
  }
}

@media (max-width: 760px) {
  .shell,
  .topbar-inner,
  .nav-inner,
  .expertise,
  .footer-inner,
  .inner-page,
  .inner-wide {
    width: calc(100% - 28px);
  }

  .topbar-inner { height: 66px; }

  .brand { gap: 8px; }

  .brand-logo {
    width: 116px;
    height: 52px;
  }

  .brand-rule,
  .brand-details,
  .desktop-chevron {
    display: none;
  }

  .header-actions,
  .topbar-actions { gap: 5px; }

  .avatar {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .mobile-menu { display: grid; }

  .nav,
  .nav-bar { display: none; }

  .nav.nav-open,
  .nav-bar.expanded { display: block; }

  .nav-inner {
    height: auto;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .nav-item,
  .nav-link {
    font-size: 13px;
    padding: 10px;
    border-radius: 12px;
  }

  .search,
  .search-box { width: 100%; min-width: 0; }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-photo {
    min-height: 310px;
    background-size: cover;
    background-position: center 54%;
  }

  .hero-content {
    padding: 26px 19px 38px;
    background: linear-gradient(130deg, #fbe6d8, #f4d3c6);
  }

  .hero-content::before { display: none; }

  .accent-line,
  .accent {
    width: 55px;
    height: 5px;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(27px, 7vw, 36px);
    line-height: 1.14;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .desktop-break { display: none; }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 70px;
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-radius: 17px;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    margin: 0;
  }

  .service-card strong {
    font-size: 14px;
    flex: 1;
  }

  .arrow {
    margin: 0;
    align-self: center;
    width: 28px;
    height: 28px;
  }

  .expertise {
    margin: 0 auto 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 0 0 22px 22px;
  }

  .expertise-item { padding: 8px 4px; }

  .expertise-item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #dbc9bd;
    padding-bottom: 14px;
  }

  .expertise-item strong { font-size: 14px; }
  .expertise-item span { font-size: 12px; }

  .footer {
    padding-bottom: 88px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bottom-nav,
  .mobile-bottom {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #034b33;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px #10271d33;
  }

  .bottom-nav a,
  .mobile-bottom a,
  .mobile-bottom button {
    background: transparent;
    border: 0;
    color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    padding: 7px 2px;
    border-radius: 12px;
    text-decoration: none;
    min-height: 54px;
  }

  .bottom-nav a.active,
  .mobile-bottom a.active,
  .mobile-bottom button.active {
    background: #4a9805;
    font-weight: 700;
  }

  .inner-page,
  .secondary {
    min-height: calc(100vh - 160px);
    padding-top: 36px;
  }

  .inner-page h1,
  .secondary h1 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-item,
  .service-card,
  .back,
  .btn-primary {
    transition: background-color 0.18s, color 0.18s, transform 0.15s;
  }
}

/* ——— Correctif v2 : photo complète + bandeau compact superposé ——— */
@media (min-width: 761px) {
  .hero {
    grid-template-columns: 43% 57%;
    min-height: 700px;
    overflow: hidden;
  }

  .hero-photo {
    min-height: 420px;
    background-size: cover;
    background-position: center 57%;
  }

  .hero-content {
    padding: 46px clamp(24px, 3.4vw, 65px) 126px 38px;
  }

  .hero h1 {
    font-size: clamp(31px, 3vw, 52px);
    margin-bottom: 17px;
  }

  .hero p { margin-bottom: 22px; }

  .service-card { min-height: 208px; }

  .expertise.shell {
    width: min(1130px, calc(100% - 80px));
  }

  .expertise {
    margin-top: -99px;
    margin-bottom: 14px;
    padding: 10px 18px;
    min-height: 68px;
    gap: 4px;
    border-radius: 36px;
    background: rgba(255, 242, 230, 0.84);
    backdrop-filter: blur(7px);
    box-shadow: 0 5px 15px #6245321b;
  }

  .expertise-item {
    gap: 10px;
    padding: 0 10px;
    min-height: 48px;
  }

  .expertise-item svg {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
  }

  .expertise-item strong { font-size: 13px; }
  .expertise-item span { font-size: 11px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero {
    grid-template-columns: 40% 60%;
    min-height: 660px;
  }

  .hero-photo {
    min-height: 380px;
    background-position: center 56%;
  }

  .hero-content { padding: 35px 25px 115px 28px; }

  .expertise { margin-top: -92px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    min-height: auto;
  }

  .hero-photo {
    min-height: 240px;
  }

  .hero-profil {
    grid-template-columns: 80px 1fr;
  }

  .expertise {
    background: rgba(255, 242, 230, 0.88);
  }
}
/* === ParametresSOHO (admin) === */
.admin-settings.soho-settings{--green:#075438;--green2:#166441;--lime:#71c900;--sand:#f8e9df;--ink:#142a24;--border:#e4d8ce;color:var(--ink);background:transparent;min-height:0;padding:0;font-family:inherit;box-sizing:border-box}.soho-settings *{box-sizing:border-box}.soho-breadcrumb{font-size:13px;color:#436257;margin-bottom:23px}.soho-breadcrumb span{margin:0 10px;color:#91a59b}.soho-page-title{display:flex;align-items:center;gap:18px;margin-bottom:26px}.soho-title-icon{background:var(--green);color:white;width:60px;height:60px;display:grid;place-items:center;border-radius:14px;font-size:33px}.soho-page-title h1,.soho-page-title h2{font-size:clamp(24px,2.5vw,32px);letter-spacing:-.6px;margin:0 0 7px}.soho-page-title p{font-size:14px;color:#45616a;margin:0}.soho-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;max-width:1420px;margin:auto}.soho-sidebar{background:#fffaf6;border:1px solid var(--border);border-radius:15px;padding:14px;align-self:stretch}.soho-sidebar h2{font-size:17px;margin:5px 8px 18px;padding-bottom:16px;border-bottom:1px solid var(--border)}.soho-sidebar button{display:block;width:100%;text-align:left;padding:13px 14px;background:none;border:0;border-radius:9px;color:#15392d;font-size:14px;cursor:pointer}.soho-sidebar button:hover{background:#e8f1e9}.soho-sidebar button.active{background:var(--green);color:white;font-weight:700}.soho-settings-form{min-width:0}.soho-fieldset{border:0;padding:0;margin:0;min-width:0}.soho-section{background:#fffaf7;border:1px solid var(--border);box-shadow:0 2px 5px #36251712;border-radius:15px;padding:9px;margin-bottom:13px}.soho-section h2{margin:0;background:#eef3e9;border-radius:9px;min-height:47px;padding:7px 12px;display:flex;align-items:center;gap:12px;font-size:17px}.soho-section-icon{background:#d5efc4;border-radius:9px;width:36px;height:36px;display:grid;place-items:center;color:var(--green);font-size:22px}.soho-section-body{padding:16px 20px}.soho-grid{display:grid;gap:14px 24px}.soho-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.soho-span-two{grid-column:1/-1}.soho-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#20382f;min-width:0}.soho-field input,.soho-field textarea{font:400 14px Inter,Arial,sans-serif;background:white;border:1px solid #c8c8c4;border-radius:8px;color:#17362b;padding:11px 12px;width:100%;min-height:43px;resize:vertical}.soho-field input:focus,.soho-field textarea:focus{outline:2px solid #70b86b;outline-offset:1px}.soho-field input:disabled{background:#f1f1ed}.soho-switch-label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;font-weight:600;min-height:50px}.soho-switch-label input{appearance:none;width:45px;height:25px;flex:none;border-radius:20px;background:#adb6b0;position:relative;cursor:pointer;transition:background .15s}.soho-switch-label input:checked{background:#289c25}.soho-switch-label input:before{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:white;top:3px;left:3px;transition:transform .15s}.soho-switch-label input:checked:before{transform:translateX(20px)}.soho-switch-label input:focus-visible{outline:3px solid #65b95a;outline-offset:3px}.soho-help{background:#edf5f8;padding:12px 15px;border-radius:9px;font-size:13px;color:#254959;line-height:1.6;margin:0;overflow-wrap:anywhere}.soho-warning{font-size:13px;color:#9a5d18;margin:10px 0 0}.soho-notice{padding:12px 15px;background:#e7eff2;border-radius:8px;margin:0 0 13px;font-size:14px}.soho-notice.error{background:#fff0ec;color:#9a3325}.soho-notice.success{background:#e3f2e6;color:#0b6334}.soho-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px}.soho-actions>div{display:flex;gap:10px}.soho-btn{padding:12px 17px;border-radius:10px;font-weight:700;cursor:pointer;border:1px solid var(--green);font-size:13px}.soho-btn.primary{background:var(--green);color:white}.soho-btn.secondary{background:#fffaf6;color:var(--green)}.soho-btn:disabled{opacity:.5;cursor:not-allowed}.soho-mobile-menu{display:none}.soho-access-denied{padding:25px;background:#fff;color:#9a3325;border-radius:10px}@media(max-width:900px){.soho-layout{grid-template-columns:1fr}.soho-sidebar{display:none}.soho-sidebar.is-open{display:block}.soho-mobile-menu{display:block;background:#fff;border:1px solid var(--border);padding:11px 14px;border-radius:9px;margin:0 0 14px;color:var(--green);font-weight:700}}@media(max-width:620px){.admin-settings.soho-settings{padding:0}.soho-page-title{align-items:flex-start}.soho-title-icon{width:46px;height:46px;flex:none;font-size:26px}.soho-page-title h1,.soho-page-title h2{font-size:22px}.soho-grid.two{grid-template-columns:1fr}.soho-span-two{grid-column:auto}.soho-section-body{padding:14px 10px}.soho-section h2{font-size:15px}.soho-actions,.soho-actions>div{flex-direction:column;align-items:stretch}.soho-btn{width:100%}}


.admin-content{min-width:0;max-width:1420px;margin:0 auto}
.admin-settings .page-head{display:none}
.admin-settings .soho-page-title h2{font-size:clamp(22px,2.4vw,30px);letter-spacing:-.5px;margin:0 0 7px;font-weight:700}
/* Navigation Administration : barre latérale shell uniquement (plus de sous-menu central). */
.admin-settings .soho-layout{display:block;grid-template-columns:none}
.admin-settings #admin-pane-permissions{padding:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

