﻿/*
Theme Name:     Asaph-toulouse-child
Theme URI:
Description:    Thème enfant Astra — charte graphique Asaph Toulouse.
Author:         fsena
Author URI:
Template:       astra
Version:        1.0.0
*/

/* ── Sélecteur de langue FR / EN (global) ───────────────────────────────
   Masque les spans .en quand la langue est FR et vice-versa.
   Contrôlé par data-lang sur <html>, persisté dans localStorage.
   ──────────────────────────────────────────────────────────────────── */
:root[data-lang="fr"] .en,
:root[data-lang="en"] .fr { display: none !important; }
:root:not([data-lang])    .en { display: none !important; }

/* =============================================
   TOKENS
   ============================================= */
:root {
  /* Palette vert pastel */
  --clr-primary:       #7DBF78;
  --clr-primary-dark:  #3D6B38;
  --clr-primary-light: #EBF5E9;
  --clr-primary-muted: #B9D9B5;

  /* Texte & fond */
  --clr-text:          #1C2B1C;
  --clr-text-muted:    #526052;
  --clr-bg:            #FBFEFB;
  --clr-bg-alt:        #F3F9F2;
  --clr-white:         #FFFFFF;

  /* Liserés */
  --lisere:            3px solid var(--clr-primary);
  --lisere-muted:      1px solid var(--clr-primary-muted);
  --lisere-thick:      5px solid var(--clr-primary);

  /* Typographie */
  --font-body:         'Inter', sans-serif;
  --font-heading:      'Playfair Display', serif;

  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.375rem;
  --fs-xl:    1.75rem;
  --fs-2xl:   2.25rem;
  --fs-3xl:   2.875rem;

  --lh-body:    1.75;
  --lh-heading: 1.25;

  /* Espace */
  --sp-xs:  0.375rem;
  --sp-sm:  0.75rem;
  --sp-md:  1.25rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 4.5rem;

  /* Misc */
  --radius:     6px;
  --shadow-sm:  0 2px 8px rgba(30, 50, 30, 0.12), 0 1px 3px rgba(30, 50, 30, 0.08);
  --shadow-md:  0 8px 24px rgba(30, 50, 30, 0.18), 0 2px 8px rgba(30, 50, 30, 0.10);
  --shadow-lg:  0 20px 48px rgba(30, 50, 30, 0.22), 0 6px 16px rgba(30, 50, 30, 0.14);
  --transition: 0.2s ease;
}

/* =============================================
   LISERE SUPÉRIEUR DE PAGE
   ============================================= */
body::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clr-primary-dark) 0%,
    var(--clr-primary) 45%,
    var(--clr-primary-muted) 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* =============================================
   BASE
   ============================================= */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   TYPOGRAPHIE
   ============================================= */
h1, h2, h3, h4, h5, h6,
.ast-woocommerce-container h1,
.ast-woocommerce-container h2 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--clr-primary-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5, h6 { font-size: var(--fs-md); }

/* Lisere gauche sur h2 et h3 dans le contenu */
.entry-content h2,
.entry-content h3,
.ast-article-single h2,
.ast-article-single h3 {
  padding-left: var(--sp-md);
  border-left: var(--lisere-thick);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.entry-content h2::after,
.ast-article-single h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--clr-primary-muted);
  margin-top: var(--sp-xs);
}

p {
  margin-bottom: var(--sp-md);
  font-size: var(--fs-base);
}

a {
  color: var(--clr-primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--clr-primary-muted);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover,
a:focus {
  color: var(--clr-primary);
  text-decoration-color: var(--clr-primary);
}

strong { color: var(--clr-primary-dark); }

blockquote {
  border-left: var(--lisere-thick);
  background: var(--clr-bg-alt);
  margin: var(--sp-lg) 0;
  padding: var(--sp-md) var(--sp-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--clr-primary-dark);
}

hr, .wp-block-separator {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--clr-primary-muted) 20%,
    var(--clr-primary-muted) 80%,
    transparent 100%
  );
  margin: var(--sp-xl) auto;
  max-width: 60%;
}

/* =============================================
   HEADER
   ============================================= */
.site-header,
#masthead {
  background-color: var(--clr-white);
  border-bottom: var(--lisere-muted);
  box-shadow: 0 4px 20px rgba(30, 50, 30, 0.14), 0 1px 4px rgba(30, 50, 30, 0.08);
}

