/*
Theme Name: Mauritanie Actu
Theme URI: https://mractu.com
Author: Mauritanie Actu
Description: Thème journal moderne pour Mauritanie Actu — actualités mauritaniennes traduites de l'arabe. Page d'accueil de type journal (vedette, colonnes de titres, rubriques par catégorie), branché sur les vrais articles WordPress.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mractu
*/

/* ──────────────────────────────────────────
   VARIABLES
────────────────────────────────────────── */
:root{
  --cream:#F7F5EF;
  --white:#FFF;
  --ink:#111;
  --title-hover:#1f66ba;
  --mid:#444;
  --muted:#777;
  --border:#D9D6CD;
  --green:#005E2E;
  --gold:#C89A00;
  --red:#B01C2C;
  --tech:#1A4D8F;
  --eco:#1A6B3C;
  --soc:#6B2D8F;
  --sport:#B01C2C;
  --max:1240px;
}

/* ──────────────────────────────────────────
   RESET
────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:'Noto Serif',Georgia,'Times New Roman',serif;background:var(--cream);color:var(--ink);font-size:15px;line-height:1.5}
a{text-decoration:none;color:inherit}
img{display:block;width:100%;object-fit:cover}
button,input{font-family:inherit}
ul{list-style:none}

/* ──────────────────────────────────────────
   MASTHEAD
────────────────────────────────────────── */
.masthead{
  background:var(--white);
  border-bottom:3px solid var(--green);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 1.25rem;
  height:52px;
  gap:1rem;
  position:sticky;top:0;z-index:300;
  box-shadow:0 1px 6px rgba(0,0,0,.07);
}
.logo-wrap{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.logo-icon{
  width:34px;height:34px;background:var(--green);border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;
}
.logo-icon svg{width:20px;height:20px}
.logo-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.logo-name{
  font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:1.35rem;font-weight:900;
  color:var(--ink);letter-spacing:-.02em;white-space:nowrap;line-height:1;
}
.logo-sub{font-size:.58rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-top:.1rem}
.top-nav{display:flex;align-items:center;gap:0;overflow-x:auto;scrollbar-width:none;flex:1;padding:0 .5rem}
.top-nav::-webkit-scrollbar{display:none}
.top-nav a{
  padding:.25rem .65rem;font-size:.7rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--mid);white-space:nowrap;
  border-bottom:2px solid transparent;transition:color .15s,border-color .15s;
  height:52px;display:flex;align-items:center;
}
.top-nav a:hover{color:var(--ink)}
.top-nav a.active,.top-nav a.current-menu-item,.top-nav a.current-cat{color:var(--green);border-bottom-color:var(--green)}
.top-nav a.t-tech{color:var(--tech)}
.top-nav a.t-tech:hover,.top-nav a.t-tech.active{border-bottom-color:var(--tech)}
.top-controls{display:flex;align-items:center;gap:.5rem;flex-shrink:0}
.search-box{display:flex;border:1px solid var(--border);border-radius:2px;overflow:hidden}
.search-box input{border:none;outline:none;padding:.3rem .6rem;font-size:.75rem;width:140px;background:transparent}
.search-box button{background:none;border:none;padding:0 .5rem;cursor:pointer;color:var(--muted);font-size:.8rem}
.soc-links{display:flex;gap:.4rem}
.soc-links a{width:26px;height:26px;border-radius:50%;background:var(--ink);display:flex;align-items:center;justify-content:center;color:var(--white);transition:background .15s}
.soc-links a:hover{background:var(--green)}
.soc-links svg{width:12px;height:12px;fill:currentColor}

