/*
Theme Name: Astra Child
Template: astra
*/

/* =========================
   Parity Sans (Bold)
   ========================= */
@font-face{
  font-family:"Parity Sans";
  src:url("https://pa-design.fr/wp-content/uploads/fonts/parity-sans/Parity_Sans_Bold.woff2") format("woff2"),
      url("https://pa-design.fr/wp-content/uploads/fonts/parity-sans/Parity_Sans_Bold.otf") format("opentype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

/* Titres H1/H2 en Parity Sans (incl. Elementor) */
h1, h2,
.elementor h1.elementor-heading-title,
.elementor h2.elementor-heading-title{
  font-family:"Parity Sans",sans-serif !important;
  font-weight:700 !important;
}
h1, h2, h3, h4, h5, h6{ margin:0 0 20px; }

/* =========================
   Témoignages (#testimonial)
   ========================= */
#testimonial h3{
  color:#E0C097;
  font-size:24px;
  font-weight:700;
  font-style:normal;
  margin-bottom:12px;
  text-align:center;
}
#testimonial p{
  color:#3B2F2F;
  font-size:15px;
  line-height:1.6;
  text-align:center;
  max-width:800px;
  margin:0 auto 20px;
}
/* Guillemets décoratifs */
#testimonial .wpmtst-testimonial-content::before,
#testimonial .wpmtst-testimonial-content::after{
  color:#E0C097;
  background:#E0C097;
}
/* Chevrons du slider */
#testimonial .wpmslider-controls-direction .wpmslider-prev::before,
#testimonial .wpmslider-controls-direction .wpmslider-next::before{
  background:#E0C097 !important;
  color:#E0C097 !important;
  opacity:1 !important;
}
#testimonial .wpmslider-controls-direction .wpmslider-prev:hover::before,
#testimonial .wpmslider-controls-direction .wpmslider-next:hover::before{
  background:#E0C097 !important;
  color:#E0C097 !important;
}

/* =========================
   Menu principal (Astra)
   ========================= */
.main-header-menu .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > a{
  font-family:"Parity Sans",sans-serif !important;
  font-weight:700 !important;
  text-transform:uppercase;
  letter-spacing:.5px;
  font-size:16px;
  color:#222222;
  transition:all .25s ease;
}
.main-header-menu .menu-item > a:hover{ color:#B87333; }
.main-header-menu .current-menu-item > a{
  color:#B87333 !important;
  border-bottom:2px solid #B87333;
}

/* Transitions douces globales */
.ast-primary-header-bar,
.ast-primary-header-bar .ast-builder-grid-row,
.main-header-menu .menu-item > a,
.site-branding .custom-logo-link img,
.ast-site-identity .site-logo-img img {
  transition: all .25s ease;
}

/* Header collé en haut */
.site-header { position: sticky; top: 0; z-index: 9999; }

/* ==== HEADER (fix ombres latérales) ==== */
/* 1) On neutralise toute ombre résiduelle sur la row interne */
.ast-primary-header-bar .ast-builder-grid-row,
.ast-primary-header-bar .ast-builder-grid-row::before,
.ast-primary-header-bar::before {
  box-shadow: none !important;
  filter: none !important;
}

/* 2) État compact au scroll : padding + ombre UNIQUEMENT vers le bas sur la barre pleine largeur */
html.scrolled .ast-primary-header-bar {
  background: #DDEBE6; /* même vert que ton header normal */
  box-shadow: 0 10px 18px -12px rgba(0,0,0,.22);
}

html.scrolled .ast-primary-header-bar .ast-builder-grid-row {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  min-height: unset; /* évite une hauteur min héritée */
}

/* Liens du menu : plus serrés, centrés verticalement au scroll */
html.scrolled .main-header-menu .menu-item > a {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  line-height: 1.2;
  color: #222 !important;
}

/* Logo – ne rien imposer au repos, réduire seulement au scroll */
.site-branding .custom-logo-link img,
.ast-site-identity .site-logo-img img {
  height: auto !important;
  width: auto;
  max-height: none !important;
  transform-origin: left center;
}
html.scrolled .site-branding .custom-logo-link img,
html.scrolled .ast-site-identity .site-logo-img img,
html.scrolled .custom-logo {
  max-height: 38px !important; /* ajuste 34–40px si besoin */
}

/* Mobile : un peu plus serré */
@media (max-width: 768px){
  html.scrolled .ast-primary-header-bar .ast-builder-grid-row {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  html.scrolled .main-header-menu .menu-item > a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  html.scrolled .site-branding .custom-logo-link img,
  html.scrolled .ast-site-identity .site-logo-img img {
    max-height: 34px !important;
  }
}

/* Couleur accent pour l'élément actif (toutes les variantes Astra) */
.main-header-menu .current-menu-item > a,
.main-header-menu .current_page_item > a,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item.current_page_item > .menu-link {
  color: #B87333 !important;
  border-bottom: 2px solid #B87333 !important;
}
/* Focus/active pour accessibilité */
.main-header-menu .menu-item > a:focus,
.main-header-menu .menu-item > a:active {
  color: #B87333 !important;
}
/* Soulignement au hover d'Astra (si activé) */
.ast-menu-hover-style-underline .main-header-menu .menu-item > a::before,
.ast-menu-hover-style-underline .ast-builder-menu-1 .menu-item > .menu-link::before {
  background-color: #B87333 !important;
}
/* Version mobile */
.ast-header-break-point .main-header-menu .current-menu-item > a,
.ast-header-break-point .main-header-menu .current_page_item > a {
  color: #B87333 !important;
  border-bottom-color: #B87333 !important;
}

/* =========================
   Blog posts (widget #articles-home)
   ========================= */

/* Grille : colonnes égales */
#articles-home .row.post-items {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
#articles-home .row.post-items > [class*="col-"] {
  display: flex;
}

/* Cartes articles modernes */
#articles-home .elementskit-post-image-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
#articles-home .elementskit-post-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* Image homogène avec ratio fixe */
#articles-home .elementskit-entry-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}
#articles-home .elementskit-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenu aligné et propre */
#articles-home .elementskit-entry-header,
#articles-home .elementskit-post-body {
  padding: 16px 20px;
  background: #fff;
}
#articles-home .elementskit-post-body {
  margin-top: auto; /* pousse le bouton en bas */
  padding-bottom: 20px;
}