.main-header-bar {
  padding-top: var(--sp-sm);
  padding-bottom: var(--sp-sm);
}

/* Logo */
.ast-site-identity a,
.site-title a {
  font-family: var(--font-heading);
  color: var(--clr-primary-dark) !important;
  text-decoration: none;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ast-site-identity a:hover {
  color: var(--clr-primary) !important;
}

/* Tagline */
.site-description {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* =============================================
   NAVIGATION
   ============================================= */
.ast-primary-menu > li > a,
.main-header-menu .menu-link,
#site-navigation .nav-menu > li > a {
  font-family: var(--font-body);
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-text) !important;
  text-decoration: none;
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.ast-primary-menu > li > a:hover,
.ast-primary-menu > li.current-menu-item > a,
.ast-primary-menu > li.current_page_item > a {
  color: var(--clr-primary-dark) !important;
  border-bottom-color: var(--clr-primary);
}

/* Sous-menus */
.ast-primary-menu .sub-menu {
  background: var(--clr-white);
  border-top: var(--lisere);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
}

.ast-primary-menu .sub-menu a {
  color: var(--clr-text) !important;
  font-size: var(--fs-sm);
  padding: var(--sp-sm) var(--sp-md);
  transition: background var(--transition), color var(--transition);
}

.ast-primary-menu .sub-menu a:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark) !important;
}

/* =============================================
   CONTENU PRINCIPAL
   ============================================= */
.site-content,
#content {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
}

/* Lisere gauche sur les articles de liste */
.ast-article-post {
  background: var(--clr-white);
  border-radius: var(--radius);
  border: var(--lisere-muted);
  border-left: var(--lisere);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.ast-article-post:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Single post */
.ast-article-single {
  background: var(--clr-white);
  border-radius: var(--radius);
  border: var(--lisere-muted);
  box-shadow: var(--shadow-md);
  padding: var(--sp-xl);
}

/* En-tête d'article — lisere au-dessus du titre */
.entry-header {
  border-top: var(--lisere-thick);
  padding-top: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.entry-title,
.page-title {
  font-size: var(--fs-3xl);
  margin-top: 0;
}

.entry-title a {
  text-decoration: none;
  color: var(--clr-primary-dark) !important;
}

.entry-title a:hover {
  color: var(--clr-primary) !important;
}

/* Meta */
.entry-meta,
.ast-post-meta {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-style: italic;
}

.entry-meta a,
.ast-post-meta a {
  color: var(--clr-text-muted);
}

/* =============================================
   BOUTONS
   ============================================= */
.ast-button,
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  display: inline-block;
  background-color: var(--clr-primary-dark);
  color: var(--clr-white) !important;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--sp-sm) var(--sp-lg);
  border: 2px solid var(--clr-primary-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.ast-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white) !important;
  box-shadow: 0 8px 20px rgba(61, 107, 56, 0.35), 0 2px 6px rgba(61, 107, 56, 0.20);
  transform: translateY(-1px);
}

/* Bouton outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--clr-primary-dark) !important;
  border-color: var(--clr-primary-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark) !important;
}

/* =============================================
   IMAGES
   ============================================= */
.entry-content img,
.entry-thumbnail img,
.ast-article-post img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}

.entry-content figure {
  margin: var(--sp-lg) 0;
}

.entry-content figcaption {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  text-align: center;
  font-style: italic;
  margin-top: var(--sp-xs);
  padding-top: var(--sp-xs);
  border-top: var(--lisere-muted);
}

/* =============================================
   SIDEBAR
   ============================================= */
.widget-area .widget {
  background: var(--clr-white);
  border: var(--lisere-muted);
  border-top: var(--lisere);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  box-shadow: var(--shadow-md);
}

.widget-title,
.widgettitle {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--clr-primary-dark);
  padding-bottom: var(--sp-sm);
  border-bottom: var(--lisere-muted);
  margin-bottom: var(--sp-md);
}

/* =============================================
   FORMULAIRES
   ============================================= */

