/* Google Fonts remplacées par CaviarDreams (locale) */



/**

 * SASU ABCduWeb – Header CSS v2.0

 * position: fixed sur topbar ET header → fonctionne sur TOUTES les pages Divi

 */



/* ── Variables ─────────────────────────────────────────────── */

:root {

  /* --als-topbar-bg, --als-topbar-text, --als-header-bg et --als-nav-text sont définis

     uniquement via PHP dans inc/customizer.php (wp_head priority 20)

     pour éviter tout conflit de cache */

  --als-accent      : #8ab734;

  --als-accent-light: #f0f5e8;

  --als-mega-bg     : #ffffff;

  --als-border      : #e8e8e8;

  --als-topbar-h    : 38px;

  --als-header-h    : 76px;

  --als-header-h-mob: 60px;

  --als-shadow      : 0 2px 20px rgba(0,0,0,0.08);

  --als-font        : 'CaviarDreams', 'Manrope', sans-serif;

  --als-font-serif  : 'CaviarDreams', sans-serif;

}





/* ── Reset Divi natif ───────────────────────────────────────── */

#main-header, #top-header, .et-fixed-header { display: none !important; }



/* Neutralise TOUS les paddings Divi sur #page-container */

#page-container,

body.et_fixed_nav #page-container,

body.et_fixed_nav.et_non_fixed_nav #page-container {

  padding-top: 0 !important;

  margin-top : 0 !important;

  overflow-x : clip !important;

}



/* ── Spacer ─────────────────────────────────────────────────── */

#als-header-spacer {

  display       : block;

  width         : 100%;

  /* Desktop : topbar + header.

     PAS besoin d'inclure la barre admin car html.margin-top la compense déjà. */

  height        : calc(var(--als-topbar-h) + var(--als-header-h));

  min-height    : 1px;

  flex-shrink   : 0;

  pointer-events: none;

}

@media (max-width: 960px) {

  /* Mobile : header seul (topbar masquée sur mobile) */

  #als-header-spacer { height: var(--als-header-h-mob); }



  /* Sur mobile, le header ALS doit toujours passer au-dessus de tout */

  #header-als {

    z-index: 1010 !important;

    /* top géré par JS via setProperty !important */

  }



  /* Divi page-title-bar : passer derrière notre header */

  #page-title-bar {

    position : relative;

    z-index  : 1 !important;

  }



  /* Divi top-header natif : masquer complètement sur mobile */

  #top-header,

  #main-header.et-fixed-header,

  #main-header {

    display: none !important;

  }

}



/* ══════════════════════════════════════════════════════════════

   TOPBAR — position: fixed

══════════════════════════════════════════════════════════════ */

#topbar-als {

  background     : var(--als-topbar-bg);

  min-height     : var(--als-topbar-h);

  display        : flex;

  align-items    : center;

  justify-content: center;

  flex-wrap      : wrap;

  padding        : 0 20px;

  position       : fixed;

  top            : 0;

  left           : 0;

  right          : 0;

  z-index        : 1002;

  max-height     : var(--als-topbar-h);

  overflow       : hidden;

  opacity        : 1;

  transition     : max-height .35s ease, opacity .25s ease;

}

#topbar-als.hidden { max-height: 0; height: 0; overflow: hidden; opacity: 0; padding: 0; min-height: 0; }



.topbar-item {

  display        : inline-flex;

  align-items    : center;

  gap            : 7px;

  color          : var(--als-topbar-text);

  font-family    : var(--als-font);

  font-size      : 11.5px;

  font-weight    : 500;

  letter-spacing : 0.04em;

  text-decoration: none;

  white-space    : nowrap;

  padding        : 8px 0;

}

.topbar-item:hover { color: #fff; }

.topbar-icon  { font-size: 13px; }

.topbar-stars { color: #f4c542; letter-spacing: 1px; font-size: 11px; }

.topbar-phone, .topbar-chrono { font-size: 13px; opacity: 0.85; vertical-align: middle; line-height: 1; }



.topbar-free-text {

  letter-spacing : 0.05em;

  text-align     : center;

  flex           : 1;

  justify-content: inherit;

}

.topbar-free-text a {

  color: inherit; font-weight: 700;

  text-decoration: underline; text-underline-offset: 2px;

  transition: opacity .2s;

}

.topbar-free-text a:hover { opacity: .8; }

.topbar-free-text strong  { font-weight: 700; }

.topbar-free-text em      { font-style: italic; }



.topbar-sep {

  width: 1px; height: 16px;

  background: rgba(255,255,255,0.2);

  margin: 0 16px; flex-shrink: 0;

}

#topbar-als .topbar-sep:last-child { display: none; }



/* ══════════════════════════════════════════════════════════════

   HEADER — position: fixed

   top contrôlé par JS (topbar-h au départ, 0 quand scrollé)

══════════════════════════════════════════════════════════════ */

#header-als {

  background     : var(--als-header-bg);

  height         : var(--als-header-h);

  display        : flex;

  align-items    : center;

  justify-content: center;

  gap            : 40px;

  padding        : 0 40px;

  position       : fixed;

  top            : 0;

  left           : 0;

  right          : 0;

  z-index        : 1001;

  box-shadow     : var(--als-shadow);

  transition     : box-shadow .35s ease,

                   height .35s ease,

                   border-radius .35s ease,

                   margin .35s ease,

                   padding .35s ease ease;

  border-radius  : 0;

  margin         : 0;

}



/* Pill desktop au scroll */

#header-als.scrolled {

  height        : 62px;

  /* top géré par JS (setProperty !important) */

  margin        : 0 10px;

  border-radius : 0 0 15px 15px;

  box-shadow    : 0 6px 28px rgba(0,0,0,.18);

  padding       : 0 30px;

}



