/* Thème enfant L'Espace Fantastik (parent : classic) - Ordiland - Virginie Tschirret Feistl */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --ef-ink: #1F1A1C;
  --ef-night: #1A0D11;
  --ef-wine: #4A0F1A;
  --ef-red: #D90B12;
  --ef-red-dark: #B0070D;
  --ef-gold: #F5B301;
  --ef-orange: #E56A00;
  --ef-bg: #F5F2F3;
  --ef-muted: #5A4E52;
  --ef-line: #EDE6E8;
  --ef-radius: 18px;
  --ef-shadow: 0 0 10px rgba(26, 13, 17, .09);
  --ef-grad: linear-gradient(90deg, #1A0D11 0%, #4A0F1A 58%, #C8101B 100%);
}

/* ---------- Base ---------- */
body, #wrapper { background: var(--ef-bg); }
body { font-family: Manrope, system-ui, sans-serif; color: var(--ef-ink); font-size: 1rem; line-height: 1.55; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .products-section-title, .page-header h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ef-night); text-transform: none; letter-spacing: -.01em;
}
a { color: var(--ef-red-dark); }
a:hover, a:focus { color: var(--ef-night); }

.btn-primary, .btn-primary:disabled {
  background: var(--ef-red); border-color: var(--ef-red); color: #fff; border-radius: 999px; font-weight: 700; text-transform: none; box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus { background: var(--ef-red-dark); border-color: var(--ef-red-dark); }
.btn-secondary, .btn-tertiary { border-radius: 999px; font-weight: 700; }
.form-control, .custom-select { border-radius: 12px; }

.block-category, .card, #content.page-content, .page-content.card, #js-product-list-top, .products-selection,
.contact-rich, .contact-form, #left-column .block-categories, #left-column .facet, #search_filters, .product-miniature .thumbnail-container {
  border-radius: var(--ef-radius);
}
.card, .block-category, .page-content.card, .contact-form, .contact-rich, #search_filters, .block-categories {
  border: 0; box-shadow: var(--ef-shadow);
}
.product-miniature .thumbnail-container { box-shadow: var(--ef-shadow); overflow: hidden; }
.product-miniature .product-title a { color: var(--ef-night); font-weight: 700; }
.product-miniature .price, .product-price, .current-price-value { color: var(--ef-red-dark); font-weight: 800; }
.breadcrumb { background: transparent; }

/* ---------- En-tête ---------- */
#header { background: #fff; box-shadow: none; }
#header .header-nav.ef-header { background: #fff; border-bottom: 0; max-height: none; margin: 0; }
.ef-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.ef-header__logo img { height: 64px; width: auto; }
.ef-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ef-header__phone { color: var(--ef-ink); font-weight: 700; text-decoration: none; }
.ef-header__nav2 { display: flex; align-items: center; }
.ef-header__nav2 .user-info, .ef-header__nav2 .blockcart { margin: 0; }
#header .ef-header__nav2 a, #header .ef-header__nav2 .blockcart { color: var(--ef-ink); }
#header .ef-header__nav2 .blockcart { background: transparent; }
#header .ef-header__nav2 .blockcart.active { background: var(--ef-bg); border-radius: 999px; }

.ef-menubar { background: var(--ef-grad); padding: 0; }
#header .ef-menubar .header-top-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 24px; float: none; width: 100%; }
#header .ef-menubar .menu { display: flex; justify-content: center; margin: 0; padding: 0; width: auto; }
#header .ef-menubar .top-menu[data-depth="0"] > li > a {
  color: #fff; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; padding: 14px 12px;
}
#header .ef-menubar .top-menu[data-depth="0"] > li > a:hover,
#header .ef-menubar .top-menu[data-depth="0"] > li:hover > a { color: var(--ef-gold); }
#header .ef-menubar .top-menu .sub-menu { border-radius: 0 0 var(--ef-radius) var(--ef-radius); box-shadow: 0 10px 24px rgba(26,13,17,.18); }
#header .ef-menubar .top-menu .sub-menu a { color: var(--ef-ink); text-transform: none; }
#header .ef-menubar .top-menu .sub-menu a:hover { color: var(--ef-red); }
#header .ef-menubar #search_widget { min-width: 220px; margin: 8px 0; float: none; }
#header .ef-menubar #search_widget form input[type=text] { border-radius: 999px; border: 0; background: rgba(255,255,255,.95); padding-left: 16px; }
#header .ef-menubar #search_widget form i { color: var(--ef-muted); }

