/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* ---------------------------------------------------------------- */
/*HELPER CLASSES*/
/* ---------------------------------------------------------------- */
.horizontalflip {
    transform: scale(-1, 1) !important;
}
.orange h3 {
  color:#e94f3d !important; 
}
.ttu {
  text-transform: uppercase !important;
}
.dib {
  display: inline-block !important;
}
.display-none {
  display: none;
}
.display-block {
  display: block !important;
}
.ti-35 {
  text-indent: -35px;
}
.mg-1 {
  margin: -1px !important;
}
.color-white {
  color: white !important;
}
.red {
  background-color: red !important;
}
.yellow {
  background-color: yellow !important;
}
.pink {
  background-color: pink !important;
}
.green {
  background-color: green !important;
}
.blue {
  background-color: blue !important;
}
.lh1 li {
  line-height: 1.2em !important;
  margin-bottom: 10px;
}
.lh1-2 p {
  line-height: 1.2em !important;
}
.lh1-2 {
  line-height: 1.2em !important;
}
.lh1-2 li {
  line-height: 1.2em !important;
  margin-bottom: 10px;
}
.lh1 p {
  line-height: 1em !important;
}
.lh1 {
  line-height: 1em !important;
}
.mobile-center img {
  text-align: center !important;
}
.mt-1px {
  margin-top: -1px !important;
}
.ml0 {
  margin-left: 0 !important;
}
.ml5 {
  margin-left: 5px !important;
}
.ml10 {
  margin-left: 10px !important;
}
.ml15 {
  margin-left: 15px !important;
}
.ml20 {
  margin-left: 20px !important;
}
.ml25 {
  margin-left: 25px !important;
}
.ml30 {
  margin-left: 30px !important;
}
.mr0 {
  margin-right: 0 !important;
}
.mr5 {
  margin-right: 5px !important;
}
.mr10 {
  margin-right: 10px !important;
}
.mr15 {
  margin-right: 15px !important;
}
.mr20 {
  margin-right: 20px !important;
}
.mr25 {
  margin-right: 25px !important;
}
.mr30 {
  margin-right: 30px !important;
}
.mt-5 {
  margin-top: -5px !important;
}
.mt0 {
  margin-top: 0 !important;
}
.mt5 {
  margin-top: 5px !important;
}
.mt10 {
  margin-top: 10px !important;
}
.mt15 {
  margin-top: 15px !important;
}
.mt20 {
  margin-top: 20px !important;
}
.mt25 {
  margin-top: 25px !important;
}
.mt30 {
  margin-top: 30px !important;
}
.mt35 {
  margin-top: 35px !important;
}
.mb0 {
  margin-bottom: 0 !important;
}
.mb5 {
  margin-bottom: 5px !important;
}
.mb10 {
  margin-bottom: 10px !important;
}
.mb15 {
  margin-bottom: 15px !important;
}
.mb20 {
  margin-bottom: 20px !important;
}
.mauto {
  margin: auto !important;
}
.pt0 {
  padding-top: 0 !important;
}
.pt5 {
  padding-top: 5px !important;
}
.pt10 {
  padding-top: 10px !important;
}
.pt15 {
  padding-top: 15px !important;
}
.pt20 {
  padding-top: 20px !important;
}
.pb0 {
  padding-bottom: 0 !important;
}
.pb5 {
  padding-bottom: 5px !important;
}
.pb10 {
  padding-bottom: 10px !important;
}
.pb15 {
  padding-bottom: 15px !important;
}
.pb20 {
  padding-bottom: 20px !important;
}
.pb25 {
  padding-bottom: 25px !important;
}
.pb30 {
  padding-bottom: 30px !important;
}
.pb35 {
  padding-bottom: 35px !important;
}
.mw600 {
  max-width: 600px !important;
}
.zindex1000 {
  z-index: 1000 !important;
}
.z-7000 {
  z-index: 7000 !important;
  position: relative;
}
.z-10000 {
  z-index: 10000 !important;
}
span:has(a.mt0) {
  margin-top: 0 !important;
}
span:has(a.mt5) {
  margin-top: 5px !important;
}
span:has(a.mt10) {
  margin-top: 10px !important;
}
span:has(a.mt15) {
  margin-top: 15px !important;
}
span:has(a.mt20) {
  margin-top: 20px !important;
}

@keyframes fadeIn {
  0% {
    visibility: hidden;
  }
  100% {
    visibility: visible;
  }
}

/* CONTACT FORM 7 modale formulaire */
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #ffb900;
    padding: 50px;
    color: #583a00;
    Font-size: 22px;
    font-weight: 600;
    border-radius: 5px;
}
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #46b450;
    padding: 50px;
    color: #defec8;;
    Font-size: 22px;
    font-weight: 600;
    border-radius: 5px;
}

