/* Achakar32 Blog Design – articles (single post). Desktop > 1024px, tablette 768-1024px, mobile < 768px.
   Les sélecteurs couvrent le widget Elementor "Contenu de l'article" et les thèmes classiques. */

body.a32bd{
  --a32-blue:#055393;--a32-navy:#12124a;--a32-cyan:#08c4e0;--a32-soft:#c7dade;--a32-text:#3b4560;
  --a32-line:#d9e6ea;--a32-fs:17px;--a32-lh:1.78;--a32-h2:32px;--a32-h3:24px;--a32-gap:1.2em;
  --a32-pad:24px;--a32-radius:18px;
}
@media (max-width:1024px){body.a32bd{--a32-fs:17px;--a32-h2:29px;--a32-h3:22px;--a32-pad:22px}}
@media (max-width:767px){body.a32bd{--a32-fs:16px;--a32-lh:1.72;--a32-h2:25px;--a32-h3:20px;--a32-pad:16px;--a32-radius:14px}}

/* ---------- Titre et métadonnées ---------- */
body.a32bd :is(.elementor-widget-theme-post-title .elementor-heading-title, h1.entry-title, .entry-header .entry-title, h1.post-title){
  font-family:'Signika',system-ui,sans-serif;font-weight:600;color:var(--a32-navy);
  font-size:clamp(28px,4.4vw,46px);line-height:1.14;letter-spacing:-.01em;text-wrap:balance;margin:0 0 .4em;
}
body.a32bd :is(.elementor-widget-post-info, .entry-meta, .post-meta){font-size:14px;color:#6b7a82}
body.a32bd :is(.elementor-widget-theme-post-featured-image img, .post-thumbnail img, .wp-post-image){
  display:block;width:100%;height:auto;border-radius:var(--a32-radius);
}

/* ---------- Contenu ---------- */
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content){
  font-family:'Inter',system-ui,sans-serif;font-size:var(--a32-fs);line-height:var(--a32-lh);color:var(--a32-text);
  overflow-wrap:anywhere;hyphens:auto;
}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) > * :where(p,ul,ol){max-width:100%}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) :where(p,ul,ol,blockquote,figure,table,.wp-block-image){margin:0 0 var(--a32-gap)}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) :where(h2,h3,h4){
  font-family:'Signika',system-ui,sans-serif;color:var(--a32-navy);font-weight:600;line-height:1.2;text-wrap:balance;
  scroll-margin-top:96px;
}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) h2{font-size:var(--a32-h2);margin:2em 0 .55em}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) h3{font-size:var(--a32-h3);margin:1.6em 0 .5em}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) h4{font-size:18px;margin:1.4em 0 .4em}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) a{color:var(--a32-blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) a:hover{text-decoration-thickness:2px}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) strong{color:var(--a32-navy);font-weight:600}

/* Listes */
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) :where(ul.wp-block-list, ul){padding-left:1.25em}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) li{margin:.35em 0}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) li::marker{color:var(--a32-cyan)}

/* Images */
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) img{max-width:100%;height:auto;border-radius:16px}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) figcaption{font-size:14px;color:#6b7a82;text-align:center;margin-top:.5em}

/* Citation */
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) blockquote{
  border-left:4px solid var(--a32-cyan);background:var(--a32-soft);padding:1em 1.2em;border-radius:0 var(--a32-radius) var(--a32-radius) 0;
  color:var(--a32-navy);font-size:1.04em;
}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) blockquote p:last-child{margin-bottom:0}

/* Tableaux */
body.a32bd .a32bd-table{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 var(--a32-gap);border:1px solid var(--a32-line);border-radius:14px}
body.a32bd .a32bd-table table{margin:0;border-collapse:collapse;width:100%;min-width:480px;font-size:.95em}
body.a32bd .a32bd-table :is(th,td){padding:10px 14px;border-bottom:1px solid var(--a32-line);text-align:left}
body.a32bd .a32bd-table th{background:var(--a32-soft);color:var(--a32-navy)}

