/*
 Theme Name:   Astra Child
 Template:     astra
 Version:      1.0.0
*/
/* Cible UNIQUEMENT les images à l'intérieur des boîtes d'images Elementor */
.elementor-image-box-img {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important; /* Supprime les contours éventuels */
}

/* Cible les images dans les widgets "Image Box" d'Elementor (alternative) */
.elementor-widget-image-box img {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Supprime les styles inline éventuels (fond blanc forcé) */
.elementor-image-box-img[style*="background"] {
    background-color: transparent !important;
}
TITRE SUR LE CARROUSEL
/* Assurer que le conteneur de l'image est en position relative */
.elementor-element-bb703c9 .attachment-large.size-large {
    position: relative;
}

/* Superposer la légende sur l'image et la rendre visible */
.elementor-element-bb703c9 .widget-image-caption.wp-caption-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    margin: 0;
    width: 90%; /* Largeur maximale pour éviter que le texte ne dépasse */
    max-width: 90%; /* Assure que la légende ne dépasse pas de l'image */
    text-align: center;
    z-index: 10;
    font-size: 16px; /* Taille de police légèrement réduite pour mieux s'adapter */
    font-weight: bold;
    white-space: normal; /* Permet les retours à la ligne automatiques */
    word-wrap: break-word; /* Force le retour à la ligne si le mot est trop long */
}

