/* SIME — Module SITE_WEB : styles des écrans « Site web » (back-office). */
.sw-onglets { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: var(--espace-4); padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.sw-onglets button { flex: none; border: 1px solid #0002; background: transparent; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; color: inherit; }
.sw-onglets button[aria-selected="true"] { background: var(--sime-petrole); color: #fff; border-color: transparent; }
.sw-puces { display: flex; flex-wrap: wrap; gap: .35rem; }
.sw-puce { font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; }
.sw-puce.ok { background: #15803d22; color: #15803d; }
.sw-puce.off { background: #6b728022; color: #6b7280; }
.sw-off { color: var(--sime-petrole); font-style: italic; }
.sw-ligne { display: grid; gap: var(--espace-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.sw-themes { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-bottom: var(--espace-4); }
.sw-theme { display: flex; flex-direction: column; gap: .4rem; align-items: center; padding: .6rem; border: 2px solid #0002; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.sw-theme span { width: 100%; height: 34px; border-radius: 8px; }
.sw-theme.actif { border-color: var(--sime-petrole); }
.sw-clic { cursor: pointer; transition: transform .15s; }
.sw-clic:hover { transform: translateY(-2px); }
.sw-pastille { margin-left: auto; margin-right: .3rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.sw-toast { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + 64px); z-index: 9999; background: var(--sime-petrole); color: #fff; padding: .8rem 1.1rem; border-radius: 12px; box-shadow: 0 10px 30px #0005; cursor: pointer; max-width: calc(100vw - 2rem); animation: sw-in .3s ease; }
@keyframes sw-in { from { transform: translateY(12px); opacity: 0; } }

/* --- Allègement de l'éditeur (2026-10-14) ------------------------------------------------------------------ */
.sw-row { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #0001; }
.sw-row:last-child { border-bottom: 0; }
.sw-mini { padding: .3rem .7rem !important; font-size: .85rem !important; min-height: 0 !important; }
.sw-plus { margin-top: var(--espace-3); border: 1px solid #0002; border-radius: 12px; padding: 0 var(--espace-3); }
.sw-plus > summary { cursor: pointer; padding: .7rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.sw-plus > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.sw-plus[open] > summary::after { content: "–"; }
.sw-plus > summary::-webkit-details-marker { display: none; }
.sw-plus[open] { padding-bottom: var(--espace-3); }
.sw-etapes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.sw-etape { display: inline-flex; gap: .35rem; align-items: center; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; border: 1px solid #0002; background: transparent; cursor: pointer; font-family: inherit; color: inherit; }
.sw-etape.fait { background: #15803d1a; border-color: #15803d55; color: #15803d; }
.sw-barre { height: 6px; background: #0001; border-radius: 99px; overflow: hidden; margin-top: .6rem; }
.sw-barre > i { display: block; height: 100%; background: var(--sime-petrole); transition: width .4s; }
.sw-gros { padding: .8rem 1.6rem; font-size: 1.05rem; }

/* Liens à partager (2026-10-29) */
.sw-lien { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid #0001; }
.sw-lien[hidden] { display: none; }
.sw-lien-t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sw-lien-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-lien-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .65; }
.sw-lien-a { display: flex; gap: .4rem; flex: none; }
.sw-filtre { width: 100%; margin: 0 0 .4rem; padding: .5rem .75rem; border: 1px solid #0003; border-radius: 10px; font: inherit; }