.als-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }

.als-logo-img { max-height: 54px; width: auto; transition: max-height .3s; }

#header-als.scrolled .als-logo-img { max-height: 42px; }

.als-logo-text { display: flex; flex-direction: column; line-height: 1; }

.als-logo-main { font-family: var(--als-font-serif); font-style: italic; font-size: 18px; color: #3a3a3a; }

.als-logo-sub  { font-family: var(--als-font); font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--als-accent); margin-top: 3px; }



/* ── Nav desktop ─────────────────────────────────────────────── */

#nav-als {

  display: flex; align-items: center; gap: 2px;

  list-style: none; margin: 0; padding: 0;

  height: var(--als-header-h); transition: height .3s ease;

}

#header-als.scrolled #nav-als { height: 62px; }

#nav-als > .nav-item { position: relative; height: 100%; display: flex; align-items: center; }

#nav-als > .nav-item > a {

  display: inline-flex; align-items: center; gap: 5px;

  padding: 0 13px; height: 100%;

  color: var(--als-nav-text);

  font-family: var(--als-font); font-size: 13px; font-weight: 600;

  letter-spacing: .03em; text-decoration: none; white-space: nowrap;

  transition: color .2s; position: relative;

}

#nav-als > .nav-item > a::after {

  content: ''; position: absolute; bottom: 0; left: 13px; right: 13px;

  height: 3px; background: var(--als-accent);

  transform: scaleX(0); transition: transform .25s ease; border-radius: 2px 2px 0 0;

}

#nav-als > .nav-item:hover > a,

#nav-als > .nav-item > a:focus { color: var(--als-accent); }

#nav-als > .nav-item:hover > a::after { transform: scaleX(1); }



.nav-chevron { width: 10px; height: 10px; transition: transform .25s; opacity: .5; flex-shrink: 0; }

#nav-als > .nav-item:hover .nav-chevron { transform: rotate(180deg); opacity: 1; }



.nav-badge {

  background: var(--als-accent); color: #fff;

  font-size: 8px; font-weight: 700; letter-spacing: .08em;

  text-transform: uppercase; padding: 2px 5px; border-radius: 3px;

}



/* ── Dropdown simple ─────────────────────────────────────────── */

.dropdown-simple {

  position: absolute; top: 100%; left: 0;

  background: var(--als-mega-bg);

  border: 1px solid var(--als-border);

  border-top: 3px solid var(--als-accent);

  border-radius: 0 0 8px 8px;

  min-width: 220px; padding: 10px 0;

  list-style: none; margin: 0;

  opacity: 0; visibility: hidden;

  transform: translateY(6px); transition: all .22s ease;

  box-shadow: 0 8px 32px rgba(0,0,0,.1); z-index: 200;

}

#nav-als > .nav-item:hover .dropdown-simple { opacity: 1; visibility: visible; transform: translateY(0); }

#header-als.scrolled .dropdown-simple { border-radius: 0 0 12px 12px; }

.dropdown-simple li { list-style: none; }

.dropdown-simple li a {

  display: block; padding: 9px 20px; color: #555;

  font-family: var(--als-font); font-size: 12.5px; font-weight: 500;

  text-decoration: none; transition: background .15s, color .15s, padding-left .15s;

}

.dropdown-simple li a:hover { background: var(--als-accent-light); color: var(--als-accent); padding-left: 26px; }



/* ── Mega-menu — fixed, top mis à jour par JS ────────────────── */

.megamenu {

  position: fixed; left: 0; right: 0;

  top: calc(var(--als-topbar-h) + var(--als-header-h));

  background: var(--als-mega-bg);

  border-top: 3px solid var(--als-accent);

  box-shadow: 0 12px 40px rgba(0,0,0,.12);

  padding: 30px 60px 34px;

  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px;

  opacity: 0; visibility: hidden; transform: translateY(-4px);

  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;

  z-index: 999; border-radius: 0;

}

#nav-als > .nav-item:hover .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }



