/* ========= STRUCTURE GLOBALE BANDEAU ========= */

.ammoi-banner {
    width: 100%;
    text-align: center;
    margin: auto;
    font-size: 13px;
}

.ammoi-banner-textbox {
    display: inline-block;
    color: #fff;
}

.ammoi-banner-caisse {
    display: inline-block;
}

/* Texte principal */

.ammoi-banner-text {
    color: #fff;
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.ammoi-banner-title {
    letter-spacing: 5px;
    font-size: 17px;
    line-height: 10px;
    color: #2e8b57;
}

.ammoi-banner-subtitle {
    letter-spacing: 6px;
    font-size: 29px;
    line-height: 38px;
}

.ammoi-banner-text .l3 { /* au cas où tu l'utilises ailleurs */
    letter-spacing: 5px;
    font-size: 14px;
    line-height: 7px;
}

.ammoi-banner-description {
    margin-top: 10px;
}

/* ========= PROGRESS BAR (NAMESPACE AMMOI) ========= */
/* autorise la bulle à sortir */
.ammoi-progress-outer{
  margin:30px auto;
  position:relative;
  overflow: visible;
}

/* glass + blur */
.ammoi-progress-wrapper{
  position:relative;
  padding:8px;
  border-radius:999px;
  //overflow:hidden;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
  //box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.30),
    inset -1px -1px 0 rgba(255,255,255,.18);

  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.ammoi-progress-wrapper {
    width: 80%;
    margin: 30px auto;
    
}
.ammoi-progress-blur{
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.ammoi-progress-track {
    border-radius: 30px;
    background: rgb(255 255 255 / 37%);
    position: relative;
    z-index: 2;
}

.ammoi-progress-bar {
    height: 24px;
    border-radius: 30px;
    position: relative;
    transition: 0.4s linear;
    transition-property: width, background-color;
}

/* bulle % + image */
.ammoi-progress-label {
    width: 100px;
    height: 35px;
    position: absolute;
    top: -27px;
    right: -8px;
    z-index: 2;
}

.ammoi-progress-label span {
    color: #fff;
    margin: auto;
    display: table;
    position: absolute;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    background: #444444;
    padding: 5px 10px 3px 10px;
    border-radius: 30px !important;
}

.ammoi-progress-label img {
    max-width: 100%;
    width: auto \9;
    height: auto;
    vertical-align: middle;
}

/* état animé */
.ammoi-progress-animated .ammoi-progress-bar {
    background-color: #c7cac6;
    animation: progressAnimation 6s;
}

/* texture animée sur la barre */
.ammoi-progress-animated .ammoi-progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        -webkit-gradient(linear, 0 0, 100% 100%,
            color-stop(.25, rgba(255, 255, 255, .2)),
            color-stop(.25, transparent),
            color-stop(.5, transparent),
            color-stop(.5, rgba(255, 255, 255, .2)),
            color-stop(.75, rgba(255, 255, 255, .2)),
            color-stop(.75, transparent),
            to(transparent));
    background-image:
        -moz-linear-gradient(-45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent);
    z-index: 1;
    -webkit-background-size: 50px 50px;
    -moz-background-size: 50px 50px;
    background-size: 50px 50px;
    -webkit-animation: move 2s linear infinite;
    -moz-animation: move 2s linear infinite;
    border-radius: 20px;
    overflow: hidden;
}

/* Keyframes d'animation de la barre */

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* progressAnimation est injecté en inline via le PHP pour la width */

/* ========= SECTION AVANCEMENT (fond image) ========= */

.ammoi-banner-section {
    background: linear-gradient(to left, rgb(0 0 0 / 50%) , rgb(0 0 0 / 50%)), url(img/avancement.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top center;
    padding: 40px 0 60px 0;
}

/* ========= TEXTE / VERSET (optionnel si utilisé) ========= */

.verse {
    width: 90%;
    background: url(quoat.svg) 0 0 no-repeat;
    background-size: 68px auto;
}

/* ========= STEPS / PHASE 2 ========= */

/* ========= PHASE 2 / SLIDER (étapes) ========= */

.phase2 {
    padding-top: 30px;
    display: none;        /* Slick forcera display:block */
    position: relative;
    overflow: hidden;
}

.phase2 .etape {
    text-align: center;
    margin-bottom: 30px;
}

/* image dans chaque étape (slide) */
.phase2 img {
    width: 80% !important;
    height: 80px !important;
    display: block !important;
    margin: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,.07));
}

.ammoi-step-label {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 10px 0;
    font-size: 13px !important;
    font-family: "Montserrat", sans-serif;
}

.ammoi-step-comment {
    margin-top: 5px;
    font-size: 12px;
}

/* Conteneur étapes (fond) */

.ammoi-banner-steps {
    background: #f9f9f9;
    padding: 40px;
    text-align: center;
}

.ammoi-banner-steps-title {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}


/* ========= LIENS / BOUTONS CTA ========= */

.ammoi-banner a {
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    font-family: 'Lato',sans-serif;
    font-weight: 800;
}

.ammoi-banner a:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    text-decoration: none !important;
}

