/*
Theme Name: AstroFlash Mobile
Description: Thème sur-mesure optimisé pour mobile et SEO.
Version: 3.1
Author: Philastral
*/

body {
    background-color: #f4f7f9;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding-top: 65px; /* Espace pour le header fixe */
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* Header Fixe */
header {
    background: #ffffff;
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { font-weight: bold; font-size: 20px; color: #004a99; text-decoration: none; text-transform: uppercase; }
.logo span { color: #ffcc00; }

.menu-trigger {
    background: #004a99;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Grilles des Signes (Mobile 3 colonnes) */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.sign-box {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
}

.sign-box {
    background: #eef2f7; /* Couleur de fond pour voir les cases */
    min-height: 80px;
}

.sign-box img { width: 90px; height: 90px; margin-bottom: 5px; display: inline-block; }
.sign-box span { display: block; font-weight: bold; color: #004a99; font-size: 13px; }
.sign-box .date { font-size: 10px; color: #888; }

/* Grille Chinoise (Bordure Rouge) */
.chinese-grid .sign-box:hover { border-color: #c0392b; }
.chinese-grid span { color: #c0392b; }
.zodiac-grid.chinese-grid .sign-box img{
  width: 120px !important;
  height: 120px !important;
  max-width: none !important;
}


/* Contenu */
.content-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    margin-bottom: 30px;
}

/* Menu Mobile Overlay */
#mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #004a99;
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 40px 20px;
}

#mobile-menu ul { list-style: none; padding: 0; margin-top: 40px; }
#mobile-menu ul li { margin-bottom: 20px; text-align: center; }
#mobile-menu ul li a { color: #fff; font-size: 22px; text-decoration: none; font-weight: bold; }
.close-menu { color: #fff; font-size: 45px; align-self: flex-end; background:none; border:none; cursor:pointer;}

@media (min-width: 768px) {
    .zodiac-grid { grid-template-columns: repeat(6, 1fr); }
}

.af-bc-outer{
  width:100%;
  padding:10px 16px 14px;
}

.af-bc-inner{
  max-width:1200px;   /* ajuste si ton site est plus étroit */
  margin:0 auto;
}

.af-breadcrumb{
  font-size:14px;
  line-height:1.4;
  opacity:.9;
}

.af-breadcrumb a{ text-decoration:none; }
.af-breadcrumb a:hover{ text-decoration:underline; }

/* ===== Boutons grilles (Ascendants + Planètes) ===== */

.astro-btn-grid{
  display:grid;
  grid-template-columns: repeat(var(--cols-mobile, 2), 1fr);
  gap:10px;
  margin:20px 0;
}

@media (min-width: 768px){
  .astro-btn-grid{
    grid-template-columns: repeat(var(--cols-desktop, 3), 1fr);
  }
}

.astro-btn-grid a.astro-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 10px;
  background:#004a99;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border-radius:10px;
  text-align:center;
  line-height:1.3;
}

.astro-btn-grid a.astro-btn:hover{
  filter:brightness(.95);
}

.astro-asc-title{
  margin:25px 0 10px;
  font-size:18px;
  color:#004a99;
}
.site-footer{
  background:#0f1e33;
  color:#fff;
  padding:18px 12px;
  margin-top:40px;
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:13px;
}
.footer-links a{color:#fff;text-decoration:none;}
.footer-links a:hover{text-decoration:underline;}
.footer-links .sep{margin:0 6px;opacity:.6;}

.astro-btn-grid{
  display:grid;
  grid-template-columns: repeat(var(--cols-mobile, 2), 1fr);
  gap:10px;
  margin:20px 0;
}
@media (min-width: 768px){
  .astro-btn-grid{
    grid-template-columns: repeat(var(--cols-desktop, 3), 1fr);
  }
}

.astro-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 10px;
  background:#004a99;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border-radius:10px;
  text-align:center;
  line-height:1.3;
}
.astro-btn:hover{filter:brightness(.95);}


.astro-asc-title{
  margin: 25px 0 10px;
  font-size: 18px;
  color: #004a99;
}

.astro-btn-grid a.astro-btn{
  background:#004a99;
  color:#fff;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 10px;
  border-radius:10px;
  font-weight:600;
  line-height:1.3;
}
.astro-btn-grid a.astro-btn:hover{filter:brightness(.95);}



