/* Blog Shop Manager — styles des pages servies par seoWeb.
   Mobile d'abord. Identité : orange #ff6900, bleu nuit #1a1a2e, Sora.
   Après modification : incrémenter VERSION_CSS dans seo-web/src/html.js. */
:root {
  --sm-orange: #ff6900;
  --sm-orange-fonce: #c94f00; /* 4,6:1 avec du blanc (AA) */
  --sm-orange-clair: #fff3ea;
  --sm-nuit: #1a1a2e;
  --sm-encre: #1f2433;
  --sm-gris: #5d6475;
  --sm-ligne: #e8e9ef;
  --sm-fond: #fafaf8;
  --sm-carte: #ffffff;
  --sm-rayon: 14px;
  --sm-ombre: 0 6px 24px rgba(26, 26, 46, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--sm-encre);
  background: var(--sm-fond);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sm-orange-fonce); }
a:hover { color: var(--sm-orange); }
:focus-visible { outline: 3px solid var(--sm-orange); outline-offset: 2px; }

.sm-evitement { position: absolute; left: -9999px; }
.sm-evitement:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* En-tête et pied de page : thème commun du site (/site-assets/theme.css). */

/* ── Mise en page ────────────────────────────────────── */
.sm-conteneur { max-width: 1120px; margin: 0 auto; padding: 20px 16px 56px; }
.sm-centre { text-align: center; max-width: 640px; padding-top: 64px; }
.sm-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--sm-gris); }
.sm-ariane li + li::before { content: "›"; margin-right: 6px; color: #b4b8c6; }
.sm-ariane a { color: var(--sm-gris); text-decoration: none; }
.sm-ariane a:hover { color: var(--sm-orange-fonce); text-decoration: underline; }
.sm-ariane [aria-current] { color: var(--sm-encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.sm-puce {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--sm-orange-fonce); background: var(--sm-orange-clair);
  padding: 4px 10px; border-radius: 999px; text-decoration: none;
}

/* ── Liste ───────────────────────────────────────────── */
.sm-liste__entete {
  margin: 8px auto 30px; max-width: 860px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
/* Étiquette au-dessus du titre : situe la page en un coup d'œil. */
.sm-liste__entete .sm-liste__sur {
  margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--sm-orange-clair); color: #9a3d00;
  font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.sm-liste__entete h1 {
  margin: 0; color: var(--sm-nuit);
  font-size: clamp(26px, 4.4vw, 40px); line-height: 1.16; letter-spacing: -0.02em;
  text-wrap: balance;
}
.sm-liste__titre-1 { display: block; }
/* Seconde ligne : la promesse, mise en avant. */
.sm-liste__titre-2 {
  display: block; margin-top: 8px;
  font-size: 0.82em; font-weight: 700; color: var(--sm-orange-fonce);
}
.sm-liste__page { font-size: 0.55em; color: var(--sm-gris); font-weight: 600; display: block; }
.sm-filtres {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 22px 0 4px; scrollbar-width: none;
}
.sm-filtres a {
  flex: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--sm-encre);
  border: 1px solid var(--sm-ligne); background: #fff; padding: 7px 14px; border-radius: 999px;
}
.sm-filtres a[aria-current="page"] { background: var(--sm-nuit); color: #fff; border-color: var(--sm-nuit); }

.sm-grille { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sm-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sm-grille { grid-template-columns: repeat(3, 1fr); } }
.sm-carte { background: var(--sm-carte); border-radius: var(--sm-rayon); box-shadow: var(--sm-ombre); overflow: hidden; transition: transform 0.15s; }
.sm-carte:hover { transform: translateY(-3px); }
.sm-carte__lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.sm-carte__lien:hover { color: inherit; }
.sm-carte__image { aspect-ratio: 1200 / 630; background: var(--sm-orange-clair); }
.sm-carte__image img { width: 100%; height: 100%; object-fit: cover; }
.sm-carte__corps { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sm-carte__titre { font-size: 19px; line-height: 1.35; margin: 0; color: var(--sm-nuit); }
.sm-carte__extrait { margin: 0; color: var(--sm-gris); font-size: 15px; line-height: 1.6; flex: 1; }
.sm-carte time { font-size: 13px; color: #8a90a0; }
.sm-carte .sm-puce { align-self: flex-start; }
.sm-vide { color: var(--sm-gris); }
.sm-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; font-size: 15px; }
.sm-pagination a { font-weight: 700; text-decoration: none; }

/* ── Article ─────────────────────────────────────────── */
.sm-article { max-width: 792px; }
.sm-article__entete h1 {
  font-size: clamp(28px, 6.4vw, 42px); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--sm-nuit); margin: 12px 0 12px;
}
.sm-article__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--sm-gris); margin: 0 0 20px; }
.sm-article__image { margin: 0 0 22px; border-radius: var(--sm-rayon); overflow: hidden; aspect-ratio: 1200 / 630; background: var(--sm-orange-clair); }
.sm-article__image img { width: 100%; height: 100%; object-fit: cover; }
.sm-article__chapo { font-size: 19px; line-height: 1.6; color: var(--sm-encre); font-weight: 600; margin: 0 0 24px; }

.sm-sommaire { background: #fff; border: 1px solid var(--sm-ligne); border-radius: var(--sm-rayon); padding: 6px 18px; margin: 0 0 28px; font-size: 15px; }
.sm-sommaire summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--sm-nuit); }
.sm-sommaire ol { margin: 0 0 12px; padding-left: 20px; }
.sm-sommaire li { margin: 4px 0; }
.sm-sommaire .sm-sommaire__n3 { margin-left: 18px; list-style: circle; font-size: 14px; }
.sm-sommaire a { color: var(--sm-encre); text-decoration: none; }
.sm-sommaire a:hover { color: var(--sm-orange-fonce); text-decoration: underline; }

