/*
Theme Name: AkilaCare Blog
Theme URI: https://akilacare.fr
Author: Thème sur mesure
Description: Thème WordPress sur mesure pour le blog d'AkilaCare (ménage et repassage à domicile). Charte reprise du site : fond crème, accent rose poudré, police Poppins. 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: akilacare-blog
*/

/* =========================================================
   1. VARIABLES — charte AkilaCare
   ========================================================= */
:root {
  --ak-rose:      #c47a7a;   /* accent rose poudré (boutons, liens forts) */
  --ak-rose-dk:   #a86363;   /* survol */
  --ak-rose-lite: #fcefef;   /* fond rose clair (sections) */
  --ak-ink:       #1f1a1a;   /* texte / footer */
  --ak-muted:     #5c5252;   /* texte secondaire */

  --ak-cream:     #fbf6f4;   /* fond de page (crème) */
  --ak-bg:        #ffffff;   /* cartes */
  --ak-border:    #ecdfe0;   /* bordures douces */

  --ak-font: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --ak-max-width: 1160px;
  --ak-radius: 6px;          /* boutons */
  --ak-radius-lg: 16px;      /* cartes */
  --ak-shadow: 0 12px 34px rgba(31,26,26,.08);
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--ak-font);
  color: var(--ak-ink);
  background: var(--ak-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ak-rose-dk); text-decoration: none; }
a:hover { color: var(--ak-rose); }
h1, h2, h3, h4 {
  font-family: var(--ak-font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ak-ink);
  margin: 0 0 .5em;
}
.ak-container {
  width: 100%;
  max-width: var(--ak-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 (style du site : rose, arrondi) */
.ak-btn {
  display: inline-block;
  background: var(--ak-rose);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--ak-radius);
  font-weight: 600;
  transition: background .2s ease;
}
.ak-btn:hover { background: var(--ak-rose-dk); color: #fff; }

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

/* Marque / logo */
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding .custom-logo { max-height: 46px; width: auto; }
.brand-word { font-family: var(--ak-font); font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; white-space: nowrap; color: var(--ak-ink); }
.brand-word .brand-care { color: var(--ak-rose); }

/* Zone droite : menu + langue */
.header-actions { display: flex; align-items: center; gap: 22px; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }

/* Navigation : tous les éléments sur UNE SEULE LIGNE */
.main-navigation { 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;
  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; position: relative; }
.main-navigation a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ak-ink);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--ak-rose); }
.main-navigation a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--ak-rose);
  transition: width .25s ease;
}
.main-navigation a:hover::after { width: 100%; }

/* Entrée CTA "Demander un devis" en bouton rose */
.main-navigation .menu-item-cta a {
  background: var(--ak-rose);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--ak-radius);
  font-weight: 600;
}
.main-navigation .menu-item-cta a:hover { background: var(--ak-rose-dk); color: #fff; }
.main-navigation .menu-item-cta a::after { display: none; }

/* Sélecteur de langue FR · EN (pilule) */
.lang-switch {
  flex: 0 0 auto;
  border: 1px solid var(--ak-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ak-muted);
  white-space: nowrap;
  background: #fff;
}
.lang-switch:hover { color: var(--ak-rose); border-color: var(--ak-rose); }

/* =========================================================
   4. LISTE DES ARTICLES (page blog)
   ========================================================= */
.blog-main { padding: 54px 0 70px; }
.blog-header { margin-bottom: 38px; }
.blog-header .overline { color: var(--ak-rose); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 10px; }
.blog-header h1 { font-size: 2.5rem; }
.blog-header .blog-sub { color: var(--ak-muted); margin-top: 8px; font-size: 1.05rem; }

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--ak-bg);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--ak-shadow); }
.post-card__thumb { display: block; aspect-ratio: 16/10; background: var(--ak-rose-lite); 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: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--ak-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.post-card__meta .cat { color: var(--ak-rose-dk); font-weight: 600; }
.post-card__title { font-size: 1.3rem; margin: 0 0 12px; line-height: 1.3; }
.post-card__title a { color: var(--ak-ink); }
.post-card__title a:hover { color: var(--ak-rose); }
.post-card__excerpt { color: var(--ak-muted); font-size: .96rem; margin: 0 0 18px; flex: 1; }
.post-card__more { align-self: flex-start; font-weight: 600; color: var(--ak-rose-dk); }
.post-card__more::after { content: " →"; }

/* Pagination */
.ak-pagination { margin-top: 52px; text-align: center; }
.ak-pagination .page-numbers {
  display: inline-block; padding: 9px 15px; margin: 0 4px;
  border: 1px solid var(--ak-border); border-radius: var(--ak-radius); color: var(--ak-ink); background: #fff;
}
.ak-pagination .page-numbers.current,
.ak-pagination .page-numbers:hover {
  background: var(--ak-rose); color: #fff; border-color: var(--ak-rose);
}
.no-posts { padding: 60px 0; text-align: center; color: var(--ak-muted); }

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

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
  background: var(--ak-ink);
  color: #cbbebe;
  padding: 50px 0 28px;
  margin-top: 54px;
}
.site-footer a { color: #e7dada; }
.site-footer a:hover { color: var(--ak-rose); }
.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.4rem; color: #fff; }
.site-footer__brand .brand-care { color: var(--ak-rose); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__copy {
  width: 100%; text-align: center; opacity: .75; font-size: .84rem;
  margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
}

/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .site-header__inner { min-height: 66px; gap: 14px; }
  .brand-word { font-size: 1.4rem; }
  .blog-header h1 { font-size: 1.9rem; }
  .header-actions { gap: 14px; }
  /* Le menu reste sur une seule ligne et défile horizontalement */
  .main-navigation ul { gap: 18px; }
}
