/*
Theme Name: Pulse Discover
Theme URI: https://example.com/pulse
Author: Jourdan Wilfried
Author URI: https://example.com
Description: Thème WordPress universel optimisé pour Google Discover. Mobile-first, image-first, E-E-A-T et schema Article intégrés. S'adapte à toutes les thématiques (santé, finance, immobilier, business…) via des palettes de couleurs et des textes 100% éditables. Idéal pour sites de contenu monétisés (AdSense, affiliation).
Version: 1.11.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pulse
Tags: blog, news, one-column, custom-colors, custom-logo, featured-images, translation-ready
*/

/* Les couleurs sont injectées dynamiquement via inc/customizer.php
   (variables --brand, --brand-dk, --accent). Valeurs de secours ci-dessous. */
:root{
  --bg:#ffffff;--ink:#16181c;--ink-soft:#3f4853;--ink-light:#54606b;
  --brand:#0e6b5c;--brand-dk:#0a4a40;--accent:#c85a30;--accent-ink:#9c4626;
  --soft:#f5f7f8;--line:#eaedf0;--line-2:#dde2e7;
  --radius:14px;
  --font-head:'Fraunces',Georgia,serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:hidden;max-width:100%}
/* Sécurité : empêche tout contenu tiers injecté (pub, embed) de déborder en largeur */
main img,main iframe,main video,main embed,main object{max-width:100%}
body{font-family:var(--font-body);color:var(--ink);background:var(--bg);line-height:1.65;font-size:18px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.18;font-weight:600;color:var(--ink)}
a{color:var(--brand);text-decoration:none}
img{display:block;max-width:100%;height:auto}

/* Accessibilité : navigation clavier */
:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--brand);color:#fff;padding:10px 18px;border-radius:0 0 8px 0;z-index:999;font-weight:600}
.skip-link:focus{left:0}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Optimisation rendu : sections hors écran calculées à la demande */
.related,.about,.news,.bio,.sources{content-visibility:auto;contain-intrinsic-size:auto 400px}

/* Discover = mobile. Colonne unique lisible, centrée sur grand écran. */
.shell{max-width:680px;margin:0 auto;background:var(--bg)}

/* topbar */
.bar{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);z-index:30}
.admin-bar .bar{top:32px}
@media screen and (max-width:782px){.admin-bar .bar{top:46px}}
.bar .b{display:flex;align-items:center;gap:9px}
.bar .m{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand-dk));display:grid;place-items:center;color:#fff;font-family:var(--font-head);font-weight:700;font-size:16px;text-transform:uppercase}
.bar .nm{font-family:'Fraunces',serif;font-size:19px;font-weight:700;color:var(--brand-dk)}
.bar .logo-img{max-height:34px;width:auto}
.bar .menu-toggle{background:none;border:none;font-size:22px;cursor:pointer;color:var(--ink);padding:4px;min-width:44px;min-height:44px}

