
/*
 Theme Name: Darkwoo Child
 Theme URI: https://darkwoo.fr
 Description: Child theme for Darkwoo (Astra) — full black base + clean text/menu.
 Author: Darkwoo
 Author URI: https://darkwoo.fr
 Template: astra
 Version: 1.0.0
 Text Domain: darkwoo-child
*/

/* ===== Base: full black + clean text ===== */
html, body {
  background:#000 !important;
  color:#F5F5F5;
}

/* Logo responsive */
.site-logo-img img,
.custom-logo,
.custom-logo-link img {
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
}

/* Titles & body fonts are enqueued via functions.php (Google Fonts) */
h1, h2, h3, h4, h5, h6,
.entry-title a {
  color:#F5F5F5 !important;
  font-family: "Playfair Display", serif;
  font-weight:600;
}

body, p, .entry-content {
  color:#F5F5F5 !important;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height:1.7;
}

/* Links */
a { color:#C5A46D; text-decoration:none; }
a:hover { color:#6A0D1B; text-decoration:underline; }

/* Header */
.site-header, .main-header-bar, .ast-primary-header-bar {
  background:#000 !important;
  border-bottom:1px solid #111 !important;
}

/* Menu desktop */
.main-header-menu .menu-link {
  color:#F5F5F5 !important;
  font-family:"Cinzel", serif;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
  color:#C5A46D !important;
}

/* Mobile drawer */
.ast-builder-menu-mobile .menu-link { color:#F5F5F5 !important; font-family:"Cinzel", serif; }
.ast-builder-menu-mobile .menu-link:hover { color:#C5A46D !important; }

/* Article cards / areas (force black on mobile too) */
.ast-separate-container,
.ast-plain-container,
.ast-page-builder-template,
.ast-article-inner,
.ast-article-single,
.ast-archive-description,
.ast-mobile-header-content,
.ast-mobile-popup-inner,
.site-footer, .site-below-footer-wrap {
  background:#000 !important;
}

/* Meta (date/author) neutral grey */
.entry-meta, .entry-meta a,
.ast-blog-meta-container a,
.posted-on a, .byline a, .cat-links a, .tags-links a {
  color:#bdbdbd !important;
  text-decoration:none !important;
}
.entry-meta a:hover,
.ast-blog-meta-container a:hover,
.posted-on a:hover, .byline a:hover,
.cat-links a:hover, .tags-links a:hover {
  color:#ffffff !important;
}

/* Burger icon clean */
.menu-toggle,
.ast-mobile-menu-trigger-minimal { background:transparent !important; border:0 !important; box-shadow:none !important; }
.mobile-menu-toggle-icon .ast-mobile-svg { fill:#fff !important; }

/* Back to top */
#ast-scroll-top { background:#6A0D1B !important; }
#ast-scroll-top:hover { background:#8d1225 !important; }
 


.wall-cat{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:clamp(12px,2vw,20px);
}
.wall-cat__item{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:16px;
  aspect-ratio:16/9; /* 600x338 ≈ 16:9 */
  box-shadow:0 6px 20px rgba(0,0,0,.15);
  transition:transform .2s ease, box-shadow .2s ease;
}
.wall-cat__item:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}
.wall-cat__item img{
  width:100%; height:100%; object-fit:cover;
  filter:saturate(.98) contrast(1.05);
  transition:transform .45s ease;
}
.wall-cat__item:hover img{ transform:scale(1.05); }

.wall-cat__label{
  position:absolute; left:0; right:0; bottom:0;
  padding:10px 12px;
  color:#fff;
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
}
.wall-cat__name{ font-weight:700; font-size:clamp(14px,2vw,18px); }
.wall-cat__count{
  font-size:12px; font-weight:600; opacity:.9;
  padding:3px 8px; border-radius:999px; background:rgba(255,255,255,.2);
}




/* Grille responsive */
.dw-grid.dw-grid--cards{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(var(--dw-min,300px), 1fr));
  gap:var(--dw-gap,16px);
}

/* Card cliquable */
.dw-card{ display:block; }
.dw-card__link{
  display:block; background:#0a0a0a; border-radius:var(--dw-radius,16px);
  overflow:hidden; text-decoration:none; color:inherit;
  box-shadow:0 6px 20px rgba(0,0,0,.16);
  transition:transform .18s ease, box-shadow .18s ease;
}
.dw-card__link:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.24); }

/* Media */
.dw-card__media{
  display:block; width:100%; aspect-ratio:var(--dw-aspect,16/9);
  background:#121212; overflow:hidden;
}
.dw-card__media img,.dw-card__ph{ width:100%; height:100%; object-fit:cover; display:block; }
.dw-card__media img{ transition:transform .4s ease; }
.dw-card__link:hover .dw-card__media img{ transform:scale(1.04); }

/* Corps (titre jaune + excerpt) */
.dw-card__body{ padding:12px 14px 14px; }
.dw-card__title{ margin:0 0 6px; font-weight:800; line-height:1.25; }
.dw-card__title span,
.dw-card__title a{
  font-size:clamp(14px, 1.9vw, 16px);
  color:var(--dw-accent,#FFD54F);          /* jaune */
  text-decoration:none !important;         /* jamais souligné */
}
.dw-card__title a:hover{ opacity:.9; text-decoration:none; } /* pas de souligné au hover */

/* Excerpt */
.dw-card__excerpt{
  margin:0; color:#d9d9d9; text-decoration:none; /* no underline jamais */
  font-size:clamp(13px, 1.7vw, 14px); line-height:1.45;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}
.dw-card__excerpt a{ text-decoration:none; border:0; } /* au cas où extrait contient des liens */

/* Bouton "Charger plus" */
.dw-grid__morewrap{ display:flex; justify-content:center; margin-top:14px; }
.dw-grid__more{
  appearance:none; border:0; cursor:pointer;
  padding:10px 16px; border-radius:999px; font-weight:800;
  background:linear-gradient(180deg, #2a2a2a, #1b1b1b);
  color:#fff; box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.dw-grid__more:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.3); }
.dw-grid__more:disabled{ opacity:.6; cursor:default; }
.dw-grid__more.is-done{ opacity:.75; }

/* Désactive TOUT soulignement à l’intérieur de la grille */
.dw-grid a,
.dw-grid a:hover,
.dw-grid a:focus,
.dw-grid a:active,
.dw-grid .dw-card__title,
.dw-grid .dw-card__title *,
.dw-grid .dw-card__excerpt,
.dw-grid .dw-card__excerpt *{
  text-decoration: none !important;
  border-bottom: 0 !important;   /* au cas où le thème underline avec un border */
  box-shadow: none !important;   /* certains thèmes simulent un underline avec shadow */
}


.archive-head {
  text-align:center;
  margin-bottom:2rem;
}
.archive-title {
  font-size:clamp(24px, 4vw, 36px);
  margin-bottom:1rem;
}
.archive-cat-image {
  max-width:640px;
  margin:0 auto 1rem;
}
.archive-cat-image img {
  width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
}
.archive-cat-desc {
  max-width:720px;
  margin:0 auto;
  font-size:16px;
  line-height:1.6;
  color:#ccc;
}
