/* TROPICAL HAMAC — Guide "Comment bien choisir son hamac" — feuille dédiée */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
.th-block{font-family:'Inter',Arial,sans-serif}
.th-blockcol>.elementor-element-populated{padding:0}
.th-sep .elementor-divider{padding-top:0;padding-bottom:34px}
.th-sep .elementor-divider-separator{border-top:1px solid #E7E2DB}
.th-eyebrow{margin-bottom:8px}
.th-eyebrow .elementor-heading-title{display:flex;align-items:center;gap:10px;font-weight:500;font-size:14px;letter-spacing:4.8px;text-transform:uppercase;color:#C86A3A;line-height:1}
.th-eyebrow .elementor-heading-title::before{content:"";display:inline-block;width:21px;height:1px;background:#C86A3A}
.th-h2{margin-bottom:18px}
.th-h2 .elementor-heading-title{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:26px;color:#30504B;line-height:1.2}
.th-intro{margin-bottom:22px}
.th-intro .elementor-widget-container{font-size:14px;line-height:1.65;color:#6F6A63}
.th-intro .elementor-widget-container p{margin:0 0 10px}
.th-intro .elementor-widget-container strong{color:#30504B}
.th-intro .elementor-widget-container a{color:#C86A3A;font-weight:600;text-decoration:none}
/* card grid */
.th-cardrow{margin-bottom:24px}
.th-card>.elementor-element-populated{background:#fff;border:1px solid #DBD7D1;border-radius:20px;padding:24px 34px 25px;height:100%}
.th-card .elementor-widget-heading{margin-bottom:14px}
.th-card .elementor-heading-title{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:16px;color:#30504B}
.th-cdesc .elementor-widget-container{font-size:14px;line-height:1.5;color:#A9A5A0;text-align:justify}
.th-cdesc .elementor-widget-container strong{color:#30504B}
.th-pill{margin-top:14px}
.th-pill .elementor-button{background:#FDF8F2;border:1px solid #F5EFE8;border-radius:20px;color:#A9A5A0;font-weight:400;font-size:14px;padding:6px 14px;line-height:1.2}
.th-pill .elementor-button:hover{color:#C86A3A;background:#FBF1E6}
.th-typecard .th-ic{margin-bottom:10px}
.th-typecard .th-ic .elementor-widget-container{width:30px;height:30px}
/* full-width item card */
.th-item{background:#fff;border:1px solid #DBD7D1;border-radius:20px;margin-bottom:20px}
.th-item>.elementor-container{padding:22px 24px;align-items:flex-start}
.th-iccol{width:46px!important;flex:0 0 46px!important}
.th-iccol>.elementor-element-populated,.th-contentcol>.elementor-element-populated{padding:0}
.th-contentcol{width:calc(100% - 46px)!important;flex:1 1 auto!important}
.th-ic .elementor-widget-container{width:30px;height:30px}
.th-ic svg{display:block;width:100%;height:100%}
.th-dot .elementor-widget-container{display:flex;align-items:center;height:30px}
.th-itemtitle{margin-bottom:6px}
.th-itemtitle .elementor-heading-title{font-weight:600;font-size:14px;color:#30504B}
.th-itemtxt .elementor-widget-container,.th-itemtxt .elementor-widget-container p{font-size:14px;line-height:1.55;color:#A9A5A0;margin:0}
/* callout */
.th-callout{margin:6px 0 8px}
.th-callout>.elementor-container>.th-calloutcol>.elementor-element-populated{background:#FDF8F2;border:1px solid #F5EFE8;border-left:3px solid #C86A3A;border-radius:14px;padding:16px 20px}
.th-calltxt .elementor-widget-container,.th-calltxt .elementor-widget-container p{font-size:14px;line-height:1.65;color:#6F6A63;margin:0}
.th-calltxt .elementor-widget-container strong{color:#30504B}
.th-calltxt .elementor-widget-container a{color:#C86A3A;font-weight:600;text-decoration:none}
/* sub heading */
.th-sub{margin:22px 0 8px}
.th-sub .elementor-heading-title{font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:16px;color:#30504B}
/* quote */
.th-quote{margin-bottom:14px}
.th-quotecol>.elementor-element-populated{background:#fff;border:1px solid #DBD7D1;border-radius:14px;padding:13px 16px;position:relative}
.th-quotecol>.elementor-element-populated::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-50%);width:24px;height:24px;line-height:22px;text-align:center;border-radius:50%;background:#FDF8F2;border:1px solid #F5EFE8;color:#C86A3A}
.th-qtxt .elementor-widget-container,.th-qtxt .elementor-widget-container p{font-size:14px;color:#30504B;font-style:italic;margin:0;padding-right:30px}
.th-block{margin-bottom:6px}
@media(max-width:767px){.th-h2 .elementor-heading-title{font-size:22px}}


/* ====== SIDEBAR ====== */

/* ===== SIDEBAR ===== */
.th-sideblock{margin-bottom:24px}
.th-sidecol>.elementor-element-populated{padding:0}
.th-toccard{background:#F5EFE8;border:1px solid #DBD7D1;border-radius:20px;box-shadow:0 4px 8px rgba(0,0,0,.07)}
.th-prodcard,.th-guidescard{background:#fff;border:1px solid #F5EFE8;border-radius:20px;box-shadow:0 4px 8px rgba(0,0,0,.07)}
.th-toccard>.elementor-container,.th-prodcard>.elementor-container,.th-guidescard>.elementor-container{padding:30px 34px}
.th-side-title{margin-bottom:14px}
.th-side-title .elementor-heading-title{font-weight:600;font-size:14px;color:#30504B;text-transform:uppercase;letter-spacing:.4px}
.th-toc .elementor-widget-container{font-size:14px;color:#6F6A63;text-transform:uppercase}
.th-toc ol{margin:0;padding-left:18px}
.th-toc li{line-height:30px}
.th-toc a{color:#6F6A63;text-decoration:none}
.th-toc a:hover{color:#C86A3A}
/* product rows */
.th-prod>.elementor-container{padding:14px 0;align-items:center;border-top:1px solid #E7E2DB}
.th-prodimgcol{width:63px!important;flex:0 0 63px!important}
.th-prodimgcol>.elementor-element-populated,.th-prodtxtcol>.elementor-element-populated{padding:0}
.th-prodtxtcol{width:calc(100% - 73px)!important;flex:1 1 auto!important;margin-left:10px}
.th-prodimg svg{width:63px;height:57px;display:block;border-radius:8px}
.th-prodtxt .elementor-widget-container p{margin:0;font-weight:600;font-size:14px;color:#30504B;text-transform:uppercase;line-height:1.55}
.th-side-btn{margin-top:6px;padding-top:20px;border-top:1px solid #E7E2DB;text-align:center}
.th-side-btn .elementor-widget-container,.th-side-btn .elementor-button-wrapper{text-align:center}
.th-side-btn .elementor-button{background:#30504B!important;color:#fff!important;border:none!important;border-radius:20px!important;text-transform:uppercase;font-weight:600!important;font-size:14px!important;padding:13px 28px!important;box-shadow:none!important;text-shadow:none!important}
.th-side-btn .elementor-button:hover{background:#26403B!important;color:#fff!important}
.th-side-btn .elementor-button .elementor-button-text{color:#fff!important}
/* guide links */
.th-guidelink .elementor-widget-container{font-size:14px;color:#6F6A63;text-transform:uppercase;padding:14px 0;border-top:1px solid #E7E2DB}
.th-guidelink .elementor-widget-container a{color:#6F6A63;text-decoration:none}
.th-guidelink .elementor-widget-container a:hover{color:#C86A3A}
/* anchor scroll offset */
html{scroll-behavior:smooth}
.th-block{scroll-margin-top:24px}


/* ===== OVERRIDES priorité Elementor ===== */
.elementor-widget-heading.th-eyebrow .elementor-heading-title{color:#C86A3A}
.elementor-widget-heading.th-h2 .elementor-heading-title,
.elementor-widget-heading.th-ctitle .elementor-heading-title,
.elementor-widget-heading.th-itemtitle .elementor-heading-title,
.elementor-widget-heading.th-sub .elementor-heading-title,
.elementor-widget-heading.th-side-title .elementor-heading-title,
.elementor-widget-heading.th-authorname .elementor-heading-title,
.elementor-widget-heading.th-pill-badge .elementor-heading-title{color:#30504B}
.elementor-widget-heading.th-readtime .elementor-heading-title{color:#A9A5A0}
.elementor-widget-button.th-pill .elementor-button{background:#FDF8F2;border:1px solid #F5EFE8;color:#30504B!important;box-shadow:none;text-shadow:none;font-weight:400;font-size:14px;padding:6px 14px}
.elementor-widget-button.th-pill .elementor-button:hover{background:#FBF1E6;color:#C86A3A}
.elementor-widget-button.th-pill .elementor-button .elementor-button-text{color:inherit}
.elementor-widget-button.th-side-btn .elementor-button{background:#30504B;color:#fff;border:none;border-radius:20px;text-transform:uppercase;font-weight:600;font-size:14px;padding:13px 28px;box-shadow:none}
.elementor-widget-button.th-side-btn .elementor-button:hover{background:#26403B;color:#fff}
.elementor-widget-button.th-side-btn .elementor-button .elementor-button-text{color:#fff}
.th-calloutcol>.elementor-element-populated{background:#FDF8F2;border:1px solid #F5EFE8;border-left:3px solid #C86A3A;border-radius:14px;padding:16px 20px}
/* titre de page (maquette) + masque titre CMS par défaut */
.cms-id-9 .page-header{display:none}
.elementor-widget-heading.th-pagetitle .elementor-heading-title{font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:28px;color:#2F4F4A;line-height:1.15;margin:0}
.th-pagetitle{margin-bottom:14px}
/* cartes Taille + Type : cadre + espacement régulier */
.th-card>.elementor-element-populated,.th-typecard>.elementor-element-populated{background:#fff;border:1px solid #DBD7D1;border-radius:20px;padding:24px 34px 25px;height:100%}
.th-cardrow{margin-bottom:24px}
.th-cardrow>.elementor-container{gap:24px}
.th-cardrow .elementor-column{padding:0!important}
/* icônes agrandies */
.th-iccol{width:58px!important;flex:0 0 58px!important}
.th-contentcol{width:calc(100% - 68px)!important;flex:1 1 auto!important;margin-left:10px}
.th-ic .elementor-widget-container{width:40px!important;height:40px!important}
.th-ic svg{display:block;width:100%;height:100%}
.th-dot svg{width:24px!important;height:24px!important;display:block}
.th-dot .elementor-widget-container{display:flex;align-items:center;height:40px}
/* HEADER */
.th-inforow{margin-bottom:16px}
.th-inforow>.elementor-container,.th-inforowcol>.elementor-element-populated{padding:0}
.th-inforow .elementor-widget-heading{display:inline-block;vertical-align:middle;width:auto;margin-right:14px}
.th-pill-badge .elementor-heading-title{display:inline-block;background:rgba(220,236,223,0.5);border-radius:20px;padding:6px 14px;font-size:10px;font-weight:400;text-transform:uppercase;letter-spacing:.5px;line-height:1}
.th-readtime .elementor-heading-title{font-size:14px;font-weight:400}
.th-lead{margin-bottom:22px}
.th-lead .elementor-widget-container{border-left:2px solid #C86A3A!important;padding-left:18px}
.th-lead .elementor-widget-container,.th-lead .elementor-widget-container p{font-size:14px;line-height:1.65;color:#6F6A63;text-align:justify;margin:0}
.th-author{margin:0 0 22px}
.th-author>.elementor-container{display:inline-flex;align-items:center;gap:10px;background:rgba(220,236,223,0.5);border-radius:0 20px 20px 0;padding:8px 18px;max-width:360px}
.th-avatarcol{width:45px!important;flex:0 0 45px!important}
.th-avatarcol>.elementor-element-populated,.th-authortextcol>.elementor-element-populated{padding:0}
.th-avatar img{width:45px;height:45px;border-radius:50%;object-fit:cover;display:block}
.th-authortextcol{width:auto!important;flex:0 1 auto!important}
.th-authorname .elementor-heading-title{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:14px;line-height:1.2}
.th-authorrole .elementor-widget-container,.th-authorrole .elementor-widget-container p{font-size:14px;color:#6F6A63;margin:0}
.th-intro2{margin-bottom:10px}
.th-intro2 .elementor-widget-container,.th-intro2 .elementor-widget-container p{font-size:14px;line-height:1.65;color:#6F6A63;text-align:justify;margin:0 0 10px}
/* GRILLE PRODUIT */
.th-prodgrid .ce-product-grid{display:block;grid-template-columns:1fr;gap:0;margin:0}
.th-prodgrid .mws-product-card{display:flex;flex-direction:row!important;flex-wrap:nowrap;align-items:center;gap:10px;padding:14px 0;margin:0;border-top:1px solid #E7E2DB;background:none;box-shadow:none;border-radius:0;text-align:left}
.th-prodgrid .mws-product-card__img-wrap{flex:0 0 63px;width:63px;height:57px;margin:0;padding:0;align-self:flex-start}
.th-prodgrid .mws-product-card__img-link,.th-prodgrid .mws-product-card__picture{display:block;width:63px;height:57px}
.th-prodgrid .mws-product-card__img{width:63px;height:57px;object-fit:cover;border-radius:8px}
.th-prodgrid .mws-product-card__img-wrap img.faded{display:none}
.th-prodgrid .mws-product-card__info{flex:1 1 auto;min-width:0;text-align:left;padding:0;margin:0}
.th-prodgrid .mws-product-card__name{font-weight:600;font-size:14px;line-height:1.35;color:#30504B;text-transform:uppercase;text-decoration:none;display:block;margin:0 0 2px}
.th-prodgrid .mws-product-card__cat{display:none}
.th-prodgrid .mws-product-card__price,.th-prodgrid .mws-product-card__info [class*=price]{font-weight:600;font-size:14px;color:#30504B}
.th-prodgrid .mws-product-card__atc,.th-prodgrid .mws-product-card__qv{display:none}
.th-prodgrid .product-flags,.th-prodgrid [class*=badge]{display:none}

/* ===== FAQ Accordéon (Comment choisir l'endroit idéal ?) ===== */
.th-faq .elementor-accordion{border:none}
.th-faq .elementor-accordion-item{border:1px solid #DBD7D1!important;border-radius:20px;background:#fff;margin-bottom:14px;overflow:hidden}
.th-faq .elementor-tab-title{border:none!important;background:#fff!important;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}
.th-faq .elementor-tab-title .elementor-accordion-title{font-family:'Inter',sans-serif;font-weight:600;font-size:14px;color:#30504B;text-decoration:none;order:1;flex:1 1 auto}
.th-faq .elementor-tab-title .elementor-accordion-icon{order:2;margin:0!important;padding:0;color:#30504B;width:auto}
.th-faq .elementor-tab-title .elementor-accordion-icon svg{width:13px;height:13px;fill:#30504B}
.th-faq .elementor-tab-title .elementor-accordion-icon i{font-size:13px;color:#30504B}
.th-faq .elementor-tab-title .elementor-accordion-icon-closed,.th-faq .elementor-tab-title .elementor-accordion-icon-opened{display:inline-flex}
.th-faq .elementor-tab-content{border:none!important;padding:2px 20px 16px;font-size:14px;line-height:1.6;color:#6F6A63;background:#fff}
.th-faq .elementor-tab-content p{margin:0}

/* ===== TOUS LES TITRES EN PLAYFAIR DISPLAY (priorité sur le thème) ===== */
.elementor-widget-heading.th-eyebrow .elementor-heading-title,
.elementor-widget-heading.th-h2 .elementor-heading-title,
.elementor-widget-heading.th-ctitle .elementor-heading-title,
.elementor-widget-heading.th-itemtitle .elementor-heading-title,
.elementor-widget-heading.th-sub .elementor-heading-title,
.elementor-widget-heading.th-side-title .elementor-heading-title,
.elementor-widget-heading.th-authorname .elementor-heading-title,
.elementor-widget-heading.th-pagetitle .elementor-heading-title{font-family:'Playfair Display',Georgia,serif!important}

/* ===== FIX header : badge pilule + ligne info inline + encadré équipe ===== */
.th-inforow .elementor-widget-heading{display:inline-block!important;width:auto!important;vertical-align:middle}
.elementor-widget-heading.th-pill-badge .elementor-heading-title{display:inline-block;background:rgba(220,236,223,0.5);border-radius:20px;padding:6px 14px!important;line-height:1}
.elementor-widget-heading.th-readtime{margin-left:6px}
.th-author>.elementor-container{display:inline-flex!important;width:auto!important;max-width:360px}

/* ===== H3 sous-titres un peu plus grands ===== */
.elementor-widget-heading.th-sub .elementor-heading-title{font-size:18px}
/* ===== Accordéon : titre actif en vert foncé (supprime le vert fluo Elementor) ===== */
.th-faq .elementor-tab-title .elementor-accordion-title,
.th-faq .elementor-tab-title.elementor-active .elementor-accordion-title,
.th-faq .elementor-tab-title.elementor-active a,
.th-faq .elementor-tab-title a{color:#30504B!important}

/* ===== Espace entre les cartes (Taille / Type) — robuste ===== */
.th-cardrow>.elementor-container{display:flex!important;flex-wrap:nowrap!important;gap:28px!important;align-items:stretch}
.th-cardrow>.elementor-container>.elementor-column{flex:1 1 0!important;width:auto!important;max-width:none!important;min-width:0;padding:0!important;margin:0!important}
.th-cardrow{margin-bottom:28px}
@media(max-width:767px){
  .th-cardrow>.elementor-container{flex-wrap:wrap!important;gap:18px!important}
  .th-cardrow>.elementor-container>.elementor-column{flex:1 1 100%!important}
}

/* ===== Espace entre cartes — cible .elementor-row (vrai parent flex) ===== */
.th-cardrow .elementor-row{display:flex!important;flex-wrap:nowrap!important;gap:28px!important;align-items:stretch;margin:0!important;width:auto!important}
.th-cardrow .elementor-row>.elementor-column{flex:1 1 0!important;width:auto!important;max-width:none!important;min-width:0;padding:0!important;margin:0!important}
@media(max-width:767px){
  .th-cardrow .elementor-row{flex-wrap:wrap!important;gap:18px!important}
  .th-cardrow .elementor-row>.elementor-column{flex:1 1 100%!important}
  #content-wrapper img{
    max-width:100%!important;
    height:auto!important
  }
}

/* ===== CONTENU EN INTER (pas Roboto) ===== */
.th-block .elementor-widget-text-editor, .th-block .elementor-widget-text-editor *,
.th-sideblock .elementor-widget-text-editor, .th-sideblock .elementor-widget-text-editor *,
.th-lead, .th-lead *, .th-intro2, .th-intro2 *, .th-authorrole, .th-authorrole *,
.th-faq .elementor-accordion-title, .th-faq .elementor-tab-content, .th-faq .elementor-tab-content *,
.th-prodgrid .mws-product-card__name, .th-prodgrid .mws-product-card__price,
.elementor-widget-heading.th-pill-badge .elementor-heading-title,
.elementor-widget-heading.th-readtime .elementor-heading-title{font-family:'Inter',Arial,sans-serif!important}

/* ═══════════════════════════════════════════════════════════════════════
   CONTENU CMS SAISI EN HTML SIMPLE (éditeur du BO, sans Creative Elements)
   Reprend la charte du guide « Comment bien choisir son hamac » (cms-9,
   classes th-* ci-dessus) : titres Playfair, texte Inter, vert #30504B,
   accent #C86A3A, cartes et encadrés beiges.

   Portée : #content.page-cms qui NE contient PAS de .elementor. Les pages
   montées avec Creative Elements (cms-3 CGV, cms-9 guide) ne sont pas
   touchées ; toute page CMS en HTML simple, actuelle ou future, l'est.

   Surcharge au passage le rendu Classic de .page-content.page-cms
   (titres en majuscules, fond blanc, texte justifié, puces « inside »).
   ═══════════════════════════════════════════════════════════════════════ */

#content.page-cms:not(:has(.elementor)) {
  --cms-green: #30504B;
  --cms-text: #30504B;
  --cms-muted: #A9A5A0;
  --cms-accent: #C86A3A;
  --cms-line: #E7E2DB;
  --cms-border: #DBD7D1;
  --cms-cream: #FDF8F2;
  --cms-cream-border: #F5EFE8;
  --cms-p-mb: 14px;

  /* Pleine largeur du conteneur, sans panneau : on neutralise seulement
     le fond blanc et le padding que Classic pose sur .page-content.page-cms */
  padding: 8px 0 64px;
  background: none;
  text-align: left;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cms-text);
}

/* ── Titre de la page (h1 du page-header) ──
   :has() ne peut pas être imbriqué dans un autre :has() : on cible donc
   #main sans .elementor plutôt que « page-header suivi d'un contenu brut ». */
body.page-cms #main:not(:has(.elementor)) > .page-header {
  margin: 0;
  padding: 0;
  background: none;
}
body.page-cms #main:not(:has(.elementor)) > .page-header h1 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  text-transform: none;
  color: #30504B;
}

/* ── Respiration entre le fil d'Ariane et le contenu ── */
body.page-cms #wrapper .breadcrumb {
  margin-bottom: 30px;
}

/* ── Fond beige de la charte, comme le panier et le tunnel ──
   Pages CMS en HTML simple uniquement : #wrapper contient le contenu, donc
   :not(:has(.elementor)) écarte les pages Creative Elements. */
body#cms #wrapper:not(:has(.elementor)) {
  background: var(--tp-bg-beige, #F5EFE8);
}

/* ── Titres ──────────────────────────────────────────────────────────
   Chaque niveau porte ses marges en variables : le garde-fou « styles en
   ligne » plus bas peut ainsi les rétablir sans les redéclarer. */
#content.page-cms:not(:has(.elementor)) :is(h1, h2, h3, h4, h5, h6) {
  margin: var(--cms-mt) 0 var(--cms-mb);
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cms-green);
}
#content.page-cms:not(:has(.elementor)) :is(h1, h2, h3, h4, h5, h6) strong {
  font-weight: inherit;
}

/* h2 = nouvelle section : filet de séparation, comme les .th-sep du guide.
   Un h1 saisi dans le contenu prend le même rendu (le vrai h1 est le titre). */
#content.page-cms:not(:has(.elementor)) :is(h1, h2) {
  --cms-mt: 48px;
  --cms-mb: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--cms-line);
  font-weight: 500;
  font-size: 26px;
}
#content.page-cms:not(:has(.elementor)) > :is(h1, h2):first-child {
  --cms-mt: 0;
  padding-top: 0;
  border-top: 0;
}
#content.page-cms:not(:has(.elementor)) h3 {
  --cms-mt: 32px;
  --cms-mb: 10px;
  font-weight: 600;
  font-size: 19px;
}
#content.page-cms:not(:has(.elementor)) h4 {
  --cms-mt: 26px;
  --cms-mb: 8px;
  font-weight: 600;
  font-size: 17px;
}
#content.page-cms:not(:has(.elementor)) :is(h5, h6) {
  --cms-mt: 22px;
  --cms-mb: 6px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
}
#content.page-cms:not(:has(.elementor)) h6 {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Titre suivi directement d'un titre plus petit : on resserre */
#content.page-cms:not(:has(.elementor)) :is(h2, h3, h4) + :is(h3, h4, h5) {
  --cms-mt: 12px;
}

/* ── Texte ── */
#content.page-cms:not(:has(.elementor)) p {
  margin: 0 0 var(--cms-p-mb);
  font-size: inherit;
  color: inherit;
}
#content.page-cms:not(:has(.elementor)) :is(strong, b) {
  font-weight: 600;
  color: var(--cms-green);
}
/* … sauf dans un lien, qui garde sa couleur (cas vécu sur cms-28) */
#content.page-cms:not(:has(.elementor)) a :is(strong, b) {
  color: inherit;
}
/* Liens : couleur d'accent du guide + soulignement discret. Le soulignement
   est gardé car l'orange seul ne se distingue pas assez du texte gris. */
#content.page-cms:not(:has(.elementor)) a {
  font-weight: 600;
  color: var(--cms-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 106, 58, .35);
  transition: text-decoration-color .2s ease;
}
#content.page-cms:not(:has(.elementor)) a:hover {
  text-decoration-color: currentColor;
}

/* ── Listes ── */
#content.page-cms:not(:has(.elementor)) :is(ul, ol) {
  margin: 0 0 18px;
  padding-left: 24px;
}
#content.page-cms:not(:has(.elementor)) ul { list-style: disc outside; }
#content.page-cms:not(:has(.elementor)) ol { list-style: decimal outside; }
#content.page-cms:not(:has(.elementor)) li {
  margin: 0 0 8px;
  padding-left: 4px;
}
#content.page-cms:not(:has(.elementor)) li::marker {
  font-weight: 600;
  color: var(--cms-accent);
}
#content.page-cms:not(:has(.elementor)) li :is(ul, ol) { margin: 8px 0 0; }
#content.page-cms:not(:has(.elementor)) li > p:last-child { margin-bottom: 0; }
#content.page-cms:not(:has(.elementor)) li > :is(h2, h3, h4, h5, h6) { --cms-mt: 0; }

/* ── Images ── */
#content.page-cms:not(:has(.elementor)) img {
  display: block;            /* sans lui, les margin:auto posés par l'éditeur ne centrent rien */
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 16px;
}
#content.page-cms:not(:has(.elementor)) p:has(> img:only-child) { margin: 0; }
#content.page-cms:not(:has(.elementor)) figure { margin: 28px 0; }
#content.page-cms:not(:has(.elementor)) figure img { margin: 0 auto 10px; }
#content.page-cms:not(:has(.elementor)) figcaption {
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* ── Citation → encadré du guide (.th-callout) ── */
#content.page-cms:not(:has(.elementor)) blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--cms-cream);
  border: 1px solid var(--cms-cream-border);
  border-left: 3px solid var(--cms-accent);
  border-radius: 14px;
  font-style: normal;
  color: var(--cms-text);
}
#content.page-cms:not(:has(.elementor)) blockquote > :last-child { margin-bottom: 0; }

/* ── Séparateur ── */
#content.page-cms:not(:has(.elementor)) hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--cms-line);
}

/* ── Tableaux → carte bordée du guide (.th-card) ── */
#content.page-cms:not(:has(.elementor)) table {
  width: 100%;
  margin: 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cms-border);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
#content.page-cms:not(:has(.elementor)) :is(th, td) {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--cms-line);
}
#content.page-cms:not(:has(.elementor)) tr:last-child > :is(th, td) { border-bottom: 0; }
/* En-têtes : dans un thead ou en première ligne (cas de l'éditeur du BO) */
#content.page-cms:not(:has(.elementor)) th {
  font-weight: 600;
  color: var(--cms-green);
  background: var(--cms-cream);
}
#content.page-cms:not(:has(.elementor)) tbody tr:nth-child(even) > td { background: #FFFCF9; }
#content.page-cms:not(:has(.elementor)) :is(th, td) > :last-child { margin-bottom: 0; }

/* ── Vidéos intégrées ── */
#content.page-cms:not(:has(.elementor)) iframe {
  display: block;
  max-width: 100%;
  margin: 24px auto;
  border: 0;
  border-radius: 16px;
}
#content.page-cms:not(:has(.elementor)) iframe:is([src*="youtube"], [src*="vimeo"]) {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ── Garde-fou : styles en ligne collés depuis Word ou un autre site ──
   !important obligatoire pour passer devant un attribut style. On ne
   neutralise que ce qui casse la charte (marges nulles, polices, fonds) ;
   les alignements et couleurs choisis volontairement sont conservés. */
#content.page-cms:not(:has(.elementor)) p[style*="margin"] {
  margin: 0 0 var(--cms-p-mb) !important;
}
#content.page-cms:not(:has(.elementor)) :is(h1, h2, h3, h4, h5, h6)[style*="margin"] {
  margin: var(--cms-mt) 0 var(--cms-mb) !important;
}
#content.page-cms:not(:has(.elementor)) [style*="font-family"] {
  font-family: inherit !important;
}
#content.page-cms:not(:has(.elementor)) :is(p, span, div)[style*="background"] {
  background: none !important;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  #content.page-cms:not(:has(.elementor)) {
    padding: 8px 0 40px;
  }
  body.page-cms #wrapper .breadcrumb { margin-bottom: 20px; }
  body.page-cms #main:not(:has(.elementor)) > .page-header h1 { font-size: 24px; }
  #content.page-cms:not(:has(.elementor)) :is(h1, h2) {
    --cms-mt: 36px;
    padding-top: 24px;
    font-size: 22px;
  }
  #content.page-cms:not(:has(.elementor)) h3 { font-size: 18px; }
  #content.page-cms:not(:has(.elementor)) h4 { font-size: 16px; }
  /* Tableau plus large que l'écran : défilement horizontal plutôt que débordement */
  #content.page-cms:not(:has(.elementor)) table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ─── Pages guide : sommaire en premier sur mobile ───────────────────────
   La barre latérale (sommaire + produits recommandés + guides liés) s'empile
   après le contenu sous 768px, le sommaire se retrouvait aux trois quarts de
   la page. `order` ne jouant qu'entre frères, on efface les boîtes de la
   colonne avec `display: contents` : les trois blocs deviennent enfants
   directs de la rangée et peuvent alors être ordonnés autour du contenu. */
@media (max-width: 767px) {
  body#cms .elementor-row > .sticky-sidebar,
  body#cms .elementor-row > .sticky-sidebar > .elementor-column-wrap,
  body#cms .elementor-row > .sticky-sidebar > .elementor-column-wrap > .elementor-widget-wrap {
    display: contents;
  }

  body#cms .elementor-row > .sticky-sidebar > .elementor-column-wrap > .elementor-widget-wrap > .th-sideblock {
    width: 100%;
    order: 1;
  }

  body#cms .elementor-row > .sticky-sidebar > .elementor-column-wrap > .elementor-widget-wrap > .th-toccard {
    order: -1;
    margin-bottom: 32px;
  }
}
