/*
Theme Name: Veeztraining Blog
Theme URI: https://veeztraining-logiciel.com
Author: Thème sur mesure
Description: Thème WordPress sur mesure pour le blog de Veeztraining (logiciel de rééducation orthoptique). Charte reprise du site : header bleu ardoise, marque VEEZ/TRAINING, police Nunito, accent cyan. Page blog = header + menu (liens vers le site principal, sur une seule ligne) + liste des articles + footer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: veeztraining-blog
*/

/* =========================================================
   1. VARIABLES — charte Veeztraining
   ========================================================= */
:root {
  --vz-dark:    #334155;   /* header / footer (bleu ardoise du site) */
  --vz-navy:    #1f2937;   /* boutons / éléments forts */
  --vz-navy-dk: #111827;   /* survol bouton */
  --vz-cyan:    #29abe2;   /* accent cyan (le "VEEZ" du logo) */
  --vz-cyan-dk: #1f8fc0;

  --vz-text:    #1f2937;   /* texte courant */
  --vz-muted:   #6b7280;   /* texte secondaire */
  --vz-bg:      #ffffff;   /* fond */
  --vz-bg-alt:  #f1f5f9;   /* fond alternatif / cartes */
  --vz-border:  #e2e8f0;   /* bordures */

  --vz-font-heading: "Oswald", "Nunito", system-ui, sans-serif;
  --vz-font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --vz-max-width: 1180px;
  --vz-radius: 6px;        /* coins arrondis des boutons du site */
  --vz-shadow: 0 8px 28px rgba(31,41,55,.10);
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--vz-font-body);
  color: var(--vz-text);
  background: var(--vz-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vz-cyan-dk); text-decoration: none; }
a:hover { color: var(--vz-cyan); }
h1, h2, h3, h4 {
  font-family: var(--vz-font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--vz-text);
  margin: 0 0 .5em;
}
.vz-container {
  width: 100%;
  max-width: var(--vz-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* Bouton générique (style du site) */
.vz-btn {
  display: inline-block;
  background: var(--vz-navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--vz-radius);
  font-family: var(--vz-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .9rem;
  transition: background .2s ease;
}
.vz-btn:hover { background: var(--vz-navy-dk); color: #fff; }

/* =========================================================
   3. HEADER + NAVIGATION (menu sur UNE seule ligne)
   ========================================================= */
.site-header {
  background: var(--vz-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  flex-wrap: nowrap;
}

/* Marque / logo */
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding img { max-height: 46px; width: auto; }
.site-title {
  margin: 0;
  font-family: var(--vz-font-body);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .2px;
  white-space: nowrap;
}
.site-title a { display: inline-flex; align-items: center; }
.brand-veez { color: var(--vz-cyan); }
.brand-training { color: #fff; }

/* Navigation : tous les éléments sur UNE SEULE LIGNE */
.main-navigation { flex: 1 1 auto; min-width: 0; }
.main-navigation ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: nowrap;          /* ← une seule ligne, jamais de retour */
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  overflow-x: auto;           /* sécurité : défilement si menu très long */
  scrollbar-width: none;
}
.main-navigation ul::-webkit-scrollbar { display: none; }
.main-navigation li { flex: 0 0 auto; white-space: nowrap; }
.main-navigation a {
  display: inline-block;
  padding: 6px 0;
  color: #e8edf3;
  font-weight: 600;
  font-size: .98rem;
  position: relative;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: #fff; }
.main-navigation a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--vz-cyan);
  transition: width .25s ease;
}
.main-navigation a:hover::after { width: 100%; }

/* Entrée CTA "Obtenir Veeztraining" : mise en bouton */
.main-navigation .menu-item-cta a {
  background: var(--vz-cyan);
  color: var(--vz-navy);
  padding: 8px 16px;
  border-radius: var(--vz-radius);
  font-weight: 700;
}
.main-navigation .menu-item-cta a:hover { background: #fff; color: var(--vz-navy); }
.main-navigation .menu-item-cta a::after { display: none; }

/* =========================================================
   4. LISTE DES ARTICLES (page blog)
   ========================================================= */
.blog-main { padding: 48px 0 64px; }
.blog-header { margin-bottom: 34px; }
.blog-header h1 {
  font-size: 2.3rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.blog-header h1::after {
  content: "";
  display: block;
  width: 70px; height: 4px;
  background: var(--vz-cyan);
  border-radius: 2px;
  margin-top: 14px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.post-card {
  background: var(--vz-bg);
  border: 1px solid var(--vz-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--vz-shadow); }
.post-card__thumb { display: block; aspect-ratio: 16/9; background: var(--vz-bg-alt); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--vz-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.post-card__title { font-size: 1.25rem; margin: 0 0 10px; line-height: 1.25; }
.post-card__title a { color: var(--vz-text); }
.post-card__title a:hover { color: var(--vz-cyan-dk); }
.post-card__excerpt { color: var(--vz-muted); font-size: .96rem; margin: 0 0 18px; flex: 1; font-family: var(--vz-font-body); }
.post-card__more { align-self: flex-start; font-weight: 700; color: var(--vz-cyan-dk); }
.post-card__more::after { content: " →"; }

/* Pagination */
.vz-pagination { margin-top: 48px; text-align: center; }
.vz-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 0 4px;
  border: 1px solid var(--vz-border); border-radius: var(--vz-radius);
  color: var(--vz-text);
}
.vz-pagination .page-numbers.current,
.vz-pagination .page-numbers:hover {
  background: var(--vz-navy); color: #fff; border-color: var(--vz-navy);
}
.no-posts { padding: 60px 0; text-align: center; color: var(--vz-muted); }

/* =========================================================
   5. ARTICLE SEUL
   ========================================================= */
.single-article { padding: 48px 0 64px; max-width: 760px; }
.single-article__header h1 { font-size: 2.3rem; }
.single-article__meta { color: var(--vz-muted); font-size: .9rem; margin-bottom: 24px; }
.single-article__thumb { margin: 0 0 32px; border-radius: 10px; overflow: hidden; }
.single-article__content { font-size: 1.08rem; }
.single-article__content p { margin: 0 0 1.3em; }
.single-article__content img { border-radius: 10px; margin: 1.5em 0; }
.back-to-blog { display: inline-block; margin-top: 40px; font-weight: 700; }
.back-to-blog::before { content: "← "; }

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
  background: var(--vz-navy);
  color: #cbd5e1;
  padding: 44px 0 26px;
  margin-top: 48px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--vz-cyan); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.site-footer__brand { font-weight: 700; font-size: 1.2rem; color: #fff; }
.site-footer__brand .brand-veez { color: var(--vz-cyan); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__copy {
  width: 100%; text-align: center; opacity: .8; font-size: .85rem;
  margin-top: 24px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px;
}

/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .site-header__inner { min-height: 60px; gap: 14px; }
  .site-title { font-size: 1.3rem; }
  .blog-header h1 { font-size: 1.7rem; }
  /* Le menu reste sur une seule ligne et défile horizontalement */
  .main-navigation ul { gap: 18px; justify-content: flex-start; }
}
