/*
Theme Name: WorldWatch Theme
Author: WorldWatch
Description: Interface éditoriale premium pour la veille RSS WorldWatch.
Version: 0.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: worldwatch-theme
*/
:root{color-scheme:dark;--bg:#090f19;--panel:#121d2d;--edge:#273648;--text:#f1f5fc;--muted:#9cabbf;--cyan:#78d9ec;--blue:#84aaff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 80% -10%,#19304a 0,transparent 35%),var(--bg);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}a:focus-visible,button:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}.site{max-width:1480px;margin:auto;padding:0 clamp(20px,4.5vw,72px)}.top{min-height:88px;border-bottom:1px solid #ffffff14;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:25px;font-weight:730;letter-spacing:-1.2px}.brand-symbol{color:var(--cyan);font-size:27px;margin-right:8px}.brand-dot{color:var(--cyan)}.top-sub{color:#8392a7;font-size:12px;letter-spacing:.075em;text-transform:uppercase}.top-sub span{padding:0 7px}.top-anchor{border:1px solid #ffffff30;padding:9px 19px;border-radius:50px;font-size:13px}.top-anchor span{color:var(--cyan);padding-left:8px}.hero{position:relative;overflow:hidden;isolation:isolate;border:1px solid #ffffff18;border-radius:28px;background:linear-gradient(125deg,#14243b,#101c2d 60%,#1b3048);margin:30px 0 68px;padding:92px clamp(24px,6vw,96px) 70px;min-height:485px}.hero:after{content:"";position:absolute;right:-100px;top:-170px;width:660px;height:660px;border:1px solid #a2dcf122;border-radius:50%;box-shadow:0 0 0 60px #9fe3ee08,0 0 0 125px #9fe3ee08,0 0 0 190px #9fe3ee05;z-index:-1}.hero-glow{position:absolute;right:-120px;top:-90px;width:550px;height:550px;background:radial-gradient(circle,#74bfff44 0,transparent 65%);filter:blur(20px);z-index:-1}.hero-pill{display:inline-flex;gap:10px;align-items:center;border:1px solid #a4d9ed30;background:#c4e5f90d;color:#afd3e7;letter-spacing:.14em;font-size:11px;padding:8px 14px;border-radius:60px;font-weight:650}.hero-pill-dot,.ww-live span{height:7px;width:7px;border-radius:50%;display:inline-block;background:#7ee5c6;box-shadow:0 0 13px #7ee5c670}.hero h1{font-size:clamp(43px,5.9vw,84px);letter-spacing:-.065em;line-height:1.06;font-weight:720;margin:26px 0}.hero h1 em{font-style:normal;background:linear-gradient(95deg,#b5d5ff,#80dbeb);color:transparent;background-clip:text}.hero p{max-width:600px;font-size:17px;color:#aebed0;margin-bottom:28px}.hero-button{display:inline-flex;gap:38px;align-items:center;color:#09121e;background:#c7e7f4;font-weight:680;padding:13px 19px;border-radius:50px}.hero-button:hover{background:#fff}.hero-caption{margin-top:53px;color:#778ca5;font-size:10px;letter-spacing:.12em;font-weight:600}.hero-caption span{padding:0 12px}.ww-sectionhead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:27px}.ww-overline{color:var(--cyan);font-size:11px;font-weight:650;letter-spacing:.2em}.ww-sectionhead h2{font-size:clamp(28px,3.3vw,44px);letter-spacing:-.045em;line-height:1.12;margin:8px 0}.ww-sectionhead p{color:var(--muted);margin:0}.ww-live{white-space:nowrap;color:#afc4d7;background:#132b32;border:1px solid #2a4b54;padding:7px 12px;border-radius:50px;font-size:12px}.ww-live span{margin-right:5px}.ww-filter{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #ffffff14;padding-bottom:27px;margin-bottom:27px}.ww-filter a{font-size:13px;color:#bac7d9;border:1px solid #ffffff20;background:#ffffff05;border-radius:24px;padding:8px 14px;transition:all .18s}.ww-filter a:hover{border-color:#8dbcc8;color:#fff}.ww-filter a.active{background:#c3dff0;border-color:#c3dff0;color:#122336;font-weight:700}.ww-overview{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:54px}.ww-overview-card{min-height:132px;display:flex;flex-direction:column;justify-content:space-between;padding:19px;border-radius:16px;border:1px solid #ffffff1a;background:linear-gradient(155deg,#182739,#111b2a)}.ww-overview-card:hover{background:#1b3044;border-color:#678c9c}.ww-overview-card>span{font-size:13px;color:#cbdaeb}.ww-overview-card strong{font-weight:700;letter-spacing:-.045em;font-size:31px;line-height:1}.ww-overview-card small{display:flex;justify-content:space-between;color:#8099ab;font-size:11px}.ww-listlabel{font-weight:650;font-size:24px;letter-spacing:-.035em;margin-bottom:23px}.ww-listlabel span{color:#8292a8;font-weight:400;font-size:14px;letter-spacing:0}.ww-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ww-item{min-width:0;display:flex;flex-direction:column;min-height:285px;padding:26px;border-radius:19px;border:1px solid #ffffff19;background:linear-gradient(160deg,#142235,#101a29);transition:transform .2s,border-color .2s}.ww-item:hover{transform:translateY(-3px);border-color:#5c88a0}.ww-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#8398ad}.ww-tag{color:#9cdced;background:#7dbdd81c;border:1px solid #80d0e62a;padding:4px 10px;border-radius:20px}.ww-item h3{font-size:19px;line-height:1.35;letter-spacing:-.023em;margin:22px 0 12px;font-weight:650}.ww-item h3 a:hover{color:#9cdaec}.ww-item p{color:#a0b0c5;font-size:13px;line-height:1.7;margin:0 0 28px}.ww-cardfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;border-top:1px solid #ffffff13;padding-top:16px;font-size:12px;color:#758da2}.ww-cardfoot a{color:#b0dcee}.ww-empty{grid-column:1/-1;background:#142335;border:1px solid #4a6073;padding:40px;border-radius:22px;color:#afc4d7}.ww-empty h3{color:white;font-size:23px}.ww-empty p{max-width:700px}footer{display:flex;align-items:start;justify-content:space-between;gap:30px;margin-top:95px;padding:40px 0 60px;border-top:1px solid #ffffff18;color:#7f91a6;font-size:12px}footer strong{color:white;font-size:23px;letter-spacing:-.05em}footer p{max-width:490px}.entry{max-width:850px;margin:55px auto}.entry h1{font-size:clamp(30px,4vw,52px)}@media(max-width:1100px){.ww-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.ww-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.top{min-height:75px}.top-sub{display:none}.top-anchor{padding:7px 12px}.hero{padding:55px 23px;min-height:0;margin:18px 0 52px}.hero-caption{line-height:2;margin-top:40px}.hero-caption span{padding:0 4px}.hero p{font-size:15px}.ww-sectionhead{display:block}.ww-live{display:inline-block;margin-top:20px}.ww-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.ww-items{grid-template-columns:1fr}.ww-item{min-height:255px}.ww-listlabel span{display:block}footer{display:block}}

/* WorldWatch 0.3 · polished appearance */
:root{--surface:rgba(255,255,255,.04);--line:rgba(255,255,255,.12);--shadow:0 24px 70px rgba(0,0,0,.22)}
html[data-ww-theme="light"]{color-scheme:light;--bg:#f5f7fb;--panel:#fff;--edge:#dce4ef;--text:#15273d;--muted:#5c6e83;--cyan:#176e92;--blue:#2563ad;--surface:rgba(255,255,255,.84);--line:rgba(24,58,98,.13);--shadow:0 18px 50px rgba(46,80,117,.09)}
html[data-ww-theme="light"] body{background:radial-gradient(ellipse at 80% -10%,#e2eef9 0,transparent 42%),var(--bg)}
html[data-ww-theme="light"] .top,html[data-ww-theme="light"] footer,html[data-ww-theme="light"] .ww-filter{border-color:var(--line)}
html[data-ww-theme="light"] .top-sub,html[data-ww-theme="light"] .top-sub span,html[data-ww-theme="light"] footer,html[data-ww-theme="light"] footer p{color:#667d94}
html[data-ww-theme="light"] footer strong{color:var(--text)}
html[data-ww-theme="light"] .top-anchor{border-color:var(--edge)}
html[data-ww-theme="light"] .hero{background:linear-gradient(125deg,#e8f1fc,#f7fbff 60%,#dcecf9);border-color:#d7e4f3}
html[data-ww-theme="light"] .hero h1{color:#142f4f}
html[data-ww-theme="light"] .hero h1 em{background:linear-gradient(95deg,#245eae,#159bbc);background-clip:text}
html[data-ww-theme="light"] .hero p{color:#4e647d}
html[data-ww-theme="light"] .hero-pill{background:#e0eff8;color:#2f6487;border-color:#cadfeb}
html[data-ww-theme="light"] .hero-caption{color:#617b9a}
html[data-ww-theme="light"] .hero-button{background:#1d537e;color:white}
html[data-ww-theme="light"] .hero-button:hover{background:#133f66}
html[data-ww-theme="light"] .ww-live{color:#24555f;background:#ecf8f5;border-color:#bfe5de}
html[data-ww-theme="light"] .ww-filter a{color:#3d5670;border-color:#d4e0ec;background:rgba(255,255,255,.68)}
html[data-ww-theme="light"] .ww-filter a:hover{border-color:#88b2d1;color:#163d62}
html[data-ww-theme="light"] .ww-filter a.active{background:#1f527d;border-color:#1f527d;color:white}
html[data-ww-theme="light"] .ww-overview-card,html[data-ww-theme="light"] .ww-item{background:rgba(255,255,255,.92);border-color:#dfe7f0;box-shadow:var(--shadow)}
html[data-ww-theme="light"] .ww-overview-card:hover,html[data-ww-theme="light"] .ww-item:hover{background:white;border-color:#accadd}
html[data-ww-theme="light"] .ww-overview-card>span,html[data-ww-theme="light"] .ww-overview-card strong{color:#15304e}
html[data-ww-theme="light"] .ww-overview-card small,html[data-ww-theme="light"] .ww-listlabel span,html[data-ww-theme="light"] .ww-meta,html[data-ww-theme="light"] .ww-item p,html[data-ww-theme="light"] .ww-cardfoot{color:#627891}
html[data-ww-theme="light"] .ww-tag{color:#236585;background:#ecf7fc;border-color:#cfe5ef}
html[data-ww-theme="light"] .ww-cardfoot{border-color:#e4eaf1}
html[data-ww-theme="light"] .ww-cardfoot a{color:#1b638c}
html[data-ww-theme="light"] .ww-empty{background:#fff;color:#465f78;border-color:#d7e3ed}
html[data-ww-theme="light"] .ww-empty h3{color:#152b45}
.ww-theme-switch{font:inherit;background:var(--surface);border:1px solid var(--line);color:var(--text);padding:9px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;border-radius:999px;white-space:nowrap;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:background .2s,border-color .2s}
.ww-theme-switch:hover{border-color:var(--cyan)}.ww-theme-icon{font-size:17px}.ww-theme-label{font-size:12px}
.top{flex-wrap:wrap}.top-sub{margin-inline:auto}
.ww-chat{position:fixed;bottom:24px;right:24px;z-index:9999;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.ww-chat-fab{border:1px solid rgba(255,255,255,.22);border-radius:999px;background:#d6eef7;color:#142d42;box-shadow:0 12px 38px rgba(0,0,0,.25);cursor:pointer;display:flex;gap:9px;align-items:center;font-size:13px;font-weight:700;padding:13px 20px}
.ww-chat-fab span:first-child{font-size:20px}.ww-chat-panel{width:min(370px,calc(100vw - 32px));height:min(525px,calc(100dvh - 110px));background:var(--panel);color:var(--text);border:1px solid var(--edge);box-shadow:0 30px 90px rgba(0,0,0,.28);border-radius:22px;display:flex;flex-direction:column;overflow:hidden;margin-bottom:12px;backdrop-filter:blur(28px)}
.ww-chat-panel[hidden]{display:none}.ww-chat-head{padding:18px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:var(--surface)}
.ww-chat-head strong{display:block;font-size:15px}.ww-chat-head small{color:var(--muted);font-size:11px}.ww-chat-head button{background:transparent;border:0;color:var(--text);font-size:25px;cursor:pointer;padding:0 5px}
.ww-chat-messages{padding:18px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.ww-bubble{margin:0;max-width:95%;padding:12px 14px;border-radius:15px;background:var(--surface);border:1px solid var(--line);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ww-bubble.ww-user{background:#d6eef7;color:#163752;border:0;align-self:flex-end}.ww-bubble a{color:var(--cyan);text-decoration:underline}.ww-chat-form{display:flex;gap:8px;padding:12px 15px;border-top:1px solid var(--line)}.ww-chat-form input{flex:1;width:0;border:1px solid var(--edge);background:var(--surface);color:var(--text);border-radius:999px;padding:12px 14px;font:inherit;font-size:13px;outline-offset:2px}
.ww-chat-form button{background:#bde7f5;color:#13344c;border:0;border-radius:50%;width:43px;cursor:pointer;font-size:18px}.ww-chat-disclaimer{font-size:10px!important;color:var(--muted);margin:0;padding:0 14px 12px;text-align:center}
@media(max-width:700px){.top{gap:8px}.brand{font-size:21px}.top-anchor{display:none}.ww-theme-switch{padding:7px 10px}.ww-chat{right:12px;bottom:12px}.ww-chat-fab{padding:10px 13px}.ww-chat-panel{height:min(495px,calc(100dvh - 80px))}}
@media(prefers-reduced-motion:reduce){.ww-theme-switch,.ww-item{transition:none}}