.mega-col h4 {

  font-family: var(--als-font); font-size: 10px; font-weight: 700;

  letter-spacing: .15em; text-transform: uppercase; color: var(--als-accent);

  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--als-border);

}

.mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }

.mega-col ul a {

  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px;

  color: #555; font-family: var(--als-font); font-size: 12.5px; font-weight: 500;

  text-decoration: none; transition: background .15s, color .15s;

}

.mega-col ul a:hover { background: var(--als-accent-light); color: var(--als-accent); }

.item-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }



/* ── Actions ─────────────────────────────────────────────────── */

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.action-btn {

  background: none; border: none; cursor: pointer;

  display: inline-flex; align-items: center; gap: 5px;

  color: var(--als-nav-text); font-family: var(--als-font); font-size: 12px; font-weight: 600;

  transition: color .2s; text-decoration: none; padding: 4px; position: relative;

}

.action-btn:hover { color: var(--als-accent); }

.action-btn svg { width: 20px; height: 20px; }

.cart-count {

  background: var(--als-accent); color: #fff; font-size: 9px; font-weight: 700;

  min-width: 17px; height: 17px; border-radius: 50%;

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

  position: absolute; top: -4px; right: -6px; line-height: 1; padding: 0 3px;

}

.cart-count:empty { display: none; }



.search-wrap { display: inline-flex; align-items: center; }

.search-wrap input {

  width: 0; padding: 0; border: none; border-bottom: 2px solid transparent;

  background: transparent; font-family: var(--als-font); font-size: 12px;

  outline: none; transition: all .3s ease;

}

.search-wrap.open input { width: 150px; padding: 4px 8px; border-bottom-color: var(--als-accent); }

.search-wrap .search-form label { display: none; }

.search-wrap .search-submit { display: none; }



/* ── Burger ──────────────────────────────────────────────────── */

.burger-btn {

  display: none; flex-direction: column; gap: 5px;

  background: none; border: none; cursor: pointer;

  padding: 8px; margin: -4px; border-radius: 6px; transition: background .2s;

}

.burger-btn:hover { background: var(--als-accent-light); }

.burger-btn span { display: block; width: 22px; height: 2px; background: var(--als-nav-text); border-radius: 2px; transition: all .3s; }



/* ══════════════════════════════════════════════════════════════

   MENU MOBILE — fixed, top mis à jour par JS

══════════════════════════════════════════════════════════════ */

#mobile-nav-als {

  display: none; position: fixed;

  left: 0; right: 0; bottom: 0;

  top: calc(var(--als-topbar-h) + var(--als-header-h-mob));

  background: var(--als-header-bg, #fff); overflow-y: auto; z-index: 998;

  padding: 8px 12px 24px; flex-direction: column; gap: 0;

  box-shadow: 0 -2px 20px rgba(0,0,0,.08);

}

#mobile-nav-als.open { display: flex; }



.mob-search {

  display: flex; align-items: center; gap: 10px;

  margin: 12px 0 8px; background: #f5f5f5; border-radius: 10px; padding: 10px 14px;

}

.mob-search input {

  flex: 1; border: none; background: transparent;

  font-family: var(--als-font); font-size: 14px; outline: none; color: #333;

}

.mob-search input::placeholder { color: #aaa; }

.mob-search svg { width: 18px; height: 18px; color: #aaa; flex-shrink: 0; }



.mob-group { border-bottom: 1px solid #f0f0f0; padding-bottom: 4px; margin-bottom: 4px; }

.mob-group:last-child { border-bottom: none; }

.mob-item {

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

  padding: 14px 12px; color: var(--als-nav-text);

  font-family: var(--als-font); font-size: 15px; font-weight: 700;

  text-decoration: none; border-radius: 10px;

  transition: background .15s, color .15s;

  cursor: pointer; border: none; background: none; width: 100%; text-align: left;

}

.mob-item:hover, .mob-item:active, .mob-item.open { background: var(--als-accent-light); color: var(--als-accent); }

a.mob-item { justify-content: flex-start; }

.mob-chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s ease; opacity: .4; stroke: currentColor; }

.mob-item.open .mob-chevron { transform: rotate(180deg); opacity: 1; }



/* Item parent splitté : lien + bouton toggle séparés */

.mob-item--split {

  display        : flex;

  align-items    : center;

  justify-content: space-between;

  padding        : 0;

}

.mob-item__link {

  flex           : 1;

  display        : flex;

  align-items    : center;

  padding        : 12px 0 12px 4px;

  font-size      : 15px;

  font-weight    : 600;

  color          : var(--als-nav-text);

  text-decoration: none !important;

  gap            : 8px;

}

.mob-item__link:hover { color: var(--als-accent); }

.mob-item__toggle {

  display         : flex;

  align-items     : center;

  justify-content : center;

  width           : 42px;

  height          : 42px;

  border          : none;

  background      : transparent;

  cursor          : pointer;

  color           : var(--als-accent);

  border-radius   : 8px;

  flex-shrink     : 0;

}

.mob-item__toggle:hover { background: var(--als-accent-light); }

.mob-item--split.open .mob-item__link { color: var(--als-accent); }

.mob-item--split.open .mob-chevron    { transform: rotate(180deg); opacity: 1; }

.mob-submenu {

  display: flex; flex-direction: column; gap: 2px;

  overflow: hidden; max-height: 0; opacity: 0;

  transition: max-height .3s ease, opacity .3s ease; padding-left: 8px;

}

.mob-submenu.open { max-height: 600px; opacity: 1; }

.mob-sub {

  display: flex; align-items: center; gap: 10px;

  padding: 11px 16px; color: #555;

  font-family: var(--als-font); font-size: 13.5px; font-weight: 500;

  text-decoration: none; border-radius: 8px; transition: background .15s, color .15s;

}

.mob-sub::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--als-accent); flex-shrink: 0; opacity: .6; }

