/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://votresite.com/
 Description:  Thème enfant de Hello Elementor
 Author:       Votre nom
 Author URI:   https://votresite.com/
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* Cibler le premier élément de la grille */
#e-collection-loop-layout-bae43b0 > :first-child {
  justify-self: start;
}

/* Cibler le dernier élément de la grille */
#e-collection-loop-layout-bae43b0 > :last-child {
  justify-self: end;
}

#e-collection-loop-layout-8536b15 > :first-child {
  justify-self: start;
}

/* Cibler le dernier élément de la grille */
#e-collection-loop-layout-8536b15 > :last-child {
  justify-self: end;
}

#e-collection-loop-layout-0ab83ff > :first-child {
  justify-self: start;
}

/* Cibler le dernier élément de la grille */

#e-collection-loop-layout-0ab83ff > :last-child {
  justify-self: end;
}

.exerpt-lenght {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* .height-calc {
  /*max-height: calc(100vh - 120px);*/
/*min-height: 100vh !important;*/
/*    background-image: url('http://chiensguidesducentre.local/wp-content/uploads/2026/08/1-Accueil-Credit-Romain-Huot.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}*/

button,
input,
textarea,
select {
  overflow-wrap: break-all; /* CSS perso D*/
  white-space: normal !important;
}

a {
  overflow-wrap: break-all !important;
  white-space: normal !important;
}

p {
  overflow-wrap: break-all !important;
  white-space: normal !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-all !important; /* Ajoute des traits d'union automatiques */
  white-space: normal !important; /* CSS Perso F*/
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Les boutons prennent 19rem OU 95% du parent (selon ce qui est le plus petit) */
.button-icon .elementor-button {
  width: min(19rem, 95%);
  max-width: 19rem; /* Optionnel, redondant avec min() */
}

.button-icon .elementor-button-content-wrapper {
  justify-content: flex-start;
  align-items: center;
}

.button-icon .elementor-button-icon {
  width: 3rem;
  height: 3rem;
}

.floating-donate-button.elementor-widget-button
  a.elementor-button
  .elementor-button-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.floating-donate-button .elementor-button {
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ajuster la taille de l'icône */
.floating-donate-button .elementor-button-icon {
  width: 3rem;
  height: 3rem;
}

/* Le texte s'adapte */
.floating-donate-button .elementor-button-text {
  line-height: 1.5;
}

/* Bouton de don flottant (coin inférieur droit) */
.floating-donate-button {
  /*box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;*/
  transition: transform 0.3s ease;
}

/* Effet au survol */
.elementor-button:hover {
  transform: scale(1.05);
}

@media (min-width: 767px) and (max-width: 1024px) {
  .grid-start-end {
    display: grid;
  }
  .grid-start-end > .elementor-element:nth-child(odd) {
    justify-self: end;
  }
  .grid-start-end > .elementor-element:nth-child(even) {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  [data-id="d326f4b"] > .elementor-element:nth-child(n + 2),
  [data-id="0708c26"] > .elementor-element:nth-child(n + 2),
  [data-id="09a5a2a"] > .elementor-element:nth-child(n + 2),
  [data-id="6546866"] > .elementor-element:nth-child(n + 2) {
    display: none !important;
  }
  .e-con.e-flexbox-base.button-pos {
    position: static;
    margin: 0 auto;
  }

  .d-none.elementor-element > :not(:first-child) {
    display: none;
  }
}