/* RECAPTCHA dans contact form 7 (page contact) */
.wpcf7 .anr_captcha_field {
    margin-top: 20px;
}
/*EFFET GLITCH SUR LOGO*/
/* 1. Le conteneur du logo agit comme un masque strict et garde sa hauteur native Uncode */
.navbar-brand .logo-image {
  position: relative !important;
  display: block !important;
  overflow: hidden !important; /* Masque tout ce qui dépasse du cadre du logo */
}

/* Ne pas toucher aux conteneurs masqués par Uncode */
.navbar-brand .logo-image[style*="display: none"],
.navbar-brand .logo-image[style*="display:none"] {
  display: none !important;
}

.navbar-brand .logo-image img {
  display: block !important;
  position: relative;
  z-index: 1;
}

/* 2. Calques de glitch superposés et contenus dans le masque */
.navbar-brand .logo-image::before,
.navbar-brand .logo-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://compagnie-secousses.fr/wp-content/uploads/2026/11/LOGO-CS.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center; /* Aligne le calque exactement sur l'ancrage gauche du logo Uncode */
  opacity: 0;
  pointer-events: none;
}

.navbar-brand .logo-image::before {
  z-index: 2;
  animation: uncode-masked-glitch-1 4s infinite linear;
}

.navbar-brand .logo-image::after {
  z-index: 3;
  animation: uncode-masked-glitch-2 4s infinite linear;
}

/* --- ANIMATIONS GLITCH (Coupées proprement par le masque du conteneur) --- */

@keyframes uncode-masked-glitch-1 {
  0%, 91%, 100% {
    opacity: 0;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  92% {
    opacity: 1;
    transform: translate(-4px, -1px);
    clip-path: inset(12% 0 62% 0);
    filter: drop-shadow(2px 0 cyan);
  }
  94% {
    opacity: 1;
    transform: translate(4px, 1px);
    clip-path: inset(45% 0 25% 0);
    filter: drop-shadow(-2px 0 red);
  }
  96% {
    opacity: 0;
    transform: none;
  }
}

@keyframes uncode-masked-glitch-2 {
  0%, 91%, 100% {
    opacity: 0;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  93% {
    opacity: 1;
    transform: translate(4px, 1px);
    clip-path: inset(68% 0 10% 0);
    filter: drop-shadow(-2px 0 magenta);
  }
  95% {
    opacity: 1;
    transform: translate(-4px, -1px);
    clip-path: inset(22% 0 52% 0);
    filter: drop-shadow(2px 0 red);
  }
  97% {
    opacity: 0;
    transform: none;
  }
}
/*VIGNETTE SPECTACLES JEUNE PUBLIC*/
/* 1. Uniformise le format carré 1/1 des deux vignettes */
.vignette-madame-pirate img,
#spectacle\ jeune\ public + .vc_row .uncode-single-media img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

/* 2. Prépare le conteneur de Madame Pirate */
.vignette-madame-pirate,
.vignette-madame-pirate .uncode-single-media-wrapper {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

/* 3. Voile bleu #115cfa en mode multiply (invisible au repos) */
.vignette-madame-pirate .uncode-single-media-wrapper::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-color: #115cfa !important;
  mix-blend-mode: multiply !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Active le voile bleu au survol */
.vignette-madame-pirate:hover .uncode-single-media-wrapper::before {
  opacity: 1 !important;
}

/* 4. Bouton Play blanc centré (au-dessus du filtre bleu grâce à z-index: 20) */
.vignette-madame-pirate .uncode-single-media-wrapper::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 72px !important;
  height: 72px !important;
  transform: translate(-50%, -50%) scale(1) !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111111'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 53% center !important;
  background-size: 32px 32px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease !important;
  pointer-events: none !important;
  z-index: 20 !important;
}

/* Anime le bouton Play au survol */
.vignette-madame-pirate:hover .uncode-single-media-wrapper::after {
  transform: translate(-50%, -50%) scale(1.16) !important;
  background-color: #ffffff !important;
}

/* Centrage forcé de la lightbox vidéo LightGallery (Uncode récent) sur mobile */
@media (max-width: 959px) {
  .lg-outer {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important; /* S'adapte à la hauteur réelle de l'écran mobile avec/sans barre d'adresse */
    z-index: 999999 !important;
  }

  .lg-outer .lg-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .lg-outer .lg-item.lg-current {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 94vw !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .lg-outer .lg-video-cont {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .lg-outer .lg-video-cont iframe,
  .lg-outer .lg-video-cont video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }
}