/* ---------- Composants générés par le script ---------- */
/* Temps de lecture */
body.a32bd .a32bd-readtime{
  display:inline-block;background:var(--a32-soft);color:var(--a32-navy);border-radius:999px;
  padding:5px 14px;font-size:14px;font-weight:600;line-height:1.4;margin:1em 0 1.2em;
}
/* Points clés et Sommaire */
body.a32bd .a32bd-box{border-radius:var(--a32-radius);padding:var(--a32-pad);margin:0 0 1.6em}
body.a32bd .a32bd-box--key{background:#fff;border:1px solid var(--a32-line);border-left:5px solid var(--a32-cyan)}
body.a32bd .a32bd-box--toc{background:var(--a32-soft)}
body.a32bd .a32bd-box__title{font-family:'Signika',system-ui,sans-serif;font-size:20px;font-weight:600;color:var(--a32-navy);margin:0 0 .6em !important}
body.a32bd .a32bd-box ul{margin:0 !important;padding-left:1.2em}
body.a32bd .a32bd-box--toc ul{list-style:none;padding-left:0;counter-reset:a32toc}
body.a32bd .a32bd-box--toc li{counter-increment:a32toc;display:flex;gap:.7em;margin:.45em 0}
body.a32bd .a32bd-box--toc li::before{content:counter(a32toc);flex:none;width:1.7em;height:1.7em;border-radius:50%;background:var(--a32-blue);color:#fff;font-size:.8em;font-weight:600;display:inline-flex;align-items:center;justify-content:center;margin-top:.15em}
body.a32bd .a32bd-box--toc a{text-decoration:none;font-weight:500}
body.a32bd .a32bd-box--toc a:hover{text-decoration:underline}
@media (min-width:1025px){body.a32bd .a32bd-box--toc ul{columns:2;column-gap:2em}body.a32bd .a32bd-box--toc li{break-inside:avoid}}

/* Réponse rapide (si présent) */
body.a32bd .a32bd-quick{background:var(--a32-blue);color:#e8f3fb;border-radius:var(--a32-radius);padding:var(--a32-pad);margin:0 0 1.6em}
body.a32bd .a32bd-quick strong{color:#fff}
body.a32bd .a32bd-quick p:last-child{margin-bottom:0}

/* FAQ */
body.a32bd .a32bd-qa{background:var(--a32-soft);border-radius:14px;margin:0 0 12px;overflow:hidden}
body.a32bd .a32bd-qa__q{margin:0 !important;padding:14px var(--a32-pad);font-family:'Signika',system-ui,sans-serif;font-size:18px;color:var(--a32-navy)}
body.a32bd .a32bd-qa__q strong{font-weight:600}
body.a32bd .a32bd-qa__a{margin:0 10px 10px !important;padding:14px 16px;background:#fff;border-radius:10px;border:1px solid #bcd3da}

/* Encadré de réservation (ajouté par le plugin si activé) */
body.a32bd .a32bd-cta{background:var(--a32-blue);color:#e8f3fb;border-radius:calc(var(--a32-radius) + 6px);padding:clamp(24px,4vw,44px);text-align:center;margin:2.4em 0 0}
body.a32bd .a32bd-cta__title{font-family:'Signika',system-ui,sans-serif;color:#fff !important;font-size:clamp(24px,3.4vw,34px);margin:0 0 .4em !important}
body.a32bd .a32bd-cta__text{margin:0 auto 1em;max-width:560px}
body.a32bd .a32bd-cta__btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
body.a32bd .a32bd-btn{display:inline-block;border-radius:999px;padding:12px 24px;font-weight:600;font-size:15px;text-decoration:none !important;border:2px solid transparent;transition:transform .15s}
body.a32bd .a32bd-btn:hover{transform:translateY(-1px)}
body.a32bd .a32bd-btn--cy{background:var(--a32-cyan);border-color:var(--a32-cyan);color:var(--a32-navy) !important}
body.a32bd .a32bd-btn--wh{background:#fff;border-color:#fff;color:var(--a32-blue) !important}
@media (max-width:767px){body.a32bd .a32bd-btn{width:100%;text-align:center}}

/* Barre de progression */
.a32bd-progress-bar{position:fixed;top:0;left:0;height:4px;width:0;background:var(--a32-cyan);z-index:99999;transition:width .1s linear;pointer-events:none}
body:not(.a32bd-progress) .a32bd-progress-bar{display:none}
@media (prefers-reduced-motion:reduce){.a32bd-progress-bar{transition:none}body.a32bd *{scroll-behavior:auto !important}}

/* Ancres: défilement doux avec marge */
html:has(body.a32bd){scroll-behavior:smooth}

/* Évite tout débordement horizontal (tableaux larges, longues URL) */
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content){min-width:0;max-width:100%}
body.a32bd .a32bd-table{max-width:100%}
body.a32bd :is(.elementor-widget-theme-post-content, .entry-content, .post-content) :where(pre,iframe,video){max-width:100%}

/* Image mise en avant (1024x572): toujours affichée en entier, sans recadrage */
body.a32bd :is(.elementor-widget-theme-post-featured-image, .post-thumbnail, .wp-block-post-featured-image, .entry-thumb){
  height:auto !important;max-height:none !important;overflow:visible;
}
body.a32bd :is(.elementor-widget-theme-post-featured-image, .post-thumbnail, .wp-block-post-featured-image, .entry-thumb) :is(.elementor-widget-container,a,figure){
  height:auto !important;max-height:none !important;display:block;
}
body.a32bd :is(.elementor-widget-theme-post-featured-image img, .post-thumbnail img, .wp-block-post-featured-image img, .entry-thumb img, img.wp-post-image){
  display:block;width:100% !important;height:auto !important;max-height:none !important;
  aspect-ratio:1024/572;object-fit:contain !important;object-position:center;
}

/* Image mise en avant repérée par le script */
body.a32bd .a32bd-feat-wrap{height:auto !important;min-height:0 !important;max-height:none !important;overflow:visible !important;aspect-ratio:auto !important;padding-top:0 !important;padding-bottom:0 !important}
body.a32bd img.a32bd-feat{display:block;width:100% !important;height:auto !important;max-width:100% !important;max-height:none !important;min-height:0 !important;aspect-ratio:1024/572 !important;object-fit:contain !important;object-position:center !important;border-radius:var(--a32-radius)}