/* ──────────────────────────────────────────
   TICKER
────────────────────────────────────────── */
.ticker{background:var(--red);color:var(--white);display:flex;align-items:center;overflow:hidden;height:28px}
.ticker-tag{background:var(--ink);font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:0 .75rem;height:100%;display:flex;align-items:center;flex-shrink:0}
.ticker-wrap{overflow-x:auto;overflow-y:hidden;flex:1;scrollbar-width:none}
.ticker-wrap::-webkit-scrollbar{display:none}
.ticker-track{display:inline-flex;white-space:nowrap}
.ticker-track a{font-size:.74rem;padding:0 1.25rem;color:var(--white);flex-shrink:0}
.ticker-track a::before{content:'◆ ';font-size:.5rem;opacity:.65;vertical-align:middle}

/* ──────────────────────────────────────────
   DATE BAR
────────────────────────────────────────── */
.datebar{background:var(--cream);border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 1.25rem;height:24px;font-size:.62rem;color:var(--muted);letter-spacing:.03em}
.datebar-source{font-style:italic}

/* ──────────────────────────────────────────
   FRONT PAGE — grille journal
────────────────────────────────────────── */
.frontpage{max-width:var(--max);margin:0 auto;padding:.875rem 1.25rem;display:grid;grid-template-columns:1.15fr 1px 1fr 1px .8fr;gap:0;min-height:calc(100vh - 104px)}
.col-sep{background:var(--border);margin:0 1rem}

.col1{display:flex;flex-direction:column;gap:0;padding-right:.875rem}
.featured{border-top:3px solid var(--ink);padding-top:.75rem;margin-bottom:.875rem}
.featured .cat{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.35rem}
.featured h2{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:1.1rem;font-weight:900;line-height:1.15;color:var(--ink);margin-bottom:.45rem;letter-spacing:-.02em;cursor:pointer}
.featured h2 a{color:inherit}
.featured h2:hover{color:var(--title-hover)}
.featured .deck{font-size:.8rem;color:var(--mid);line-height:1.5;margin-bottom:.6rem}
.featured img{height:195px;border-radius:2px;margin-bottom:.6rem}
.featured .byline{font-size:.62rem;color:var(--muted);display:flex;gap:.75rem;flex-wrap:wrap}
.featured .byline .src{color:var(--green);font-style:italic}

.mini-stories{display:flex;flex-direction:column;gap:0}
.mini{border-top:1px solid var(--border);padding:.65rem 0;display:flex;gap:.6rem;align-items:flex-start;cursor:pointer}
.mini:hover h3{color:var(--title-hover)}
.mini-thumb{width:72px;height:56px;flex-shrink:0;border-radius:2px;object-fit:cover}
.mini-body .cat{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;margin-bottom:.2rem}
.mini-body h3{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:.88rem;font-weight:700;line-height:1.25;color:var(--ink)}
.mini-body .age{font-size:.6rem;color:var(--muted);margin-top:.2rem}

.col2{padding:0 .875rem;display:flex;flex-direction:column}
.col2-head{border-top:3px solid var(--ink);padding-top:.65rem;font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:.6rem}
.hl-list{display:flex;flex-direction:column;flex:1}
.hl{border-bottom:1px solid var(--border);padding:.55rem 0;cursor:pointer;display:flex;flex-direction:row;align-items:flex-start;gap:.65rem}
.hl:first-child{border-top:1px solid var(--border)}
.hl:hover h3{color:var(--title-hover)}
.hl-thumb{width:64px;height:50px;flex-shrink:0;border-radius:2px;object-fit:cover}
.hl-body{display:flex;flex-direction:column;gap:.15rem;flex:1;min-width:0}
.hl .cat{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em}
.hl h3{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:.95rem;font-weight:700;line-height:1.25;color:var(--ink)}
.hl .age{font-size:.58rem;color:var(--muted)}
.hl.hl-big h3{font-size:1.15rem}
.hl.hl-big .hl-thumb{width:110px;height:82px}
.hl.hl-tech .cat{color:var(--tech)}
.hl.hl-pol .cat{color:var(--green)}
.hl.hl-eco .cat{color:var(--eco)}
.hl.hl-soc .cat{color:var(--soc)}
.hl.hl-sport .cat{color:var(--sport)}