.mob-sub:hover, .mob-sub:active { background: var(--als-accent-light); color: var(--als-accent); }

.mob-actions { display: flex; gap: 10px; padding: 16px 12px 4px; border-top: 1px solid #f0f0f0; margin-top: 8px; }

.mob-action-btn {

  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;

  padding: 12px; background: var(--als-accent-light); color: var(--als-accent);

  font-family: var(--als-font); font-size: 12px; font-weight: 700;

  text-decoration: none; border-radius: 10px; transition: background .15s;

}

.mob-action-btn:hover { background: var(--als-accent); color: #fff; }

.mob-action-btn svg { width: 18px; height: 18px; }



/* ══════════════════════════════════════════════════════════════

   RESPONSIVE

══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {

  /* Topbar masquée sur mobile — trop petite, pas lisible */

  #topbar-als { display: none !important; }



  nav[aria-label="Menu principal"] { display: none; }

  .burger-btn { display: flex; }

  #header-als { height: var(--als-header-h-mob); padding: 0 16px; }

  #header-als.scrolled { height: var(--als-header-h-mob); margin: 0; border-radius: 0; padding: 0 16px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }

  .als-logo-img { max-height: 40px; }

  #header-als.scrolled .als-logo-img { max-height: 36px; }

  .als-logo-main { font-size: 15px; }

  .als-logo-sub  { display: none; }

  .header-actions { gap: 4px; }

  #search-wrap-als { display: none; }

  .action-btn[aria-label="Mon compte"] { display: none; }

  #topbar-als { padding: 0 12px; }

  #topbar-als .topbar-item:not(:first-child),

  #topbar-als .topbar-sep { display: none; }

}

@media (max-width: 480px) {

  #header-als   { height: var(--als-header-h-mob); }

  .als-logo-img { max-height: 36px; }

}

@media (max-width: 360px) {

  #topbar-als  { min-height: 30px; max-height: 30px; }

  .topbar-item { font-size: 10px; padding: 5px 0; }

}



/* ══════════════════════════════════════════════════════════════

   POPUP PROMO — Slide-in depuis la droite

══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════

   POPUP — base commune tous types

══════════════════════════════════════════════════════════════ */

#als-popup {

  position      : fixed;

  z-index       : 99999;

  overflow      : hidden;

  opacity       : 0;

  pointer-events: none;

  background    : var(--als-header-bg, #fff);

  box-shadow    : 0 8px 40px rgba(0,0,0,.18);

  transition    : transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;

}

#als-popup.als-popup-visible  { opacity: 1; pointer-events: all; }

#als-popup.als-popup-hiding   { opacity: 0; pointer-events: none; }



/* ── TYPE : Slide-in (défaut) ── */

#als-popup.als-popup--slide {

  width         : 320px;

  border-radius : 14px;

}



/* Positions slide-in — hors écran initialement */

#als-popup.als-popup--slide.als-popup--bottom-right {

  bottom: 24px; right: 24px;

  transform: translateX(calc(100% + 40px));

}

#als-popup.als-popup--slide.als-popup--bottom-right.als-popup-visible { transform: translateX(0); }

#als-popup.als-popup--slide.als-popup--bottom-right.als-popup-hiding  { transform: translateX(calc(100% + 40px)); }



#als-popup.als-popup--slide.als-popup--bottom-left {

  bottom: 24px; left: 24px;

  transform: translateX(calc(-100% - 40px));

}

#als-popup.als-popup--slide.als-popup--bottom-left.als-popup-visible { transform: translateX(0); }

#als-popup.als-popup--slide.als-popup--bottom-left.als-popup-hiding  { transform: translateX(calc(-100% - 40px)); }



#als-popup.als-popup--slide.als-popup--top-right {

  top: 80px; right: 24px;

  transform: translateX(calc(100% + 40px));

}

#als-popup.als-popup--slide.als-popup--top-right.als-popup-visible { transform: translateX(0); }