/*
 * Astra injecte deux règles destructives sur tous les inputs :
 *   color: var(--ast-border-color)   → #F2F5F7 ≈ blanc sur fond clair
 *   color: rgb(255,255,255) au :focus → caret + texte totalement invisibles
 * Ces !important sont obligatoires — c'est le seul moyen de primer sur
 * l'inline Customizer Astra (plus haute priorité que l'externe).
 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="reset"],
textarea,
select {
  border: var(--lisere-muted);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--clr-text) !important;
  caret-color: var(--clr-text) !important;
  background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="reset"]:focus,
textarea:focus,
select:focus {
  outline: none;
  color: var(--clr-text) !important;
  caret-color: var(--clr-text) !important;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(125, 191, 120, 0.28), 0 2px 8px rgba(30, 50, 30, 0.12);
}

/* Fix Chrome autofill — la surcharge UA de Chrome rendait le caret blanc */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--clr-text) !important;
  caret-color: var(--clr-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--clr-white) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* =============================================
   PIED DE PAGE
   ============================================= */
.site-footer:not(.asaph-footer),
#colophon:not(.asaph-footer) {
  background-color: var(--clr-bg-alt);
  border-top: var(--lisere);
  padding-top: var(--sp-xl);
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
}

.footer-widget-area {
  padding-bottom: var(--sp-xl);
  border-bottom: var(--lisere-muted);
  margin-bottom: var(--sp-lg);
}

.footer-widget-area .widget-title,
.footer-widget-area .widgettitle {
  color: var(--clr-primary-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  border-bottom: var(--lisere-muted);
  padding-bottom: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.ast-footer-copyright {
  padding: var(--sp-md) 0;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
}

.ast-footer-copyright a {
  color: var(--clr-primary-dark);
  text-decoration: none;
}

.ast-footer-copyright a:hover {
  color: var(--clr-primary);
  text-decoration: underline;
}

/* =============================================
   PAGINATION
   ============================================= */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--sp-sm);
  border: var(--lisere-muted);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  transition: all var(--transition);
  margin: 0 2px;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

/* =============================================
   SEPARATEURS DE SECTION (liseres horizontaux)
   ============================================= */
.section-divider,
.ast-section-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin: var(--sp-xl) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-primary-muted);
}

/* =============================================
   ACCESSIBILITE
   ============================================= */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
}

.screen-reader-text:focus {
  background: var(--clr-white);
  border: var(--lisere);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }

  .entry-title { font-size: var(--fs-2xl); }

  .ast-article-single {
    padding: var(--sp-md);
  }

  .ast-article-post {
    padding: var(--sp-md);
  }
}

/* =============================================
   NAVBAR GLASSMORPHISM
   ============================================= */
.asaph-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(61, 107, 56, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Liseré dégradé en bas */
.asaph-navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3d6b38, #7dbf78, #b9d9b5);
  pointer-events: none;
}

/* Shadow intensifiée au scroll */
.asaph-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 8px 32px rgba(61, 107, 56, 0.16),
    0 2px 8px rgba(61, 107, 56, 0.10);
}

/* Inner — conteneur flex */
.asaph-navbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
}

/* ---- LOGO ---- */
.asaph-navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Cercle avatar dégradé */
.asaph-navbar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dbf78 0%, #3d6b38 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(61, 107, 56, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.asaph-navbar__logo:hover .asaph-navbar__avatar {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(61, 107, 56, 0.42);
}

/* Nom du site */
.asaph-navbar__site-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1c2b1c;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Logo image uploadé */
.asaph-navbar .asaph-navbar__logo .custom-logo-link {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0;
}

.asaph-navbar .asaph-navbar__logo .custom-logo {
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

/* Logo — spécificité maximale, surcharge Astra + inline styles */
.main-header-bar .ast-site-identity img,
.main-header-bar .custom-logo,
.site-header img.custom-logo,
#masthead img {
  max-height: 55px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Zoom élégant au survol */
.main-header-bar .ast-site-identity img,
.main-header-bar .custom-logo,
.site-header img.custom-logo,
#masthead img {
  transition: transform 0.3s ease, filter 0.3s ease !important;
  cursor: pointer !important;
}

.main-header-bar .ast-site-identity img:hover,
.main-header-bar .custom-logo:hover,
.site-header img.custom-logo:hover,
#masthead img:hover {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 4px 12px rgba(61, 107, 56, 0.25)) !important;
}

/* Écrase le width inline injecté par Astra sur le conteneur logo */
.ast-logo-container,
.ast-site-identity {
  width: auto !important;
  max-width: 180px !important;
}

/* Centrage vertical logo */
.ast-site-identity,
.site-branding,
.ast-logo-container,
.ast-header-logo-container {
  display: flex !important;
  align-items: center !important;
}

