/*
Theme Name: GuideIA360
Theme URI: https://guideia360.com/
Author: GuideIA360
Author URI: https://guideia360.com/
Description: Thème WordPress premium, moderne, ultra-rapide et optimisé SEO pour GuideIA360.com — le portail francophone dédié à l'intelligence artificielle (LLM, comparatifs, guides, outils IA, actualités). Conforme E-E-A-T, compatible Elementor, mode clair/sombre, sans jQuery.
Version: 1.5.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guideia360
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, elementor
*/

/* ============================================================
   GUIDE IA 360 — Design System
   Inspiré du design ECO NEWS MAROC
   ============================================================ */

:root {
  --primary: #1863DC;
  --primary-dark: #0f4bb0;
  --primary-light: #e8f0fe;
  --accent: #e6b422;
  --accent-dark: #7a5905;
  --violet: #7c3aed;
  --ink: #212121;
  --ink-soft: #4e4b66;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f4f4f4;
  --border: #e2e8f0;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --green: #059669;
  --green-dark: #047857;
  --red: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

body.dark-theme {
  --primary: #5b93f0;
  --primary-light: #16233d;
  --ink: #e6e9ef;
  --ink-soft: #b6bccb;
  --bg: #0f172a;
  --bg-soft: #131d33;
  --bg-muted: #1a2540;
  --border: #243452;
  --slate-900: #f1f5f9;
  --slate-800: #e2e8f0;
  --slate-700: #cbd5e1;
  --slate-600: #cbd5e1;
  --slate-500: #94a3b8;
  --green-dark: #34d399;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background-color var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--slate-900); margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.screen-reader-text, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  clip: auto; z-index: 10000; background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
}
::selection { background: var(--primary); color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary, .hero-cta-blue { background: var(--primary); color: #fff !important; box-shadow: 0 6px 18px rgba(24, 99, 220, .35); }
.btn-primary:hover, .hero-cta-blue:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--ink) !important; border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary) !important; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { max-height: 42px; width: auto; }
.logo-mark {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1863dc 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(24, 99, 220, .35);
  transition: transform var(--transition);
}
.logo-mark svg { display: block; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo-guide { color: var(--ink); }
.logo-ia360 {
  background: linear-gradient(90deg, #1863dc, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-desktop { display: flex; gap: 4px; }
.nav-desktop a, .nav-desktop .menu-item > a {
  position: relative; padding: 9px 14px; font-size: 15px; font-weight: 600;
  color: var(--ink-soft); border-radius: 8px;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2.5px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav-desktop a:hover, .nav-desktop .current-menu-item > a { color: var(--primary); }
.nav-desktop a:hover::after, .nav-desktop .current-menu-item > a::after { transform: scaleX(1); }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--ink); cursor: pointer; transition: all var(--transition);
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.menu-btn { display: none; }

/* ---------- Nav mobile ---------- */
.nav-mobile {
  position: fixed; top: 0; right: -320px; width: min(320px, 85vw); height: 100dvh;
  background: var(--bg); z-index: 1001; padding: 70px 26px 30px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg); transition: right .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.nav-mobile.active { right: 0; }
.nav-mobile a, .nav-mobile .menu-item a {
  padding: 13px 14px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { background: var(--primary-light); color: var(--primary); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.close-nav-btn {
  position: absolute; top: 16px; right: 18px;
  width: 40px; height: 40px; font-size: 26px; line-height: 1;
  border: none; background: var(--bg-muted); color: var(--ink);
  border-radius: 10px; cursor: pointer;
}
.nav-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  opacity: 0; visibility: hidden; z-index: 1000; transition: opacity var(--transition);
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(124, 58, 237, .10), transparent 60%),
    radial-gradient(700px 340px at 10% 0%, rgba(24, 99, 220, .12), transparent 60%),
    var(--bg);
}
.hero-content { max-width: 780px; padding-bottom: 56px; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--primary); background: var(--primary-light);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.hero-date-badge {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--border);
}
.hero-title { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }
.hero-title .hero-ia { color: var(--primary); }
.hero-title .hero-accent {
  background: linear-gradient(120deg, var(--violet), var(--primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Ticker ---------- */
.article-ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-soft); overflow: hidden; padding: 11px 0;
}
.article-ticker-track { display: flex; gap: 34px; width: max-content; animation: ticker 55s linear infinite; }
.article-ticker:hover .article-ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.article-ticker-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.article-ticker-item:hover { color: var(--primary); }
.article-ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.article-ticker-tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); background: var(--primary-light); padding: 3px 9px; border-radius: 999px; }
.article-ticker-date { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Sections ---------- */
main { padding: 44px 0 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 34px 0 18px; }
.sec-title { font-size: clamp(21px, 2.4vw, 27px); margin: 0; }
.sec-link { font-size: 14.5px; font-weight: 700; white-space: nowrap; }

/* ---------- Cartes overlay (style mosaïque) ---------- */
.ov-card {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; background: var(--slate-900); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 210px;
}
.ov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ov-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ov-card:hover img { transform: scale(1.05); }
.ov-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, .92) 0%, rgba(10, 15, 30, .45) 45%, rgba(10, 15, 30, .05) 75%);
}
.ov-card .no-thumb { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%); }
.ov-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.ov-badge.gold { background: linear-gradient(120deg, var(--accent), #c8950f); color: #212121; }
.ov-badge.violet { background: var(--violet); }
.ov-badge.green { background: var(--green); }
.ov-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; }
.ov-title { font-size: 16.5px; font-weight: 800; line-height: 1.35; color: #fff; margin-bottom: 8px; }
.ov-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--slate-300); }
.ov-impact { color: var(--accent); font-weight: 700; }

