/*
Theme Name: Brok Child
Template: brok
*/

/* défilement doux */
html { scroll-behavior: smooth; }

/* positionnement dans le hero */
#hero { position: relative; }

/* ---- Scroll Cue moderne (glass + wheel animée) ---- */
:root { --cue-color: #ffffff; --cue-bg: rgba(255,255,255,.06); }

#hero .scroll-cue{
  position:absolute; left:50%; bottom:clamp(18px,4vh,42px);
  transform:translateX(-50%);
  width:46px; height:74px; border-radius:26px;
  backdrop-filter: blur(6px);
  background: var(--cue-bg);
  border:1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.05);
  display:block; text-decoration:none; z-index:5;
}

/* Wheel qui tombe */
#hero .scroll-cue::before{
  content:"";
  position:absolute; left:50%; top:14px; width:6px; height:10px;
  background:var(--cue-color); border-radius:3px;
  transform:translateX(-50%);
  animation:wheel-drop 1.7s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.7));
}

/* ❌ Chevron supprimé */
#hero .scroll-cue::after{
  content:none !important;
}

/* hover: léger lift + glow */
#hero .scroll-cue:hover{
  transform:translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
}

/* keyframes */
@keyframes wheel-drop{
  0%   { opacity:0; transform:translate(-50%,0); }
  20%  { opacity:1; }
  60%  { transform:translate(-50%,22px); opacity:1; }
  100% { transform:translate(-50%,32px); opacity:0; }
}

/* mode sombre doux sur mobile */
@media (max-width: 480px){
  #hero .scroll-cue{ width:52px; height:82px; border-radius:30px; }
}

/* Forcer l'absolu à se référer à la section #hero */
#hero { position: relative !important; min-height: 80vh; }

#hero > .elementor-container,
#hero .elementor-row,
#hero .elementor-column,
#hero .elementor-widget-wrap,
#hero .elementor-widget,
#hero .elementor-widget-container {
  position: static !important;
}

/* Masque complètement les flèches quand elles sont disabled */
.swiper-button-disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.8);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}


/* 🔧 Uniformiser la hauteur des images du carousel MPS */
.elementor-element-aef959e .swiper-slide-inner{
  height: 600px;          /* hauteur que tu veux pour toutes les photos */
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.elementor-element-aef959e .swiper-slide-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* recadre proprement */
  object-position: center;
  display:block;
}

@media (max-width: 767px){
  .elementor-element-aef959e .swiper-slide-inner{
    height: 320px;
  }
}


/* Assurer un conteneur de référence pour placer le bouton */
#hero{
  position: relative;
}

/* Le hero sert de conteneur de position */
#hero{
  position: relative;
}

#hero .bg-video-toggle{
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 50;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.4);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, background .3s ease;
}

#hero .bg-video-toggle:hover {
  background: rgba(0,0,0,.6);
}

#hero .bg-video-toggle.is-visible{
  opacity: 1;
  pointer-events: auto;
}

/* Icônes SVG */
#hero .bg-video-toggle svg{
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}


#qodef-page-inner {
    padding-bottom: 0 !important;
}

@font-face {
  font-family: 'MyFont';
  src: url('/wp-content/themes/brok-child/assets/fonts/holidayold.woff2') format('woff2'),
       url('/wp-content/themes/brok-child/assets/fonts/holidayold.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* Icône menu mobile – couleur par défaut */
.qodef-mobile-header-opener .qodef-m-icon svg rect,
.qodef-mobile-header-opener .qodef-m-icon svg path {
  fill: #A5A5A6; /* cuivre MPS */
}

/* Optionnel : au hover */
.qodef-mobile-header-opener:hover svg rect,
.qodef-mobile-header-opener:hover svg path {
  fill: #A5A5A6;
}


/* EDIT LIGHTBOX */

/* Masquer toute la barre d’actions Elementor (share, zoom, fullscreen, compteur) */
.elementor-lightbox .elementor-slideshow__header {
    display: none !important;
}

/* S'assurer que la croix reste visible */
.elementor-lightbox .elementor-lightbox-close-button {
    display: flex !important;
    opacity: 0.85;
    transition: opacity .25s ease;
}

.elementor-lightbox .elementor-lightbox-close-button:hover {
    opacity: 1;
}

/* ===== 1) Désactive les overlays Qode (le "truc par-dessus") ===== */
html body .qodef-theme-button::before,
html body .qodef-theme-button::after,
html body button[type="submit"]::before,
html body button[type="submit"]::after,
html body input[type="submit"]::before,
html body input[type="submit"]::after,
html body .woocommerce a.button::before,
html body .woocommerce a.button::after,
html body .woocommerce button.button::before,
html body .woocommerce button.button::after,
html body .woocommerce input.button::before,
html body .woocommerce input.button::after {
  content: none !important;
  display: none !important;
}

/* ===== 2) Style "MPS" pour tous les submit (comme ton bouton) ===== */
html body button[type="submit"],
html body input[type="submit"],
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .qodef-theme-button,
html body .qodef-404-button .qodef-button {
  display: inline-block !important;
  padding: 14px 34px !important;
  background: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 400 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background .25s ease, transform .2s ease !important;
  cursor: pointer !important;
}

/* ===== 3) Hover identique ===== */
html body button[type="submit"]:hover,
html body input[type="submit"]:hover,
html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover,
html body .woocommerce input.button:hover,
html body .qodef-theme-button:hover,
html body .qodef-404-button .qodef-button:hover {
  background: #111 !important;
  transform: translateY(-1px) !important;
}

/* ===== Cacher le SVG "+" dans le bouton 404 ===== */
.qodef-404-button .qodef-button svg {
  display: none;
}