/* ---- NAV DESKTOP ---- */
.asaph-navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.asaph-navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.125rem;
}

.asaph-navbar__menu li {
  position: relative;
}

.asaph-navbar__menu > li > a {
  display: inline-block;
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #526052 !important;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
  border: none !important;
}

/* Underline slide gauche → droite */
.asaph-navbar__menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: #3d6b38;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
  border-radius: 1px;
}

.asaph-navbar__menu > li > a:hover,
.asaph-navbar__menu > li.current-menu-item > a,
.asaph-navbar__menu > li.current_page_item > a {
  background: #ebf5e9 !important;
  color: #3d6b38 !important;
}

.asaph-navbar__menu > li > a:hover::after,
.asaph-navbar__menu > li.current-menu-item > a::after,
.asaph-navbar__menu > li.current_page_item > a::after {
  transform: scaleX(1);
}

/* Sous-menus */
.asaph-navbar__menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid #b9d9b5;
  border-top: 2px solid #7dbf78;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px rgba(61, 107, 56, 0.16);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 100;
}

.asaph-navbar__menu li:hover > .sub-menu,
.asaph-navbar__menu li:focus-within > .sub-menu {
  display: block;
}

.asaph-navbar__menu .sub-menu li a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1c2b1c !important;
  text-decoration: none;
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  border-radius: 0;
  border: none !important;
}

.asaph-navbar__menu .sub-menu li a:hover {
  background: #ebf5e9;
  color: #3d6b38 !important;
  padding-left: 24px;
}

/* ---- ACTIONS DROITE ---- */
.asaph-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Bouton recherche */
.asaph-navbar__search-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(125, 191, 120, 0.5);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d6b38 !important;
  box-shadow: 0 1px 6px rgba(61, 107, 56, 0.1);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease,
              transform 0.18s ease, box-shadow 0.22s ease;
  padding: 0;
}

.asaph-navbar__search-btn:hover {
  background: linear-gradient(135deg, #7dbf78 0%, #3d6b38 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(61, 107, 56, 0.32);
  transform: scale(1.1);
}

.asaph-navbar__search-btn:active {
  transform: scale(0.93);
  box-shadow: 0 1px 6px rgba(61, 107, 56, 0.15);
}

.asaph-navbar__search-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  transition: stroke 0.22s ease;
}

/* ── Barre de recherche dépliable ──────────────────────────────────────── */
.asaph-search-bar {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(61, 107, 56, 0.08);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease;
}
.asaph-search-bar.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.asaph-search-bar__form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(235, 245, 233, 0.65);
  border: 1.5px solid rgba(125, 191, 120, 0.40);
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.asaph-search-bar__form:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(125, 191, 120, 0.18);
  background: #fff;
}

.asaph-search-bar__input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text) !important;
  caret-color: var(--clr-text) !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0;
}
.asaph-search-bar__input::placeholder { color: var(--clr-text-muted); opacity: 0.7; }

/* Copié depuis .acc-filters-section .acc-filters .acc-filter-btn (accompagnements.css).
   Seuls les noms de classes ont changé. */
.asaph-search-bar .asaph-search-bar__submit,
.asaph-search-bar .asaph-search-bar__close {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  font-family: var(--font-body, 'DM Sans', sans-serif) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  color: #2C4A28 !important;
  background: transparent !important;
  border: 1.5px solid rgba(0,0,0,.15) !important;
  border-radius: 999px !important;
  padding: .5rem 1.15rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.asaph-search-bar .asaph-search-bar__submit:hover,
.asaph-search-bar .asaph-search-bar__close:hover {
  border-color: #7DBF78 !important;
  color: #3D6B38 !important;
  background: #F0F8EF !important;
}

/* État actif (submit au focus dans le formulaire) */
.asaph-search-bar .asaph-search-bar__submit:focus,
.asaph-search-bar .asaph-search-bar__close:focus {
  background: #7DBF78 !important;
  color: #2C4A28 !important;
  border-color: #7DBF78 !important;
  font-weight: 600 !important;
}

.asaph-search-bar__submit svg { width: 15px; height: 15px; }
.asaph-search-bar__close svg  { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .asaph-search-bar { padding: 0 0.875rem; gap: 0.5rem; }
}

/* Bouton Espace membre */
.asaph-navbar__cta {
  display: inline-flex;
  align-items: center;
  background: #7dbf78;
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(125, 191, 120, 0.32);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  white-space: nowrap;
}

.asaph-navbar__cta:hover {
  background: #3d6b38;
  color: #fff !important;
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(61, 107, 56, 0.38);
}

.asaph-navbar__cta--block {
  display: block;
  text-align: center;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
}

/* ---- HAMBURGER ---- */
.asaph-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0.5px solid #b9d9b5;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.asaph-hamburger:hover {
  background: #ebf5e9;
  border-color: #7dbf78;
}