.une-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.une-featured { min-height: 430px; }
.une-featured .ov-title { font-size: clamp(20px, 2.4vw, 27px); }
.une-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.ov-grid { display: grid; gap: 18px; }
.ov-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ov-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ov-grid.cols-4 .ov-card, .ov-grid.cols-3 .ov-card { min-height: 250px; }

/* ---------- Grille d'articles (archives) ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }

/* ---------- Section catégorie ---------- */
.cat-section { margin-bottom: 12px; }
.cat-section .sec-title a { color: inherit; }

/* ---------- Bandeau E-E-A-T / À propos ---------- */
.trust-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 46px 0 20px;
}
.trust-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.trust-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--slate-600); margin-bottom: 18px; }
.breadcrumbs a { color: var(--slate-600); font-weight: 600; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 7px; }

/* ---------- Article (single) ---------- */
.article-wrap { max-width: 760px; margin-inline: auto; padding-top: 34px; }
.article-header { margin-bottom: 24px; }
.article-cat {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: var(--primary); margin-bottom: 14px;
}
.article-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -.015em; }
.article-lede { font-size: 19px; line-height: 1.6; color: var(--ink-soft); font-weight: 500; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 16px 0; margin: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--slate-600);
}
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .meta-item svg { color: var(--primary); flex: none; }
.article-meta strong { color: var(--ink); }
.meta-updated { color: var(--green-dark); font-weight: 700; }
.article-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-md); }

/* Corps d'article — confort de lecture éditorial */
.article-content { font-size: 18px; line-height: 1.85; color: var(--ink); }
.article-content p { margin: 0 0 1.4em; }
.article-content > p:first-of-type {
  font-size: 1.14em; line-height: 1.7; font-weight: 500; color: var(--ink);
}
.article-content h2 {
  font-size: 25px; line-height: 1.3; letter-spacing: -.01em;
  margin: 2em 0 .75em; padding-left: 15px;
  border-left: 4px solid var(--primary);
}
.article-content h3 { font-size: 20.5px; line-height: 1.35; margin: 1.7em 0 .6em; }
.article-content h4 { font-size: 17.5px; margin: 1.5em 0 .5em; }
.article-content h2 + h3, .article-content h3 + h4 { margin-top: .9em; }
.article-content ul, .article-content ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.article-content li { margin-bottom: .55em; padding-left: 4px; }
.article-content li::marker { color: var(--primary); font-weight: 800; }
.article-content strong { color: var(--ink); font-weight: 800; }
.article-content a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-content a:hover { color: var(--primary-dark); }
.article-content img { border-radius: var(--radius-sm); margin: 1.6em auto; box-shadow: var(--shadow-sm); }
.article-content figcaption {
  margin-top: -1em; margin-bottom: 1.6em; text-align: center;
  font-size: 13.5px; color: var(--slate-600); font-style: italic;
}
.article-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em auto; width: 60%; }
.article-content code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: .88em; background: var(--bg-muted); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px;
}
.article-content pre {
  background: #0f172a; color: #e2e8f0; padding: 18px 20px;
  border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 1.4em;
}
.article-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-content blockquote {
  margin: 1.8em 0; padding: 22px 28px;
  border-left: 4px solid var(--primary); background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18.5px; line-height: 1.7; font-weight: 600; color: var(--slate-700);
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; }
.article-content th, .article-content td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--bg-soft); font-weight: 800; }

