/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Thème enfant d'Astra. Ajoutez ici vos personnalisations CSS.
Author:       Votre nom
Author URI:   https://example.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ===== Vos styles personnalisés ci-dessous ===== */
/* Conteneur centré */

.asso-avantages {
  background: transparent;
  padding: 60px 20px;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement si nécessaire */
  flex-direction: column;  /* stack verticalement h2 + cartes */
  text-align: center;
}

/* Titre centré */
.asso-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1f2d3d;
}

/* Conteneur des cartes centré */
.asso-cards {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cartes (avec flottement + hover) */
.asso-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 25px;
  width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

/* Décalage léger pour éviter synchro parfaite */
.asso-card:nth-child(2) { animation-delay: 0.8s; }
.asso-card:nth-child(3) { animation-delay: 1.6s; }

/* Hover effect */
.asso-card:hover {
  background: linear-gradient(135deg, #e8f3ff, #f6fbff);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 35px rgba(47,128,237,0.25);
}

.asso-card:hover .asso-icon {
  transform: scale(1.2) rotate(-5deg);
}

/* Icône avec transition */
.asso-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .asso-cards {
    flex-direction: column !important;
    align-items: center !important;
    gap: 25px !important;
  }

  .asso-card {
    width: 100% !important;
    max-width: 340px !important;
    animation: none;
  }
}
/* Flottement */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.amelia-app-booking,
.amelia-app,
#amelia-app {
  max-height: 520px;
  overflow: auto;
}

/* Mobile : désactiver animation si souhaité */
@media (max-width: 768px) {
  .asso-card { animation: none; }
}
.btn-dynamique {
  display: inline-block;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

.btn-dynamique:hover {
  transform: scale(1.05);
}
.wp-block-button__link {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1),
              box-shadow 0.25s cubic-bezier(.4,0,.2,1);
}

.wp-block-button__link:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}
.btn-hover{
  display: inline-block;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
}

.btn-hover:hover{
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}



h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
}


/* HERO */
.hero-new {
  min-height: 75vh;
  background: linear-gradient(135deg, #ff9966, #ff5e62, #845ec2);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-inner {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1s ease forwards;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.hero-new h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-new p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* SECTIONS */
.section {
  padding: 90px 20px;
  text-align: center;
}

.section-alt {
  background: #f7f8fb;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #1f2d3d;
}

.section-intro {
  max-width: 650px;
  margin: 0 auto 50px;
  color: #555;
}

/* CARDS */
.cards {
  display: flex;
  justify-content: center;
  /*gap: 30px;*/
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.cards.small .card {
  max-width: 260px;
}

.card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  max-width: 320px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 5s ease-in-out infinite;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-new h1 {
    font-size: 2.6rem;
  }
}
.cta-text {
    margin-top: 40px;
    font-weight: 700;
    color: var(--brand-light);
}

.cta-text a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

.cta-text a:hover {
    text-shadow: 0 0 8px rgba(100, 180, 255, 0.8),
                 0 0 16px rgba(100, 180, 255, 0.6);
}

p.text-bloc{
  display: block;
  max-width: 65ch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;

  padding: clamp(16px, 3vw, 40px);
  box-sizing: border-box;

  /* le "minimum" sans casser le centrage */
  min-width: 40ch;

  /* si plus petit que min-width : le contenu scroll au lieu d'être coupé */
  overflow-x: auto;

  /* évite que des mots/URLs ultra longs cassent tout */
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1024px){
  /* Empêche le contenu de déborder sur tablette */
  .entry-content, .wp-site-blocks, .wp-block-group, .wp-block-columns, .wp-block-column{
    max-width: 100%;
    overflow-x: visible;
  }

  /* IMPORTANT : si tu avais mis des min-width sur tes textes */
  p.text-bloc{
    min-width: 0 !important;
    overflow-x: visible !important;
  }

  /* Réduit les gros paddings fixes qui cassent sur iPad */
  .entry-content{
    padding-left: clamp(12px, 4vw, 24px);
    padding-right: clamp(12px, 4vw, 24px);
  }
}

/* Cacher sur téléphone */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}
/* Cacher sur tablette */
@media (min-width: 768px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}
/* TEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEST*/
/* Tu peux mettre la classe soit sur le bloc, soit sur le lien */
.btn-outline-fill,
.btn-outline-fill .wp-block-button__link,
.wp-block-button.btn-outline-fill .wp-block-button__link {
  border: 2px solid #0b2a5b !important;
  background: transparent !important;
  color: #0b2a5b !important;

  border-radius: 0px !important;
  font-weight: 700 !important;
  text-decoration: none !important;

  transition: background-color .2s ease, color .2s ease, transform .2s ease !important;
}

/* IMPORTANT: on évite l'effet "bouton dans bouton" */
.wp-block-button.btn-outline-fill {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Hover */
.btn-outline-fill:hover,
.btn-outline-fill:focus,
.btn-outline-fill .wp-block-button__link:hover,
.btn-outline-fill .wp-block-button__link:focus,
.wp-block-button.btn-outline-fill .wp-block-button__link:hover,
.wp-block-button.btn-outline-fill .wp-block-button__link:focus {
  background: #0b2a5b !important;
  color: #ffffff !important;
  transform: scale(1.03);
}
.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
  .texte-mobile-fix {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .texte-mobile-fix p,
  .texte-mobile-fix h1,
  .texte-mobile-fix h2,
  .texte-mobile-fix h3 {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}
/* TEST */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

main,
.site,
.site-content,
.content-area,
.entry-content,
.ast-container,
.ast-article-single,
.ast-article-post,
.wp-site-blocks {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wp-block-cover:first-child,
.wp-block-group:first-child,
.entry-content > *:first-child,
.site-content > *:first-child,
main > *:first-child {
  margin-top: 0 !important;
}

.Test-Wide {
	width: 800px;
	height: 400px;
}
/* TEST */
@media (max-width: 921px) {
  #ast-mobile-header .ast-mobile-header-content,
  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    background: #ffffff !important;
  }

  #ast-hf-mobile-menu,
  #ast-mobile-header .main-header-menu,
  .ast-mobile-popup-drawer .main-header-menu,
  .ast-builder-menu-mobile .main-header-menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    background: #ffffff !important;
  }

  #ast-hf-mobile-menu > li,
  #ast-mobile-header .main-header-menu > li,
  .ast-mobile-popup-drawer .main-header-menu > li {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    float: none !important;
    border-bottom: 1px solid #e9edf2 !important;
  }

  #ast-hf-mobile-menu .menu-link,
  #ast-mobile-header .main-header-menu .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .menu-link {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    text-align: left !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #0464FC !important;
  }
}

