/* __________________ Header sticky (robuste sur TT5) __________________ */
header.wp-block-template-part{
  position: sticky;
  top: 0;
  z-index: 100; /* au-dessus du contenu */
  background: color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent);
  transition: padding .25s ease, backdrop-filter .25s ease, background-color .25s ease;
}

/* État shrunk au scroll */
header.wp-block-template-part.is-sticky{
  backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 2px 6px rgba(50,50,50,0.2);
}

.wul-header-inner {
	
}

/* Resserre légèrement la première rangée du header quand on scrolle */
header.wp-block-template-part .wp-block-group{
  padding-bottom: 16px;
  transition: padding .25s ease;
}
header.wp-block-template-part.is-sticky .wp-block-group{
	padding-bottom: 0;
}

header .safe-svg-cover .safe-svg-inside {
	display: block;
}

/* Logo : fluide + shrink visuel */
/* État normal du logo */
.safe-svg-inline.wul-logo {
	margin-top:	var(--wp--preset--spacing--20) !important;
    display: block;
    height: 120px !important; /* valeur de base */
    width: auto !important;   /* au cas où */
    transition: height .25s ease;
}

/* État sticky : on réduit à 70% (120 * 0.7 = 84) */
header.wp-block-template-part.is-sticky .safe-svg-inline.wul-logo {
    height: 84px !important;
}

/* Le SVG occupe toute la hauteur disponible du wrapper */
.safe-svg-inline.wul-logo svg {
    height: 100%;
    width: auto;
    display: block;
}

header.wp-block-template-part.is-sticky .wul-logo svg #baseline {
	display: none;
}

/* Animation du point d’exclamation */
#exclamation {
    animation: wulCheck 5s infinite ease-in-out;
    transform-origin: center;
}

/* Petite tremblotte ponctuelle */
@keyframes wulCheck {
    0% { transform: translateY(0) rotate(0); }
    1.5% { transform: translateY(-2px) rotate(-4deg); }
    3% { transform: translateY(1px) rotate(3deg); }
    4.5% { transform: translateY(-1px) rotate(-2deg); }
    6% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(0) rotate(0); }
}


/* Navigation */
.wp-block-navigation a{
  text-underline-offset: 3px;
}
.wp-block-navigation a:hover{
  color: var(--wp--preset--color--vert);
}

/* __________________ Hero __________________ */
/* Valeur par défaut (desktop) */
.wul-hero {
  --hero-min: 80vh;   /* à ajuster */
  min-height: var(--hero-min) !important;
}

/* Tablette : breakpoint WordPress standard */
@media (max-width: 1280px) {
  .wul-hero {
    --hero-min: 40vh;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .wul-hero {
    --hero-min: 30vh;
  }
}

/* One-page : rythme vertical + ancrage confortable sous header sticky */
:root{ scroll-behavior: smooth; }
:root {
  --wul-header-offset: 100px; /* à affiner */
}

.wul-section {
  scroll-margin-top: var(--wul-header-offset);
}

.wp-block-post-content {
  overflow-x: clip;
}

/* __________________ Fluent Forms – micro-styles propres ______________________ */
.ff-el-group{
  margin-bottom: 14px;
}
.ff-el-group label{
  font-size: var(--wp--preset--font-size--sm);
  opacity: .9;
}
.ff-el-input--label{
  margin-bottom: 6px !important;
}
.ff-el-form-control{
  border-radius: 10px !important;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 15%, transparent) !important;
  padding: 10px 12px !important;
  background: #fff !important;
}
.ff-btn-submit{
  border-radius: 10px !important;
  background: var(--wp--preset--color--corail) !important;
  color: #fff !important;
  padding: 10px 16px !important;
  transition: background .2s ease;
}
.ff-btn-submit:hover{
  background: var(--wp--preset--color--vert) !important;
}

.ff-message-success{
	background-color: antiquewhite; /* var(--wp--preset--color--peche) */
}

/* ____________________ Timeline: corrige absence de margin-top _______________________ */
.wp-block-uagb-content-timeline .wp-block-uagb-content-timeline-child .uagb-timeline__events-inner--content p.uagb-timeline-desc-content {
  margin-top: 5px;
}

