/* UNPNC : gabarit commun pour les articles WordPress, sans changer leur contenu. */
body.single-post:not(.elementor-editor-active){
  --unpnc-article-background:#071d2d;
  --unpnc-article-panel:#0d293d;
  --unpnc-article-line:#244b62;
  --unpnc-article-foreground:#f1f8fc;
  --unpnc-article-muted:#bed3e0;
  --unpnc-article-cyan:#79d9ff;
  background-color:var(--unpnc-article-background)!important;
  color:var(--unpnc-article-foreground);
}
body.single-post:not(.elementor-editor-active) :is(#page,#content,.site-content,.content-area,.site-main,main#main,.elementor-location-single){
  background-color:var(--unpnc-article-background)!important;
}
body.single-post:not(.elementor-editor-active) :is(article.post,.type-post,.single-post-content,.entry-content,.post-content){
  background-color:transparent!important;
  color:var(--unpnc-article-foreground);
}
body.single-post:not(.elementor-editor-active) :is(.entry-title,.post-title,.elementor-widget-theme-post-title h1){
  color:#ffffff!important;
  font-weight:780;
  letter-spacing:-.024em;
  line-height:1.17;
}
body.single-post:not(.elementor-editor-active) :is(.entry-meta,.post-meta,.posted-on){
  color:var(--unpnc-article-muted);
}
body.single-post:not(.elementor-editor-active) .unpnc-article-body{
  width:100%;max-width:100%;overflow-wrap:anywhere;
  color:var(--unpnc-article-foreground);
  font-size:clamp(16px,1.65vw,18px);
  line-height:1.76;
}
/* Laisser les blocs Elementor et WordPress gérer leurs couleurs de texte.
   Les paragraphes non personnalisés héritent du blanc du conteneur. */
