/*
Theme Name: PXF Express Blog
Theme URI: https://www.pxfexpress.com
Author: PXF Express
Description: Theme blog fidele au site PXF Express - header blanc, navigation Inter, bouton menthe, footer identique au site principal.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pxf-express-blog
*/

/* ==========================================================================
   Variables - couleurs prelevees sur www.pxfexpress.com (styles calcules)
   ========================================================================== */
:root {
  --pxf-header-bg: #ffffff;      /* fond du header */
  --pxf-text: #020303;           /* texte navigation + titres */
  --pxf-body-text: #0e0f11;      /* texte courant */
  --pxf-accent: #5affd7;         /* vert menthe (bouton Commencer) */
  --pxf-accent-text: #0e0f11;    /* texte sur fond menthe */
  --pxf-muted: #5b6368;          /* copyright footer */
  --pxf-muted-light: #96a0a8;    /* liens footer (CGV, confidentialite) */
  --pxf-card-shadow: 0 1px 2px -1px rgba(22, 17, 78, 0.1), 0 1px 3px rgba(22, 17, 78, 0.1);
  --pxf-border: #eef0f2;
  --pxf-radius-pill: 100px;
  --pxf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pxf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pxf-body-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pxf-text); text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .7; }
h1, h2, h3, h4, h5, h6 {
  color: var(--pxf-text);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
.pxf-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Header - identique au site principal (blanc, nav 15px/600, pill menthe)
   ========================================================================== */
.pxf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pxf-header-bg);
  border-bottom: 1px solid var(--pxf-border);
}
.pxf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.pxf-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pxf-brand:hover { opacity: 1; }
.pxf-brand__logo, .pxf-brand img, .custom-logo { width: 40px; height: 40px; border-radius: 10px; display: block; }
.pxf-brand__name { font-size: 20px; font-weight: 700; color: var(--pxf-text); letter-spacing: -0.02em; }

.pxf-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.pxf-nav a, .pxf-nav ul li a { font-size: 15px; font-weight: 600; color: var(--pxf-text); }
.pxf-nav ul { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }

/* Onglet actif : soulignement menthe discret */
.pxf-nav a.is-active,
.pxf-nav .current-menu-item > a { border-bottom: 2px solid var(--pxf-accent); padding-bottom: 2px; }

.pxf-btn {
  display: inline-block;
  background: var(--pxf-accent);
  color: var(--pxf-accent-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.08px;
  padding: 12px 26px;
  border-radius: var(--pxf-radius-pill);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.pxf-btn:hover { opacity: .85; transform: translateY(-1px); }

.pxf-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.pxf-burger span { display: block; width: 22px; height: 2px; background: var(--pxf-text); margin: 5px 0; border-radius: 2px; }

/* ==========================================================================
   Hero blog
   ========================================================================== */
.pxf-hero { padding: 72px 0 40px; text-align: center; }
.pxf-hero h1 { font-size: 48px; margin-bottom: 16px; }
.pxf-hero p { max-width: 640px; margin: 0 auto; color: var(--pxf-muted); font-size: 17px; }

.pxf-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 0 48px; }
.pxf-cats a {
  font-size: 14px; font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--pxf-radius-pill);
  border: 1px solid var(--pxf-border);
  background: #fff;
  color: var(--pxf-text);
}
.pxf-cats a.is-active { background: var(--pxf-accent); border-color: var(--pxf-accent); color: var(--pxf-accent-text); }
.pxf-cats a:hover { opacity: 1; border-color: var(--pxf-accent); }

/* ==========================================================================
   Grille d'articles
   ========================================================================== */
.pxf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 64px; }
.pxf-card {
  background: #fff;
  border: 1px solid var(--pxf-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--pxf-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pxf-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(22, 17, 78, 0.10); }
.pxf-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f4f6f7; }
.pxf-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pxf-card__thumb:hover { opacity: 1; }
.pxf-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pxf-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pxf-pill {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--pxf-radius-pill);
  background: var(--pxf-accent);
  color: var(--pxf-accent-text);
}
.pxf-card__date { font-size: 13px; color: var(--pxf-muted-light); }
.pxf-card__title { font-size: 19px; margin: 0 0 10px; }
.pxf-card__title a { color: var(--pxf-text); }
.pxf-card__excerpt { font-size: 14.5px; color: var(--pxf-muted); margin: 0 0 16px; flex: 1; }
.pxf-card__more {
  font-size: 14px; font-weight: 600;
  color: var(--pxf-text);
  border-bottom: 2px solid var(--pxf-accent);
  align-self: flex-start;
  padding-bottom: 1px;
}

.pxf-pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 72px; }
.pxf-pagination .page-numbers {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-radius: var(--pxf-radius-pill);
  border: 1px solid var(--pxf-border);
  font-size: 14px; font-weight: 600;
  color: var(--pxf-text);
}
.pxf-pagination .page-numbers.current { background: var(--pxf-accent); border-color: var(--pxf-accent); }

/* ==========================================================================
   Article seul / pages
   ========================================================================== */