h3.uagb-timeline__heading {
	line-height: 1em !important;
}

/* ____________________ Buttons: hover classe + sheen, accessibles _______________________ */
.wpf_has_custom_css.ff-btn-submit {
	border: none !important;
}

:where(.wp-element-button, .wp-block-button .wp-block-button__link, .ff-btn, .ff-btn-submit){
  position: relative;
  overflow: hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
  will-change: transform;
}

/* lueur qui balaie le bouton */
:where(.wp-element-button, .wp-block-button .wp-block-button__link, .ff-btn, .ff-btn-submit)::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg,
              transparent 0 40%,
              rgba(255,255,255,.28) 50%,
              transparent 60% 100%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events:none;
}

/* état hover */
:where(.wp-element-button, .wp-block-button .wp-block-button__link, .ff-btn, .ff-btn-submit):hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.4);
  background: var(--wp--preset--color--violet) !important;
  color: var(--wp--preset--color--base) !important;
  border-color: var(--wp--preset--color--violet) !important;
}
:where(.wp-element-button, .wp-block-button .wp-block-button__link, .ff-btn, .ff-btn-submit):hover::after{
  transform: translateX(120%);
  transition: transform .3s ease;
}

/* active : petit “tap” */
:where(.wp-element-button, .wp-block-button .wp-block-button__link, .ff-btn, .ff-btn-submit):active{
  transform: translateY(0);
  box-shadow: 0 4px 14px -10px rgba(0,0,0,.45);
}

/* variante outline */
.wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent !important;
  color: var(--wp--preset--color--corail) !important;
  border-color: var(--wp--preset--color--corail) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  background: var(--wp--preset--color--violet) !important;
  color: var(--wp--preset--color--base) !important;
  border-color: var(--wp--preset--color--violet) !important;
}

/* respect du prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  :where(.wp-element-button, .wp-block-button .wp-block-button__link){
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  :where(.wp-element-button, .wp-block-button .wp-block-button__link)::after{ display:none; }
}

h1 a, h2 a, h3 a{ text-decoration: none; }

/* Ombres */
.has-shadow {
  box-shadow: 0 2px 3px #333;
}

/* Transition douce (pour hover sur cartes/images) */
.has-transition {
  transition: all 0.25s ease;
}

/* Léger lift au survol */
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

/* Dégradé */
.has-gradient-bg {
  background: linear-gradient(135deg,
    var(--wp--preset--color--corail) 0%,
    var(--wp--preset--color--violet) 100%);
  color: var(--wp--preset--color--base);
}

/* === Hyperliens : soulignement progressif discret === */
a:not(.wp-element-button):not(.wp-block-button__link){
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;                 /* épaisseur du soulignement */
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .22s ease, color .18s ease;
}

a:hover:not(.wp-element-button):not(.wp-block-button__link){
  background-size: 100% 2px;
  color: var(--wp--preset--color--vert);
}

/* focus visible accessible */
a:focus-visible{
  outline: 2px dashed var(--wp--preset--color--violet);
  outline-offset: 3px;
}

/* === BASE commune pour toutes les reveals === */
[class*="reveal-"]{
  opacity:0;
  animation-fill-mode: both;
  animation-timeline: view();
  animation-range: entry 15% cover 40%;
}

@supports not (animation-timeline: view()){
  [class*="reveal-"]{ opacity:1; transform:none; animation:none; }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  [class*="reveal-"]{ animation:none; opacity:1; transform:none; }
}

