/* ═══════════════════════════════════════════════════════
   HexaOS Theme — Feuille de style principale
   Palette : Navy #06091A · Bleu #002395 · Rouge #ED2939 · Or #C8A84B
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:    #06091A;
  --navy2:   #0B0F27;
  --blue:    #002395;
  --red:     #ED2939;
  --gold:    #C8A84B;
  --white:   #FAFAF8;
  --gray:    rgba(255,255,255,0.55);
  --gray2:   rgba(255,255,255,0.12);
  --border:  rgba(255,255,255,0.07);
  --footer:  #040610;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--navy); scroll-behavior: smooth; }
body  { background: var(--navy); color: var(--white); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.7; }

img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff; line-height: 1.12; font-weight: 700;
}

::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── CONTAINER ── */
.hexaos-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hexaos-outer     { background: var(--navy); }

/* ── BREAKING NEWS BAR ── */
.hexaos-breaking-bar {
  background: var(--red); color: #fff;
  font-size: 12px; font-family: 'DM Mono', monospace;
  padding: 7px 0;
  position: relative; z-index: 200;
}
.hexaos-breaking-bar .hexaos-container {
  display: flex; align-items: center; gap: 16px;
  overflow: hidden;
}
.hexaos-breaking-label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
  flex-shrink: 0;
}
.hexaos-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