.asaph-hamburger__line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #526052;
  border-radius: 2px;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    background 0.2s;
}

/* Animation → X */
.asaph-hamburger--open .asaph-hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: #3d6b38;
}

.asaph-hamburger--open .asaph-hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.asaph-hamburger--open .asaph-hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: #3d6b38;
}

/* ---- MENU MOBILE ---- */
.asaph-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(251, 254, 251, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid #7dbf78;
  box-shadow: 0 12px 36px rgba(61, 107, 56, 0.16);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  z-index: 999;
}

.asaph-mobile-menu.is-open {
  max-height: 520px;
  opacity: 1;
}

.asaph-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.asaph-mobile-menu__list li a {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #1c2b1c !important;
  text-decoration: none;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(185, 217, 181, 0.35);
  transition: background 0.2s, color 0.2s, padding-left 0.22s;
}

.asaph-mobile-menu__list li a:hover,
.asaph-mobile-menu__list li.current-menu-item a {
  background: #ebf5e9;
  color: #3d6b38 !important;
  padding-left: 34px;
}

.asaph-mobile-menu__footer {
  padding: 1rem 1.25rem 1.25rem;
}

/* Bloquer le scroll body quand menu ouvert */
body.asaph-menu-open {
  overflow: hidden;
}

/* ---- RESPONSIVE NAVBAR ---- */
@media (max-width: 960px) {
  .asaph-navbar__nav,
  .asaph-navbar__cta:not(.asaph-navbar__cta--block) {
    display: none;
  }

  .asaph-hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .asaph-navbar__inner {
    height: 56px;
    padding: 0 1.25rem;
    gap: 0.75rem;
  }

  .asaph-navbar__avatar {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .asaph-navbar__site-name {
    font-size: 13px;
  }

  .asaph-navbar .asaph-navbar__logo .custom-logo-link {
    height: 64px;
  }

  .asaph-navbar .asaph-navbar__logo .custom-logo {
    max-height: 44px !important;
  }

  .site-header .custom-logo,
  .ast-site-identity img {
    max-height: 44px !important;
  }
}

@media (max-width: 400px) {
  .asaph-lang-switcher,
  .asaph-navbar__search-btn {
    display: none;
  }
}

/* =============================================
   FOOTER
   ============================================= */

.asaph-footer {
  position: relative;
  background: #0F1A0F;
  color: #EBF5E9;
  font-family: var(--font-body);
}

/* Liseré dégradé vert en haut, 3px */
.asaph-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #3D6B38 15%,
    #7DBF78 45%,
    #B9D9B5 65%,
    #7DBF78 82%,
    transparent 100%
  );
}

.asaph-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Zone principale */
.asaph-footer__main {
  padding: 5rem 0 4rem;
  background: #F0F7EE;
}
.asaph-footer__main > .asaph-footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0;
}

/* Colonnes */
.asaph-footer__col {
  padding: 0 2.75rem;
}
.asaph-footer__col:first-child { padding-left: 0; }
.asaph-footer__col:last-child  { padding-right: 0; }

/* Séparateurs verticaux entre colonnes */
.asaph-footer__col + .asaph-footer__col {
  border-left: 0.5px solid rgba(61, 107, 56, 0.18);
}

/* Logo */
.asaph-footer__logo-link {
  display: inline-block;
  margin-bottom: 1.375rem;
  text-decoration: none;
  line-height: 1;
}
.asaph-footer__logo-link img.custom-logo,
.asaph-footer__logo-link .custom-logo {
  max-height: 46px !important;
  max-width: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
  transition: none !important;
}
.asaph-footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #2D4A2D;
  letter-spacing: 0.05em;
}

.asaph-footer__desc {
  font-size: 0.875rem;
  color: #526052;
  line-height: 1.78;
  margin: 0 0 1.875rem;
  max-width: 290px;
}