/* S'assurer que la légende est bien affichée */
.elementor-element-bb703c9 figcaption {
    display: block !important;
    position: relative;
}
ENCADRE GRIS CLAIR ET FOND BLANC AUTOUR DU CARROUSEL
/* Supprimer les bordures et fond des cartes du carrousel */
.elementor-element-bb703c9 .slick-slide {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Supprimer les bordures et fond des images */
.elementor-element-bb703c9 .slick-slide img {
    border: none !important;
    box-shadow: none !important;
}

/* Supprimer les bordures et fond des conteneurs d'images */
.elementor-element-bb703c9 .elementor-image {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Supprimer les bordures et fond des figures */
.elementor-element-bb703c9 figure {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Supprimer les bordures et fond des légendes */
.elementor-element-bb703c9 figcaption {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Supprimer les marges entre les diapositives du carrousel */
.elementor-element-bb703c9 .slick-list {
    margin: 0 -5px !important; /* Ajustez cette valeur si nécessaire */
    padding: 0 !important;
}

/* Supprimer les marges internes des diapositives */
.elementor-element-bb703c9 .slick-track {
    margin: 0 !important;
    padding: 0 !important;
}

/* Supprimer les marges des éléments individuels du carrousel */
.elementor-element-bb703c9 .slick-slide > div {
    margin: 0 !important;
    padding: 0 !important;
}
RETIRER LES COINS AUTOUR DES IMAGES DES CARTES DU CARROUSEL
/* Appliquer un border-radius uniforme à tous les éléments de la carte */
.elementor-element-bb703c9 .slick-slide {
    border-radius: 15px !important;
    overflow: hidden !important; /* Masque les coins non arrondis */
}

.elementor-element-bb703c9 .slick-slide img {
    border-radius: 15px !important;
}

.elementor-element-bb703c9 .elementor-image {
    border-radius: 15px !important;
    overflow: hidden !important;
}

.elementor-element-bb703c9 figure {
    border-radius: 15px !important;
    overflow: hidden !important;
}

/* Appliquer le border-radius à la légende */
.elementor-element-bb703c9 .widget-image-caption.wp-caption-text {
    border-radius: 10px !important; /* Légèrement inférieur pour rester dans les limites */
}

/* Assurer que le conteneur principal du carrousel respecte les coins arrondis */
.elementor-element-bb703c9 .elementor-widget-container {
    border-radius: 15px !important;
    overflow: hidden !important;
}
/* Supprimer l'auteur et la date sur les articles */
.posted-on,
.post-author,
.astra-post-meta,
.entry-meta {
    display: none !important;
}
/* Retire la ligne "Les recettes" du footer dans les catégories */
.menu-item-920 > a {
  display: none;
}
/* Rajoute une bordure au-dessus du footer pour le délimiter */
#colophon {
  position: relative;
  margin-top: 60px;
  padding-top: 30px;
}

#colophon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}
/* Rendre la barre de recherche arrondie*/
.ast-search-menu-icon form {
  border-radius: 30px !important;
  overflow: hidden;
}
/* Rendre les titres H2 des publications dans les catégories gras et sur un léger flou*/
.archive .entry-title a,
.category .entry-title a {
  font-weight: 700;
  color: #fff !important;
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 12px rgba(0,0,0,0.3);
}
/* Styliser le fil d'ariane en bas de page*/
.footer-breadcrumb {
  max-width: 1100px;
  margin: 0px auto 2px;
  padding: 1px 22px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.footer-breadcrumb #breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #777;
}

.footer-breadcrumb a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
}

.footer-breadcrumb a:hover {
  color: #111;
}

.footer-breadcrumb .breadcrumb_last {
  color: #999;
  font-weight: 500;
}

/*Mise en forme du formulaire de commentaire*/
/* Bloc formulaire commentaire - fin ligne 311*/
#respond.comment-respond,
.comment-respond {
  margin-top: 50px;
  padding: 32px;
  background: #faf7f2 !important;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
}

/* Titre */
#reply-title,
.comment-reply-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Champs */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  border: 1px solid #e5ded5 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  background: #fff !important;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Animation focus */
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  transform: translateY(-2px);
  border-color: #c9a96a !important;
  box-shadow: 0 0 0 4px rgba(201,169,106,0.16) !important;
  outline: none !important;
}

/* Conteneur du bouton centré */
#commentform p.form-submit,
#commentform .form-submit,
.comment-form p.form-submit {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  text-align: center !important;
  width: 100%;
}

/* Bouton publier un commentaire */
#commentform #submit,
.comment-form #submit,
#submit {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 999px !important;
  padding: 13px 30px !important;
  background: #1e293b !important;
  color: #fff !important;
  border: none !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Hover bouton formulaire */
#commentform #submit:hover,
.comment-form #submit:hover,
#submit:hover {
  background: #334155 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}
/* Gérer les boites d'images des recettes pour centrer les images et faire en sorte que les nouvelles lignes de texte descendent */
/* Carte */
.elementor-widget-image-box{
    display:flex;
}

/* Wrapper interne */
.elementor-widget-image-box .elementor-image-box-wrapper{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    text-align:center !important;
    width:100%;
    height:100%;
}

/* Zone image fixe */
.elementor-widget-image-box .elementor-image-box-img{
    width:100%;
    height:130px;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-shrink:0;
margin-bottom:-10px !important;
}
.elementor-widget-image-box .elementor-image-box-title{
    margin-top:0 !important;
}

/* Image */
.elementor-widget-image-box .elementor-image-box-img img{
    max-width:90%;
    max-height:100px;
    width:auto !important;
    height:auto !important;
    object-fit:contain;
    display:block;
}

/* Bloc texte */
.elementor-widget-image-box .elementor-image-box-content{
    width:100%;
    margin-top:0 !important;
    padding-top:0 !important;
}

/* Texte */
.elementor-widget-image-box .elementor-image-box-title{
    margin:0 !important;
    padding:0 !important;
    line-height:1em !important;
}
/*Supprimer la ligne de blabla dans la ppage Search lorsqu'il n'y a aucun résultat et réhausser la barre de recherche*/
/* Cache le message "Désolé..." sur les recherches sans résultat */
.search-no-results .no-results .page-content > p {
  display: none;
}

/* Remonte la barre de recherche */
.search-no-results .no-results .search-form {
  margin-top: -50px;
}
/*Baisser le texte "impossible de mettre la main sur ce que tu cherches" et rendre la barre de recherche arrondie*/
/* Augmente l'espace entre le titre et la phrase */
/* Grand écran */
body.search-no-results main form.search-form {
  transform: translateY(-70px) !important;
}

/* Tablette / écran réduit */
@media (max-width: 1024px) {
  body.search-no-results main form.search-form {
    transform: translateY(-60px) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.search-no-results main form.search-form {
    transform: translateY(-20px) !important;
  }
}
/* Barre de recherche arrondie */
body.search-no-results form.search-form {
  border-radius: 999px;
  overflow: hidden;
}

/* Champ de recherche */
body.search-no-results input.search-field {
  border-radius: 999px 0 0 999px !important;
}

/* Bouton loupe */
body.search-no-results button.search-submit {
  border-radius: 0 999px 999px 0 !important;
}
/*Ajoute un espace entre le titre et le texte*/
body.search-no-results h1 {
  margin-bottom: 60px !important;
}