body.single-post:not(.elementor-editor-active) .unpnc-article-body > :is(h1,h2,h3,h4,h5,h6,.wp-block-heading){color:#ffffff;line-height:1.27;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body a:not(.elementor-button){color:var(--unpnc-article-cyan);text-underline-offset:3px;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body a:hover{color:#ffffff;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body :is(img,video,iframe){max-width:100%;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body img{height:auto;object-fit:contain;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body :is(figure,video,iframe){max-width:100%;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body table{display:block;max-width:100%;overflow-x:auto;}
body.single-post:not(.elementor-editor-active) .unpnc-article-body blockquote{padding:12px 22px;border-left:3px solid var(--unpnc-article-cyan);background:var(--unpnc-article-panel);}
/* Suggestions après l'article : trois publications actives et accès à l'archive. */
body.single-post:not(.elementor-editor-active) .unpnc-article-latest{box-sizing:border-box;clear:both;width:100%;max-width:1050px;margin:52px auto 16px;padding:30px 26px 28px;border:1px solid #23516c;border-radius:20px;background:linear-gradient(145deg,#0b2a40,#091d30);color:#f1f8fc;box-shadow:0 16px 36px rgba(0,8,20,.2);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-header{margin-bottom:23px}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-eyebrow{display:block;margin-bottom:7px;color:#76d7fb;font-size:12px;font-weight:850;letter-spacing:.12em}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest h2{margin:0!important;color:#fff!important;font-size:clamp(23px,2.7vw,30px)!important;font-weight:800;line-height:1.22;letter-spacing:-.02em}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-card{display:flex;min-width:0;overflow:hidden;flex-direction:column;border:1px solid #27546e;border-radius:14px;background:#102f45;color:#fff!important;text-decoration:none!important;box-shadow:0 7px 18px rgba(0,10,26,.15);transition:transform .18s,border-color .18s,box-shadow .18s}
body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-card:hover{transform:translateY(-3px);border-color:#7ad8ff;box-shadow:0 12px 24px rgba(0,10,26,.35)}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-image{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/10;overflow:hidden;background:#173e56}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-image img{display:block;width:100%;height:100%;object-fit:contain}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-placeholder{background:linear-gradient(125deg,#164c6c,#0b263e);color:#6fd8fa;font-size:23px;font-weight:900;letter-spacing:.16em}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:10px;padding:17px 16px 18px;overflow-wrap:anywhere}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-copy time{color:#b5cfdd;font-size:12px;line-height:1.3;font-weight:700}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-copy strong{color:#fff;font-size:17px;line-height:1.35;font-weight:780}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-read{margin-top:auto;color:#7cdaff;font-size:13px;font-weight:800}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-empty{color:#c4d8e4}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest-actions{display:flex;justify-content:center;margin-top:26px}
body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-all{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:12px 25px;border:1px solid #77dafd;border-radius:13px;background:linear-gradient(110deg,#127cb7,#0d5287);color:#fff!important;text-align:center;text-decoration:none!important;font-size:15px;font-weight:800;box-shadow:0 7px 20px rgba(0,11,26,.28)}
body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-all:hover{background:#1985be}
body.single-post:not(.elementor-editor-active) .unpnc-article-latest :is(a.unpnc-article-latest-card,a.unpnc-article-latest-all):focus-visible{outline:3px solid #a1e9ff;outline-offset:3px}
body.single-post:not(.elementor-editor-active) .unpnc-article-return{display:flex;justify-content:center;clear:both;margin:36px 0 44px;padding:0 12px;}
body.single-post:not(.elementor-editor-active) a.unpnc-article-return-link{
  display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:52px;
  padding:13px 25px;border:1px solid #60c8f0;border-radius:13px;
  background:linear-gradient(115deg,#126aa3,#0b4b7e);color:#fff!important;
  font:800 15px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  letter-spacing:.015em;text-decoration:none!important;
  box-shadow:0 8px 22px rgba(0,13,26,.25);transition:background .18s,transform .18s;
}
body.single-post:not(.elementor-editor-active) a.unpnc-article-return-link:hover{background:#1775ad;transform:translateY(-2px);}
body.single-post:not(.elementor-editor-active) a.unpnc-article-return-link:focus-visible{outline:3px solid #a1e9ff;outline-offset:4px;}
.unpnc-article-return-arrow{font-size:20px;line-height:1;}
@media(max-width:800px){
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  body.single-post:not(.elementor-editor-active) .unpnc-article-body{font-size:16px;line-height:1.65;}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest{margin:32px auto 12px;padding:21px 14px;border-radius:14px}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-header{margin-bottom:18px}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-grid{grid-template-columns:1fr;gap:13px}
  body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-card{flex-direction:row;min-height:124px}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-image{width:35%;min-width:108px;aspect-ratio:auto}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-copy{padding:12px;gap:7px}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-copy strong{font-size:15px}
  body.single-post:not(.elementor-editor-active) .unpnc-article-latest-actions{margin-top:19px}
  body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-all{width:100%}
  body.single-post:not(.elementor-editor-active) .unpnc-article-return{margin:26px 0 34px;}
  body.single-post:not(.elementor-editor-active) a.unpnc-article-return-link{width:100%;min-height:50px;padding:12px 14px;}
}
@media(prefers-reduced-motion:reduce){
  body.single-post:not(.elementor-editor-active) a.unpnc-article-return-link{transition:none;}
  body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-card{transition:none;}
  body.single-post:not(.elementor-editor-active) a.unpnc-article-latest-card:hover{transform:none;}
}

/* Les iframes vidéo restent proportionnées quand le contenu devient étroit. */
body.single-post:not(.elementor-editor-active) .unpnc-article-body iframe:is([src*="youtube.com"],[src*="youtu.be"],[src*="vimeo.com"],[src*="dailymotion.com"]){max-width:100%;width:100%;height:auto;aspect-ratio:16/9;}

/* UNPNC 0.9.234 : galeries successives JPEG et lecteur MP4 téléchargeable. */
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story,
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story *{box-sizing:border-box}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story{width:100%;max-width:960px;margin:26px auto 32px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__pages{display:flex;flex-direction:column;gap:22px}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__page{margin:0;padding:12px;border:1px solid #275672;border-radius:16px;background:linear-gradient(125deg,#0c2b40,#0b2338);box-shadow:0 10px 27px rgba(0,10,27,.23)}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__page img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border-radius:10px;background:transparent}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__page figcaption{padding:10px 6px 0;text-align:right;color:#a4cbde;font-size:12px;font-weight:700;letter-spacing:.025em}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video{margin:28px 0 0;padding:22px;background:linear-gradient(120deg,#0b2e48,#103d59);border:1px solid #327294;border-radius:18px;box-shadow:0 14px 32px rgba(0,10,28,.27)}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video-top{margin-bottom:16px}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__eyebrow{display:block;color:#6ed6fd;font-weight:800;font-size:11px;letter-spacing:.14em}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video h2{margin:6px 0 0;color:#fff!important;font-size:clamp(18px,2.1vw,23px);line-height:1.3}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video video{display:block;width:auto;max-width:100%;max-height:min(82vh,760px);height:auto;aspect-ratio:auto;object-fit:contain;margin:0 auto;background:#030c13;border-radius:12px}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video a.unpnc-editorial-story__download{display:flex;align-items:center;justify-content:center;max-width:410px;min-height:48px;margin:18px auto 0;padding:10px 18px;background:linear-gradient(110deg,#1379b3,#0c598d);border:1px solid #79d8f7;border-radius:12px;color:#fff!important;text-decoration:none!important;font-size:15px;font-weight:800;letter-spacing:.01em;box-shadow:0 6px 17px rgba(0,17,31,.2)}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video a.unpnc-editorial-story__download:hover{background:#1985bf;color:#fff!important}
body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video a.unpnc-editorial-story__download:focus-visible{outline:3px solid #9aeaff;outline-offset:3px}
@media(max-width:600px){body.single-post:not(.elementor-editor-active) .unpnc-editorial-story{margin:16px auto 22px}body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__pages{gap:14px}body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__page{padding:6px;border-radius:10px}body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__page img{border-radius:6px}body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video{padding:12px;margin-top:17px;border-radius:12px}body.single-post:not(.elementor-editor-active) .unpnc-editorial-story__video a.unpnc-editorial-story__download{max-width:none;width:100%}}