.ammoi-banner-cta {
    text-align: center;
    padding: 10px 0;
}

.ammoi-banner-cta-inner {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ammoi-button-donation {
    position: relative;
    display: inline-flex;               
    align-items: center;                 
    justify-content: center;             

    margin: 0 10px;
    font-size: 18px;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.1);      
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 1px 1px 0px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0px 0px rgba(255, 255, 255, 0.3);
}

.ammoi-button-gallery {
    position: relative;
    display: inline-flex;               
    align-items: center;                 
    justify-content: center;             

    margin: 0 10px;
    font-size: 16px;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;


    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.1);      
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 1px 1px 0px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0px 0px rgba(255, 255, 255, 0.3);
}

.ammoi-buttons-blur {
    border-radius: 999px;
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    pointer-events: none;            /* super important pour laisser le <a> cliquable */
    z-index: 10;

}

.ammoi-buttons-text {
    z-index: 999;
    padding: 12px 28px;
}


.ammoi-button-gallery:hover {
    color: #fff;
}

/* Quand on survole le bouton DONATION → le bouton GALLERY se décale */
.ammoi-button-donation:hover ~ .ammoi-button-gallery {
    transform: translateX(12px);
}

/* Quand on survole le bouton GALLERY → le bouton DONATION se décale */
.ammoi-button-gallery:hover {
    transform: scale(1.1);
}

.ammoi-button-gallery:hover ~ .ammoi-button-donation {
    transform: translateX(-12px);
}


/************** Animation des flèches **************/

.ammoi-button-donation i {
  -webkit-animation: arrow-animation 0.6s;
  -moz-animation: arrow-animation 0.6s;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}

.ammoi-button-donation i:first-child {
  -webkit-animation-delay: 0.1s;
  -moz-animation-delay: 0.1s;
  margin-left: 5px;
  opacity: 0.15;
}

.ammoi-button-donation i + i {
  -webkit-animation-delay: 0.2s;
  -moz-animation-delay: 0.2s;
  opacity: 0.5;
}

.ammoi-button-donation i + i + i {
  -webkit-animation-delay: 0.3s;
  -moz-animation-delay: 0.3s;
  opacity: 1;
}

