/*
Theme Name: Neurexia
Description: Thème enfant de GeneratePress pour le blog Neurexia
Author: Samuel Dutoit
Template: generatepress
Version: 1.0
*/

/* Décale la nav sticky sous la barre d'administration WordPress */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* Rétablit la hauteur du logo, que GeneratePress force en height:auto */
.logo img { height: 80px; width: auto; }

/* --- Bandeau de liste --- */
.blog-hero p.lead { max-width: 640px; margin: 18px auto 0; font-size: 1.08rem; }
.search-box input[type="search"] { -webkit-appearance: none; appearance: none; }

/* --- Cartes : image à la une --- */
.article .thumb { display: block; overflow: hidden; }
.article .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article h3 a:hover { color: var(--primary); }

/* --- Pagination --- */
.container > .nav-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 50px 0 20px; }
.nav-links .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-links a.page-numbers:hover { background: var(--soft-blue); border-color: var(--accent-blue); }
.nav-links .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.nav-links .page-numbers.dots 

/* ============================================================
   2.4b — Page article
   ============================================================ */

/* — Bandeau de titre — */
.post-header{padding:56px 0 30px}
.post-header-inner{max-width:780px;margin:0 auto}
.post-kicker{margin:0 0 14px;font-size:.8rem;letter-spacing:.09em;text-transform:uppercase}
.post-kicker a{color:var(--primary);font-weight:600;text-decoration:none}
.post-kicker a:hover{text-decoration:underline}
.post-title{font-family:"Playfair Display",Georgia,serif;font-weight:700;
  font-size:clamp(1.9rem,3.4vw,2.7rem);line-height:1.2;color:var(--text);margin:0 0 16px}
.post-meta{margin:0;font-size:.95rem;color:var(--muted)}
.post-meta .sep{margin:0 8px}
.post-meta a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--border)}
.post-meta a:hover{color:var(--primary)}

/* — Image à la une, cadre maîtrisé — */
.post-cover{max-width:1000px;margin:0 auto 46px;border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow)}
.post-cover img{display:block;width:100%;height:420px;object-fit:cover}

/* — Corps de l'article — */
.post-body{max-width:760px;margin:0 auto;font-size:1.06rem;line-height:1.75;color:var(--text)}
.post-body > *{margin-bottom:1.35em}
.post-body > *:last-child{margin-bottom:0}
.post-body h2{font-family:"Playfair Display",Georgia,serif;font-weight:700;
  font-size:1.8rem;line-height:1.25;color:var(--text);margin:2.2em 0 .65em}
.post-body h3{font-size:1.2rem;font-weight:700;color:var(--text);margin:1.9em 0 .5em}
.post-body a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.post-body a:hover{color:var(--primary-dark)}
.post-body ul,.post-body ol{padding-left:1.4em}
.post-body li{margin-bottom:.5em}
.post-body li::marker{color:var(--primary)}
.post-body blockquote{margin:2em 0;padding:20px 26px;background:var(--soft-blue);
  border-left:3px solid var(--primary);border-radius:0 var(--radius) var(--radius) 0}
.post-body blockquote p{margin:0;font-size:1.06rem;color:var(--text)}
.post-body img{max-width:100%;height:auto;border-radius:var(--radius)}
.post-body figcaption{margin-top:8px;font-size:.87rem;color:var(--muted);text-align:center}

/* — Tableaux — */
.post-body .wp-block-table{overflow-x:auto}
.post-body table{width:100%;border-collapse:collapse;font-size:.96rem}
.post-body th,.post-body td{padding:11px 14px;border:1px solid var(--border);text-align:left}
.post-body thead th{background:var(--soft-blue);font-weight:600}
.post-body tbody tr:nth-child(even){background:rgba(0,0,0,.02)}

/* — Navigation entre articles — */
.post-nav{margin-top:60px}
.post-nav-inner{max-width:780px;margin:0 auto;display:flex;gap:18px;
  justify-content:space-between;padding-top:26px;border-top:1px solid var(--border)}
.post-nav-link{flex:1 1 0;max-width:48%;text-decoration:none;display:block}
.post-nav-link.next{text-align:right;margin-left:auto}
.post-nav-label{display:block;font-size:.82rem;color:var(--muted);margin-bottom:4px}
.post-nav-title{display:block;font-weight:600;color:var(--text);line-height:1.35}
.post-nav-link:hover .post-nav-title{color:var(--primary)}

/* — Appel à l'action — */
.post-cta{margin-top:64px;padding:54px 0;background:var(--soft-blue)}
.post-cta-inner{max-width:760px;margin:0 auto;text-align:center}
.post-cta h2{font-family:"Playfair Display",Georgia,serif;font-weight:700;
  font-size:1.65rem;color:var(--text);margin:0 0 12px}
.post-cta p{color:var(--muted);margin:0 0 26px}

/* — Mobile — */
@media (max-width:700px){
  .post-header{padding:36px 0 22px}
  .post-cover img{height:230px}
  .post-cover{margin-bottom:32px}
  .post-body{font-size:1rem}
  .post-body h2{font-size:1.45rem}
  .post-nav-inner{flex-direction:column;gap:22px}
  .post-nav-link,.post-nav-link.next{max-width:100%;text-align:left}
}

/* — Bouton du CTA d'article, indépendant de assets/style.css — */
.post-cta .btn{
  display:inline-block;
  padding:14px 30px;
  background:var(--primary);
  color:#fff;
  font-weight:600;
  font-size:1rem;
  line-height:1;
  border-radius:999px;
  text-decoration:none;
  box-shadow:var(--shadow);
  transition:background .2s ease,transform .2s ease;
}
.post-cta .btn:hover,
.post-cta .btn:focus{
  background:var(--primary-dark);
  color:#fff;
  transform:translateY(-1px);
}

/* ============================================================
   2.5 — Page auteur
   ============================================================ */
.author-hero{padding:56px 0 20px}
.author-hero-inner{max-width:820px;margin:0 auto;display:flex;gap:32px;align-items:flex-start}
.author-photo{flex:0 0 150px}
.author-photo img{width:150px;height:150px;border-radius:50%;object-fit:cover;
  display:block;box-shadow:var(--shadow)}
.author-intro{flex:1 1 auto}
.author-kicker{margin:0 0 8px;font-size:.8rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--primary);font-weight:600}
.author-name{font-family:"Playfair Display",Georgia,serif;font-weight:700;
  font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.2;color:var(--text);margin:0 0 14px}
.author-bio{margin:0 0 16px;font-size:1.03rem;line-height:1.7;color:var(--muted);max-width:60ch}
.author-links{margin:0}
.author-links a{color:var(--primary);font-weight:600;text-decoration:none}
.author-links a:hover{color:var(--primary-dark);text-decoration:underline}
.author-list-title{font-family:"Playfair Display",Georgia,serif;font-weight:700;
  font-size:1.5rem;color:var(--text);margin:44px 0 26px;text-align:center}
.author-page .no-results{text-align:center;color:var(--muted);padding:40px 0 60px}

@media (max-width:700px){
  .author-hero{padding:36px 0 14px}
  .author-hero-inner{flex-direction:column;gap:20px;align-items:center;text-align:center}
  .author-photo{flex:0 0 auto}
  .author-bio{text-align:left}
}