/* Réseaux sociaux */
.asaph-footer__socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.asaph-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #B9D9B5;
  color: #B9D9B5;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              transform 0.3s ease;
}
.asaph-footer__social:hover {
  background: #7DBF78;
  border-color: #7DBF78;
  color: #fff;
  transform: scale(1.1);
}
.asaph-footer__social svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Titres de colonnes */
.asaph-footer__col-title {
  font-family: var(--font-heading) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #2D4A2D !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  border: none !important;
}
.asaph-footer__col-title::after,
.asaph-footer__col-title::before { content: none !important; }

/* Liens rapides */
.asaph-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.asaph-footer__nav li a {
  color: #526052;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  display: inline-block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.asaph-footer__nav li a:hover {
  color: #7DBF78;
  padding-left: 5px;
}

/* Coordonnées */
.asaph-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.asaph-footer__address p {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #526052;
  line-height: 1.65;
  margin: 0;
}
.asaph-footer__address svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #7DBF78;
}
.asaph-footer__address a {
  color: #526052;
  text-decoration: none;
  transition: color 0.2s ease;
}
.asaph-footer__address a:hover {
  color: #7DBF78;
}

/* Barre copyright */
.asaph-footer__bar {
  background: #1C2B1C;
  padding: 1.125rem 0;
}
.asaph-footer__bar > .asaph-footer__container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.asaph-footer__copy {
  font-size: 0.8125rem;
  color: #B9D9B5;
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.asaph-footer__sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}
.asaph-footer__dev {
  color: #7DBF78;
  font-weight: 700;
}

/* Carte de localisation */
.asaph-footer__map {
  padding: 0 0 3rem;
  background: #F0F7EE;
}
.asaph-footer__map-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #526052;
  margin: 0 0 0.875rem;
}
.asaph-footer__map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(185, 217, 181, 0.18);
  height: 220px;
}
.asaph-footer__map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  filter: grayscale(0.25) brightness(0.75) saturate(0.85);
}

/* ╔══════════════════════════════════════════════════════════════════════════
   FOOTER — BRAND COLUMN "VELVET FOREST v3" (.fb__*)
   Tokens --fb-* scopes a .asaph-footer__col--brand uniquement
   Ne pas utiliser hors de ce composant — tokens globaux : --clr-*
   ══════════════════════════════════════════════════════════════════════════╗ */

.asaph-footer__col--brand {
  --fb-bg: #0b1912;
  --fb-text: #ddeee5;
  --fb-quote: #f0f9f3;
  --fb-accent: #6fcf97;
  --fb-accent-dim: rgba(111, 207, 151, 0.09);
  --fb-muted: #4d7a62;
  --fb-surface: #0f1c15;
  --fb-border: #1e3427;
  --fb-border-hi: #2e5040;
  --fb-pill-hover: rgba(111, 207, 151, 0.08);

  background: var(--fb-bg);
  border-radius: 20px;
  padding: 2.5rem 2.25rem !important;
  margin-right: 2rem;
  align-self: start;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fb-border);
  box-shadow:
    0 0 0 1px rgba(111, 207, 151, 0.04) inset,
    0 24px 64px rgba(4, 9, 6, 0.55),
    0 6px 20px rgba(4, 9, 6, 0.35);
}

/* Grain texture */
.asaph-footer__col--brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Shimmer border en continu */
.asaph-footer__col--brand::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--fb-accent) 40%,
    #b8f5d0 55%,
    var(--fb-accent) 70%,
    transparent 100%
  );
  animation: fb-shimmer 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: 2;
  opacity: 0.8;
}

@keyframes fb-shimmer {
  0% { left: -60%; }
  100% { left: 120%; }
}

.asaph-footer__col--brand > * { position: relative; z-index: 1; }

/* -- Eyebrow -------------------------------------------------------------- */
.fb__eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fb-muted);
  margin: 0 0 1.25rem;
  line-height: 1;
}

/* -- Logo hero pleine largeur (div — the_custom_logo() fournit son propre <a>) ---------- */
.fb__logo-hero {
  display: block;
  width: 100%;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(111, 207, 151, 0.22);
  margin-bottom: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 12px rgba(4, 9, 6, 0.25);
  /* Pas de padding — le logo remplit tout le bloc */
  line-height: 0;
}