.hexaos-breaking-text {
  flex: 1; overflow: hidden; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.hexaos-tricolor-bar {
  display: flex; flex-direction: column; width: 5px; height: 20px;
  border-radius: 1px; overflow: hidden; flex-shrink: 0;
}
.hexaos-tricolor-bar .tc-blue  { flex:1; background: var(--blue); }
.hexaos-tricolor-bar .tc-white { flex:1; background: #fff; }
.hexaos-tricolor-bar .tc-red   { flex:1; background: #c0001f; }

/* ── AD TOP ── */
.hexaos-ad-top {
  background: var(--navy2); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.hexaos-ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 3px; position: relative;
  min-height: 90px; width: 100%;
}
.hexaos-ad-728x90 { max-width: 728px; margin: 0 auto; }
.hexaos-ad-300x250 { min-height: 250px; }
.hexaos-ad-label {
  font-size: 10px; color: rgba(255,255,255,0.2);
  font-family: 'DM Mono', monospace; letter-spacing: .1em;
  text-transform: uppercase; position: absolute; top: 6px; left: 10px;
}

/* ── HEADER ── */
.hexaos-header-wrap {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .3s;
}
.hexaos-header-sticky {
  box-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.hexaos-header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}

/* Logo */
.hexaos-logo-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.hexaos-logo-flag {
  display: flex; flex-direction: column;
  width: 5px; height: 28px; border-radius: 1px; overflow: hidden;
  flex-shrink: 0;
}
.hexaos-logo-flag .hf-blue  { flex:1; background: var(--blue); }
.hexaos-logo-flag .hf-white { flex:1; background: rgba(255,255,255,0.7); }
.hexaos-logo-flag .hf-red   { flex:1; background: var(--red); }

.hexaos-logo-text-wrap { display: flex; flex-direction: column; }
.hexaos-logo-name { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.logo-hexa { color: #fff; }
.hexaos-logo-tagline { font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; }

/* Navigation principale */
.hexaos-nav-wrap { flex: 1; }
.hexaos-main-menu {
  display: flex; list-style: none; gap: 2px;
  margin: 0; padding: 0;
}
.hexaos-main-menu > li > a {
  display: block; padding: 8px 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  border-radius: 3px; transition: all .2s;
}
.hexaos-main-menu > li > a:hover,
.hexaos-main-menu > li.current-menu-item > a {
  color: #fff; background: rgba(255,255,255,0.06);
}
/* Sous-menu */
.hexaos-main-menu .sub-menu {
  display: none; position: absolute; top: 100%;
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 4px; min-width: 200px; padding: 8px 0; z-index: 200;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.hexaos-main-menu li { position: relative; }
.hexaos-main-menu li:hover .sub-menu { display: block; }
.hexaos-main-menu .sub-menu li a {
  display: block; padding: 8px 16px;
  font-size: 13px; color: rgba(255,255,255,0.6);
  text-transform: none; letter-spacing: 0;
}
.hexaos-main-menu .sub-menu li a:hover { color: #fff; background: rgba(255,255,255,0.04); }

/* Actions header */
.hexaos-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hexaos-search-btn {
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; padding: 6px; border-radius: 4px; transition: color .2s;
  display: flex; align-items: center;
}
.hexaos-search-btn:hover { color: #fff; }

.hexaos-subscribe-btn {
  background: var(--red); color: #fff !important;
  padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 500;
  border: none; cursor: pointer; transition: background .2s, transform .15s;
  white-space: nowrap;
}
.hexaos-subscribe-btn:hover { background: #c5202f; transform: translateY(-1px); }

.hexaos-mobile-toggle {
  display: none; background: none; border: none;
  color: rgba(255,255,255,0.7); cursor: pointer; padding: 4px;
}

/* Barre recherche */
.hexaos-search-bar {
  background: var(--navy2); border-top: 1px solid var(--border);
  padding: 0; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.hexaos-search-open { max-height: 80px; padding: 14px 0; }
.hexaos-search-bar .hexaos-container {
  display: flex; align-items: center; gap: 12px;
}
.hexaos-search-bar input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 4px;
  color: #fff; padding: 10px 16px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .2s;
}
.hexaos-search-bar input:focus { border-color: var(--blue); }
.hexaos-search-bar input::placeholder { color: rgba(255,255,255,0.3); }
.hexaos-search-bar button[type=submit] {
  background: var(--red); color: #fff; border: none;
  padding: 10px 20px; border-radius: 4px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
}
.hexaos-search-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 16px;
}

/* ── MENU MOBILE ── */
.hexaos-mobile-menu {
  position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
  background: var(--navy2); z-index: 1000; transition: left .3s ease;
  display: flex; flex-direction: column; padding: 0;
  border-right: 1px solid var(--border);
}
.hexaos-menu-open { left: 0 !important; }
.hexaos-mobile-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.hexaos-mobile-header span { font-family: 'DM Mono', monospace; font-size: 16px; color: #fff; }
.hexaos-mobile-header button { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; }

.hexaos-mobile-nav { list-style: none; padding: 16px 0; flex: 1; overflow-y: auto; }
.hexaos-mobile-nav li a {
  display: block; padding: 12px 24px; color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.hexaos-mobile-nav li a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.hexaos-mobile-cta { margin: 16px 24px; display: block; text-align: center; }

.hexaos-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.hexaos-overlay-show { opacity: 1; pointer-events: all; }

/* ── NAV CATÉGORIES ── */
.hexaos-cat-nav {
  background: var(--navy2); border-bottom: 1px solid var(--border);
  padding: 0;
}
.hexaos-cat-nav .hexaos-container {
  display: flex; align-items: center; justify-content: space-between;
}
.hexaos-cat-list {
  display: flex; list-style: none; gap: 0;
}
.hexaos-cat-list li a {
  display: block; padding: 10px 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  transition: color .2s; border-bottom: 2px solid transparent;
}
.hexaos-cat-list li a:hover { color: #fff; border-bottom-color: var(--red); }

.hexaos-date {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.25); white-space: nowrap;
}

/* ── CONTENU PRINCIPAL ── */
.td-main-content-wrap,
.td-container-wrap {
  background: var(--navy);
}
.td-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── ESPACE PUB MILIEU ── */
.hexaos-ad-mid {
  padding: 20px 0; background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.hexaos-ad-970x90 { max-width: 970px; margin: 0 auto; min-height: 90px; }

/* ── ARTICLES / MODULES ── */
.td_module_15,
.td_module_wrap {
  background: transparent !important;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px; margin-bottom: 24px;
}
.entry-title,
.td-module-title { font-family: 'Playfair Display', serif !important; }
.td-module-title a { color: #fff !important; font-size: 1.2rem; line-height: 1.2; }
.td-module-title a:hover { color: var(--gold) !important; }

.td-post-date time,
.td-module-date   { color: rgba(255,255,255,0.4) !important; font-size: 12px; font-family: 'DM Mono', monospace; }
.td-post-author-name a { color: var(--gold) !important; font-size: 13px; }

/* Catégories badges */
.td-category li a,
.entry-category a {
  background: var(--red) !important; color: #fff !important;
  padding: 2px 8px; border-radius: 2px; font-size: 10px;
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* Images articles */
.td-module-thumb img,
.entry-thumb {
  border-radius: 3px; width: 100%; object-fit: cover;
  transition: opacity .2s;
}
.td-module-thumb a:hover img { opacity: .85; }

/* ── SINGLE ARTICLE ── */
.td-pb-span12.td-main-content { padding: 32px 0; }
.entry-content h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 1rem; }
.entry-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 1.3rem; margin: 1.5rem 0 .75rem; }
.entry-content p  { margin-bottom: 1.25rem; color: rgba(255,255,255,0.82); line-height: 1.85; }
.entry-content a  { color: var(--gold); border-bottom: 1px solid rgba(200,168,75,.3); }
.entry-content a:hover { color: var(--red); border-bottom-color: var(--red); }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .5rem; color: rgba(255,255,255,0.82); }
.entry-content blockquote {
  border-left: 3px solid var(--red); margin: 2rem 0;
  padding: 1rem 1.5rem; background: rgba(255,255,255,0.03);
  border-radius: 0 4px 4px 0;
}
.entry-content blockquote p { color: rgba(255,255,255,0.7) !important; font-style: italic; }

/* Sidebar inline ad dans article */
.hexaos-inline-ad {
  background: rgba(255,255,255,0.03); border: 1px dashed var(--border);
  border-radius: 3px; min-height: 250px; margin: 24px 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

/* ── SIDEBAR ── */
.td-pb-span4 .widget { margin-bottom: 28px; }
.block-title {
  border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 16px;
}
.block-title span {
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.widget { background: transparent; }

/* ── NEWSLETTER ── */
.hexaos-newsletter-wrap {
  background: var(--blue); padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hexaos-newsletter-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.hexaos-nl-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px;
}
.hexaos-nl-text h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem); color: #fff; margin-bottom: 6px;
}
.hexaos-nl-text p { font-size: 13px; color: rgba(255,255,255,0.55); }
.hexaos-nl-form {
  display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; overflow: hidden; flex-shrink: 0;
}
.hexaos-nl-form input {
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  padding: 12px 18px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  width: 280px; outline: none;
}
.hexaos-nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.hexaos-nl-form button {
  background: var(--red); color: #fff; border: none;
  padding: 12px 20px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.hexaos-nl-form button:hover { background: #c5202f; }

/* ── FOOTER ── */
.hexaos-footer { background: var(--footer); padding: 56px 0 0; }
.hexaos-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.hexaos-footer-brand {}
.hexaos-footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; text-decoration: none;
}
.hexaos-footer-logo .logo-hexa {
  font-family: 'DM Mono', monospace; font-size: 18px; color: #fff;
}
.hexaos-footer-desc {
  font-size: 13px; color: rgba(255,255,255,0.35);
  line-height: 1.7; max-width: 260px; margin-bottom: 20px;
}
.hexaos-footer-socials { display: flex; gap: 12px; }
.hexaos-social-link {
  color: rgba(255,255,255,0.3) !important; transition: color .2s;
  display: flex; align-items: center;
}
.hexaos-social-link:hover { color: #fff !important; }

.hexaos-footer-col-title {
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.hexaos-footer-col ul { list-style: none; }
.hexaos-footer-col ul li { margin-bottom: 10px; }
.hexaos-footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.45);
  transition: color .2s;
}
.hexaos-footer-col ul li a:hover { color: #fff; }

.hexaos-subfooter {
  background: #02040C;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 16px 0;
}
.hexaos-subfooter-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.hexaos-copyright { font-size: 12px; color: rgba(255,255,255,0.2); }
.hexaos-legal-menu {
  display: flex; list-style: none; gap: 20px;
}
.hexaos-legal-menu li a {
  font-size: 12px; color: rgba(255,255,255,0.2);
}
.hexaos-legal-menu li a:hover { color: rgba(255,255,255,0.5); }

/* ── PAGINATION ── */
.td-pb-padding-side { padding: 32px 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 3px; font-size: 13px;
  color: rgba(255,255,255,0.5); border: 1px solid var(--border);
  transition: all .2s; margin: 0 2px;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* ── 404 ── */
.td-404 { padding: 80px 0; text-align: center; }
.td-404 h1 { font-size: 6rem; color: var(--red); opacity: .3; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hexaos-nav-wrap { display: none; }
  .hexaos-mobile-toggle { display: flex; }
  .hexaos-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hexaos-header-inner { height: 58px; }
  .hexaos-cat-nav { display: none; }
  .hexaos-footer-grid { grid-template-columns: 1fr; }
  .hexaos-newsletter-inner { flex-direction: column; }
  .hexaos-nl-form { flex-direction: column; border-radius: 4px; }
  .hexaos-nl-form input { width: 100%; }
  .hexaos-subfooter-inner { flex-direction: column; text-align: center; }
}