/* Titre limité à 2 lignes */
#articles-home .entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #222;
}

/* Extrait limité à 2 lignes */
#articles-home .elementskit-post-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 16px;
  line-height: 1.4;
  color: #2f6f6f;
}

/* === Bouton stylisé === */
#articles-home .elementskit-btn {
  border-radius: 24px;
  padding: 10px 22px;
  font-weight: 700;
  color: #fff !important;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

#articles-home .elementskit-btn:hover {
  background: #6BA292;
  transform: scale(1.05);
}

/* Espacement vertical entre les articles en mobile */
@media (max-width: 767px) {
  #articles-home .row.post-items > [class*="col-"] {
    margin-bottom: 20px !important; /* espace de 20px entre chaque bloc */
  }
}

/* === Portfolio : filtres centrés, look texte (Parity Sans) === */

/* cache le wrapper vide généré par le plugin */
#FilerTab.fil .shield_cli{ display:none !important; }

/* barre d’onglets centrée */
#FilerTab.fil{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:22px !important;
  margin:10px 0 22px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  float:none !important;
  clear:both !important;
}

/* liens = aspect texte (dé-boutonnisés) */
#FilerTab.fil > a.sortLink{
  all:unset !important;                         /* reset total du style plugin */
  display:inline-block !important;
  cursor:pointer !important;
  padding:.35rem .4rem !important;

  font-family:"Parity Sans", system-ui, -apple-system, sans-serif !important;
  font-weight:700 !important;
  font-size:16px !important;
  line-height:1 !important;
  letter-spacing:.2px !important;

  color:#6BA292 !important;                    /* couleur de base */
  transition:color .18s ease, transform .18s ease !important;

  /* au cas où le plugin insiste */
  float:none !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
  margin:0 !important;
  -webkit-appearance:none;
}

/* hover / focus */
#FilerTab.fil > a.sortLink:hover,
#FilerTab.fil > a.sortLink:focus{
  color:#E0C097 !important;
  transform:scale(1.06) !important;
  outline:0 !important;
}

/* actif (catégorie sélectionnée) */
#FilerTab.fil > a.sortLink.selected{
  color:#E0C097 !important;
  position:relative !important;
}
#FilerTab.fil > a.sortLink.selected::after{
  content:"" !important;
  position:absolute !important;
  left:0; right:0; bottom:-6px;
  height:2px; background:#E0C097;
}

/* mobile */
@media (max-width:640px){
  #FilerTab.fil{ gap:16px !important; }
  #FilerTab.fil > a.sortLink{ font-size:17px !important; }
}

/* Micro-zoom au survol des catégories */
#FilerTab.fil > a.sortLink{
  transform: translateZ(0);
  transition: transform .16s ease-out;  /* fluide et discret */
  will-change: transform;
}

#FilerTab.fil > a.sortLink:hover,
#FilerTab.fil > a.sortLink:focus{
  transform: scale(1.06);
}

/* Accessibilité : pas d’anim si l’utilisateur préfère réduire */
@media (prefers-reduced-motion: reduce){
  #FilerTab.fil > a.sortLink{ transition: none !important; }
  #FilerTab.fil > a.sortLink:hover,
  #FilerTab.fil > a.sortLink:focus{ transform: none !important; }
}