@-webkit-keyframes arrow-animation {
  0%   { opacity: 0.15; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes arrow-animation {
  0%   { opacity: 0.15; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ========= OVERLAY VIDÉO & TEXTE ========= */

.ammoi-banner-media {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  text-align: center;
  
}

/* Calque d'image pour le parallax */
.ammoi-banner-media-bg {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;              /* un peu plus grand pour ne jamais voir de “trou” */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
  transform: translate3d(0, var(--ammoi-parallax-y, 0px), 0);
  z-index: 0;
}

/* Vidéo YouTube en fond qui suit le même parallax */
.ammoi-banner-media-video {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  will-change: transform;
  transform: translate3d(0, var(--ammoi-parallax-y, 0px), 0);
  z-index: 0;
}
.ammoi-banner-media-bg,
.ammoi-banner-media-video {
  position: absolute;
  left: 0;
  top: -25%;        /* au lieu de -40% */
  width: 100%;
  height: 160%;     /* au lieu de 180% */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
  transform: translate3d(0, var(--ammoi-parallax-y, 0px), 0);
  z-index: 0;
}


/* Overlay texte au-dessus du fond */
.ammoi-banner-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;      /* centré horizontalement */
  justify-content: center;  /* centré verticalement */

  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  z-index: 2;
  color: white;
  text-align: center;
  padding: 15px;
}

/* L’overlay sombre reste au-dessus du fond mais sous le texte */
.ammoi-banner-media::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 0 0, rgba(0,0,0,0.65), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(0,0,0,0.5), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}


.ammoi-banner-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}




/* Apparition progressive des textes (sans toucher à animate.css) */

.ammoi-banner-overlay .ammoi-banner-text {
    opacity: 0;
    transform: translateY(12px);
    animation: textIn 0.8s ease-out 0.2s forwards;
}

.ammoi-banner-overlay .ammoi-banner-subtitle {
    animation: textIn 0.8s ease-out 0.2s forwards;
}

.ammoi-banner-overlay .ammoi-banner-description {
    opacity: 0;
    transform: translateY(12px);
    animation: textIn 0.8s ease-out 0.35s forwards;
}

.ammoi-banner-overlay .ammoi-banner-cta .ammoi-buttons-text {
    opacity: 0;
    transform: translateY(12px);
    animation: textIn 0.8s ease-out 0.5s forwards;
}

.ammoi-banner-overlay .ammoi-progress-wrapper {
    opacity: 0;
    transform: translateY(12px);
    animation: textIn 0.8s ease-out 0.5s forwards;
}

/* Keyframes pour les textes */
@keyframes textIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= SLICK SLIDER (si utilisé) ========= */

.slick-slide {
    text-align: center;
    margin: auto;
    padding: 16px;
    padding-bottom: 46px;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-prev:before,
.slick-next:before {
    font-family: 'slick';
    font-size: 20px;
    line-height: 1;
    opacity: .75;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-initialized .slick-slide {
    display: block;
}

.slick-arrow {
    bottom: 0;
    position: absolute;
    background: #e7e8e7;
    color: #444;
    padding: 5px;
    line-height: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 9999;
}

.slick-next { right: 0; }
.slick-prev { right: 30px; }

/* ========= SECTION ÉTAPES (CONTAINER) ========= */

.ammoi-banner-steps {
    background: #f9f9f9;
    padding: 40px;
    text-align: center;
}

.ammoi-banner-steps-title {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--ammoi-green);
}

/* ========= RESPONSIVE ========= */

@media (max-width: 1120px){
    .ammoi-banner-title,
    .ammoi-banner-subtitle,
    .ammoi-banner-text .l3 {
        display: inline;
    }
}

@media (max-width: 785px){
    .ammoi-progress-label {
        width: 85px;
        top: -24px;
        right: -29px;
    }
    .ammoi-progress-wrapper {
        padding: 10px;
    }

    .ammoi-banner-text {
        margin-top: 5px;
    }

    .ammoi-banner-title {
        letter-spacing: 5px;
        font-size: 12px;
        line-height: 10px;
    }

    .ammoi-banner-subtitle {
        letter-spacing: 4px;
        font-size: 26px;
        line-height: 38px;
    }

    .ammoi-banner-description {
        padding: 10px 0 10px 0;
    }

    .ammoi-banner-text .l3 {
        letter-spacing: 4px;
        font-size: 8px;
        line-height: 7px;
    }

    .ammoi-progress-wrapper {
        width: 100% !important;
    }

    .verse {
        width: 100%;
        background: url(quoat.svg) 10px 0 no-repeat;
        padding-bottom: 20px;
    }

    .ammoi-button-donation {
        font-size: 16px;
    }

    .ammoi-button-gallery {
        font-size: 16px;
    }

    .ammoi-button-donation i {
        font-size: 20px;
    }

    .ammoi-banner-media {
        height: 570px;
        width: 100%;
    }
    
  .ammoi-banner-media iframe {
    height: 100% !important;
    width: 100% !important;
    zoom: 1; /* évite le zoom:3 qui casse les proportions */
  }



    .ammoi-button-donation {
        display: flex;
        margin-bottom: 15px;
    }

    .ammoi-button-gallery {
        display: flex;
    }

    /* Sur mobile : aucun décalage horizontal */
    .ammoi-button-donation:hover ~ .ammoi-button-gallery,
    .ammoi-button-gallery:hover ~ .ammoi-button-donation {
        transform: none;
    }

    .ammoi-banner-cta strong {
        display: block !important;
    }

    .ammoi-button-donation i {
        display: none;
    }

    .ammoi-step {
        margin-bottom: 20px;
    }
}
