/* E-ProMarket — couche "fluid" (audit apple-design, 2026-10-14)
   Fichier autonome : pour revenir en arrière, retirer la ligne epm-fluid dans
   application/views/frontend/inc/header.php. */

/* 1. Réponse immédiate : plus de transition "all 0.3s" sur les liens et boutons */
a, button, .btn, .nav-link, input[type="submit"] {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform !important;
  transition-duration: 150ms !important;
  transition-timing-function: ease !important;
}
.btn:active, button:active, input[type="submit"]:active,
.add_to_cart_btn:active, .order-btn:active {
  transform: scale(.97);
  transition-duration: 80ms !important;
}
a.quick_view:active, .items:active { transform: scale(.985); transition-duration: 80ms !important; }
html { -webkit-tap-highlight-color: transparent; }

/* 2. Vitrine : barre de navigation, ombre seulement quand le contenu passe dessous */
.home_page_navbar .homeMenuNav { border-bottom: 0 !important; }
.home_page_navbar { transition: box-shadow 200ms ease !important; }
.home_page_navbar.epm-scrolled { box-shadow: 0 1px 0 rgba(20,26,51,.06), 0 10px 24px -14px rgba(20,26,51,.35); }

/* 3. Vitrine : contenu visible tout de suite (pas d'apparition en cascade au défilement) */
html.epm-home [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* 4. FAQ : chevron vers le bas quand c'est fermé, vers le haut quand c'est ouvert */
.page_accordion_header { cursor: pointer; }
/* (arrow_down = glyphe vers le bas, arrow_up = glyphe vers le haut : il suffit d'annuler la rotation d'origine) */
.page_accordion_header::after { transform: none !important; }

/* 5. Tarifs : bouton d'action lisible */
#pricing .btn, #pricing a.btn { font-size: 15px !important; min-height: 48px; }

/* 6. Menu client : cibles tactiles de 44 px dans le panier */
.shopping_cart .cart_heading a,
.shopping_cart .remove_item {
  min-width: 44px; min-height: 44px;
  display: inline-flex !important; align-items: center; justify-content: center;
}
.shopping_cart input.qty { min-height: 44px; }

/* 7. Menu client : le panier glisse sur un voile, avec une courbe douce */
.shopping_cart { z-index: 1050 !important; }
.epm-scrim {
  position: fixed; inset: 0; z-index: 1049; background: #0b0f22;
  opacity: 0; pointer-events: none; transition: opacity 240ms ease;
}
.epm-scrim.on { opacity: .4; pointer-events: auto; }

/* 8. Menu client : le spinner ne bloque plus l'écran */
#preloader.epm-done { display: none !important; }

/* 9. Préférences du système */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:active, button:active, a.quick_view:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .homeMenuNav, .home_page_navbar { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  .home_page_navbar { box-shadow: 0 1px 0 #141a33 !important; }
}
/* ======================================================================
   10. Vitrine — refonte visible (prototype apple-design, phase 2)
   Tout est limité à html.epm-home (classe posée par epm-fluid.js).
   ====================================================================== */
html.epm-home { --epm-navy:#141a33; --epm-ink:#141a33; --epm-ink2:#4a5170; --epm-line:#e3e6ef; --epm-bg2:#f4f5f9; --epm-blue:#2f4fe0; --epm-amber:#f0a83c; }

/* Barre : verre plus léger, liens en pastilles */
html.epm-home .home_page_navbar { background: rgba(255,255,255,.72) !important; -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); }
html.epm-home .homeMenuNav { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.epm-home .homeMenuNav .nav-link { border-radius: 999px; padding: 8px 14px !important; }
html.epm-home .homeMenuNav .nav-item.active .nav-link { background: var(--epm-bg2); color: var(--epm-ink) !important; }

/* Héros : tient dans l'écran */
html.epm-home #hero.topHome_banner { padding-top: 72px !important; }
html.epm-home #hero .homeTopBanner { padding-top: 48px !important; padding-bottom: 56px !important; min-height: 0 !important; }

/* Rythme des sections : 96 px, titres resserrés */
html.epm-home section.default, html.epm-home #pricing, html.epm-home #contact { padding-top: 96px !important; padding-bottom: 96px !important; }
html.epm-home .features-heading { padding-top: 0 !important; margin-bottom: 40px !important; height: auto !important; min-height: 0 !important; }
html.epm-home .features-heading h2.heading-text { margin-bottom: 12px !important; letter-spacing: -.02em; }
html.epm-home .features-heading p { max-width: 36em; margin: 0 auto !important; padding-top: 0 !important; color: var(--epm-ink2); }
html.epm-home .home_top_banner { padding-top: 64px !important; padding-bottom: 32px !important; }

/* Un seul parcours en étapes : la section en double est retirée */
html.epm-home section.feature_area { display: none !important; }

/* Comment ça marche : cartes compactes */
html.epm-home #comment-ca-marche .single_service { border: 1px solid var(--epm-line) !important; border-radius: 18px !important; box-shadow: none !important; padding: 24px !important; height: auto !important; min-height: 0 !important; text-align: left !important; }
html.epm-home #comment-ca-marche .home_service_img { height: 88px !important; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 12px !important; }
html.epm-home #comment-ca-marche .home_service_img img { max-height: 80px !important; width: auto !important; }
html.epm-home #comment-ca-marche .single_serivce_area { margin-bottom: 16px !important; height: auto !important; }

/* Nos services : grille de cartes au lieu de six grands blocs alternés */
html.epm-home #services > .container { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
html.epm-home #services > .container > .row:first-child { grid-column: 1 / -1; margin: 0 !important; }
html.epm-home #services .home_service_mr { display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,26,51,.06), 0 6px 18px rgba(20,26,51,.07) !important; }
html.epm-home #services .home_service_mr > [class*="col-"] { max-width: 100% !important; flex: 0 0 auto !important; width: 100% !important; padding: 0 !important; }
html.epm-home #services .service_home_img, html.epm-home #services .service_home_img img { height: 180px !important; width: 100% !important; object-fit: cover; border-radius: 0 !important; }
html.epm-home #services .service_home_details { padding: 20px 22px 24px !important; text-align: left !important; }
html.epm-home #services .service_home_title, html.epm-home #services .service_home_title * { font-size: 1.1rem !important; line-height: 1.3 !important; margin-bottom: 6px !important; text-align: left !important; }
html.epm-home #services .service_home_details p { font-size: .95rem; line-height: 1.55; color: var(--epm-ink2); margin: 0; }

/* FAQ : liste centrée, sans illustration */
html.epm-home .accordion_area { max-width: 760px; margin: 0 auto; }
html.epm-home .faq_images { display: none !important; }
html.epm-home .accordion_area { width: 100%; }
html.epm-home .row > [class*="col-"]:has(> .accordion_area) { flex: 0 0 100% !important; max-width: 100% !important; }
html.epm-home .row > [class*="col-"]:has(> .faq_images) { display: none !important; }
html.epm-home .single_accordion { border-bottom: 1px solid var(--epm-line) !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; background: transparent !important; }
html.epm-home .page_accordion_header { min-height: 64px; display: flex !important; align-items: center; padding: 12px 52px 12px 4px !important; font-size: 1.05rem !important; position: relative; background: transparent !important; }
html.epm-home .page_accordion_header::after { position: absolute !important; right: 4px !important; top: 50% !important; margin-top: -16px !important; width: 32px; height: 32px; line-height: 32px !important; text-align: center; border-radius: 50%; background: var(--epm-bg2); }
html.epm-home .accordion_content { padding: 0 4px 20px !important; background: transparent !important; border: 0 !important; color: var(--epm-ink2); }

/* Tarifs : cartes arrondies, formule mise en avant */
html.epm-home #pricing .card { border-radius: 22px !important; border: 1px solid var(--epm-line) !important; box-shadow: none !important; }
html.epm-home #pricing .col-lg-4:nth-child(2) .card { box-shadow: 0 2px 6px rgba(20,26,51,.08), 0 24px 48px -12px rgba(20,26,51,.3) !important; border-color: transparent !important; }
html.epm-home #pricing .card-body { padding: 28px !important; }
html.epm-home #pricing .card-price { font-size: 2.4rem !important; letter-spacing: -.03em; }
html.epm-home #pricing .card-body li { margin-bottom: 8px !important; }

/* Contact et pied de page */
html.epm-home #contact form, html.epm-home #contact .contact-form, html.epm-home #contact .card { border-radius: 24px !important; }
html.epm-home #contact input, html.epm-home #contact textarea { min-height: 44px; border-radius: 12px !important; }

/* Tablette et téléphone */
@media (max-width: 991px) {
  html.epm-home #services > .container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 575px) {
  html.epm-home #services > .container { grid-template-columns: 1fr; }
  html.epm-home section.default, html.epm-home #pricing, html.epm-home #contact { padding-top: 64px !important; padding-bottom: 64px !important; }
  html.epm-home #hero .homeTopBanner { padding-top: 24px !important; }
}

/* ======================================================================
   11. Vitrine — démo interactive dans le téléphone (remplace l'image)
   ====================================================================== */
.home_left_img.epm-has-demo { display: block !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; width: auto !important; height: auto !important; position: relative; }
.epm-demo-phone { width: 300px; max-width: 100%; border-radius: 42px; padding: 9px; background: #0b0f22; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(255,255,255,.08); margin: 0 auto; }
.epm-demo-screen { position: relative; height: 600px; border-radius: 34px; overflow: hidden; isolation: isolate; }
.home_left_img.epm-has-demo > img { position: absolute; left: -84px; top: 340px; bottom: auto; z-index: 3; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.epm-demo-hint { text-align: center; color: #aab1cc; font-size: 13px; margin-top: 12px; }
@media (max-width: 991px) { .home_left_img.epm-has-demo > img { display: none; } }

.epm-demo { --ink:#141a33; --ink2:#4a5170; --ink3:#6b7190; --navy:#141a33; --blue:#2f4fe0; --amber:#f0a83c; --green:#178a55; --line:#e3e6ef; --bg2:#f4f5f9;
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg2); color: var(--ink);
  font: 400 15px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; -webkit-tap-highlight-color: transparent; }
.epm-demo *, .epm-demo *::before, .epm-demo *::after { box-sizing: border-box; }
.epm-demo button { font-family: inherit; }
.epm-demo h4, .epm-demo h5, .epm-demo button, .epm-demo strong { text-transform: none !important; letter-spacing: normal; }
.epm-demo .d-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 88px; scrollbar-width: none; }
.epm-demo .d-scroll::-webkit-scrollbar { display: none; }
.epm-demo .d-cover { height: 96px; background: linear-gradient(135deg, #c95a3a, #e08b3c); }
.epm-demo .d-head { padding: 0 14px 10px; margin-top: -30px; position: relative; }
.epm-demo .d-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--amber); color: #2a1a00; display: grid; place-items: center; font: 800 18px/1 "Bricolage Grotesque", Manrope, sans-serif; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(20,26,51,.12); }
.epm-demo .d-name { font: 800 21px/1.1 "Bricolage Grotesque", Manrope, sans-serif; letter-spacing: -.02em; margin: 8px 0 2px; color: var(--ink); }
.epm-demo .d-meta { font-size: 12px; color: var(--ink3); display: flex; gap: 6px; align-items: center; }
.epm-demo .d-dot { width: 7px; height: 7px; border-radius: 50%; background: #2dbb73; }
.epm-demo .d-tabs { position: sticky; top: 0; z-index: 5; background: rgba(244,245,249,.8); -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8); }
.epm-demo .d-tabs.edge { box-shadow: 0 8px 16px -12px rgba(20,26,51,.35); }
.epm-demo .d-strip { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 7px 10px; }
.epm-demo .d-strip::-webkit-scrollbar { display: none; }
.epm-demo .d-pill { position: absolute; top: 7px; left: 0; height: 36px; border-radius: 999px; background: var(--navy); z-index: 0; will-change: transform, width; }
.epm-demo .d-tab { position: relative; z-index: 1; flex: none; min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 13px; color: var(--ink2); cursor: pointer; transition: color 150ms ease; }
.epm-demo .d-tab[aria-selected="true"] { color: #fff; }
.epm-demo .d-tab:active { transform: scale(.95); }
.epm-demo .d-cat { padding: 12px 10px 2px; }
.epm-demo .d-cat h4 { font: 800 16px/1.2 "Bricolage Grotesque", Manrope, sans-serif; margin: 2px 4px 8px; color: var(--ink); }
.epm-demo .d-item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; margin-bottom: 7px; box-shadow: 0 1px 2px rgba(20,26,51,.06), 0 4px 12px rgba(20,26,51,.05); cursor: pointer; transition: transform 220ms cubic-bezier(.2,.9,.3,1); }
.epm-demo .d-item:active { transform: scale(.985); transition-duration: 80ms; }
.epm-demo .d-img { flex: none; width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.95); font: 800 16px/1 "Bricolage Grotesque", Manrope, sans-serif; }
.epm-demo .d-txt { flex: 1; min-width: 0; }
.epm-demo .d-iname { font-weight: 800; font-size: 13.5px; line-height: 1.25; color: var(--ink); }
.epm-demo .d-idesc { font-size: 11.5px; color: var(--ink3); line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.epm-demo .d-price { font-weight: 800; font-size: 13px; margin-top: 2px; color: var(--ink); }
.epm-demo .d-qty { margin-left: 5px; font-size: 11px; font-weight: 800; color: var(--blue); }
.epm-demo .d-add { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.epm-demo .d-add:active { transform: scale(.86); transition: transform 60ms ease-out; }
.epm-demo .d-add svg { pointer-events: none; }
.epm-demo .d-bar { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 8; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 14px; border: 0; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(20,26,51,.6); will-change: transform; }
.epm-demo .d-bar[hidden] { display: none; }
.epm-demo .d-count { min-width: 26px; height: 26px; border-radius: 999px; background: var(--amber); color: #2a1a00; display: grid; place-items: center; font-weight: 800; padding: 0 7px; }
.epm-demo .d-total { margin-left: auto; padding: 7px 10px; border-radius: 11px; background: rgba(255,255,255,.12); }
.epm-demo .d-fly { position: absolute; z-index: 20; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none; box-shadow: 0 4px 10px rgba(0,0,0,.25); will-change: transform; }
.epm-demo .d-scrim { position: absolute; inset: 0; z-index: 30; background: #0b0f22; opacity: 0; pointer-events: none; }
.epm-demo .d-scrim.on { pointer-events: auto; }
.epm-demo .d-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 86%; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(11,15,34,.25); transform: translateY(110%); will-change: transform; visibility: hidden; }
.epm-demo .d-sheet.vis { visibility: visible; }
.epm-demo .d-grab { flex: none; touch-action: none; cursor: grab; padding: 7px 14px 2px; user-select: none; -webkit-user-select: none; }
.epm-demo .d-handle { width: 38px; height: 5px; border-radius: 3px; background: #d3d6e2; margin: 2px auto 8px; }
.epm-demo .d-stitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.epm-demo .d-stitle h5 { font: 800 18px/1.2 "Bricolage Grotesque", Manrope, sans-serif; margin: 0; color: var(--ink); }
.epm-demo .d-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg2); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.epm-demo .d-x:active { transform: scale(.9); }
.epm-demo .d-sbody { overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 12px; }
.epm-demo .d-sfoot { flex: none; padding: 10px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
.epm-demo .d-bigimg { height: 140px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 800 40px/1 "Bricolage Grotesque", Manrope, sans-serif; margin-bottom: 12px; }
.epm-demo .d-ddesc { color: var(--ink2); margin: 4px 0 12px; font-size: 13.5px; }
.epm-demo .d-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg2); border-radius: 999px; padding: 2px; }
.epm-demo .d-stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(20,26,51,.12); font-size: 16px; }
.epm-demo .d-stepper button:active { transform: scale(.88); }
.epm-demo .d-stepper output { min-width: 22px; text-align: center; font-weight: 800; }
.epm-demo .d-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.epm-demo .d-line:last-child { border-bottom: 0; }
.epm-demo .d-line .d-img { width: 40px; height: 40px; font-size: 13px; border-radius: 9px; }
.epm-demo .d-lname { font-weight: 700; font-size: 13px; line-height: 1.25; }
.epm-demo .d-lprice { font-size: 11.5px; color: var(--ink3); }
.epm-demo .d-sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.epm-demo .d-wa, .epm-demo .d-primary { width: 100%; min-height: 48px; border-radius: 14px; border: 0; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: #fff; }
.epm-demo .d-wa { background: var(--green); }
.epm-demo .d-primary { background: var(--navy); }
.epm-demo .d-wa:active, .epm-demo .d-primary:active { transform: scale(.97); transition: transform 80ms ease-out; }
.epm-demo .d-done { text-align: center; padding: 10px 0 2px; }
.epm-demo .d-doneico { width: 52px; height: 52px; border-radius: 50%; background: #e3f6ec; color: var(--green); display: grid; place-items: center; margin: 0 auto 10px; }
.epm-demo .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.epm-demo :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .epm-demo .d-item:active, .epm-demo .d-add:active, .epm-demo .d-tab:active { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .epm-demo .d-tabs { background: #f4f5f9; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ======================================================================
   12. Menu client — bouton « + », ajout direct, panier en feuille du bas
   ====================================================================== */
a.quick_view .addIcon { min-width: 44px; min-height: 44px; border-radius: 50% !important; display: inline-flex !important; align-items: center; justify-content: center; transition: transform 200ms cubic-bezier(.2,.9,.3,1), background-color 150ms ease !important; }
a.quick_view .addIcon:active { transform: scale(.86); transition-duration: 60ms !important; }
a.quick_view .addIcon { flex: none !important; margin-right: 8px; }
a.quick_view .item__details .itemDetailsLeft { flex: 1 1 auto; min-width: 0; }
a.quick_view .addIcon.epm-busy { animation: epm-pulse 700ms ease-in-out infinite; }
a.quick_view .addIcon.epm-added { background: #178a55 !important; color: #fff !important; transform: scale(1.08); }
@keyframes epm-pulse { 50% { transform: scale(.9); opacity: .7; } }

/* Pendant l'ajout direct, la fiche du plat reste invisible */
html.epm-quick #itemModal, html.epm-quick .modal-backdrop { opacity: 0 !important; pointer-events: none !important; transition: none !important; }

/* Panier en feuille du bas (téléphone) */
@media (max-width: 767px) {
  .shopping_cart.epm-sheet {
    left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
    width: 100% !important; max-width: 100% !important; height: 78vh !important;
    border-radius: 22px 22px 0 0 !important; box-shadow: 0 -10px 40px rgba(11,15,34,.25) !important;
    will-change: transform; overflow: hidden;
  }
  .shopping_cart.epm-sheet .cart_heading { touch-action: none; cursor: grab; position: relative; padding-top: 18px !important; }
  .shopping_cart.epm-sheet .cart_heading::before {
    content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #d3d6e2;
  }
  .shopping_cart.epm-sheet .shopping_cart_content { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  a.quick_view .addIcon.epm-busy { animation: none; opacity: .6; }
  a.quick_view .addIcon:active { transform: none; }
}