.fb__logo-hero:hover {
  border-color: rgba(111, 207, 151, 0.55);
  box-shadow: 0 4px 24px rgba(4, 9, 6, 0.35), 0 0 0 3px rgba(111, 207, 151, 0.08);
  transform: translateY(-1px);
}

/* Lueur verte en bas à droite du bloc logo */
.fb__logo-hero-glow {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 207, 151, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Logo WP — remplit tout le conteneur */
.fb__logo-hero .custom-logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
  line-height: 0;
}
.fb__logo-hero .custom-logo-link:focus-visible {
  outline: 2px solid var(--fb-accent) !important;
  outline-offset: 3px;
  border-radius: 12px;
}
.fb__logo-hero .custom-logo {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.fb__logo-hero:hover .custom-logo {
  transform: scale(1.03) !important;
}

/* Wordmark fallback + lien si pas de logo WP */
.fb__logo-wordmark-link {
  display: block;
  text-decoration: none;
}
.fb__logo-wordmark-link:focus-visible {
  outline: 2px solid var(--fb-accent) !important;
  outline-offset: 4px;
  border-radius: 8px;
}
.fb__logo-wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  font-style: italic;
  color: var(--fb-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

/* Wordmark fallback si pas de logo WP */
.fb__logo-wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  font-style: italic;
  color: var(--fb-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

/* -- Brand identity (nom + ville) ---------------------------------------- */
.fb__brand-id {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 1.1rem;
}

.fb__brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--fb-text);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: letter-spacing 0.35s ease;
}
.asaph-footer__col--brand:hover .fb__brand-name {
  letter-spacing: 0.2em;
}

.fb__brand-city {
  font-size: 11px;
  color: var(--fb-muted);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* -- Separateur pleine largeur -------------------------------------------- */
.fb__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--fb-border-hi) 0%, transparent 80%);
  margin: 0 0 1.25rem;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.asaph-footer__col--brand.is-visible .fb__rule { transform: scaleX(1); }

/* -- Citation ---------------------------------------------------------------- */
.fb__quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb__quote strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  font-style: italic;
  color: var(--fb-quote);
  line-height: 1.25;
  display: block;
}

.fb__quote span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  font-style: italic;
  color: rgba(221, 238, 229, 0.55);
  line-height: 1.3;
  display: block;
}

/* -- Trust row (RNA + annee) ----------------------------------------------- */
.fb__trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fb__rna {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--fb-accent);
  background: var(--fb-accent-dim);
  border: 1px solid rgba(111, 207, 151, 0.15);
  border-radius: 99px;
  padding: 4px 11px 4px 7px;
}

.fb__rna-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fb-accent);
  flex-shrink: 0;
  animation: fb-pulse 2.6s ease-in-out infinite;
}

@keyframes fb-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(111, 207, 151, 0.55); }
  60% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(111, 207, 151, 0); }
}

.fb__year-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--fb-muted);
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--fb-border-hi);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
}