#als-popup.als-popup--slide.als-popup--top-right.als-popup-hiding  { transform: translateX(calc(100% + 40px)); }



#als-popup.als-popup--slide.als-popup--top-left {

  top: 80px; left: 24px;

  transform: translateX(calc(-100% - 40px));

}

#als-popup.als-popup--slide.als-popup--top-left.als-popup-visible { transform: translateX(0); }

#als-popup.als-popup--slide.als-popup--top-left.als-popup-hiding  { transform: translateX(calc(-100% - 40px)); }



/* ── TYPE : Modal (centré) ── */

#als-popup.als-popup--modal {

  top: 50%; left: 50%;

  width: min(480px, 90vw);

  border-radius: 16px;

  transform: translate(-50%, -50%) scale(.85);

}

#als-popup.als-popup--modal.als-popup-visible {

  transform: translate(-50%, -50%) scale(1);

}

#als-popup.als-popup--modal.als-popup-hiding {

  transform: translate(-50%, -50%) scale(.85);

}



/* ── TYPE : Bandeau (barre pleine largeur) ── */

#als-popup.als-popup--banner {

  left: 0; right: 0;

  width: 100%;

  border-radius: 0;

  box-shadow: 0 4px 20px rgba(0,0,0,.15);

}

#als-popup.als-popup--banner.als-popup--bottom,

#als-popup.als-popup--banner.als-popup--bottom-right,

#als-popup.als-popup--banner.als-popup--bottom-left {

  bottom: 0;

  transform: translateY(100%);

}

#als-popup.als-popup--banner.als-popup--top,

#als-popup.als-popup--banner.als-popup--top-right,

#als-popup.als-popup--banner.als-popup--top-left {

  top: 0;

  transform: translateY(-100%);

}

#als-popup.als-popup--banner.als-popup-visible  { transform: translateY(0); }

#als-popup.als-popup--banner.als-popup-hiding {

  transform: translateY(100%);

}

#als-popup.als-popup--banner.als-popup--top.als-popup-hiding,

#als-popup.als-popup--banner.als-popup--top-right.als-popup-hiding,

#als-popup.als-popup--banner.als-popup--top-left.als-popup-hiding {

  transform: translateY(-100%);

}



/* Bandeau : layout horizontal */

#als-popup.als-popup--banner #als-popup-header {

  display       : flex;

  flex-direction: row;

  align-items   : center;

  flex-wrap     : wrap;

  gap           : 12px;

  padding       : 14px 20px;

  justify-content: center;

}

#als-popup.als-popup--banner #als-popup-title {

  font-size  : 15px;

  font-weight: 700;

  margin     : 0;

  color      : #fff;

}

#als-popup.als-popup--banner #als-popup-text {

  font-size: 13px;

  color    : rgba(255,255,255,.85);

  margin   : 0;

}

#als-popup.als-popup--banner #als-popup-cta {

  display     : inline-block;

  width       : auto;

  padding     : 8px 18px;

  white-space : nowrap;

  background  : rgba(255,255,255,.2);

  border      : 1.5px solid rgba(255,255,255,.6);

  color       : #fff;

  border-radius: 6px;

  font-size   : 12px;

}

#als-popup.als-popup--banner #als-popup-cta:hover {

  background: rgba(255,255,255,.35);

  transform : none;

}

#als-popup.als-popup--banner #als-popup-code-wrap {

  display     : inline-flex;

  margin-bottom: 0;

  padding     : 6px 12px;

  background  : rgba(255,255,255,.15);

  border-color: rgba(255,255,255,.4);

}

#als-popup.als-popup--banner #als-popup-code { color: #fff; }

#als-popup.als-popup--banner #als-popup-copy-btn { color: rgba(255,255,255,.8); }

#als-popup.als-popup--banner #als-popup-close {

  margin-left : auto;

  flex-shrink : 0;

}



/* ── Overlay (modal) ── */

#als-popup-overlay {

  display       : none;

  position      : fixed;

  inset         : 0;

  background    : rgba(0,0,0,.55);

  z-index       : 99998;

  animation     : als-overlay-in .3s ease;

}

#als-popup-overlay.als-popup-overlay-visible { display: block; }

@keyframes als-overlay-in {

  from { opacity: 0; } to { opacity: 1; }

}



/* Bande colorée en haut */

#als-popup-header {

  background    : var(--als-topbar-bg, #6a9020);

  padding       : 14px 16px 12px;

  display       : flex;

  align-items   : center;

  justify-content: space-between;

  gap           : 10px;

}

#als-popup-header .als-popup-label {

  font-family   : var(--als-font, 'CaviarDreams', sans-serif);

  font-size     : 10px;

  font-weight   : 700;

  letter-spacing: .15em;

  text-transform: uppercase;

  color         : rgba(255,255,255,.75);

}

#als-popup-header .als-popup-emoji {

  font-size     : 20px;

  line-height   : 1;

}

