/*
Theme Name: Oualid LAB
Theme URI: https://otlstudio.net
Author: Oualid LAB
Description: Thème éditorial moderne pour un média francophone dédié à la tech, aux astuces et aux hacks.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: oualid-lab
*/

:root {
  --ink: #07110f;
  --panel: #0d1a17;
  --panel-2: #12231f;
  --paper: #f5f7f2;
  --muted: #9fb0aa;
  --line: rgba(255, 255, 255, .12);
  --acid: #c7ff3d;
  --cyan: #42e8d5;
  --orange: #ff875e;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(66,232,213,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(66,232,213,.13) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; position: relative; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7,17,15,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.055em; font-size: 1.35rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: var(--ink); background: var(--acid); border-radius: 9px 2px 9px 2px; font-size: .8rem; letter-spacing: -.04em; }
.brand em { color: var(--acid); font-style: normal; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #dce6e1; font-weight: 700; font-size: .92rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--acid); }
.search-link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
.menu-toggle { display: none; margin-left: auto; color: var(--paper); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }

.ticker { border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker-inner { min-height: 42px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.ticker-label { color: var(--ink); background: var(--acid); padding: 2px 9px; border-radius: 3px; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.ticker-copy { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9d7d1; font-size: .88rem; }

.hero { padding: 76px 0 48px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 30px; align-items: end; }
.hero h1 { margin: 18px 0; max-width: 870px; font-size: clamp(3.1rem, 7.5vw, 7.25rem); line-height: .88; letter-spacing: -.072em; text-wrap: balance; }
.hero h1 span { color: var(--acid); }
.hero-lead { max-width: 650px; margin: 0; color: #b8c7c1; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-aside { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.hero-aside strong { display: block; color: var(--paper); font-size: 2.35rem; line-height: 1; margin-bottom: 10px; letter-spacing: -.05em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; color: var(--ink); background: var(--acid); border: 1px solid var(--acid); border-radius: 7px; font-weight: 900; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(199,255,61,.15); }
.button.secondary { color: var(--paper); background: transparent; border-color: var(--line); }

.section { padding: 44px 0 76px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-title { margin: 0; font-size: clamp(1.8rem, 4vw, 3.1rem); letter-spacing: -.05em; line-height: 1; }
.section-link { color: var(--acid); font-weight: 800; }
.featured-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.post-card { position: relative; min-height: 280px; padding: 26px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; isolation: isolate; }
.post-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; z-index: -1; width: 210px; height: 210px; border: 36px solid rgba(66,232,213,.12); border-radius: 50%; }
.post-card.large { min-height: 550px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(145deg, #17352e, #0d1a17 65%); }
.post-card.large::before { content: "01"; position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,.08); font-size: 9rem; font-weight: 900; line-height: .8; }
.post-stack { display: grid; gap: 18px; }
.post-card.accent { background: var(--acid); color: var(--ink); }
.post-card.accent::after { border-color: rgba(7,17,15,.12); }
.tag { display: inline-flex; width: fit-content; margin-bottom: 14px; padding: 5px 9px; color: var(--ink); background: var(--cyan); border-radius: 4px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.accent .tag { color: var(--paper); background: var(--ink); }
.post-card h2, .post-card h3 { margin: 0 0 12px; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.post-card h2 { font-size: clamp(2.1rem, 5vw, 4rem); max-width: 700px; }
.post-card h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.post-card p { margin: 0; color: var(--muted); }
.post-card.accent p { color: rgba(7,17,15,.72); }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.accent .post-meta { color: rgba(7,17,15,.68); }
.card-link::after { content: ""; position: absolute; inset: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic { min-height: 230px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,26,23,.72); transition: .2s ease; }
.topic:hover { border-color: var(--acid); transform: translateY(-3px); }
.topic-index { color: var(--acid); font-weight: 900; }
.topic h3 { margin: 36px 0 8px; font-size: 1.75rem; letter-spacing: -.04em; }
.topic p { margin: 0; color: var(--muted); }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.latest-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.latest-card .thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: var(--acid); background: linear-gradient(135deg, #143b34, #10201c); font-size: 2.5rem; font-weight: 900; letter-spacing: -.08em; }
.latest-card-body { padding: 22px; }
.latest-card h2 { margin: 6px 0 11px; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.025em; }
.latest-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.about-band { padding: 44px 0; color: var(--ink); background: var(--acid); }
.about-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; align-items: start; }
.about-band h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .88; letter-spacing: -.07em; }
.about-band p { margin: 0; max-width: 730px; font-size: 1.15rem; }

.content-wrap { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 70px 0 90px; }
.article-header { margin-bottom: 42px; }
.article-header h1 { margin: 15px 0; font-size: clamp(2.7rem, 7vw, 5.5rem); line-height: .96; letter-spacing: -.06em; text-wrap: balance; }
.article-content { color: #dce6e1; font-family: Georgia, serif; font-size: 1.16rem; line-height: 1.85; }
.article-content h2, .article-content h3 { color: var(--paper); font-family: Inter, sans-serif; letter-spacing: -.035em; line-height: 1.15; }
.article-content h2 { margin-top: 2.2em; font-size: 2rem; }
.article-content a { color: var(--acid); text-decoration: underline; }
.article-content blockquote { margin: 2em 0; padding: 18px 24px; border-left: 4px solid var(--acid); background: var(--panel); }
.pagination, .nav-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; }
.page-numbers.current { color: var(--ink); background: var(--acid); }

.site-footer { padding: 54px 0 30px; border-top: 1px solid var(--line); background: #050d0b; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2,.7fr); gap: 44px; }
.footer-title { margin: 0 0 12px; font-size: 1.85rem; letter-spacing: -.04em; }
.footer-copy { max-width: 420px; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--acid); }
.footer-label { margin: 0 0 12px; color: var(--paper); font-weight: 900; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-field { min-width: 0; flex: 1; color: var(--paper); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 12px 14px; }
.search-submit { color: var(--ink); background: var(--acid); border: 0; border-radius: 7px; padding: 0 16px; font-weight: 900; }

@media (max-width: 860px) {
  .hero-grid, .featured-grid, .about-grid { grid-template-columns: 1fr; }
  .topic-grid, .latest-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(3.4rem, 14vw, 6rem); }
  .hero-aside { max-width: 520px; }
  .site-nav { display: none; position: absolute; top: 74px; left: 20px; right: 20px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .header-inner > .search-link { display: none; }
}

@media (max-width: 620px) {
  .container, .content-wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 3.35rem; }
  .topic-grid, .latest-grid, .footer-grid { grid-template-columns: 1fr; }
  .post-card.large { min-height: 450px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}


.article-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}.article-content th,.article-content td{padding:12px;border:1px solid var(--line);text-align:left}.article-content a{text-decoration:underline}.article-content li{margin-bottom:.65rem}.site-nav ul{flex-wrap:wrap}.related-posts{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}

.hero{padding:30px 0 15px}.hero h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.05;letter-spacing:-.04em}.hero-aside{display:none}.hero-grid{grid-template-columns:1fr}.article-header h1{line-height:1.07;overflow-wrap:anywhere}.article-content a{overflow-wrap:anywhere}.tag{font-size:.8rem}.eyebrow{font-size:.875rem}@media(max-width:600px){.hero h1{font-size:2.1rem}.article-header h1{font-size:2.2rem}.post-card h2{font-size:1.8rem;line-height:1.12}.post-card.large{min-height:0}.section{padding:30px 0}}