.sm-contenu h2 { font-size: clamp(23px, 4.6vw, 29px); line-height: 1.3; color: var(--sm-nuit); margin: 44px 0 14px; scroll-margin-top: 80px; }
.sm-contenu h3 { font-size: 20px; line-height: 1.35; color: var(--sm-nuit); margin: 30px 0 10px; scroll-margin-top: 80px; }
.sm-contenu h4 { font-size: 17px; margin: 24px 0 8px; }
.sm-contenu p, .sm-contenu ul, .sm-contenu ol { margin: 0 0 18px; }
.sm-contenu li { margin: 6px 0; }
.sm-contenu blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--sm-orange); background: var(--sm-orange-clair); border-radius: 0 10px 10px 0; }
.sm-contenu blockquote p:last-child { margin-bottom: 0; }
.sm-contenu img { border-radius: 10px; margin: 18px 0; }
.sm-contenu hr { border: 0; border-top: 1px solid var(--sm-ligne); margin: 36px 0; }
.sm-contenu table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; display: block; overflow-x: auto; }
.sm-contenu th, .sm-contenu td { border: 1px solid var(--sm-ligne); padding: 10px 12px; text-align: left; vertical-align: top; }
.sm-contenu th { background: var(--sm-nuit); color: #fff; font-weight: 700; }
.sm-contenu tr:nth-child(even) td { background: #f5f5f8; }
.sm-contenu code { background: #f1f2f6; padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }

/* ── Bloc promotionnel (design fixe) ─────────────────── */
.sm-promo {
  position: relative; overflow: hidden; margin: 36px 0;
  padding: 26px 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, #1a1a2e 0%, #26264a 100%); color: #fff;
  box-shadow: 0 14px 36px rgba(26, 26, 46, 0.22);
}
.sm-promo__halo {
  position: absolute; width: 320px; height: 320px; right: -110px; top: -140px;
  background: radial-gradient(circle, rgba(255, 105, 0, 0.45), rgba(255, 105, 0, 0) 68%);
  pointer-events: none;
}
.sm-promo__badge {
  position: relative; display: inline-block; margin: 0 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffb27a;
}
.sm-promo__titre { position: relative; font-size: clamp(21px, 4.6vw, 26px); line-height: 1.25; font-weight: 800; margin: 0 0 8px; color: #fff; }
.sm-promo__sous { position: relative; margin: 0 0 14px; color: #d9dbe8; font-size: 16px; }
.sm-promo__liste { position: relative; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.sm-promo__liste li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #eceef6; margin: 0; }
.sm-promo__liste li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--sm-orange); color: #fff; border-radius: 50%;
}
/* Appel à l'action centré : bouton, puis mention dessous. */
.sm-promo__action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sm-promo__bouton {
  display: inline-block; background: var(--sm-orange-fonce); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 16px; padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 105, 0, 0.35); transition: background 0.15s, transform 0.15s;
}
.sm-promo__bouton:hover { background: #a84200; color: #fff; transform: translateY(-1px); }
.sm-promo__mention { font-size: 13px; color: #b9bccd; }

/* ── FAQ, sources, liés ──────────────────────────────── */
.sm-faq { margin-top: 48px; }
.sm-faq > h2, .sm-sources h2, .sm-lies h2 { font-size: clamp(23px, 4.6vw, 29px); color: var(--sm-nuit); margin: 0 0 14px; }
.sm-faq__item { background: #fff; border: 1px solid var(--sm-ligne); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.sm-faq__item summary { cursor: pointer; list-style: none; padding: 12px 0; }
.sm-faq__item summary::-webkit-details-marker { display: none; }
.sm-faq__item summary h3 { display: inline; font-size: 17px; margin: 0; color: var(--sm-nuit); }
.sm-faq__item summary::after { content: "+"; float: right; font-weight: 800; color: var(--sm-orange); }
.sm-faq__item[open] summary::after { content: "–"; }
.sm-faq__item p { margin: 0 0 14px; color: var(--sm-encre); }
.sm-sources { margin-top: 36px; font-size: 15px; }
.sm-lies { margin-top: 56px; }

/* ── Offre « Boutique en ligne » (Zisima Web Services) ── */
.sm-promo--zws { background: linear-gradient(135deg, #0b3d33 0%, #0f5a49 100%); box-shadow: 0 14px 36px rgba(11, 61, 51, 0.25); }
.sm-promo--zws .sm-promo__halo { background: radial-gradient(circle, rgba(37, 211, 102, 0.35), rgba(37, 211, 102, 0) 68%); }
.sm-promo--zws .sm-promo__badge { color: #9ff0c4; }
.sm-promo--zws .sm-promo__liste li::before { background: #0e7c6d; color: #fff; }
.sm-promo--zws .sm-promo__bouton { background: #0e7c6d; color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3); }
.sm-promo--zws .sm-promo__bouton:hover { background: #128c7e; color: #fff; }
.sm-promo--zws .sm-promo__mention { color: #c9eedc; }

/* ── Audio / vidéo sous le titre (intégrations, chargées au clic) ── */
.sm-medias { display: grid; gap: 14px; margin: 0 0 22px; }
.sm-media { margin: 0; }
.sm-media__jouer {
  position: relative; display: grid; place-items: center; width: 100%;
  aspect-ratio: var(--ratio, 16 / 9); max-height: 70vh; margin: 0 auto; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--sm-rayon); background: #0f172a; color: #fff; cursor: pointer;
}
.sm-media--tiktok .sm-media__jouer, .sm-media--tiktok .sm-media__cadre { max-width: 360px; }
/* Sans vignette (Facebook, TikTok) : carte compacte au lieu d'un grand cadre noir. */
.sm-media__jouer--compact {
  aspect-ratio: auto; height: auto; min-height: 0; max-height: none; max-width: 420px;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px;
}
.sm-media__jouer--compact .sm-media__icone { width: 52px; height: 52px; font-size: 22px; }
.sm-media__jouer--compact .sm-media__libelle { position: static; padding: 0; background: none; }
.sm-media__jouer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.sm-media__icone {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sm-orange-fonce); color: #fff; font-size: 26px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.sm-media__libelle {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.85); font-size: 14px; font-weight: 700;
}
.sm-media__cadre { display: block; width: 100%; aspect-ratio: var(--ratio, 16 / 9); max-height: 80vh; margin: 0 auto; border: 0; border-radius: var(--sm-rayon); background: #000; }
.sm-media figcaption { margin-top: 6px; font-size: 14px; color: var(--sm-gris); }
/* Mention de la source : du texte, jamais un lien sortant. */
.sm-media__source { font-style: italic; }
.sm-media--audio { padding: 14px 16px; border: 1px solid var(--sm-ligne); border-radius: var(--sm-rayon); background: var(--sm-carte); }
.sm-media--audio figcaption { margin: 0 0 8px; font-weight: 700; color: var(--sm-encre); }
.sm-media audio, .sm-media video { display: block; width: 100%; border-radius: 10px; }

/* ── L'essentiel (points clés) ── */
.sm-essentiel { margin: 0 0 28px; padding: 16px 18px; border-left: 4px solid var(--sm-orange); border-radius: 10px; background: var(--sm-orange-clair); }
.sm-essentiel__titre { margin: 0 0 6px; font-weight: 800; color: var(--sm-nuit); }
.sm-essentiel ul { margin: 0; padding-left: 20px; }
.sm-essentiel li { margin: 4px 0; }

/* ── Ne manquez aucun conseil (push + chaîne WhatsApp) ── */
.sm-abonnement {
  margin: 40px 0 8px; padding: 22px; text-align: center;
  border: 1px solid var(--sm-ligne); border-radius: 18px; background: var(--sm-carte); box-shadow: var(--sm-ombre);
}
.sm-abonnement__titre { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: var(--sm-nuit); }
.sm-abonnement__texte { margin: 0 0 16px; color: var(--sm-gris); font-size: 16px; }
/* Nom de la chaîne WhatsApp, mis en avant (principal appel à l'action). */
.sm-abonnement__chaine {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  margin: 0 0 18px; padding: 12px 18px; border-radius: 999px;
  background: #e9f8f1; color: #075e54; font-size: 15px; line-height: 1.4;
}
.sm-abonnement__canal { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0e7c6d; }
.sm-abonnement__chaine strong { font-size: 17px; font-weight: 800; color: #04483f; }
.sm-abonnement__promesse { font-size: 14px; color: #0b5d52; }
.sm-abonnement__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sm-abonnement__push, .sm-abonnement__whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
  border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.sm-abonnement__push { border: 0; background: var(--sm-nuit); color: #fff; }
.sm-abonnement__push:disabled { cursor: default; opacity: 0.85; }
.sm-abonnement__whatsapp { border: 2px solid #128c7e; background: #fff; color: #075e54; }
.sm-abonnement__whatsapp:hover { background: #e9f8f1; color: #075e54; }
.sm-abonnement__etat { margin: 12px 0 0; min-height: 1em; font-size: 14px; color: var(--sm-gris); }

/* Liens DANS LE TEXTE soulignés (identifiables sans se fier à la couleur) —
   jamais les boutons/CTA, qui se reconnaissent déjà comme des boutons. */
.sm-contenu p a,
.sm-contenu li a,
.sm-contenu td a { text-decoration: underline; text-underline-offset: 2px; }

/* Rien ne doit dépasser de la page (aucune barre de défilement horizontale). */
.sm-contenu img, .sm-contenu video, .sm-contenu iframe,
.sm-contenu pre, .sm-contenu table { max-width: 100%; }
.sm-contenu pre { overflow-x: auto; }
/* La vignette du lecteur garde son recadrage (object-fit: cover, ci-dessus). */
.sm-medias video { max-width: 100%; height: auto; }