/* -- Social pills avec labels ----------------------------------------------- */
.fb__socials {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.fb__social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: 99px;
  border: 1px solid var(--fb-border-hi);
  background: var(--fb-surface);
  color: var(--fb-muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background 0.22s,
    border-color 0.22s,
    color 0.22s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fb__social-pill svg { flex-shrink: 0; fill: currentColor; }
.fb__social-pill:hover {
  background: var(--fb-pill-hover);
  border-color: rgba(111, 207, 151, 0.3);
  color: var(--fb-accent) !important;
  caret-color: var(--fb-accent) !important;
  transform: translateY(-2px);
}
.fb__social-pill:focus-visible {
  outline: 2px solid var(--fb-accent) !important;
  outline-offset: 2px;
  color: var(--fb-accent) !important;
  caret-color: var(--fb-accent) !important;
}

/* -- Animations scroll ------------------------------------------------------- */
.fb__eyebrow,
.fb__logo-hero,
.fb__brand-id,
.fb__quote,
.fb__trust,
.fb__socials {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.fb__eyebrow   { transition-delay: 0s; }
.fb__logo-hero { transition-delay: 0.06s; }
.fb__brand-id  { transition-delay: 0.18s; }
.fb__quote     { transition-delay: 0.26s; }
.fb__trust     { transition-delay: 0.34s; }
.fb__socials   { transition-delay: 0.42s; }

.fb__social-pill:nth-child(1) { transition-delay: 0.42s; }
.fb__social-pill:nth-child(2) { transition-delay: 0.48s; }
.fb__social-pill:nth-child(3) { transition-delay: 0.54s; }

.asaph-footer__col--brand.is-visible .fb__eyebrow,
.asaph-footer__col--brand.is-visible .fb__logo-hero,
.asaph-footer__col--brand.is-visible .fb__brand-id,
.asaph-footer__col--brand.is-visible .fb__quote,
.asaph-footer__col--brand.is-visible .fb__trust,
.asaph-footer__col--brand.is-visible .fb__socials,
.asaph-footer__col--brand.is-visible .fb__social-pill {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fb__eyebrow, .fb__logo-hero, .fb__brand-id,
  .fb__quote, .fb__trust, .fb__socials, .fb__social-pill {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fb__rule    { transform: scaleX(1) !important; transition: none !important; }
  .fb__rna-dot { animation: none !important; }
  .asaph-footer__col--brand::after { animation: none !important; }
  .fb__logo-hero .custom-logo { transition: none !important; }
}
/* ---- Responsive footer ---- */

@media (max-width: 960px) {
  .asaph-footer__main > .asaph-footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
  .asaph-footer__col {
    padding: 0;
  }
  .asaph-footer__col + .asaph-footer__col {
    border-left: none;
    border-top: none;
  }
  .asaph-footer__col--brand {
    grid-column: 1 / -1;
    border-bottom: none;
    padding: 2.5rem 2rem !important;
    margin-right: 0;
    margin-bottom: 1rem;
    border-radius: 16px;
  }
  .asaph-footer__desc {
    max-width: 100%;
  }
}

@media (max-width: 580px) {
  .asaph-footer__main > .asaph-footer__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .asaph-footer__col--brand {
    grid-column: auto;
    padding: 2.25rem 1.75rem !important;
    border-radius: 14px;
    margin-bottom: 0;
  }
  .fb__quote {
    font-size: clamp(21px, 6vw, 28px);
  }
  .asaph-footer__col--links,
  .asaph-footer__col--contact {
    border-top: 0.5px solid rgba(185, 217, 181, 0.2);
    padding-top: 2rem;
  }
  .asaph-footer__main {
    padding: 3.5rem 0 2.5rem;
  }
  .asaph-footer__map-wrap {
    height: 180px;
  }
  /* Copyright — marge droite pour éviter le chevauchement avec le bouton scroll-to-top */
  .asaph-footer__copy {
    padding-right: 3rem;
    text-align: left;
  }
}

/* ── Logo & navbar overrides — battent les styles inline Astra (sans !important côté Astra) ── */
.ast-logo-container { width: auto !important; max-width: 180px !important; }
.main-header-bar .ast-site-identity img,
.main-header-bar .custom-logo,
.site-header img.custom-logo,
#masthead img {
  max-height: 55px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
  cursor: pointer !important;
}
.main-header-bar .ast-site-identity img:hover,
.main-header-bar .custom-logo:hover,
.site-header img.custom-logo:hover,
#masthead img:hover {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 4px 12px rgba(61, 107, 56, 0.25)) !important;
}
.ast-primary-menu > li > a,
.main-header-menu .menu-link {
  font-size: 15px !important;
  font-weight: 600 !important;
}
.asaph-navbar__search-btn {
  color: #3d6b38 !important;
  background: rgba(255, 255, 255, 0.55) !important;
}
.asaph-navbar__search-btn:hover {
  background: linear-gradient(135deg, #7dbf78 0%, #3d6b38 100%) !important;
  color: #fff !important;
}
.bl-share-bar button,
.asaph-search-bar button {
  color: #2c4a28 !important;
  background: transparent !important;
}
.bl-share-bar button:hover,
.asaph-search-bar button:hover {
  color: #3d6b38 !important;
  background: #f0f8ef !important;
}
#respond .form-submit .submit,
#respond .form-submit input[type="submit"],
#respond .form-submit button[type="submit"] {
  color: #fff !important;
  caret-color: #fff !important;
  background: #3d6b38 !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
}
#respond .form-submit .submit:hover,
#respond .form-submit input[type="submit"]:hover,
#respond .form-submit button[type="submit"]:hover {
  background: #2a5226 !important;
}
.asaph-footer__admin-bar {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.asaph-footer__admin-link {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.asaph-footer__admin-link:hover {
  color: rgba(255, 255, 255, 0.7);
}