/*
Theme Name: SKT Clover Garance
Theme URI: https://garance-voyageuse.org
Author: Développeur
Author URI: https://garance-voyageuse.org
Description: Thème enfant sur-mesure basé sur SKT Plants pour l'association La Garance Voyageuse.
Template: skt-plants
Version: 1.0.0
Text Domain: skt-clover-garance
Tags: two-columns,right-sidebar,full-width-template,custom-background,custom-colors,custom-menu,sticky-post,theme-options,threaded-comments,featured-images,footer-widgets,translation-ready,rtl-language-support,custom-logo,editor-style,custom-header,blog,e-commerce,portfolio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/license-list.html#GPLv2
*/

/* -------------------------------------------------------------------------- */
/* CONSERVEZ TOUS LES STYLES DU THÈME SKT CLOVER CI-DESSOUS                   */
/* -------------------------------------------------------------------------- */

a {
  color: #a4bf91;
}

a:hover {
  color: #5e8642;
  text-decoration: underline;
}

.logo {
  padding: 32px 0 0 0;
  max-width: 200px;
}

#logo-main a:focus,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
a:focus {
  outline: thin dotted #5e8642;
}

.cols-3 ul li a {
  font-size: 17px;
  color: #343434;
}

#sidebar ul li a:hover,
.blog_lists h4 a:hover,
.recent-post h6 a:hover,
.recent-post a:hover,
.design-by a,
.tagcloud a,
.blocksbox:hover h3,
.rdmore a,
.header-phone-number,
#sidebar li a:hover,
.main-navigation ul li ul li a,
.footer-row .cols-3 ul li a:hover,
.footer-row .cols-3 ul li.current_page_item a,
.footer-row .cols-3 ul li.current-menu-item a,
#sidebar ul li a:hover,
.main-navigation ul li:hover a,
.main-navigation ul li a:focus,
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
  color: #5e8642;
}

#sidebar .wp-block-group {
  padding-top: 15px;
}

#sidebar ol,
#sidebar ul {
  margin-bottom: 0px;
}

#sidebar ul li {
  padding: 4px 0;
}

#sidebar h1,
#sidebar h2,
#sidebar h3,
#sidebar h4,
#sidebar h5,
#sidebar h6,
#sidebar label {
  font-family: 'Playfair Display';
}

#sidebar h2,
#sidebar label {
  font-size: 24px;
}

#sidebar .wp-block-latest-comments__comment {
  margin-bottom: 0px;
}

#navigation {
  width: 70%;
  text-align: center;
  font-family: 'Playfair Display';
  font-size: 20px;
  font-weight: 600;
}

body.page-template-builder-fullwidth-std .header {
  border-bottom: none;
}

.header-extras li {
  background-color: #f8f9ef;
}

.custom-cart-count {
  background-color: #a4bf91;
}

.main-navigation ul li a {
  font-size: 17px;
  font-weight: 600;
}

.main-navigation ul ul {
  background-color: #FFF;
}

.main-navigation ul ul li a:hover,
.main-navigation ul ul li a:focus {
  background: #5e8642;
}

.header-extras {
  float: right;
  margin-right: 0px;
  padding: 0 !important;

}

.logo h2 {
  font-family: 'Playfair Display';
  font-size: 34px;
  font-weight: 500;
}

body.wp-custom-logo .logo {
  padding: 35px 30px 20px 0;
}

.sticky {
  border-right-color: #5e8642;
}

.blog_lists h4 a {
  color: #0c1d00;
}

#sidebar {
  background: #f6f4f4;
  padding: 25px 30px;
  border-radius: 6px;
}

.wp-block-latest-comments__comment-date {
  padding-left: 7px;
}

.wp-block-search__inside-wrapper {
  display: flex;
  border: 2px solid #a4bf91;
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  margin-top: 10px;
}

.wp-block-search__input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  font-size: 16px;
  outline: none;
}

.wp-block-search__button {
  background: #a4bf91;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.wp-block-search__button:hover {
  background: #5e8642;
}

.wp-block-heading {
  font-size: 20px;
  color: #0c1d00;
  margin-top: 20px;
  padding-bottom: 5px;
}