.col3{padding-left:.875rem;display:flex;flex-direction:column;gap:0}
.compact-card{border-top:1px solid var(--border);padding:.65rem 0;cursor:pointer}
.compact-card:first-child{border-top:3px solid var(--ink);padding-top:.65rem}
.compact-card:hover h3{color:var(--title-hover)}
.compact-card .cat{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;margin-bottom:.2rem}
.compact-card img{height:110px;border-radius:2px;margin-bottom:.5rem}
.compact-card h3{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:.92rem;font-weight:700;line-height:1.25;color:var(--ink);margin-bottom:.2rem}
.compact-card p{font-size:.74rem;color:var(--mid);line-height:1.4}
.compact-card .age{font-size:.58rem;color:var(--muted);margin-top:.25rem}

.tech-band{background:var(--tech);color:var(--white);padding:.5rem .65rem;margin:.5rem 0;border-radius:2px;cursor:pointer}
.tech-band .label{font-size:.58rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.8;margin-bottom:.2rem}
.tech-band h3{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:.88rem;font-weight:700;line-height:1.2}
.tech-band:hover h3{color:var(--title-hover)}

/* ──────────────────────────────────────────
   SECTIONS RUBRIQUES
────────────────────────────────────────── */
.sections{max-width:var(--max);margin:0 auto;padding:1.5rem 1.25rem 4rem}
.sec-head{display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem;margin-top:2rem}
.sec-head:first-child{margin-top:.5rem}
.sec-badge{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--white);padding:.25rem .6rem;white-space:nowrap}
.sec-badge.green{background:var(--green)}
.sec-badge.tech{background:var(--tech)}
.sec-badge.eco{background:var(--eco)}
.sec-badge.soc{background:var(--soc)}
.sec-badge.sport{background:var(--sport)}
.sec-rule{flex:1;height:1px;background:var(--border)}

.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.card{background:var(--white);border-radius:2px;overflow:hidden;border-top:2px solid var(--border)}
.card img{height:165px}
.card-body{padding:.875rem}
.card-body .cat{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;margin-bottom:.3rem}
.card-body h3{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:1rem;font-weight:700;line-height:1.3;color:var(--ink);margin-bottom:.35rem;cursor:pointer}
.card-body h3 a{color:inherit}
.card-body h3:hover{color:var(--title-hover)}
.card-body p{font-size:.78rem;color:var(--mid);line-height:1.45}
.card-meta{display:flex;justify-content:space-between;align-items:center;margin-top:.6rem;font-size:.65rem;color:var(--muted)}
.card-meta .read{font-weight:700;cursor:pointer}
.card-meta .read.green{color:var(--green)}
.card-meta .read.tech{color:var(--tech)}

.empty-note{font-size:.8rem;color:var(--muted);padding:1rem 0}

/* ──────────────────────────────────────────
   ARTICLE SIMPLE / ARCHIVES / RECHERCHE / 404
────────────────────────────────────────── */
.page-wrap{max-width:820px;margin:0 auto;padding:2.5rem 1.25rem 4rem}
.page-wrap.wide{max-width:var(--max)}
.article-cat{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.6rem}
.article-title{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:2.1rem;font-weight:900;line-height:1.15;letter-spacing:-.02em;margin-bottom:.9rem}
.article-deck{font-size:1rem;color:var(--mid);line-height:1.6;margin-bottom:1rem}
.article-byline{display:flex;gap:1rem;flex-wrap:wrap;font-size:.72rem;color:var(--muted);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:.65rem 0;margin-bottom:1.5rem}
.article-thumb{border-radius:2px;margin-bottom:1.5rem;max-height:440px}
.article-body{font-size:1.02rem;line-height:1.85;color:var(--ink)}
.article-body p{margin-bottom:1.2rem}
.article-body h2{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:1.4rem;margin:1.5rem 0 .75rem}
.article-body img{border-radius:2px;margin:1rem 0}
.article-body a{color:var(--green);text-decoration:underline}
.article-body blockquote{border-left:3px solid var(--green);padding-left:1rem;font-style:italic;color:var(--mid);margin:1.2rem 0}
.article-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border)}
.article-tags a{font-size:.68rem;background:var(--white);border:1px solid var(--border);padding:.3rem .6rem;border-radius:20px;color:var(--mid)}
.article-tags a:hover{border-color:var(--green);color:var(--green)}