/* chips catégories */
.chips{display:flex;gap:9px;overflow-x:auto;padding:14px 20px;border-bottom:1px solid var(--line);-webkit-overflow-scrolling:touch;scrollbar-width:none}
/* Menu adaptatif sur PC : centré et bien réparti, quel que soit le nombre de catégories (4 ou 10) */
@media(min-width:1000px){
  .chips{justify-content:center;flex-wrap:wrap;overflow-x:visible;max-width:1180px;margin:0 auto}
}
.chips::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;font-size:14px;font-weight:600;padding:10px 16px;border-radius:30px;background:var(--soft);border:1px solid var(--line);color:var(--ink);white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}
.chip.on,.chip:hover{background:var(--brand);color:#fff;border-color:var(--brand)}

/* article de tête (home) */
.lead{padding:20px 20px 8px;display:block}
.lead .img{width:100%;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:linear-gradient(135deg,var(--brand),var(--brand-dk));margin-bottom:14px}
.lead .img img{width:100%;height:100%;object-fit:cover}
.lead .k{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:8px}
.lead h2{font-size:27px;letter-spacing:-.015em;line-height:1.16;margin-bottom:9px}
.lead .meta{font-size:13.5px;color:var(--ink-light)}

/* fil vertical */
.feed{padding:8px 20px 0}
.fitem{display:flex;gap:15px;padding:18px 0;border-top:1px solid var(--line)}
.fitem .txt{flex:1;min-width:0}
.fitem .k{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:6px}
.fitem h3{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:7px;font-family:'Fraunces',serif;color:var(--ink)}
.fitem .meta{font-size:12.5px;color:var(--ink-light)}
.fitem .img{width:120px;height:96px;flex-shrink:0;border-radius:11px;overflow:hidden;background:linear-gradient(135deg,var(--brand),var(--brand-dk))}
.fitem .img img{width:100%;height:100%;object-fit:cover}

/* bandeau fraîcheur */
.fresh{display:flex;align-items:center;gap:10px;background:var(--soft);border-radius:12px;padding:14px 18px;margin:22px 0 6px;font-size:14px;color:var(--ink-soft)}
.fresh .dot{width:9px;height:9px;border-radius:50%;background:#34c759;flex-shrink:0;box-shadow:0 0 0 4px rgba(52,199,89,.18)}
.fresh strong{color:var(--ink)}

/* présentation site */
.about{margin:26px 20px;background:linear-gradient(155deg,var(--brand-dk),var(--brand));border-radius:16px;padding:28px 24px;color:#fff}
.about .lb{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.7);margin-bottom:9px}
.about h2{color:#fff;font-size:23px;margin-bottom:10px}
.about p{font-size:14.5px;color:rgba(255,255,255,.85);line-height:1.55;margin-bottom:14px}
.about .pts{display:flex;flex-wrap:wrap;gap:8px}
.about .pt{font-size:12.5px;background:rgba(255,255,255,.14);padding:6px 12px;border-radius:30px}

/* newsletter */
.news{margin:26px 20px;text-align:center;padding:10px 0}
.news h2{font-size:22px;margin-bottom:8px}
.news p{font-size:14.5px;color:var(--ink-soft);margin-bottom:16px}
.news form{display:flex;flex-direction:column;gap:9px;max-width:340px;margin:0 auto}
.news input{padding:13px 16px;border:1px solid var(--line-2);border-radius:11px;font-size:15px;font-family:inherit}
.news button{background:var(--brand);color:#fff;border:none;font-weight:700;font-size:15px;padding:14px;border-radius:11px;cursor:pointer}

/* ===== ARTICLE ===== */
.head{padding:26px 20px 0}
.cat{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:13px}
h1.post-title{font-size:32px;letter-spacing:-.02em;margin-bottom:16px;line-height:1.14}
.dek{font-size:19px;color:var(--ink-soft);margin-bottom:20px;line-height:1.5}
.author{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.author .av{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dk));display:grid;place-items:center;color:#fff;font-weight:700;font-size:16px;flex-shrink:0;overflow:hidden}
.author .av img{width:100%;height:100%;object-fit:cover}
.author .info{flex:1;min-width:0}
.author .nm{font-weight:700;font-size:15px;color:var(--ink)}
.author .ro{font-size:13px;color:var(--ink-light)}
.author .dt{font-size:13px;color:var(--ink-light);text-align:right;flex-shrink:0}

.hero{position:relative;width:100%;aspect-ratio:16/9;background:linear-gradient(135deg,var(--brand),var(--brand-dk));overflow:hidden}
.hero img{width:100%;height:100%;object-fit:cover}
.cap{font-size:13.5px;color:var(--ink-light);padding:9px 20px 0;font-style:italic}

.content{padding:22px 20px 0;font-size:18.5px;line-height:1.75}
.content p{margin-bottom:21px}
.content > p:first-of-type::first-letter{font-family:'Fraunces',serif;font-size:58px;font-weight:700;float:left;line-height:.82;padding:6px 10px 0 0;color:var(--brand)}
.content h2{font-size:25px;margin:34px 0 14px;letter-spacing:-.01em}
.content h3{font-size:21px;margin:26px 0 10px}
.content ul,.content ol{margin:0 0 21px 22px}
.content li{margin-bottom:10px}
.content img{border-radius:12px;margin:14px 0}
.content strong{color:var(--ink)}
.content a,.content a:link,.content a:visited{color:var(--accent-ink) !important;text-decoration:underline !important;text-decoration-thickness:2px !important;text-decoration-color:var(--accent-ink) !important;text-underline-offset:2px;opacity:1 !important;font-weight:600;transition:opacity .15s}
.content a:hover{opacity:.7 !important}
.content blockquote{font-family:'Fraunces',serif;font-size:24px;font-weight:600;line-height:1.3;color:var(--brand-dk);padding:8px 0 8px 22px;border-left:4px solid var(--accent);margin:30px 0}

.keybox{background:var(--soft);border-left:4px solid var(--brand);border-radius:0 12px 12px 0;padding:18px 22px;margin:28px 0}
.keybox .lb{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin-bottom:7px}
.keybox p{font-size:16.5px;margin:0;color:var(--ink)}

.disclaimer{background:var(--soft);border-radius:10px;padding:15px 20px;font-size:14px;color:var(--ink-soft);margin:24px 20px}
.disclaimer strong{color:var(--brand-dk)}

.sources{margin:36px 20px 0;padding:22px 0;border-top:1px solid var(--line)}
.sources h3{font-family:'Inter',sans-serif;font-size:13px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:12px}
.sources ol{margin-left:18px;font-size:14.5px;color:var(--ink-soft);line-height:1.85}

.bio{display:flex;gap:15px;background:var(--soft);border-radius:var(--radius);padding:22px;margin:30px 20px;align-items:flex-start}
.bio .av{width:58px;height:58px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dk));display:grid;place-items:center;color:#fff;font-weight:700;font-size:21px;overflow:hidden}
.bio .av img{width:100%;height:100%;object-fit:cover}
.bio .lb{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:4px}
.bio .nm{font-family:'Fraunces',serif;font-size:18px;margin-bottom:5px;color:var(--ink)}
.bio p{font-size:14px;color:var(--ink-soft);line-height:1.5}

/* ad */
.ad{background:var(--soft);border:1px dashed var(--line-2);border-radius:10px;min-height:120px;display:grid;place-items:center;color:#aab2bd;font-size:12px;margin:24px 20px;position:relative}
.ad.incontent{min-height:260px;margin:30px 20px}
.ad:empty::after{content:"Emplacement publicitaire";font-size:11px;color:#bcc4cd}

/* related */
.related{padding:6px 20px 40px}
.related .ttl{font-family:'Fraunces',serif;font-size:22px;margin:30px 0 16px;color:var(--ink);font-weight:600;line-height:1.2}
.rel{display:flex;gap:14px;padding:14px 0;border-top:1px solid var(--line);align-items:center}
.rel .th{width:104px;height:68px;border-radius:9px;flex-shrink:0;overflow:hidden;background:linear-gradient(135deg,var(--brand),var(--brand-dk))}
.rel .th img{width:100%;height:100%;object-fit:cover}
.rel .k{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:4px}
.rel h3{font-family:'Inter',sans-serif;font-size:15.5px;font-weight:600;line-height:1.3;color:var(--ink)}

/* archive header */
.arch-head{padding:26px 20px 8px}
.arch-head .kik{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:8px;display:block}
.arch-head h1{font-size:28px;letter-spacing:-.01em;margin-bottom:6px}
.arch-head p{font-size:15px;color:var(--ink-soft)}

/* pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin:34px 20px;flex-wrap:wrap}
.pagination .page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:10px;font-weight:600;font-size:15px;color:var(--ink)}
.pagination .page-numbers.current{background:var(--brand);color:#fff;border-color:var(--brand)}

/* page standard */
.page-wrap{padding:26px 20px 0}
.page-wrap h1.post-title{margin-bottom:20px}

/* mobile nav */
.mobile-nav{display:none;position:fixed;inset:0;background:rgba(10,30,26,.5);z-index:99}
.mobile-nav.open{display:block}
.mobile-nav .panel{position:absolute;top:0;right:0;width:280px;max-width:82%;height:100%;background:#fff;padding:28px 24px;box-shadow:-10px 0 40px rgba(0,0,0,.2)}
.mobile-nav .panel ul{list-style:none}
.mobile-nav .panel li{padding:13px 0;border-bottom:1px solid var(--line);font-weight:600}
.mobile-nav .close{position:absolute;top:16px;right:18px;font-size:25px;background:none;border:none;cursor:pointer}

/* footer */
.foot{background:var(--brand-dk);color:rgba(255,255,255,.7);padding:30px 20px;text-align:center;font-size:13px;margin-top:30px}
.foot .fb{font-family:'Fraunces',serif;font-size:20px;color:#fff;font-weight:700;margin-bottom:8px}
.foot a{color:rgba(255,255,255,.85)}
.foot .links{margin:6px 0}

@media(min-width:700px){
  .lead h2{font-size:31px}
  h1.post-title{font-size:40px}
}

/* ============================================
   HOME MAGAZINE (front-page enrichie)
   ============================================ */
.mag{max-width:1120px;margin:0 auto}
.mag .wrap{padding:0 22px}

/* UNE : dispositions */
.une{padding:30px 22px 0}
.une.magazine{display:grid;grid-template-columns:1.7fr 1fr;gap:26px;align-items:start}
.une.trois{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.une.flux{display:block}
.big{display:block}
.big .img{width:100%;aspect-ratio:16/9;border-radius:var(--radius);background:linear-gradient(135deg,var(--brand),var(--brand-dk));margin-bottom:15px;overflow:hidden}
.big .img img{width:100%;height:100%;object-fit:cover}
.big .k{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:9px}
.big h1,.big h2{font-size:32px;letter-spacing:-.018em;line-height:1.1;margin-bottom:11px}
.big .ex{font-size:16px;color:var(--ink-soft);margin-bottom:10px;line-height:1.5}
.big .meta{font-size:13px;color:var(--ink-light)}
.uneside{display:flex;flex-direction:column;gap:18px}
.une.flux .uneside{margin-top:24px}
.us{display:flex;flex-direction:column;padding-bottom:18px;border-bottom:1px solid var(--line)}
.us:last-child{border-bottom:none;padding-bottom:0}
.us .img{width:100%;aspect-ratio:16/9;border-radius:var(--radius);background:linear-gradient(135deg,#cbdfe9,#7ba6bf);margin-bottom:10px;overflow:hidden;display:block}
.us .img img{width:100%;height:100%;object-fit:cover}
.us .k{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:6px}
.us h3,.us .us-title{font-size:18px;line-height:1.22;margin-bottom:6px;font-family:var(--font-head);font-weight:600}
.us .meta{font-size:12px;color:var(--ink-light)}

/* bandeau confiance */
.trust-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px;padding:14px 22px;margin:24px 22px 0;background:var(--soft);border-radius:var(--radius);font-size:13.5px;color:var(--ink-soft)}
.trust-bar span{display:flex;align-items:center;gap:7px;font-weight:500}
.trust-bar .ic{color:var(--brand);font-weight:700}

/* sections presse */
.msect{padding:0 22px;margin-top:44px}
.msect-h{border-bottom:2px solid var(--ink);padding-bottom:10px;margin-bottom:22px;display:flex;align-items:baseline;justify-content:space-between}
.msect-h h2{font-size:21px;letter-spacing:-.01em}
.msect-h a{font-size:13px;font-weight:600;color:var(--brand)}

/* grille 3 */
.mg3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.mcard .img{width:100%;aspect-ratio:16/10;border-radius:var(--radius);background:linear-gradient(135deg,#cfe8e0,#7fb8a8);margin-bottom:12px;overflow:hidden}
.mcard .img img{width:100%;height:100%;object-fit:cover}
.mcard .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:6px}
.mcard h3{font-size:18px;font-weight:600;line-height:1.26;margin-bottom:6px;font-family:var(--font-head)}
.mcard .meta{font-size:12px;color:var(--ink-light)}

/* rubriques vignettes */
.piliers{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.pilier{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:3/4;display:flex;align-items:flex-end}
.pilier .ph{position:absolute;inset:0;background:linear-gradient(135deg,var(--brand),var(--brand-dk));background-size:cover;background-position:center;display:grid;place-items:center}
.pilier .ph .ic{font-size:64px;opacity:.92;filter:drop-shadow(0 4px 12px rgba(0,0,0,.3));line-height:1}
.pilier .ph img{width:100%;height:100%;object-fit:cover}
.pilier::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,30,26,.8),transparent 60%)}
.pilier .lab{position:relative;z-index:2;padding:18px;color:#fff}
.pilier h3{color:#fff;font-size:19px}
.pilier .cnt{font-size:12px;color:rgba(255,255,255,.85);margin-top:3px}

/* bloc rubrique avec articles */
.rubrique{padding:0 22px;margin-top:44px}
.rub-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:26px}
.rub-feat{display:block}
.rub-feat .img{width:100%;aspect-ratio:16/9;border-radius:var(--radius);background:linear-gradient(135deg,#cfe8e0,#7fb8a8);margin-bottom:12px;overflow:hidden}
.rub-feat .img img{width:100%;height:100%;object-fit:cover}
.rub-feat .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:6px}
.rub-feat h3{font-size:21px;line-height:1.2;margin-bottom:8px}
.rub-feat .ex{font-size:14.5px;color:var(--ink-soft);line-height:1.5}
.rub-feat .meta{font-size:12px;color:var(--ink-light);margin-top:8px}
.rub-list{display:flex;flex-direction:column}
.rl{display:flex;gap:13px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}
.rl:first-child{padding-top:0}
.rl:last-child{border-bottom:none}
.rl .img{width:88px;height:64px;flex-shrink:0;border-radius:10px;background:linear-gradient(135deg,#f3d3b8,#dba06f);overflow:hidden}
.rl .img img{width:100%;height:100%;object-fit:cover}
.rl h4{font-size:15px;font-weight:600;line-height:1.28;font-family:var(--font-head)}
.rl .meta{font-size:11.5px;color:var(--ink-light);margin-top:4px}

/* vedette */
.mvedette{margin:44px 22px 0;background:var(--soft);border-radius:var(--radius);padding:24px;display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center}
.mvedette .img{width:100%;height:140px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--brand-dk));overflow:hidden}
.mvedette .img img{width:100%;height:100%;object-fit:cover}
.mvedette .lbl{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:9px}
.mvedette h3{font-size:21px;line-height:1.2;margin-bottom:8px}
.mvedette .meta{font-size:13px;color:var(--ink-light)}

/* présentation incarnée */
.mpres{margin:44px 22px 0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1fr 1.25fr}
.mpres .photo{background:linear-gradient(135deg,var(--brand),var(--brand-dk));min-height:300px;overflow:hidden}
.mpres .photo img{width:100%;height:100%;object-fit:cover}
.mpres .bd{padding:36px 34px;display:flex;flex-direction:column;justify-content:center}
.mpres .lb{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:11px}
.mpres h2{font-size:25px;margin-bottom:13px;line-height:1.16}
.mpres p{font-size:15px;color:var(--ink-soft);line-height:1.6;margin-bottom:13px}
.mpres .sign{display:flex;align-items:center;gap:12px;margin:4px 0 16px}
.mpres .sign .av{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dk));flex-shrink:0;overflow:hidden}
.mpres .sign .av img{width:100%;height:100%;object-fit:cover}
.mpres .sign .nm{font-weight:700;font-size:15px}
.mpres .sign .ro{font-size:13px;color:var(--ink-light)}
.mpres .cta{font-weight:600;color:var(--brand);font-size:15px}

/* plus lus */
.mtop{display:grid;grid-template-columns:repeat(2,1fr);gap:0 32px;padding:0 22px}
.mtl{display:flex;gap:15px;padding:15px 0;border-top:1px solid var(--line);align-items:center}
.mtl .n{font-family:var(--font-head);font-size:30px;font-weight:700;color:var(--soft);-webkit-text-stroke:1.5px var(--brand);min-width:32px;line-height:1}
.mtl h3{font-size:16px;font-weight:600;line-height:1.28}

/* newsletter mag */
.mnews{margin:44px 22px 0;background:linear-gradient(155deg,var(--brand-dk),var(--brand));border-radius:var(--radius);padding:38px 30px;text-align:center;color:#fff}
.mnews .lb{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.7);margin-bottom:9px}
.mnews h2{color:#fff;font-size:26px;margin-bottom:10px}
.mnews p{font-size:15px;color:rgba(255,255,255,.85);max-width:520px;margin:0 auto 18px}
.mnews form{display:flex;gap:10px;max-width:440px;margin:0 auto}
.mnews input{flex:1;padding:13px 16px;border:none;border-radius:8px;font-size:15px;font-family:inherit}
.mnews button{background:var(--accent);color:#fff;border:none;font-weight:700;font-size:15px;padding:13px 22px;border-radius:8px;cursor:pointer;white-space:nowrap}

@media(max-width:820px){
  .une.magazine,.une.trois{grid-template-columns:1fr;gap:22px}
  .big h1,.big h2{font-size:27px}
  .mg3{grid-template-columns:1fr 1fr}
  .piliers{grid-template-columns:1fr 1fr}
  .rub-grid{grid-template-columns:1fr;gap:20px}
  .mpres{grid-template-columns:1fr}
  .mpres .photo{min-height:200px}
  .mtop{grid-template-columns:1fr}
  .mvedette{grid-template-columns:1fr;gap:14px}
  .mvedette .img{height:160px}
  .us .img{display:block}
}
@media(max-width:520px){
  .mg3{grid-template-columns:1fr}
  .mnews form{flex-direction:column}
}

/* ============================================
   TABLE DES MATIÈRES (Sommaire)
   ============================================ */
.pulse-toc{margin:22px 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft);overflow:hidden}
.pulse-toc summary{cursor:pointer;list-style:none;padding:15px 20px;font-family:var(--font-head);font-weight:600;font-size:16px;color:var(--ink);display:flex;align-items:center;gap:9px;user-select:none}
.pulse-toc summary::-webkit-details-marker{display:none}
.pulse-toc summary::after{content:"▾";margin-left:auto;font-size:13px;color:var(--ink-light);transition:transform .2s}
.pulse-toc[open] summary::after{transform:rotate(180deg)}
.pulse-toc .toc-ic{color:var(--brand);font-size:15px}
.pulse-toc nav{padding:4px 20px 18px}
.pulse-toc ol{list-style:none;counter-reset:toc;margin:0;padding:0}
.pulse-toc li{counter-increment:toc;margin:9px 0;line-height:1.4}
.pulse-toc li::before{content:counter(toc) ". ";color:var(--brand);font-weight:700;font-family:var(--font-head)}
.pulse-toc li.sub{margin-left:22px;font-size:14.5px}
.pulse-toc li.sub::before{content:"– ";color:var(--ink-light)}
.pulse-toc a{color:var(--ink-soft);text-decoration:none;border-bottom:1px solid transparent;transition:color .15s,border-color .15s}
.pulse-toc a:hover{color:var(--brand);border-bottom-color:var(--brand)}
/* Décalage d'ancre pour ne pas masquer le titre sous une barre fixe */
.content h2[id],.content h3[id]{scroll-margin-top:80px}

/* ============================================
   ARTICLE — élargissement PC (texte en colonne, espace autour)
   Mobile inchangé (tout reste à 680px max).
   ============================================ */
@media(min-width:1000px){
  /* Sur les articles seuls, le shell s'élargit pour donner de l'air */
  body.single .shell{max-width:1100px;padding:0 40px}
  /* Le texte et les titres restent en colonne lisible, centrés */
  body.single .head,
  body.single .content,
  body.single .cap,
  body.single .disclaimer,
  body.single .bio,
  body.single .related,
  body.single .pulse-toc{max-width:720px;margin-left:auto;margin-right:auto}
  /* L'image hero profite d'un peu plus de largeur que le texte */
  body.single .hero{max-width:900px;margin:0 auto;border-radius:var(--radius)}
  body.single .content{font-size:19px}
}

/* Fiche auteur enrichie (lien vers la page auteur) */
.bio-txt{flex:1;min-width:0}
.bio-link{display:inline-block;margin-top:10px;font-size:13.5px;font-weight:600;color:var(--brand);text-decoration:none}
.bio-link:hover{text-decoration:underline}

/* ============================================
   FOOTER RICHE (média sérieux)
   ============================================ */
.site-foot{background:var(--brand-dk);color:rgba(255,255,255,.72);margin-top:50px}
.site-foot .cols{max-width:1100px;margin:0 auto;padding:44px 22px 28px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
.site-foot .fcol h4{color:#fff;font-family:var(--font-head);font-size:16px;margin-bottom:14px}
.site-foot .fbrand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.site-foot .fbrand .m{width:34px;height:34px;border-radius:8px;background:rgba(255,255,255,.14);display:grid;place-items:center;color:#fff;font-family:var(--font-head);font-weight:700}
.site-foot .fbrand .nm{font-family:var(--font-head);font-size:20px;font-weight:700;color:#fff}
.site-foot .fdesc{font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.62);margin-bottom:14px}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin-bottom:9px}
.site-foot a{color:rgba(255,255,255,.72);text-decoration:none;font-size:14px;transition:color .15s}
.site-foot a:hover{color:#fff}
.site-foot .social{display:flex;gap:10px;margin-top:4px}
.site-foot .social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);display:grid;place-items:center;font-size:14px}
.site-foot .social a:hover{background:rgba(255,255,255,.2)}
.site-foot .legal{border-top:1px solid rgba(255,255,255,.12);padding:18px 22px;text-align:center;font-size:12.5px;color:rgba(255,255,255,.5);max-width:1100px;margin:0 auto}
.site-foot .legal a{font-size:12.5px;color:rgba(255,255,255,.6)}
@media(max-width:820px){
  .site-foot .cols{grid-template-columns:1fr 1fr;gap:26px;padding:32px 22px 22px}
}
@media(max-width:480px){
  .site-foot .cols{grid-template-columns:1fr;gap:24px}
}

/* ============================================
   AJUSTEMENTS PC (≥1000px)
   ============================================ */
@media(min-width:1000px){
  /* Largeur PC respectée partout : home, blog, catégories, recherche, archives, pages.
     Seul l'article (body.single) garde une largeur de lecture plus étroite, définie plus haut. */
  body.home .shell,
  body.blog .shell,
  body.archive .shell,
  body.search .shell,
  body.category .shell,
  body.page:not(.single) .shell{max-width:1180px}
  .mag{max-width:1180px;margin:0 auto;padding:0 20px}

  /* Hamburger masqué sur PC (les chips suffisent). Visible sur mobile. */
  .bar .menu-toggle{display:none}

  /* Pages catégorie / recherche / archives : articles en grille magazine 3 colonnes sur PC */
  body.archive .feed,
  body.search .feed{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px 24px;
    padding:20px 20px 0;
  }
  body.archive .fitem,
  body.search .fitem{
    flex-direction:column;
    gap:0;
    padding:0;
    border-top:0;
  }
  body.archive .fitem .img,
  body.search .fitem .img{
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    order:-1;            /* image au-dessus du texte */
    margin-bottom:12px;
    border-radius:var(--radius);
  }
  body.archive .fitem h3,
  body.search .fitem h3{font-size:19px}
}

/* Sur mobile, le hamburger reste bien visible (sécurité) */
@media(max-width:999px){
  .bar .menu-toggle{display:inline-flex}
}

/* ============================================
   FIL D'ARIANE (breadcrumb)
   ============================================ */
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:13px;color:var(--ink-light);margin-bottom:14px;line-height:1.4}
.breadcrumb a{color:var(--ink-light);text-decoration:none;transition:color .15s}
.breadcrumb a:hover{color:var(--brand);text-decoration:underline}
.breadcrumb .sep{color:var(--line-2);font-size:13px}
.breadcrumb .current{color:var(--ink-soft);font-weight:500}
/* Sur l'article, on tronque le dernier élément (titre) s'il est long */
.breadcrumb .current{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Sur les ARTICLES : on masque le titre (dernier élément) du fil d'Ariane et son
   séparateur, partout (PC + mobile). Le titre est déjà affiché en gros juste en
   dessous. Sur les pages catégorie, on garde tout. Le schema SEO reste complet. */
body.single .breadcrumb .current{display:none}
body.single .breadcrumb .sep:last-of-type{display:none}

@media(max-width:600px){
  .breadcrumb{font-size:12px}
}

/* Classe accessibilité : masque visuellement mais reste lisible par les lecteurs d'écran */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ============ Boutons de partage social (article) ============ */
.share{display:flex;gap:8px;margin-left:auto}
.share a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:700;text-decoration:none;border:1px solid var(--line);color:var(--ink-soft);transition:.15s}
.share a:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.share-bottom{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:26px 20px;padding:18px 22px;background:var(--soft);border-radius:14px}
.share-bottom b{font-size:15px}
.share-bottom .share{margin-left:0}
.pulse-hp{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}
@media(max-width:620px){.share-bottom{flex-direction:column;align-items:flex-start}}

/* ============ Bloc présentation : image custom ou motif décoratif auto ============ */
.mpres .photo{background-size:cover;background-position:center;position:relative}
.mpres .photo.motif{display:grid;place-items:center}
.mpres .photo.motif .big{font-family:var(--font-head);font-weight:800;font-size:230px;line-height:1;color:rgba(255,255,255,.08)}
.mpres .photo.motif::before{content:"";position:absolute;width:180px;height:180px;border:2px solid rgba(255,255,255,.09);border-radius:50%;top:-50px;right:-40px}
.mpres .photo.motif::after{content:"";position:absolute;width:120px;height:120px;background:rgba(255,255,255,.06);border-radius:28px;bottom:-30px;left:-25px;transform:rotate(20deg)}
.mpres .photo.motif .dot{position:absolute;width:9px;height:9px;background:rgba(255,255,255,.25);border-radius:50%}
.mpres .photo.motif .d1{top:34px;left:40px}
.mpres .photo.motif .d2{bottom:46px;right:56px}
.mpres .photo.motif .d3{top:70px;right:90px}