#als-popup-close {

  background    : rgba(255,255,255,.15);

  border        : none;

  color         : #fff;

  width         : 26px;

  height        : 26px;

  border-radius : 50%;

  cursor        : pointer;

  display       : flex;

  align-items   : center;

  justify-content: center;

  font-size     : 14px;

  line-height   : 1;

  flex-shrink   : 0;

  transition    : background .2s;

  margin-left   : auto;

}

#als-popup-close:hover { background: rgba(255,255,255,.3); }



/* Corps */

#als-popup-body {

  padding: 18px 20px 20px;

}

#als-popup-title {

  font-family   : var(--als-font-serif, 'CaviarDreams', sans-serif);

  font-style    : italic;

  font-size     : 20px;

  color         : var(--als-nav-text, #3a3a3a);

  margin        : 0 0 8px;

  line-height   : 1.25;

}

#als-popup-text {

  font-family   : var(--als-font, 'CaviarDreams', sans-serif);

  font-size     : 13px;

  color         : #666;

  line-height   : 1.55;

  margin        : 0 0 16px;

}



/* Code promo */

#als-popup-code-wrap {

  display       : flex;

  align-items   : center;

  gap           : 8px;

  background    : var(--als-accent-light, #f0f6e6);

  border        : 1.5px dashed var(--als-accent, #8ab734);

  border-radius : 8px;

  padding       : 10px 14px;

  margin-bottom : 16px;

  cursor        : pointer;

  transition    : background .2s;

}

#als-popup-code-wrap:hover { background: #d4ecf1; }

#als-popup-code {

  font-family   : 'Courier New', monospace;

  font-size     : 16px;

  font-weight   : 700;

  color         : var(--als-accent, #8ab734);

  letter-spacing: .1em;

  flex          : 1;

}

#als-popup-copy-btn {

  background    : none;

  border        : none;

  cursor        : pointer;

  color         : var(--als-accent, #8ab734);

  font-family   : var(--als-font);

  font-size     : 11px;

  font-weight   : 700;

  padding       : 0;

  white-space   : nowrap;

  transition    : opacity .2s;

}

#als-popup-copy-btn:hover { opacity: .7; }



/* Bouton CTA */

#als-popup-cta {

  display       : block;

  width         : 100%;

  padding       : 12px 16px;

  background    : var(--als-accent, #8ab734);

  color         : #fff;

  font-family   : var(--als-font);

  font-size     : 13px;

  font-weight   : 700;

  letter-spacing: .04em;

  text-align    : center;

  text-decoration: none;

  border-radius : 8px;

  border        : none;

  cursor        : pointer;

  transition    : background .2s, transform .15s;

}

#als-popup-cta:hover {

  background    : var(--als-topbar-bg, #6a9020);

  transform     : translateY(-1px);

}



/* Image optionnelle */

#als-popup-img {

  width         : 100%;

  height        : 120px;

  object-fit    : cover;

  display       : block;

}



/* Barre de progression (expiration visuelle) */

#als-popup-timer {

  height        : 3px;

  background    : var(--als-accent-light, #f0f6e6);

  position      : relative;

  overflow      : hidden;

}

#als-popup-timer-bar {

  position      : absolute;

  left          : 0;

  top           : 0;

  height        : 100%;

  background    : var(--als-accent, #8ab734);

  transition    : width 1s linear;

}



/* Mobile */

@media (max-width: 480px) {

  #als-popup {

    right         : 12px;

    left          : 12px;

    width         : auto;

    bottom        : 16px;

  }

}



/* ══════════════════════════════════════════════════════════════

   CORRECTIONS v2.0

══════════════════════════════════════════════════════════════ */



/* ── BUG FIX : topbar cachée ne doit plus intercepter les clics ── */

#topbar-als.hidden {

  pointer-events : none !important;

  visibility     : hidden !important;

}



/* ── BUG FIX : megamenu invisible ne doit pas bloquer les clics ── */

.megamenu {

  pointer-events: none;

}

.megamenu[style*="opacity: 1"],

#nav-als > .nav-item:hover .megamenu {

  pointer-events: auto;

}



/* ══════════════════════════════════════════════════════════════

   SOUS-MENUS DESKTOP — différenciation depth 1 vs depth 2

   depth 1 = titre principal de colonne (mega-col__head)

   depth 2 = sous-item indenté (mega-col__sub)

══════════════════════════════════════════════════════════════ */



/* Titre principal de colonne (depth 1 avec lien) */

.mega-col .mega-col__head > a {

  font-size  : 14px !important;

  font-weight: 700 !important;

  color      : var(--als-nav-text) !important;

  display    : flex;

  align-items: center;

  gap        : 6px;

  padding    : 8px 8px 10px !important;

  border-bottom: 2px solid var(--als-accent);

  margin-bottom: 6px;

}

