/* Page d'un mot-clé (includes/about.inc.php) — reprise de la page de Regis Froger (2026-10-29), sans moteur uw- :
   bandeau avec fil d'Ariane, H1 + description + bouton, puis textes en 2 colonnes (textes + colonne collante :
   sommaire, pages liées, carte d'action). Couleur d'accent = --couleur (Paramètres, includes/css.inc.php).
   Chargé par includes/meta.inc.php seulement sur les pages mots-clés ($p == 0). */

/* Bandeau image : plus haut, voile sombre pour le fil d'Ariane */
.kw-bandeau-img { position: relative; }
.kw-bandeau-img::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(7, 23, 34, .4); }
.kw-bandeau-img .breadcrumbs-custom { position: relative; z-index: 1; }
/* Bandeau sans image : bande de couleur fine, juste le fil d'Ariane */
.kw-bandeau-fin .breadcrumbs-custom { padding-top: 34px; padding-bottom: 34px; }

/* Haut de page */
.kw-haut { margin-top: 48px; margin-bottom: 8px; }

/* Mise en page : textes + colonne collante sur ordinateur, une colonne sur mobile */
.kw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 56px 0 24px; text-align: left; }
.kw-layout--seul { grid-template-columns: minmax(0, 860px); }
.kw-contenu { display: grid; gap: 44px; min-width: 0; }
.kw-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
/* .page { overflow: hidden } (style.css) bloque position: sticky ; clip coupe pareil sans zone de défilement.
   flow-root : overflow: clip ne crée pas de contexte de bloc (sinon une marge peut « traverser » .page). */
.page:has(.kw-aside) { overflow: clip; display: flow-root; }

.kw-sommaire { padding: 20px 22px; border: 1px solid var(--kw-ligne, rgba(0,0,0,.1)); border-radius: 14px; background: var(--kw-carte, #fff); }
.kw-sommaire b { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.kw-sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: kw-som; }
.kw-sommaire li { counter-increment: kw-som; }
.kw-sommaire a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.4; color: inherit; border-bottom: 1px solid var(--kw-ligne, rgba(0,0,0,.1)); }
.kw-sommaire li:last-child a { border-bottom: none; }
.kw-sommaire a::before { content: counter(kw-som, decimal-leading-zero); flex: none; font-size: 12px; font-weight: 700; color: var(--couleur); padding-top: 1px; }
.kw-sommaire a:hover { color: var(--couleur); }
/* Pages liées : liste à flèches */
.kw-liees ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kw-liees a::before { content: "→"; font-size: 14px; }

/* Carte d'action (couleur 1, textes blancs, bouton blanc) */
.kw-aside-cta { display: grid; gap: 8px; padding: 22px; border-radius: 14px; background: var(--couleur); color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.55; }
.kw-aside-cta b { font-size: 18px; color: #fff; }
.kw-aside-cta a,
.kw-aside-cta a:hover { margin-top: 6px; text-align: center; justify-content: center; background: #fff !important; color: var(--couleur) !important; border-color: #fff !important; }

.kw-partie { scroll-margin-top: 110px; }

/* « Pourquoi choisir … ? » : encadré teinté en tête des textes */
.kw-pourquoi { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 14px; background: rgba(0, 0, 0, .03); background: color-mix(in srgb, var(--couleur) 7%, #fff); border: 1px solid color-mix(in srgb, var(--couleur) 18%, transparent); }
.kw-pourquoi-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--couleur); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.kw-pourquoi h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; color: var(--couleur); }
.kw-pourquoi p { margin: 0; font-size: 15.5px; line-height: 1.75; }

/* Parties : sous-titre avec trait d'accent, texte aéré */
.kw-partie { display: grid; gap: 14px; }
.kw-partie h2 { position: relative; margin: 0 0 4px; padding-bottom: 14px; font-size: 26px; line-height: 1.25; }
.kw-partie h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--couleur); }
.kw-partie p { margin: 0; font-size: 15.5px; line-height: 1.75; }
/* Listes : coches (ul) / numéros (ol) en couleur 1 */
.kw-partie ul, .kw-partie ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.6; counter-reset: kw-li; }
.kw-partie li { position: relative; padding-left: 32px; }
.kw-partie ul > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .06); background: color-mix(in srgb, var(--couleur) 14%, #fff); }
.kw-partie ul > li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 6px; height: 9px; border: solid var(--couleur); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kw-partie ol > li { counter-increment: kw-li; }
.kw-partie ol > li::before { content: counter(kw-li); position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--couleur); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }

/* Questions fréquentes (lignes « Q : » / « R : », classe posée par uw_kw_texte_html) : dans un cadre */
.kw-partie--faq { padding: 28px 30px 14px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 14px; background: #fff; }
.uw-kw-faq { border-bottom: 1px solid rgba(0, 0, 0, .1); padding: 16px 0; }
.kw-partie--faq .uw-kw-faq:last-child { border-bottom: none; }
.uw-kw-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.uw-kw-faq summary::-webkit-details-marker { display: none; }
.uw-kw-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--couleur); transition: transform .3s; }
.uw-kw-faq[open] summary::after { transform: rotate(45deg); }
.uw-kw-faq p { margin-top: 8px; }

@media (max-width: 991px) {
  /* Une colonne : sommaire en tête des textes, carte d'action masquée (bouton déjà en haut de page) */
  .kw-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .kw-aside { position: static; order: -1; }
  .kw-aside-cta { display: none; }
}
@media (max-width: 600px) {
  .kw-haut { margin-top: 28px; }
  .kw-contenu { gap: 34px; }
  .kw-pourquoi { padding: 20px 18px; gap: 12px; }
  .kw-pourquoi-ico { width: 34px; height: 34px; font-size: 15px; }
  .kw-pourquoi h2 { font-size: 19px; }
  .kw-partie h2 { font-size: 22px; }
  .kw-partie--faq { padding: 20px 18px 8px; }
}