.wp-block-latest-posts__list {
  list-style: none;
  padding: 0;
}

.wp-block-latest-posts__post-title {
  display: block;
  text-decoration: none;
  color: #007bff;
  padding: 0;
  transition: color 0.3s;
}

.wp-block-latest-posts__post-title:hover {
  color: #0056b3;
}

.wp-block-latest-comments {
  list-style: none;
  padding: 0;
}

.wp-block-latest-comments__comment-meta {
  font-size: 14px;
  color: #555;
}

.wp-block-latest-comments__comment-author {
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.wp-block-latest-comments__comment-author:hover {
  color: #0056b3;
}

.wp-block-latest-comments__comment-link {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.wp-block-latest-comments__comment-link:hover {
  color: #007bff;
}

.pagination .nav-links span.current,
.pagination .nav-links a:hover {
  background: #a4bf91;
}

.black-title h1 {
  top: 40%;
}

.inner-banner-thumb {
  min-height: 300px;
}

.inner-banner-thumb img {
  max-height: 300px;
}

.inner-banner-thumb h1 {
  color: #0c1d00;
}

.copyright-wrapper {
  background-color: #8ca877;
}

.footerarea {
  background-color: #a4bf91;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  font-family: 'Playfair Display';
}

.footer-row .cols-3:nth-child(1) {
  width: 37%;
}

.footer-row .cols-3:nth-child(2) {
  width: 28%;
  margin: 0 2%;
}

.footer-row .cols-3:nth-child(3) {
  width: 28%;
  margin: 0 0 0 2%;
}

.ftr-widg {
  padding: 60px 0 60px 0;
}

.widget-column-1 h2 {
  margin-top: 0px;
}

.widget-column-2 {
  background: #ffffff;
  border-radius: 15px;
  min-height: 385px;
  padding: 20px 40px;
}

.widget-column-3 {
  background: #ffffff;
  border-radius: 15px;
  min-height: 385px;
  padding: 20px 40px;
}

.widget-column-2 h1,
.widget-column-2 h2,
.widget-column-2 h3,
.widget-column-2 h4,
.widget-column-2 h5,
.widget-column-2 h6 {
  color: #0c1d00;
}

.widget-column-3 h1,
.widget-column-3 h2,
.widget-column-3 h3,
.widget-column-3 h4,
.widget-column-3 h5,
.widget-column-3 h6 {
  color: #0c1d00;
}

.copyright-txt {
  padding: 25px 0;
}

.copyright-txt a {
  color: #FFF;
  text-decoration: underline;
}



/* -------------------------------------------------------------------------- */
/* MES RAJOUTS CI-DESSOUS                   */
/* -------------------------------------------------------------------------- */


body {
  font-size: 1.2em;
}

.outofstock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 10;
}

.woocommerce ul.products li.product {
  position: relative;
  /* nécessaire pour position absolue du badge */
}

mark,
ins {
  background: #fff !important;
  color: #333;
  padding: 0;
  text-decoration: none;
}

@media (min-width: 981px) and (max-width: 1169px) {
  .main-navigation ul li a {
    line-height: 1.2;
    margin-top: 25px;
  }
}

.main-navigation ul ul {
  min-width: 280px;
}

.footer aside.widget {
  color: #fff;
}

.footer a,
.footer a:hover {
  color: #fff;
}

.widget-column-2 h2,
.widget-column-3 h2 {
  color: #fff;
}

.widget-column-2,
.widget-column-3 {
  background: transparent;
  border-radius: 15px;
  min-height: 385px;
  padding: 20px 40px;
}

.footer .cols-3 span {
  color: #fff;
  display: inline-block;
  min-width: 70px;
  width: auto;
}

.footer .cols-3 span:hover {
  text-decoration: underline;
}

.cols-3 ul li a {
  font-size: 17px;
  color: #fff;
}

.footer-row .cols-3 ul li a:hover {
  color: #fff;
}


body.search .wp-block-group {
  display: none;
}


.woocommerce ul.products li.product .add_to_cart_button {
  display: none !important;
}

.single-product .product {
  overflow: hidden;
}

/* Bandeau */
.inner-banner-thumb {
  width: 100%;
  text-align: center;
  position: relative;
  background-color: #f6f4f4;
  box-sizing: border-box;
  min-height: 180px;

}

/* Container du logo */
.inner-banner-thumb .banner-container {
  display: inline-block;
  max-width: 100%;
  padding-top: 20px
}

/* Logo responsive */
.inner-banner-thumb .custom-banner-logo {
  display: block;
  max-width: 420px;
  /* largeur max desktop */
  width: 90%;
  /* responsive mobile/tablette */
  height: auto;
  /* conserve le ratio */
  margin: 0 auto;
  /* centre horizontalement */
}

/* Tablettes */
@media (max-width: 768px) {
  .inner-banner-thumb .custom-banner-logo {
    max-width: 300px;
    width: 80%;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  .inner-banner-thumb .custom-banner-logo {
    max-width: 200px;
    width: 70%;
  }
}

a {
  color: #5C7D50;
}

.product-category img,
.products .product img {
  max-height: 230px;
}

mark.count,
.woocommerce-ordering {
  display: none;
}

.widget-column-1 .wc-block-featured-product {
  min-height: 230px !important;
  height: 230px !important;
  width: 162px !important;
}

.widget-column-1 .wc-block-featured-product img {
  border-radius: 10px;
}

.widget-column-1 .wc-block-featured-product__inner-blocks {
  display: none;
}

.background-dim__overlay {
  background-color: transparent !important;
}

.widget-column-1 h2.wp-block-heading {
  margin-top: 38px;
}


.footerarea,
.custom-cart-count {
  background-color: #5C7D50;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #5C7D50;
}

.copyright-wrapper,
.woocommerce-product-gallery__trigger,
.product_meta,
.woocommerce-Tabs-panel h2,
.woocommerce-result-count,
.wp-block-woocommerce-empty-cart-block .wp-block-product-new,
.wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.with-empty-cart-icon):not(.wc-block-cart__empty-cart__title) {
  display: none;
}





/* -------------------------------------------------------------------------- */
/* Style de l'Agenda Garance                   */
/* -------------------------------------------------------------------------- */



.garance-agenda-container {
  margin: 20px 0;
}

/* Titres des sections (Retrouvez-nous / Nous y étions) */
.garance-agenda-container h2 {
  font-size: 1.5rem;
  color: #2c5e3b;
  /* Vert végétal */
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
}


/* --- Conteneur global d'un événement --- */
.agenda-item {
  display: flex;
  align-items: flex-start;
  background: #f4f9f2;
  border: 1px solid #e1e5d5;
  /* Vert/olive très doux */
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.agenda-item:hover {
  box-shadow: 0 4px 12px rgba(92, 125, 80, 0.12);
  border-color: #5C7D50;
  /* Devient vert Garance au survol */
}

/* --- Le carré calendrier avec jour, mois et annee --- */
.ic-date-div {
  background-color: #5C7D50;
  /* Vert Garance choisi */
  color: #ffffff;
  width: 80px;
  height: 80px;
  text-align: center;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  /* Empêche le carré de se déformer */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  gap: 2px;
}

.ic-date-div .agenda-day {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  margin-top: 5px;
}

.ic-date-div .agenda-month {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ic-date-div .agenda-year {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* --- Contenu textuel --- */
.agenda-content {
  flex: 1;
}

.agenda-title {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.agenda-title a {
  color: #1e293b;
  text-decoration: none;
}

.agenda-title a:hover {
  color: #5C7D50;
  text-decoration: underline;
}

.agenda-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 6px;
  font-style: italic;
}

.agenda-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* --- Titres des sections (Retrouvez-nous / Nous y étions) --- */
.garance-agenda-container h2 {
  font-size: 1.4rem;
  color: #2c4a27;
  border-bottom: 2px solid #5C7D50;
  padding-bottom: 6px;
  margin-top: 35px;
  margin-bottom: 20px;
}




/* --- Grille d'index des galeries --- */
.galeries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.galerie-card {
  background: #ffffff;
  border: 1px solid #e1e5d5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.galerie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(92, 125, 80, 0.15);
  border-color: #5C7D50;
}

.galerie-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.galerie-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.galerie-card-title {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
}

.galerie-card-title a {
  color: #2c4a27;
  text-decoration: none;
}

.galerie-card-excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.galerie-card-link {
  color: #5C7D50;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
}

.galerie-card-link:hover {
  text-decoration: underline;
}






/* ========================================================================== */
/* 1. POLICE UNIQUE (POPPINS) PARTOUT                                         */
/* ========================================================================== */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
button,
input,
textarea,
label {
  font-family: 'Poppins', sans-serif !important;
}


/* ========================================================================== */
/* 2. TEXTES PLUS GRANDS DANS LE BANDEAU D'EN-TÊTE (HERO)                     */
/* ========================================================================== */

/* Le sur-titre "L'ASSOCIATION" */
.inner-banner-thumb.custom-hero-banner .hero-surtitle {
  font-size: 1rem;
  letter-spacing: 2.5px;
  margin-bottom: 15px;
}

/* Le grand titre "Une passion partagée pour la flore sauvage" */
.inner-banner-thumb.custom-hero-banner .hero-title {
  font-size: 3.2rem !important;
  /* Version grand format desktop */
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
}

/* Le sous-titre descriptif */
.inner-banner-thumb.custom-hero-banner .hero-subtitle {
  font-size: 1.25rem !important;
  /* Plus grand et très lisible */
  line-height: 1.6;
  max-width: 750px;
}

/* Ajustement responsive pour les tablettes et mobiles */
@media (max-width: 768px) {
  .inner-banner-thumb.custom-hero-banner .hero-title {
    font-size: 2.2rem !important;
  }

  .inner-banner-thumb.custom-hero-banner .hero-subtitle {
    font-size: 1.1rem !important;
  }
}






/* ========================================================================== */
/* HEADER PLEINE LARGEUR (STYLE FLUIDE)                                     */
/* ========================================================================== */

/* On élargit la boîte globale du header */
.header .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 50px !important;
  /* Marge sur le bord gauche */
  padding-right: 50px !important;
  /* Marge sur le bord droit */
  box-sizing: border-box;
}

/* Optionnel : si le menu se décale trop à gauche ou à droite, 
   on s'assure qu'il garde un bel espace avec le logo */
.header #navigation {
  margin-left: 30px;
}







/* Contrôle absolu du logo personnalisé */
.logo .custom-botanic-logo {
  width: auto !important;
  height: 70px !important;
  max-width: none !important;
  margin-left: -10px;
}


.main-navigation ul li:last-child a,
.main-navigation li.menu-item-has-children>a {
  padding-right: 24px !important;
}




/* ========================================================================== */
/* PERSONNALISATION SIMPLE LIGHTBOX : FOND NOIR ET TEXTE BLANC                */
/* ========================================================================== */

/* Fond noir pour le conteneur principal et ses sous-éléments */
.slb_container,
.slb_container .slb_content,
.slb_container .slb_data_container {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Titre et contenu des données (légende, description) en blanc */
.slb_container .slb_data_title,
.slb_container .slb_data_content,
.slb_container .slb_data_desc {
  color: #ffffff !important;
}

/* Bouton de fermeture et navigation en blanc */
.slb_container .slb_close,
.slb_container .slb_nav_next,
.slb_container .slb_nav_prev {
  color: #ffffff !important;
}



/* Masquer le conteneur .slb_content */
.slb_container .slb_data_content {
  display: none !important;
}




/* ========================================================================== */
/* CORRECTIF RESPONSIVE FINAL (< 1200px) : COULEUR ET BOUTON HAMBURGER       */
/* ========================================================================== */

@media screen and (max-width: 1200px) {

  /* 1. Le conteneur global en ligne unique avec marge de sécurité à droite */
  .header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 25px 10px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* 2. Le menu hamburger à gauche et son positionnement sécurisé dans le container nav */
  .header #navigation {
    order: 1 !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .main-navigation {
    position: relative !important;
  }

  .main-navigation button.menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    /* Force le bouton à rester dans son conteneur nav, même entre 768px et 1200px */
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    float: none !important;
  }

  .main-navigation button.menu-toggle span {
    position: absolute !important;
    display: block !important;
    height: 3px !important;
    width: 24px !important;
    background: #21201f !important;
    left: 8px !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .main-navigation button.menu-toggle span:nth-child(1) {
    top: 10px !important;
  }

  .main-navigation button.menu-toggle span:nth-child(2) {
    top: 18px !important;
  }

  .main-navigation button.menu-toggle span:nth-child(3) {
    top: 26px !important;
  }

  /* 3. Le logo au centre */
  .header .logo {
    order: 2 !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo .custom-botanic-logo {
    height: 55px !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0;
  }

  .logo #logo-main {
    display: none !important;
  }

  /* 4. Les icônes à droite (Loupe et Panier) avec la bonne couleur de fond #f8f9ef */
  .header .header-extras {
    order: 3 !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    padding: 0 !important;

  }

  .header-extras li {
    background-color: #f8f9ef !important;
    /* Application de la couleur souhaitée */
    border-radius: 50% !important;
    height: 55px !important;
    width: 55px !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .header-contact {
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .header-contact button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .header-contact img {
    margin: 0 !important;
    display: block !important;
    width: 24px !important;
    max-height: 24px !important;
    width: auto !important;
  }




  .header-search-toggle {
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .header-search-toggle button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .header-search-toggle img {
    margin: 0 !important;
    display: block !important;
    max-height: 20px !important;
    width: auto !important;
  }

  .header-cart {
    float: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .header-cart a.cart-customlocation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    margin: 0 !important;
  }

  .header-cart img.cart-customlocation {
    margin: 0 !important;
    display: block !important;
    max-height: 20px !important;
    width: auto !important;
    position: static !important;
  }

  .header-extras .custom-cart-count {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    left: auto !important;
    height: 26px !important;
    width: 26px !important;
    font-size: 12px !important;
    line-height: 26px !important;
    border-radius: 50% !important;
  }

  /* 5. Comportement du menu déroulant au clic */
  .main-navigation ul.primary-menu,
  #primary-menu ul.nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 15px 20px;
    margin: 0;
    list-style: none;
  }

  .main-navigation.toggled ul.primary-menu,
  .main-navigation.toggled ul.nav-menu {
    display: block !important;
  }

  .main-navigation.toggled ul li {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
  }

  .main-navigation.toggled ul li a {
    padding: 10px 12px !important;
    display: block;
    color: #2c4a27 !important;
  }


  /* ========================================================================== */
  /* 1. CENTRAGE VERTICAL DE LA FLÈCHE DE MENU (GLOBAL)                         */
  /* ========================================================================== */

  body .main-navigation li.menu-item-has-children>a::after {
    content: "\f347" !important;
    right: 5px !important;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    margin-left: 5px !important;
    position: absolute !important;
    font-family: dashicons !important;
  }
}

@media screen and (max-width: 1169px) and (min-width: 768px) {

  body .main-navigation li.menu-item-has-children>a::after {
    right: -5px !important;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
  }
}


/* ========================================================================== */
/* 2. ALIGNEMENT BUREAU (> 1200px)                                            */
/* ========================================================================== */

@media screen and (min-width: 1201px) {
  .header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .header #navigation {
    display: flex !important;
    align-items: center !important;
    margin-top: 0 !important;
    float: none !important;
  }

  .main-navigation>ul,
  .main-navigation ul.nav-menu,
  .main-navigation ul.primary-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  .main-navigation>ul>li>a,
  .main-navigation ul.nav-menu>li>a,
  .main-navigation ul.primary-menu>li>a {
    display: flex !important;
    align-items: center !important;
    line-height: 1.25 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: auto !important;
  }
}


/* ========================================================================== */
/* 3. MENU MOBILE ET TABLETTE (< 1200px) : OUVERTURE AU CLIC                  */
/* ========================================================================== */

@media screen and (max-width: 1200px) {

  .header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 25px 10px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .header #navigation,
  .main-navigation {
    position: static !important;
    width: auto !important;
  }

  .main-navigation button.menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    float: none !important;
  }

  .main-navigation button.menu-toggle span {
    position: absolute !important;
    display: block !important;
    height: 3px !important;
    width: 24px !important;
    background: #21201f !important;
    left: 8px !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .main-navigation button.menu-toggle span:nth-child(1) {
    top: 10px !important;
  }

  .main-navigation button.menu-toggle span:nth-child(2) {
    top: 18px !important;
  }

  .main-navigation button.menu-toggle span:nth-child(3) {
    top: 26px !important;
  }

  .header .logo {
    order: 2 !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo .custom-botanic-logo {
    height: 55px !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  .logo #logo-main {
    display: none !important;
  }

  .header .header-extras {
    order: 3 !important;
    float: none !important;
    margin: 0 10px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
  }

  .header-extras li {
    background-color: #f8f9ef !important;
    border-radius: 50% !important;
    height: 55px !important;
    width: 55px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  /* Structure du menu déroulant mobile */
  .main-navigation ul.primary-menu,
  .main-navigation #primary {
    display: none;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
    background-color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }

  .main-navigation.toggled ul.primary-menu,
  .main-navigation.toggled #primary {
    display: block !important;
  }

  .main-navigation.toggled ul li {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
  }

  .main-navigation.toggled ul li a {
    padding: 12px 15px !important;
    display: block !important;
    color: #2c4a27 !important;
    font-size: 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    cursor: pointer !important;
  }

  /* Sous-menus masqués par défaut sur mobile, affichés via la classe .open */
  .main-navigation.toggled ul.sub-menu {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    padding-left: 20px !important;
    background-color: #f9fbf8 !important;
    width: 100% !important;
  }

  .main-navigation.toggled ul li.focus>ul.sub-menu {
    display: block !important;
  }

  .main-navigation ul li.menu-item-has-children>a {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    /* Évite le carré gris moche au toucher sur mobile */
  }
}


/* Force le header à n'avoir aucune image de fond (annule le thème parent) */
.header {
  background-image: none !important;
  background-color: #ffffff !important;
  /* Change #ffffff par la couleur de ton choix si besoin */
}

/* ==========================================================================
   FORCE : PAS D'IMAGE DE FOND SUR .header
   ========================================================================== */
.header {
  background-image: none !important;
  background: none !important;
  background-color: #ffffff !important;
}


/* ========================================================================== */
/* CORRECTIF FLÈCHE DES SOUS-MENUS : CENTRAGE VERTICAL PARFAIT                */
/* ========================================================================== */

.main-navigation li.menu-item-has-children>a {
  position: relative !important;
  padding-right: 30px !important;
  /* Laisse un espace pour que le texte ne se superpose pas à la flèche */
}

.main-navigation li.menu-item-has-children>a::after {
  content: "\f347" !important;
  font-family: dashicons !important;
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ajustement spécifique pour la toute dernière entrée du menu principal */
.main-navigation>ul>li.menu-item-has-children:last-child>a::after {
  right: 5px !important;
}

.main-navigation ul li ul li {
  padding-bottom: 10px;
}

.main-navigation ul li ul li a {
  line-height: 30px;
}

h1.entry-title {
  margin-bottom: 20px !important;
}

.wp-block-search {
  margin: 25px 0;
}

.wp-block-search__label {
  margin-left: 10px;
  font-size: 1.3em;
  font-weight: 600;

}

/* ========================================================================== */
/* AGRANDISSEMENT ET STYLE DU CHAMP DE RECHERCHE (CLIC SUR LA LOUPE)          */
/* ========================================================================== */

/* On élargit le conteneur du formulaire sous le header */
.header-extras .header-search-form {
  width: 380px !important;
  /* Largeur confortable pour lire le placeholder */
  padding: 10px !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Style du champ de saisie : plus grand, lisible et entouré en vert */
.header-extras .header-search-form .search-field {
  width: 100% !important;
  padding: 12px 15px !important;
  font-size: 15px !important;
  border: 2px solid #5C7D50 !important;
  /* Vert Garance */
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #2c4a27 !important;
  box-sizing: border-box !important;
}

/* Effet de focus lorsqu'on clique dans le champ */
.header-extras .header-search-form .search-field:focus {
  outline: none !important;
  border-color: #2c4a27 !important;
}

.page_content {
  padding: 0 0 20px 0;
}