/* Essaouira Cooking â€” Event Booking Category Hero v6 */

body.com_eventbooking.view-category .t4-masthead,
body.com_eventbooking.view-category .ja-masthead,
body.com_eventbooking.view-category .page-masthead,
body.com_eventbooking.view-category .t4-section.t4-masthead,
body.com_eventbooking.view-category .page-header,
body.com_eventbooking.view-category .eb-page-heading,
body.com_eventbooking.view-category .eb-category-description,
#eb-category-page-columns > .eb-page-heading,
#eb-category-page-columns > .eb-category-description {
  display: none !important;
}

body.com_eventbooking.view-category #t4-main-body,
body.com_eventbooking.view-category .t4-main-body,
body.com_eventbooking.view-category .t4-section-inner.container,
body.com_eventbooking.view-category .t4-row,
body.com_eventbooking.view-category .t4-col,
body.com_eventbooking.view-category main,
body.com_eventbooking.view-category .component {
  max-width: none !important;
  width: 100% !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.com_eventbooking.view-category .t4-section-inner.container,
body.com_eventbooking.view-category .t4-col,
body.com_eventbooking.view-category .component {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.com_eventbooking.view-category {
  overflow-x: hidden;
}

.ec-category-hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  margin: 0 0 80px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.68)),
    var(--ec-category-image) center center / cover no-repeat;
}

.ec-category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,250,243,.17), transparent 34%),
    linear-gradient(90deg, rgba(76,12,71,.38), transparent 58%),
    linear-gradient(180deg, rgba(44,33,24,.05), rgba(44,33,24,.75));
  z-index: 1;
  pointer-events: none;
}

.ec-category-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42));
  pointer-events: none;
}

.ec-category-hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 96px 24px;
  text-align: center;
  color: #fff;
}

.ec-category-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ec-category-hero h1 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.045em;
  text-shadow: 0 8px 32px rgba(0,0,0,.38);
}

.ec-category-hero blockquote {
  max-width: 700px;
  margin: 34px auto 0;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
  font-style: italic;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.ec-category-hero cite {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .03em;
}

.ec-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 32px auto 0;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 700;
}

.ec-hero-meta span {
  position: relative;
  white-space: nowrap;
}

.ec-hero-meta span + span::before {
  content: "â€¢";
  position: absolute;
  left: -14px;
  color: rgba(255,255,255,.55);
}

.ec-category-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 38px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.34);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, background-color .25s ease;
}

.ec-category-scroll:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.20);
}

.ec-category-scroll strong {
  display: inline-flex;
  animation: ecCategoryBounce 1.8s infinite;
}

@keyframes ecCategoryBounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

#eb-category-page-columns {
  max-width: 1180px;
  margin: 0 auto !important;
  padding-left: 22px;
  padding-right: 22px;
}

.ec-explore-nav {
  max-width: 1040px;
  margin: 78px auto 26px;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(76,12,71,.06), transparent 42%),
    #fffaf3;
  border: 1px solid rgba(76,12,71,.10);
  box-shadow: 0 20px 55px rgba(44,33,24,.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.ec-nav-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #4c0c47 !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(44,33,24,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.ec-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(44,33,24,.10);
}

.ec-nav-link--disabled {
  opacity: .35;
  pointer-events: none;
}

.ec-nav-center {
  text-align: center;
  color: #4c0c47;
}

.ec-nav-center span {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.ec-nav-center small {
  display: block;
  margin-top: 4px;
  color: rgba(44,33,24,.62);
  font-size: .82rem;
  font-weight: 700;
}

#eb-category-page-columns > .pagination {
  display: none !important;
}

@media (max-width: 767px) {
  .ec-category-hero {
    min-height: 520px;
    margin-bottom: 48px !important;
    background-position: center center;
  }

  .ec-category-hero__content {
    padding: 76px 20px;
  }

  .ec-category-hero h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  .ec-category-hero blockquote {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .ec-hero-meta {
    display: grid;
    gap: 7px;
    font-size: .86rem;
  }

  .ec-hero-meta span + span::before {
    display: none;
  }

  .ec-category-scroll {
    min-height: 46px;
    margin-top: 28px;
    padding: 0 22px;
    font-size: .9rem;
  }

  #eb-category-page-columns {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ec-explore-nav {
    margin: 52px 14px 22px;
    padding: 22px;
    border-radius: 28px;
    grid-template-columns: 1fr;
  }

  .ec-nav-link {
    width: 100%;
  }

  .ec-nav-center {
    order: -1;
  }
}

/* ==========================================================
   ESSAOUIRA COOKING
   EVENT BOOKING MOBILE FIX v1
   ========================================================== */

/* Empêche tout débordement horizontal */
html,
body{
    overflow-x:hidden !important;
    max-width:100%;
}

/* Le wrapper principal ne doit jamais dépasser */
#t4-wrapper,
.t4-wrapper,
.t4-content,
.t4-main-body,
#t4-main-body{
    overflow-x:hidden !important;
    width:100%;
    max-width:100%;
}

/* Les lignes Bootstrap ne doivent jamais dépasser */
.row{
    margin-left:0 !important;
    margin-right:0 !important;
}

/* Les colonnes ne doivent jamais agrandir la page */
.row > *{
    min-width:0;
}

/* Hero mobile */
@media (max-width:767px){

    .ec-category-hero{

        width:100vw !important;
        max-width:100vw !important;

        margin-left:calc(50% - 50vw) !important;
        margin-right:calc(50% - 50vw) !important;

        overflow:hidden !important;
    }

    .ec-category-hero::before,
    .ec-category-hero::after{
        max-width:100%;
    }

}

/* Les containers Event Booking restent centrés */
.eb-container,
#eb-category-page,
#eb-events{

    width:100%;
    max-width:1320px;

    margin-left:auto;
    margin-right:auto;

    overflow:hidden;
}

/* Footer */
#t4-footer,
.t4-footer{

    width:100%;
    max-width:100%;

    margin:0 auto !important;

    clear:both;
}

/* Sécurité supplémentaire */
img,
video,
iframe{

    max-width:100%;
    height:auto;

}