/* ============== EFFETS =============== */
/* Animations de base */
@keyframes wul-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wul-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wul-fade-down {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wul-fade-left {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes wul-fade-right {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes wul-zoom-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes wul-blur-up {
    from { opacity: 0; filter: blur(8px); transform: translateY(16px); }
    to   { opacity: 1; filter: blur(0); transform: translateY(0); }
}
/* Base commune : état initial */
[class*="wul-anim-"] {
    opacity: 0;
    will-change: transform, opacity, filter;
}

/* FADING simple */
.wul-anim-fade.is-visible {
    animation: wul-fade 0.5s cubic-bezier(.25,.8,.25,1) both;
}

/* Fade + translation verticale */
.wul-anim-fade-up {
    transform: translateY(20px);
}
.wul-anim-fade-up.is-visible {
    animation: wul-fade-up 0.6s cubic-bezier(.25,.8,.25,1) both;
}

.wul-anim-fade-down {
    transform: translateY(-20px);
}
.wul-anim-fade-down.is-visible {
    animation: wul-fade-down 0.6s cubic-bezier(.25,.8,.25,1) both;
}

/* Fade + translation horizontale */
.wul-anim-fade-left {
    transform: translateX(24px);
}
.wul-anim-fade-left.is-visible {
    animation: wul-fade-left 0.6s cubic-bezier(.25,.8,.25,1) both;
}

.wul-anim-fade-right {
    transform: translateX(-24px);
}
.wul-anim-fade-right.is-visible {
    animation: wul-fade-right 0.6s cubic-bezier(.25,.8,.25,1) both;
}

/* Zoom léger */
.wul-anim-zoom-in {
    transform: scale(0.95);
}
.wul-anim-zoom-in.is-visible {
    animation: wul-zoom-in 0.45s cubic-bezier(.25,.8,.25,1) both;
}

/* Blur + montée */
.wul-anim-blur-up {
    filter: blur(8px);
    transform: translateY(16px);
}
.wul-anim-blur-up.is-visible {
    animation: wul-blur-up 0.6s cubic-bezier(.25,.8,.25,1) both;
}
/* État initial des enfants */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* Quand le conteneur devient visible, on lance l'anim sur les enfants */
.reveal-stagger.is-visible > * {
    animation: wul-fade-up 0.6s cubic-bezier(.25,.8,.25,1) both;
}

/* Délai progressif */
.reveal-stagger.is-visible > *:nth-child(1)  { animation-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2)  { animation-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3)  { animation-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4)  { animation-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(5)  { animation-delay: .45s; }
.reveal-stagger.is-visible > *:nth-child(6)  { animation-delay: .55s; }
.reveal-stagger.is-visible > *:nth-child(7)  { animation-delay: .65s; }
.reveal-stagger.is-visible > *:nth-child(8)  { animation-delay: .75s; }
.reveal-stagger.is-visible > *:nth-child(9)  { animation-delay: .85s; }
.reveal-stagger.is-visible > *:nth-child(10) { animation-delay: .95s; }


.card-fx {
	transition: all 0.3s ease;
}
.card-fx:hover {
	transform: scale(1.05);
	border-color: var(--wp--preset--color--violet) !important;
	border-width: 3px !important;
	box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.25) !important;
}

/* separateur */
.separateur {
	color: var(--wp--preset--color--base);
}
.astrodivider {
  margin: 64px auto;
  width: 90vw;
  max-width: 100%;
  position: relative;
}
.astrodividermask {
  overflow: hidden;
  height: 20px;
}

.astrodividermask:after {
  content: "";
  display: block;
  margin: -25px auto 0 !important;
  width: 100%;
  height: 25px;
  border-radius: 125px / 12px;
  box-shadow: 0 0 8px #049372;
}

.astrodivider span {
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 100%;
  margin-bottom: -25px !important;
  left: 50%;
  margin-left: -25px !important;
  border-radius: 100%;
  box-shadow: 0 2px 4px #4fb39c; /* Tint 3 of main color */
  background: #fff;
}
.astrodivider i {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  right: 4px;
  border-radius: 100%;
  border: 1px dashed #68beaa; /* Tint 4 of main color */
  text-align: center;
  line-height: 40px;
  font-style: normal;
  color: var(--wp--preset--color--corail); /* main color */
}

/* Purple */

.purple .astrodividermask:after {
  box-shadow: 0 0 8px #886fac; /* main color */
}

.astrodivider.purple span {
  box-shadow: 0 2px 4px #ab9ac4; /* tint 3 of main color */
}
.astrodivider.purple i {
  border: 1px dashed #b7a8cd; /* tine 4 of main color */
  color: #886fac; /* main color */
}