.pxf-article { max-width: 760px; margin: 0 auto; padding: 64px 24px 72px; }
.pxf-article__meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.pxf-article__title { font-size: 40px; text-align: center; margin-bottom: 28px; }
.pxf-article__thumb { border-radius: 16px; overflow: hidden; margin-bottom: 36px; box-shadow: var(--pxf-card-shadow); }
.pxf-article__content { font-size: 17px; color: var(--pxf-body-text); }
.pxf-article__content h2 { font-size: 28px; margin-top: 1.6em; }
.pxf-article__content h3 { font-size: 22px; margin-top: 1.4em; }
.pxf-article__content a { border-bottom: 2px solid var(--pxf-accent); }
.pxf-article__content img { border-radius: 12px; }
.pxf-article__content blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--pxf-accent);
  color: var(--pxf-muted);
}
.pxf-article__content pre { background: #0e0f11; color: #fff; padding: 18px; border-radius: 12px; overflow: auto; font-size: 14px; }
.wp-caption-text { font-size: 13px; color: var(--pxf-muted-light); text-align: center; }
.alignwide, .alignfull { border-radius: 12px; }

.pxf-postnav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--pxf-border);
  font-size: 14px; font-weight: 600;
}

/* ==========================================================================
   Commentaires
   ========================================================================== */
.pxf-comments { margin-top: 56px; }
.pxf-comments h2 { font-size: 24px; }
.pxf-comments ol { list-style: none; margin: 0; padding: 0; }
.pxf-comments li { padding: 20px 0; border-bottom: 1px solid var(--pxf-border); }
.pxf-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.pxf-comments .comment-author img { border-radius: 50%; }
.pxf-comments .comment-metadata { font-size: 13px; color: var(--pxf-muted-light); margin: 4px 0 8px; }
.pxf-comments .comment-content { font-size: 15px; }
.pxf-comments .reply a { font-size: 13px; font-weight: 600; border-bottom: 2px solid var(--pxf-accent); }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pxf-border);
  border-radius: 12px;
  font-family: var(--pxf-font);
  font-size: 15px;
  margin-bottom: 16px;
  background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus, .search-form input:focus {
  outline: 2px solid var(--pxf-accent);
  border-color: var(--pxf-accent);
}
.comment-form input[type="submit"] {
  background: var(--pxf-accent);
  color: var(--pxf-accent-text);
  font-weight: 600; font-size: 15px;
  border: none;
  padding: 12px 26px;
  border-radius: var(--pxf-radius-pill);
  cursor: pointer;
  font-family: var(--pxf-font);
}

.search-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.search-form input[type="search"] { margin-bottom: 0; }
.search-form .pxf-btn { flex-shrink: 0; }

.pxf-sidebar { padding: 32px 0; }
.pxf-sidebar .widget { margin-bottom: 32px; }
.pxf-sidebar .widget-title { font-size: 17px; }
.pxf-sidebar ul { list-style: none; padding: 0; margin: 0; }
.pxf-sidebar li { padding: 6px 0; font-size: 15px; }

.pxf-404 { text-align: center; padding: 96px 24px 120px; }
.pxf-404 h1 { font-size: 56px; }
.pxf-404 p { color: var(--pxf-muted); margin-bottom: 32px; }

/* ==========================================================================
   Section CTA pre-footer (reprend la section badges du site)
   ========================================================================== */
.pxf-cta-apps { text-align: center; padding: 64px 24px 72px; border-top: 1px solid var(--pxf-border); }
.pxf-cta-apps h2 { font-size: 30px; margin-bottom: 10px; }
.pxf-cta-apps p { color: var(--pxf-muted); margin: 0 0 28px; }

.pxf-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pxf-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  box-shadow: var(--pxf-card-shadow);
  border: 1px solid var(--pxf-border);
  border-radius: var(--pxf-radius-pill);
  padding: 12px 24px;
  font-size: 16px; font-weight: 600;
  color: #0e0f11;
}
.pxf-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   Footer - reproduction fidele du footer du site
   ========================================================================== */
.pxf-footer { background: #ffffff; padding: 56px 0 40px; }
.pxf-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pxf-footer__logo img, .pxf-footer__logo svg { width: 72px; height: 72px; border-radius: 18px; display: block; }
.pxf-footer__divider { border: none; border-top: 1px solid var(--pxf-border); margin: 36px 0 28px; }
.pxf-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pxf-footer__legal { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 14px; letter-spacing: 0.14px; }
.pxf-footer__copy { color: var(--pxf-muted); }
.pxf-footer__legal a { color: var(--pxf-muted-light); }
.pxf-footer__social { display: flex; align-items: center; gap: 14px; }
.pxf-footer__social a, .pxf-footer__social span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #0e0f11;
}
.pxf-footer__social svg { width: 18px; height: 18px; fill: #ffffff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .pxf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pxf-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--pxf-border);
  }
  .pxf-nav.is-open { display: flex; }
  .pxf-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .pxf-nav a, .pxf-nav ul li a { display: block; padding: 12px 0; width: 100%; }
  .pxf-nav .pxf-btn { margin-top: 8px; padding: 12px 26px; width: auto; }
  .pxf-burger { display: block; }
  .pxf-header__cta { display: none; }
  .pxf-hero h1 { font-size: 34px; }
  .pxf-grid { grid-template-columns: 1fr; }
  .pxf-article__title { font-size: 28px; }
  .pxf-footer__top, .pxf-footer__bottom { justify-content: center; text-align: center; }
}