@media (max-width: 767px) {
  #header .header-nav.ef-header { padding: 6px 0; }
  #header .header-nav .top-logo img { max-height: 48px; width: auto; }
  #mobile_top_menu_wrapper { background: #fff; }
  #mobile_top_menu_wrapper .top-menu a { color: var(--ef-ink); }
  #header .ef-menubar .header-top-right { justify-content: stretch; }
  #header .ef-menubar #search_widget { width: 100%; margin: 10px 0; }
}

/* ---------- Pied de page ---------- */
#footer { background: var(--ef-night); color: #E6D9DD; padding-top: 0; }
#footer .footer-container { background: var(--ef-night); box-shadow: none; padding-top: 32px; margin-top: 0; }
#footer .block_newsletter { background: var(--ef-wine); color: #fff; border-radius: var(--ef-radius); }
#footer .block_newsletter p, #footer .block_newsletter #block-newsletter-label { color: #fff; }
.ef-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.15); }
.ef-footer__brand img { height: 56px; width: auto; }
.ef-footer__contact { flex: 1 1 280px; }
.ef-footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; }
#footer a, .ef-footer a { color: #fff; }
#footer a:hover { color: var(--ef-gold); }
#footer .h3, #footer .h4, #footer h3, #footer h4, #footer .block-contact-title, #footer .links .h3 { color: #fff; font-family: 'Space Grotesk', sans-serif; text-transform: none; }
#footer .links li a, #footer .block-contact { color: #E6D9DD; }
.ef-footer__copy { text-align: center; color: #BFAFB4; font-size: 14px; margin: 16px 0 24px; }

/* ---------- Composants ---------- */
.ef-home { padding-top: 8px; }
.ef-card { background: #fff; border-radius: var(--ef-radius); box-shadow: var(--ef-shadow); }
.ef-h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; color: var(--ef-night); margin: 0 0 10px; }
.ef-h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--ef-night); margin: 0 0 8px; }
.ef-rule { display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--ef-red); margin-bottom: 14px; }
.ef-muted { color: var(--ef-muted); }
.ef-red { color: var(--ef-red); }
.ef-lead { font-size: 18px; }
.ef-strong { font-weight: 700; color: var(--ef-night); }
.ef-big { font-weight: 800; font-size: 20px; color: var(--ef-night); text-decoration: none; }
.ef-link { font-weight: 800; }
.ef-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ef-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; }
.ef-btn:hover, .ef-btn:focus { text-decoration: none; }
.ef-btn--orange { background: linear-gradient(135deg, #E56A00 0%, #F7A23B 100%); color: #2A1A00; box-shadow: 0 4px 12px rgba(229,106,0,.28); }
.ef-btn--orange:hover { color: #2A1A00; filter: brightness(1.05); }
.ef-btn--white { background: #fff; color: var(--ef-night); }
.ef-btn--white:hover { color: var(--ef-red); }
.ef-btn--red { background: var(--ef-red); color: #fff; font-weight: 700; }
.ef-btn--red:hover { background: var(--ef-red-dark); color: #fff; }
.ef-btn--light { background: var(--ef-bg); color: var(--ef-night); font-weight: 700; }
.ef-btn--light:hover { color: var(--ef-red); }
.ef-pill { background: var(--ef-bg); color: var(--ef-ink); font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.ef-pill:hover { color: var(--ef-red); text-decoration: none; }
.ef-badge { display: inline-block; background: var(--ef-gold); color: #2A1A00; font-weight: 800; font-size: 13px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.ef-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-chip { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; box-shadow: var(--ef-shadow); }

/* Bandeau */
.ef-hero { display: flex; flex-wrap: wrap; border-radius: var(--ef-radius); overflow: hidden; background: linear-gradient(120deg, #1A0D11 0%, #4A0F1A 55%, #C8101B 100%); color: #fff; margin-bottom: 24px; }
.ef-hero__text { flex: 1 1 420px; min-width: 0; padding: 48px 44px; }
.ef-hero__title { color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; }
.ef-hero__lead { font-size: 19px; max-width: 520px; color: #F3E3E6; margin: 0 0 28px; }
.ef-hero__img { flex: 1 1 380px; min-width: 0; min-height: 320px; }
.ef-hero__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

/* Qui sommes-nous */
.ef-about { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 32px; margin-bottom: 20px; }
.ef-about__fee { height: 190px; width: auto; margin: -10px 0 -18px; filter: drop-shadow(0 6px 10px rgba(26,13,17,.18)); }
.ef-about__text { flex: 999 1 420px; min-width: 0; }
.ef-about__text p { font-size: 18px; margin: 0; }

/* Chiffres */
.ef-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 8px; }
.ef-stat { padding: 20px 24px; font-weight: 600; display: flex; flex-direction: column; }
.ef-stat__num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 40px; color: var(--ef-red); line-height: 1.1; }

/* Sections */
.ef-section { padding: 44px 0 8px; }
.ef-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.ef-section__head p { margin: 0; max-width: 640px; }
.ef-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ef-game { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; min-height: 80px; text-decoration: none; color: var(--ef-ink); transition: transform .15s ease; }
.ef-game:hover { transform: translateY(-2px); text-decoration: none; }
.ef-game__name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: var(--ef-night); }
.ef-game .ef-muted { font-size: 14px; font-weight: 600; }
.ef-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.ef-soiree { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ef-soiree p { flex-grow: 1; margin: 0; }
.ef-soiree .ef-btn { align-self: flex-start; }
.ef-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #1A0D11 0%, #4A0F1A 100%); display: flex; align-items: center; justify-content: center; }

/* Prochains événements (module produits mis en avant) */
.ef-events .featured-products > h2, .ef-events .featured-products .products-section-title { display: none; }
.ef-events .featured-products .all-product-link { font-weight: 800; }

/* Le café */
.ef-cafe { display: flex; flex-wrap: wrap; gap: 32px; }
.ef-cafe__main { flex: 1 1 440px; min-width: 0; }
.ef-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ef-photos img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--ef-radius); display: block; }
.ef-infos { flex: 1 1 320px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.ef-infos p { margin: 0; }
.ef-hours { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0; }
.ef-hours dt { font-weight: 400; }
.ef-hours dd { font-weight: 700; margin: 0; }
.ef-map { width: 100%; height: 200px; border: 0; border-radius: 12px; }

/* Réserver */
.ef-reserve { max-width: 860px; margin: 48px auto 16px; padding: 36px; }
.ef-reserve p { margin: 0 0 20px; }

@media (max-width: 767px) {
  .ef-hero__text { padding: 32px 22px; }
  .ef-about { padding: 22px; }
  .ef-about__fee { height: 140px; margin: 0; }
  .ef-photos { grid-template-columns: 1fr 1fr; }
  .ef-photos img { height: 160px; }
  .ef-reserve { padding: 24px; }
}

/* Correctifs logo */
#header .ef-header__logo { flex: 0 0 auto; max-width: 240px; }
#header .ef-header__logo img, #header .ef-header__logo .logo { height: 64px !important; width: auto !important; max-width: none; }
#header .ef-header__nav2 #_desktop_user_info, #header .ef-header__nav2 #_desktop_cart { float: none; }

#footer .myaccount-title, #footer .myaccount-title a, #footer .block-contact-title { color: #fff !important; }
.ef-agenda-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; }
.ef-agenda-cta p { margin: 0; font-size: 18px; flex: 1 1 360px; }