.mega-col .mega-col__head > a:hover {

  color: var(--als-accent) !important;

  background: transparent !important;

}



/* Sous-items depth 2 */

.mega-col .mega-col__sub > a {

  padding-left: 14px !important;

  font-size   : 12px !important;

  font-weight : 400 !important;

  color       : #666 !important;

  position    : relative;

}

.mega-col .mega-col__sub > a::before {

  content   : '›';

  position  : absolute;

  left      : 5px;

  color     : var(--als-accent);

  font-size : 14px;

  line-height: 1;

  top       : 50%;

  transform : translateY(-50%);

}

.mega-col .mega-col__sub > a:hover {

  color      : var(--als-accent) !important;

  padding-left: 18px !important;

  background : var(--als-accent-light) !important;

}



/* Badge sur items depth 1+ */

.nav-badge--sm {

  font-size  : 7px !important;

  padding    : 1px 4px !important;

  border-radius: 2px !important;

  margin-left: 4px;

  vertical-align: middle;

}



/* ══════════════════════════════════════════════════════════════

   MEGA MENU BLOG — 5 colonnes articles

══════════════════════════════════════════════════════════════ */

.megamenu--blog {

  grid-template-columns: repeat(5, 1fr) !important;

  gap                  : 16px !important;

  padding              : 20px 40px !important;

}



.mega-blog__col {

  padding: 0 !important;

}



.mega-blog__link {

  display       : flex;

  flex-direction: column;

  gap           : 8px;

  text-decoration: none;

  border-radius : 8px;

  overflow      : hidden;

  transition    : transform .2s ease, box-shadow .2s ease;

  border        : 1px solid var(--als-border);

}

.mega-blog__link:hover {

  transform : translateY(-2px);

  box-shadow: 0 4px 16px rgba(0,0,0,.10);

}



.mega-blog__img {

  width      : 100%;

  aspect-ratio: 4 / 3;

  object-fit : cover;

  display    : block;

  border-radius: 0;

}

.mega-blog__img--placeholder {

  background : var(--als-accent-light);

  aspect-ratio: 4 / 3;

  display    : block;

}



.mega-blog__title {

  font-family : var(--als-font);

  font-size   : 12px;

  font-weight : 600;

  color       : var(--als-nav-text);

  line-height : 1.35;

  padding     : 0 8px;

  display     : -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow    : hidden;

}

.mega-blog__link:hover .mega-blog__title {

  color: var(--als-accent);

}



.mega-blog__date {

  font-family : var(--als-font);

  font-size   : 10px;

  color       : #999;

  padding     : 0 8px 8px;

  display     : block;

}



/* ══════════════════════════════════════════════════════════════

   MENU MOBILE — depth 2 + badges

══════════════════════════════════════════════════════════════ */



/* Sous-item qui a lui-même des enfants */

.mob-sub--parent {

  display        : flex;

  align-items    : center;

  justify-content: space-between;

  padding        : 11px 16px !important;

  color          : var(--als-nav-text) !important;

  font-family    : var(--als-font);

  font-size      : 13.5px;

  font-weight    : 600 !important;

  background     : var(--als-accent-light);

  border-radius  : 6px !important;

  margin-bottom  : 2px;

  cursor         : pointer;

  border         : none;

  width          : 100%;

  text-align     : left;

}

.mob-sub--parent:hover, .mob-sub--parent.open {

  background: var(--als-accent) !important;

  color     : #fff !important;

}

.mob-sub--parent.open .mob-chevron--sm {

  transform: rotate(180deg);

}



.mob-chevron--sm {

  width     : 12px;

  height    : 12px;

  flex-shrink: 0;

  transition: transform .25s;

  opacity   : .6;

  stroke    : currentColor;

}



/* Sous-menu imbriqué */

.mob-submenu--nested {

  margin-left   : 12px;

  padding-left  : 8px;

  border-left   : 2px solid var(--als-accent-light);

}



/* Sous-sous-item (depth 2) */

.mob-sub--deep {

  font-size   : 12.5px !important;

  font-weight : 400 !important;

  color       : #777 !important;

  padding     : 9px 12px !important;

}

.mob-sub--deep::before {

  width     : 4px !important;

  height    : 4px !important;

  opacity   : .4 !important;

}

.mob-sub--deep:hover {

  color: var(--als-accent) !important;

}



/* Badge mobile */

.mob-badge {

  display      : inline-flex;

  align-items  : center;

  background   : var(--als-accent);

  color        : #fff;

  font-size    : 8px;

  font-weight  : 700;

  letter-spacing: .06em;

  text-transform: uppercase;

  padding      : 2px 5px;

  border-radius: 3px;

  margin-left  : 6px;

  vertical-align: middle;

  flex-shrink  : 0;

}



/* Responsive mega-blog */

@media (max-width: 1100px) {

  .megamenu--blog {

    grid-template-columns: repeat(3, 1fr) !important;

  }

}

