/*
Theme Name: Ollie Child
Template: ollie
*/

html {
    scroll-behavior: smooth;
}

/* Réaction des boutons Info Box */

.wp-block-uagb-info-box img {
  box-shadow: -10px -10px 0 #343A40;
  transition: transform .35s ease, box-shadow .35s ease;
}
.wp-block-uagb-info-box:hover img,
.wp-block-uagb-info-box:focus-within img {
  transform: translate(-5px, -5px);
  box-shadow: -5px -5px 0 #343A40;
	
	
/* ==========================================================
   Aime Comme Mariage — Animations légères de la page d'accueil
   À coller dans : Apparence > Personnaliser > CSS additionnel
   (ou un snippet CSS WPCode limité à la page d'accueil)
   Aucune modification du balisage Gutenberg nécessaire.
   ========================================================== */

/* 1. Apparition au scroll (classe ajoutée par le JS uniquement)
   Sans JS, tout reste visible : aucun risque pour l'indexation. */
.acm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
}
.acm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 2. Micro-interactions au survol (souris uniquement, pas sur mobile) */
@media (hover: hover) {

  /* Flèche des boutons « prendre rendez-vous » qui glisse */
  body.home .uagb-buttons-repeater .uagb-button__icon svg {
    transition: transform .25s ease;
  }
  body.home .uagb-buttons-repeater:hover .uagb-button__icon svg {
    transform: translateX(4px);
  }

  /* Étapes de l'essayage : léger zoom de la photo */
  body.home .wp-block-columns .wp-block-cover {
    overflow: hidden;
  }
  body.home .wp-block-columns .wp-block-cover__image-background {
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
  }
  body.home .wp-block-column:hover .wp-block-cover__image-background {
    transform: scale(1.05);
  }

  /* Équipe : le portrait se soulève */
  body.home .uagb-team__image-crop-circle {
    transition: transform .35s ease, box-shadow .35s ease;
  }
  body.home .wp-block-uagb-team:hover .uagb-team__image-crop-circle {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(52, 58, 64, .15);
  }
}

/* 3. Accessibilité : on coupe tout si l'internaute a réduit les animations */
@media (prefers-reduced-motion: reduce) {
  .acm-reveal,
  .acm-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  body.home .wp-block-cover__image-background,
  body.home .uagb-team__image-crop-circle,
  body.home .uagb-button__icon svg {
    transition: none !important;
    transform: none !important;
  }
}