.s2t-directory {
  --s2t-ink: #173533;
  --s2t-muted: #647874;
  --s2t-green: #145c52;
  --s2t-green-deep: #103e3a;
  --s2t-mint: #d8eee7;
  --s2t-line: #dce7e3;
  --s2t-paper: #f5f8f6;
  --s2t-white: #fff;
  color: var(--s2t-ink);
  font-family: "Public Sans", "Noto Sans Arabic", system-ui, sans-serif;
  background: var(--s2t-paper);
  overflow: hidden;
}
.s2t-directory *, .s2t-directory *::before, .s2t-directory *::after { box-sizing: border-box; }
.s2t-directory button, .s2t-directory input, .s2t-directory select { font: inherit; }
.s2t-directory__hero { position: relative; overflow: hidden; background: var(--s2t-green-deep); color: #fff; }
.s2t-directory__hero-inner { position: relative; z-index: 1; width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 54px; }
.s2t-directory__identity { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.s2t-directory__brand { color: #c7e2d8; font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.s2t-directory__mark { display: flex; align-items: end; gap: 3px; height: 22px; padding: 3px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; }
.s2t-directory__mark span { display: block; width: 4px; background: #a3d5c5; border-radius: 3px 3px 1px 1px; }
.s2t-directory__mark span:nth-child(1) { height: 8px; }.s2t-directory__mark span:nth-child(2) { height: 14px; }.s2t-directory__mark span:nth-child(3) { height: 10px; }
.s2t-directory__hero h1 { max-width: 740px; margin: 0; color: #fff; font-size: clamp(32px, 4vw, 50px); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
.s2t-directory__hero p { max-width: 640px; margin: 14px 0 29px; color: #d2e4df; font-size: 16px; line-height: 1.65; }
.s2t-directory__hero-art { position: absolute; inset-block: -100px; inset-inline-end: 2%; width: 44%; opacity: .28; background: repeating-radial-gradient(ellipse at 70% 45%, transparent 0 22px, #78b8a5 23px 24px, transparent 25px 43px); transform: rotate(-14deg); pointer-events: none; }
.s2t-directory__search { position: relative; display: flex; align-items: center; gap: 12px; width: min(760px, 100%); padding: 7px; border-radius: 8px; background: #fff; box-shadow: 0 10px 32px rgba(3, 26, 24, .18); }
.s2t-directory__search-icon { padding-inline-start: 12px; color: #54736c; font-size: 26px; line-height: 1; }
.s2t-directory__search input { min-width: 0; flex: 1; height: 46px; border: 0; outline: 0; color: var(--s2t-ink); background: transparent; }
.s2t-directory__search input::placeholder { color: #82918e; opacity: 1; }
.s2t-directory__search button, .s2t-directory__pagination button { min-height: 44px; padding: 0 19px; border: 0; border-radius: 5px; color: #fff; background: var(--s2t-green); font-weight: 650; cursor: pointer; transition: background .16s ease; }
.s2t-directory__search button:hover, .s2t-directory__pagination button:hover:not(:disabled) { background: #0d493f; }
.s2t-directory__content { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 56px; }
.s2t-directory__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
/* Ancien filtre extensible et multi-ligne : remplace par des champs compacts. */
/* .s2t-directory__filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } */
.s2t-directory__filters { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
/* Ancienne largeur imposée : chaque champ suit maintenant la largeur de son contenu. */
/* .s2t-directory__filters label { min-width: 260px; } */
.s2t-directory__filters label { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto; width: max-content; max-width: 100%; min-width: 0; color: #506761; font-size: 12px; font-weight: 650; white-space: nowrap; }
/* .s2t-directory__filters label > span { flex: 0 0 98px; } */
.s2t-directory__filters label > span { flex: 0 0 auto; line-height: 1.3; white-space: nowrap; }
/* Ancien select qui remplissait toute la colonne : le contrôle reste compact et sans retour. */
/* .s2t-directory__filters select { min-width: 0; flex: 1; } */
.s2t-directory__filters select { width: max-content; max-width: 100%; min-width: 0; height: 43px; flex: 0 1 auto; padding: 0 13px; border: 1px solid var(--s2t-line); border-radius: 5px; color: var(--s2t-ink); background: #fff; white-space: nowrap; }
.s2t-directory__reset { display: inline-flex; flex: 0 0 auto; min-height: 43px; align-items: center; justify-content: center; gap: 8px; margin-inline-start: auto; padding: 0 14px; border: 1px solid #b9d7ce; border-radius: 5px; color: #145c52; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.s2t-directory__reset svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s2t-directory__reset:hover { border-color: #145c52; color: #fff; background: #145c52; }
.s2t-directory__count { display: inline-flex; align-items: baseline; gap: 8px; margin: 0; padding: 8px 13px; border: 1px solid #d5e8e1; border-radius: 5px; color: var(--s2t-ink); background: #fff; white-space: nowrap; }
.s2t-directory__count-number { color: #145c52; font-size: 22px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.s2t-directory__count-label { color: #526b64; font-size: 12px; font-weight: 650; }
.s2t-directory__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; transition: opacity .16s ease; }
.s2t-directory__grid[aria-busy="true"] { opacity: .54; pointer-events: none; }
/* Les cartes restent dans le même gabarit, avec une hiérarchie plus nette et un relief léger. */
.s2t-directory__card { display: flex; min-width: 0; flex-direction: column; padding: 21px 22px 18px; border: 1px solid var(--s2t-line); border-inline-start: 3px solid #2b8170; border-radius: 8px; background: var(--s2t-white); box-shadow: 0 6px 18px rgba(16, 62, 58, .06); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.s2t-directory__card:hover { border-color: #b9d7ce; box-shadow: 0 10px 24px rgba(16, 62, 58, .11); transform: translateY(-2px); }
/* .s2t-directory__card-head { align-items: start; } */
.s2t-directory__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #edf1ef; }
/* Ancienne troncature sur une ligne : conservée en commentaire pour permettre le retour à la ligne des noms sociaux longs. */
/* .s2t-directory__card h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } */
.s2t-directory__card h2 { min-width: 0; margin: 0; color: var(--s2t-ink); font-size: 18px; font-weight: 680; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
/* Ancienne troncature sur une ligne : conservée en commentaire pour permettre le retour à la ligne des secteurs longs. */
/* .s2t-directory__sector-tag { flex: 0 1 auto; width: max-content; max-width: 42%; padding: 6px 9px; border-radius: 4px; color: #245d52; background: var(--s2t-mint); font-size: 11px; font-weight: 650; line-height: 1.35; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } */
.s2t-directory__sector-tag { flex: 0 1 auto; width: max-content; max-width: 42%; min-width: 0; padding: 6px 9px; border-radius: 4px; color: #245d52; background: var(--s2t-mint); font-size: 11px; font-weight: 650; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.s2t-directory__place { display: flex; align-items: center; gap: 11px; min-width: 0; margin-top: 15px; padding: 11px 13px; border: 1px solid #d5e8e1; border-radius: 5px; background: #f0f7f4; }
.s2t-directory__place-icon { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: #176b5d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s2t-directory__place-copy { display: flex; min-width: 0; width: max-content; max-width: 100%; flex-direction: column; gap: 2px; }
.s2t-directory__place-label { color: #71847e; font-size: 10px; font-weight: 650; white-space: nowrap; }
/* .s2t-directory__place-value { overflow-wrap: anywhere; } */
.s2t-directory__place-value { min-width: 0; max-width: 100%; color: #1b5148; font-size: 13px; font-weight: 700; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Ancienne grille de colonnes égales : les champs prennent maintenant leur largeur utile. */
/* .s2t-directory__facts { display: grid; grid-template-columns: 1fr 1fr; } */
.s2t-directory__facts { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 15px 18px; padding-top: 15px; }
.s2t-directory__fact { width: max-content; max-width: 100%; min-width: 0; flex: 0 1 auto; }
.s2t-directory__fact-label { display: block; margin-bottom: 4px; color: #768781; font-size: 11px; font-weight: 650; white-space: nowrap; }
/* Les anciennes règles autorisaient la césure des coordonnées longues. */
/* .s2t-directory__fact-value { overflow-wrap: anywhere; word-break: break-word; white-space: normal; } */
.s2t-directory__fact-value { display: block; width: max-content; min-width: 0; max-width: 100%; color: #263f3b; font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* .s2t-directory__fact-value a { overflow-wrap: anywhere; word-break: break-word; white-space: normal; } */
.s2t-directory__fact-value a { display: inline-block; width: max-content; max-width: 100%; color: #145c52; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.s2t-directory__fact-value a:hover { text-decoration: underline; }
.s2t-directory__website { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 13px 0 0; color: var(--s2t-green); text-decoration: none; }
.s2t-directory__website-copy { display: flex; min-width: 0; width: max-content; max-width: 100%; flex-direction: column; gap: 3px; }
.s2t-directory__website-label { color: #71847e; font-size: 10px; font-weight: 650; white-space: nowrap; }
/* .s2t-directory__website-host { overflow-wrap: anywhere; } */
.s2t-directory__website-host { min-width: 0; max-width: 100%; color: #145c52; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2t-directory__website-action { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #b7d8ce; border-radius: 4px; font-size: 11px; font-weight: 700; }
.s2t-directory__website-icon { flex: 0 0 16px; width: 16px; height: 16px; fill: currentColor; }
.s2t-directory__website:hover .s2t-directory__website-action { color: #fff; border-color: var(--s2t-green); background: var(--s2t-green); }
.s2t-directory__status { display: flex; min-height: 30px; align-items: center; gap: 10px; margin: 2px 0 12px; color: var(--s2t-muted); font-size: 14px; }
.s2t-directory__status:empty { display: none; }
.s2t-directory__status[data-state="error"] { color: #a22f2f; }
.s2t-directory__status[data-state="empty"] { min-height: 170px; justify-content: center; margin: 0 0 16px; padding: 24px; border: 1px solid var(--s2t-line); border-radius: 6px; color: #355d54; background: #fff; font-size: 16px; font-weight: 650; line-height: 1.7; text-align: center; }
.s2t-directory__spinner { display: inline-block; width: 19px; height: 19px; flex: 0 0 19px; border: 2px solid #c9ddd6; border-top-color: #145c52; border-radius: 50%; animation: s2t-directory-spin .72s linear infinite; }
.s2t-directory__status-message { line-height: 1.5; }
.s2t-directory__status[data-state="loading"] .s2t-directory__status-message { color: #355d54; font-weight: 650; }
@keyframes s2t-directory-spin { to { transform: rotate(360deg); } }
.s2t-directory__status button { margin-inline-start: 8px; padding: 0; border: 0; color: inherit; background: none; font-weight: 700; text-decoration: underline; cursor: pointer; }
.s2t-directory__pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.s2t-directory__pagination[hidden] { display: none; }
.s2t-directory__pagination button { min-height: 40px; padding-inline: 16px; }
.s2t-directory__pagination button:disabled { color: #8a9894; background: #e4ebe8; cursor: not-allowed; }
.s2t-directory__page-label { color: var(--s2t-muted); font-size: 13px; }
.s2t-directory :focus-visible { outline: 3px solid #e8b965; outline-offset: 3px; }
@media (max-width: 760px) {
  .s2t-directory__hero-inner, .s2t-directory__content { width: min(100% - 32px, 620px); }
  .s2t-directory__hero-inner { padding: 30px 0 36px; }
  .s2t-directory__identity { margin-bottom: 22px; }
  .s2t-directory__hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .s2t-directory__hero p { margin: 11px 0 20px; font-size: 14px; }
  .s2t-directory__hero-art { inset-inline-end: -20%; width: 75%; opacity: .16; }
  .s2t-directory__content { padding-top: 20px; }
  .s2t-directory__toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
  /* L’ancienne grille mobile est conservée ici en commentaire : les contrôles restent flexibles. */
  /* .s2t-directory__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } */
  .s2t-directory__filters { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .s2t-directory__filters label { min-width: 0; }
  /* .s2t-directory__filters label > span { flex-basis: 92px; } */
  .s2t-directory__filters label > span { flex-basis: auto; }
  .s2t-directory__filters select { width: max-content; }
  /* .s2t-directory__reset { justify-self: start; } */
  .s2t-directory__reset { margin-inline-start: auto; }
  .s2t-directory__count { align-self: end; }
  .s2t-directory__grid { grid-template-columns: 1fr; gap: 11px; }
  .s2t-directory__card { padding: 17px; }
  .s2t-directory__card h2 { font-size: 16px; }
}
@media (min-width: 761px) and (max-width: 1199px) {
  .s2t-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2t-directory__filters { gap: 9px; }
  /* .s2t-directory__filters label { min-width: 235px; } */
  .s2t-directory__filters label { min-width: 0; }
}
@media (max-width: 430px) {
  .s2t-directory__brand { font-size: 9px; letter-spacing: .07em; }
  .s2t-directory__search { gap: 6px; }
  .s2t-directory__search input { height: 42px; font-size: 13px; }
  .s2t-directory__search button { min-height: 42px; padding-inline: 12px; font-size: 13px; }
  /* .s2t-directory__filters { grid-template-columns: 1fr; } */
  .s2t-directory__filters label { gap: 5px; }
  /* .s2t-directory__filters label > span { flex-basis: 96px; } */
  .s2t-directory__filters label > span { flex-basis: auto; }
  /* .s2t-directory__facts { grid-template-columns: 1fr; gap: 11px; } */
  .s2t-directory__facts { flex-direction: column; gap: 11px; }
  .s2t-directory__card-head { flex-direction: column; }
  .s2t-directory__sector-tag { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .s2t-directory *, .s2t-directory *::before, .s2t-directory *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .s2t-directory__spinner { animation-duration: 1.8s; }
}