@media (max-width: 960px) {

  .megamenu--blog { display: none !important; }

}



/* ══════════════════════════════════════════════════════════════

   BARRE ADMIN WORDPRESS

   Le JS calcule le top dynamiquement. Ces règles CSS servent

   de fallback au chargement avant que le JS s'exécute.

══════════════════════════════════════════════════════════════ */



/* Admin bar présente : décaler header et topbar */

/* Admin bar : le JS calcule adminBarH dynamiquement et l'applique via style inline

   Ces règles CSS ne font que gérer le flash au chargement initial */

/* Topbar avec barre admin : passer SOUS la barre admin fixed */

.admin-bar #topbar-als {

  top: 32px !important; /* desktop : barre admin = 32px */

}

@media screen and (max-width: 782px) {

  .admin-bar #topbar-als {

    top: 46px !important; /* mobile : barre admin = 46px */

    display: none !important; /* topbar masquée sur mobile de toute façon */

  }

}

/* Header avec barre admin : top géré entièrement par JS (setProperty !important) */



/* ══════════════════════════════════════════════════════════════

   BOUTONS WOOCOMMERCE — correction couleur texte

   Divi applique la couleur des liens (accent) sur tous les éléments

   ce qui rend le texte invisible sur les boutons de fond identique.

══════════════════════════════════════════════════════════════ */



/* Bouton "Soumettre" formulaire d'avis */

#respond input#submit,

.comment-form .form-submit input[type="submit"] {

  background-color : var(--als-accent, #8ab734) !important;

  color            : #ffffff !important;

  border           : none !important;

  padding          : 12px 28px !important;

  border-radius    : 6px !important;

  font-size        : 14px !important;

  font-weight      : 700 !important;

  cursor           : pointer !important;

  letter-spacing   : .04em !important;

  transition       : background .2s, opacity .15s !important;

}

#respond input#submit:hover,

.comment-form .form-submit input[type="submit"]:hover {

  background-color : var(--als-topbar-bg, #6a9020) !important;

  color            : #ffffff !important;

  opacity          : 1 !important;

}



/* Tous les boutons WooCommerce */

.woocommerce #respond input#submit,

.woocommerce a.button,

.woocommerce button.button,

.woocommerce input.button,

.woocommerce-page a.button,

.woocommerce-page button.button,

.woocommerce-page input.button {

  color : #ffffff !important;

}



/* Boutons "alt" (Ajouter au panier, Payer...) */

.woocommerce #respond input#submit.alt,

.woocommerce a.button.alt,

.woocommerce button.button.alt,

.woocommerce input.button.alt {

  background-color : var(--als-accent, #8ab734) !important;

  color            : #ffffff !important;

}

.woocommerce #respond input#submit.alt:hover,

.woocommerce a.button.alt:hover,

.woocommerce button.button.alt:hover,

.woocommerce input.button.alt:hover {

  background-color : var(--als-topbar-bg, #6a9020) !important;

  color            : #ffffff !important;

}



/* Formulaires WooCommerce : champs de saisie */

.woocommerce form .form-row input.input-text,

.woocommerce form .form-row select,

.woocommerce form .form-row textarea,

#review_form #respond input:not([type="submit"]),

#review_form #respond textarea {

  color            : #3a3a3a !important;

  background-color : #ffffff !important;

  border           : 1px solid #ddd !important;

  border-radius    : 6px !important;

}



/* ══════════════════════════════════════════════════════════════

   BARRE ADMIN WORDPRESS — ajustements

   WordPress ajoute margin-top: 32px (desktop) / 46px (mobile) sur <html>

   Notre header fixed + spacer tiennent compte de adminBarH via JS.

   On neutralise uniquement le padding-top que Divi pourrait ajouter.

══════════════════════════════════════════════════════════════ */

.admin-bar #page-container,

.admin-bar #et-main-area {

  padding-top : 0 !important;

  margin-top  : 0 !important;

}



/* ══════════════════════════════════════════════════════════════
   FOOTER — Correction alignement texte
   Divi injecte et_pb_text_align_justified-tablet qui devrait
   s'appliquer UNIQUEMENT sous 980px. Quand le UCSS est périmé
   il perd son media query et justifie tout le texte desktop.
══════════════════════════════════════════════════════════════ */

/* Sur desktop : forcer left sur les classes justified-tablet */
@media (min-width: 981px) {
  .et_pb_text_align_justified-tablet,
  .et_pb_text_align_justified-tablet .et_pb_text_inner,
  .et_pb_text_align_justified-tablet .et_pb_module_inner p {
    text-align : left !important;
  }
}

/* Pied de page : toujours aligné gauche (protection UCSS) */
.et-l--footer .et_pb_text_inner,
.et-l--footer .et_pb_text_inner p,
footer .et_pb_text_inner,
footer .et_pb_text_inner p {
  text-align : left !important;
}