.archive-head{max-width:var(--max);margin:0 auto;padding:2rem 1.25rem 0}
.archive-title{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:2rem;font-weight:900;display:flex;align-items:center;gap:.6rem}
.archive-desc{color:var(--muted);font-size:.85rem;margin-top:.4rem}
.archive-list{max-width:var(--max);margin:0 auto;padding:1.5rem 1.25rem 4rem;display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
@media(max-width:900px){.archive-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.archive-list{grid-template-columns:1fr}}

.pagination{display:flex;gap:.5rem;justify-content:center;padding:1rem 0 3rem;flex-wrap:wrap}
.pagination a,.pagination span{padding:.4rem .75rem;border:1px solid var(--border);border-radius:2px;font-size:.75rem;color:var(--mid)}
.pagination .current{background:var(--ink);color:var(--white);border-color:var(--ink)}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
footer{background:var(--ink);color:rgba(255,255,255,.65)}
.ft-inner{max-width:var(--max);margin:0 auto;padding:2.5rem 1.25rem 1.5rem;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem}
.ft-brand h2{font-family:'Noto Serif',Georgia,'Times New Roman',serif;font-size:1.4rem;color:var(--white);margin-bottom:.5rem}
.ft-brand p{font-size:.78rem;line-height:1.6;max-width:280px;margin-bottom:.75rem}
.ft-soc{display:flex;gap:.4rem}
.ft-soc a{width:28px;height:28px;border-radius:50%;border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;color:var(--white);transition:border-color .15s}
.ft-soc a:hover{border-color:var(--gold)}
.ft-soc svg{width:13px;height:13px;fill:currentColor}
.ft-col h4{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--white);margin-bottom:.65rem}
.ft-col ul li{margin-bottom:.35rem}
.ft-col ul li a{font-size:.75rem;transition:color .15s}
.ft-col ul li a:hover{color:var(--gold)}
.ft-bottom{border-top:1px solid rgba(255,255,255,.1);padding:.875rem 1.25rem;max-width:var(--max);margin:0 auto;font-size:.65rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.ft-bottom a{color:rgba(255,255,255,.4);margin-left:.875rem;transition:color .15s}
.ft-bottom a:hover{color:var(--gold)}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media(max-width:1024px){
  .frontpage{grid-template-columns:1fr 1px 1fr;min-height:auto}
  .col3{display:none}
  .col-sep:last-of-type{display:none}
}
@media(max-width:680px){
  .frontpage{grid-template-columns:1fr;min-height:auto;padding:.75rem}
  .col-sep{display:none}
  .col2{padding:0}
  .top-nav{display:none}
  .search-box{display:none}
  .cards3{grid-template-columns:1fr}
  .ft-inner{grid-template-columns:1fr 1fr}
  .article-title{font-size:1.5rem}
}
@media(max-width:420px){
  .ft-inner{grid-template-columns:1fr}
}

/* Couleurs catégories */
.c-pol{color:var(--green)}
.c-eco{color:var(--eco)}
.c-soc{color:var(--soc)}
.c-sport{color:var(--sport)}
.c-tech{color:var(--tech)}


/* Survol des titres — transition douce (aligné sur lefigaro.fr) */
.featured h2 a,.mini h3,.hl h3,.compact-card h3,.tech-band h3,.card-body h3,.card-body h3 a{transition:color .15s ease-out}