/* Encadré sources / méthodologie (E-E-A-T) */
.fact-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 30px 0;
  font-size: 14px; color: var(--ink-soft);
}
.fact-box svg { flex: none; color: var(--primary); margin-top: 2px; }
.fact-box strong { color: var(--ink); }

/* Boîte auteur (E-E-A-T) */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin: 38px 0;
}
.author-box img, .author-box .author-avatar-fallback { width: 74px; height: 74px; border-radius: 50%; flex: none; object-fit: cover; }
.author-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff; font-size: 28px; font-weight: 900;
}
.author-box h3 { font-size: 17px; margin-bottom: 4px; }
.author-box .author-role { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.author-box p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Barre de partage social */
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin: 28px 0 0;
}
.share-label { font-size: 14px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.share-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.share-x { background: #0f0f0f; }
.share-fb { background: #1877f2; }
.share-li { background: #0a66c2; }
.share-wa { background: #25d366; }
.share-copy { background: var(--primary); }
.share-copy.copied { background: var(--green); }
.share-status { font-size: 13px; font-weight: 700; color: var(--green-dark); min-width: 90px; }
body.dark-theme .share-x { background: #f1f5f9; color: #0f0f0f; }

/* Navigation article précédent / suivant — design textuel (sans image) */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 36px 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.post-nav.pnv-1 { grid-template-columns: 1fr; }
.post-nav-item {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 28px; text-decoration: none;
  transition: background var(--transition);
}
.post-nav-item.prev { border-right: 1px solid var(--border); }
.post-nav-item.next { text-align: right; align-items: flex-end; }
.post-nav.pnv-1 .post-nav-item.prev { border-right: 0; }
.post-nav-item::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--violet));
  opacity: 0; transition: opacity var(--transition);
}
.post-nav-item.prev::before { left: 0; }
.post-nav-item.next::before { right: 0; }
.post-nav-item:hover { background: var(--bg-soft); }
.post-nav-item:hover::before { opacity: 1; }
.pnv-dir {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary);
}
.post-nav-item.next .pnv-dir { color: var(--violet); }
.pnv-dir svg { transition: transform var(--transition); }
.post-nav-item.prev:hover .pnv-dir svg { transform: translateX(-4px); }
.post-nav-item.next:hover .pnv-dir svg { transform: translateX(4px); }
.pnv-title {
  font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.post-nav-item:hover .pnv-title { color: var(--primary); }
.pnv-meta {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--slate-600);
}
.pnv-cat { font-weight: 700; color: var(--primary); }
.pnv-sep { color: var(--slate-300); }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.prev { border-right: 0; border-bottom: 1px solid var(--border); }
  .post-nav-item.next { text-align: left; align-items: flex-start; }
  .post-nav-item.next::before { right: auto; left: 0; }
}

/* Classement Top outils IA sur l'accueil */
.home-top { margin: 46px 0 10px; }
.top-list-more { text-align: center; margin: 22px 0 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 14.5px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Page statique ---------- */
.page-wrap { max-width: 820px; margin-inline: auto; padding: 40px 0 20px; }
.page-wrap .article-content { font-size: 16.5px; }

/* ---------- Formulaires ---------- */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; }
.search-submit { flex: none; }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; background: var(--slate-900); color: #cbd5e1; }
body.dark-theme .footer { background: #0a1120; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px; padding: 54px 0 34px;
}
.footer .logo-mark { width: 34px; height: 34px; box-shadow: none; }
.footer .logo-text { font-size: 20px; }
.footer .logo-guide { color: #f1f5f9; }
.footer .logo-ia360 { background: linear-gradient(90deg, #5b93f0, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand p { font-size: 14px; color: #cbd5e1; margin-top: 14px; }
.footer-brand .director a { color: #e6b422; font-weight: 700; }
.footer-section h3 {
  font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #f1f5f9; margin-bottom: 16px;
}
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin-bottom: 9px; }
.footer-section a { color: #cbd5e1; font-size: 14.5px; font-weight: 500; }
.footer-section a:hover { color: #5b93f0; }
.footer-contact-info { font-size: 13.5px; color: #cbd5e1; margin-top: 14px; line-height: 1.7; }
.footer-social-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid #334155; color: #cbd5e1; font-size: 14px; font-weight: 600;
  transition: all var(--transition);
}
.footer-social-link:hover { border-color: #5b93f0; color: #5b93f0; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; }
.footer-copy { font-size: 13px; color: #cbd5e1; margin: 0; text-align: center; }

/* ---------- Retour en haut ---------- */
.go-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(24, 99, 220, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--transition);
}
.go-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.go-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .article-ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Commentaires ---------- */
.comments-area { max-width: 800px; margin: 40px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; font-size: 15px; }
.comment-reply-link, .comment-edit-link { font-size: 13px; font-weight: 700; }
.comment-respond { margin-top: 26px; }
.comment-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.comment-form .submit { width: auto; }

/* ---------- Élément/Gutenberg alignments ---------- */
.alignnone { margin-inline: auto; }
.aligncenter { display: block; margin-inline: auto; }
.alignright { float: right; margin-left: 1.4em; }
.alignleft { float: left; margin-right: 1.4em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--slate-600); text-align: center; margin-top: 6px; }
.sticky .ov-badge::before { content: "📌 "; }
.bypostauthor { outline: 2px solid var(--primary-light); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: clamp(60px, 10vw, 110px); color: var(--primary); margin-bottom: 8px; }
.error-404 p { color: var(--ink-soft); font-size: 17px; }
.error-404 .search-form { max-width: 420px; margin: 26px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ov-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .une-grid { grid-template-columns: 1fr; }
  .une-featured { min-height: 300px; }
  .hero { padding-top: 52px; }
  .author-box { flex-direction: column; }
}
@media (max-width: 560px) {
  .ov-grid.cols-4, .ov-grid.cols-3, .posts-grid { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .sec-title { font-size: 19px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .logo-text { font-size: 19px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Compatibilité Elementor ---------- */
.elementor-page .header, .elementor-page .footer { position: relative; }
.elementor-page .header { position: sticky; }
.elementor-widget-container { color: inherit; }
.elementor-section.elementor-section-full_width { width: 100%; }

/* ---------- Classements « Top outils IA » / « Top LLM » ---------- */
.top-list { margin: 26px 0 8px; }
.top-list-intro { font-size: 14.5px; color: var(--ink-soft); max-width: 720px; margin: -6px 0 20px; }

.top-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.top-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 16px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.top-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--ink);
}

.top-num {
  position: absolute; top: 12px; left: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 800;
}

.top-head {
  display: flex; align-items: center; gap: 10px;
  padding-left: 28px; /* espace pour le badge numéro */
  min-height: 44px;
}
.top-icon {
  flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--icon-bg, var(--slate-800));
  font-size: 22px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.top-name {
  font-size: 15px; font-weight: 800; line-height: 1.25;
  color: var(--slate-900); letter-spacing: -.01em;
}

.top-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-soft);
  min-height: 39px;
}

.top-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto;
}
.top-tag {
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  background: var(--bg-muted); color: var(--slate-600);
  border: 1px solid var(--border);
}
.top-visit {
  font-size: 12px; font-weight: 700; color: var(--primary);
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}
.top-card:hover .top-visit { opacity: 1; transform: none; }

/* Responsive du classement */
@media (max-width: 1200px) { .top-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .top-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .top-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .top-grid { grid-template-columns: 1fr; } }

