/* ============================================================
   ICP GABON · HEADER « DIRECTION 03 » — migré du Customizer
   Anciennement : Apparence → Personnaliser → CSS additionnel
   (réf. icp-header-custom-v5.css)

   Migration vers child theme — rendu strictement identique.
   Couleurs hardcodées remplacées par les tokens (01-tokens.css)
   uniquement quand la valeur correspondait exactement.
   La police @import a été retirée : chargée via wp_enqueue_style
   ('icp-fonts') dans functions.php.
   ============================================================ */


/* ============================================================
   MÉGA-MENU MARQUES — liste de navigation (.icp-brand-nav)
   ============================================================ */
.icp-brand-nav,
.icp-brand-nav ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.icp-brand-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid #e5e5e5;
}
.icp-brand-nav li:last-child {
  border-bottom: none;
}
.icp-brand-nav a {
  display: block;
  width: 100%;
  padding: 18px 0;
  margin: 0;
  text-decoration: none !important;
  color: #212121 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  font-family: inherit;
}
.icp-brand-nav a:hover,
.icp-brand-nav a:focus {
  color: #212121 !important;
  text-decoration: none !important;
}


/* ------------------------------------------------------------
   Anciennes règles panier — conservées INACTIVES (commentées),
   à reprendre lors de la création de 06-cart-checkout.css.
   ------------------------------------------------------------ */
/* Masquer les colonnes prix / sous-total dans le panier
.woocommerce-cart table.shop_table th.product-price,
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table th.product-subtotal,
.woocommerce-cart table.shop_table td.product-subtotal {
  display: none !important;
}*/
/* Masquer le bloc total panier
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  display: none !important;
}*/
/* Masquer les totaux du mini-panier
.widget_shopping_cart .total,
.woocommerce-mini-cart__total {
  display: none !important;
}*/


/* ============================================================
   HEADER DIRECTION 03 — CSS v5
   ★ v5 : tailles logo validées par Joubas77 (190/150/125px)
   ============================================================ */


/* ============================================================
   HAUTEUR DU HEADER
   ============================================================ */
[data-elementor-type="header"] > .elementor-section:first-child {
  min-height: 100px !important;
}

[data-elementor-type="header"] > .elementor-section:first-child .elementor-container {
  min-height: 100px !important;
}


/* ============================================================
   ★ LOGO — taille par HAUTEUR : 64/48/38px (rendu en ligne, arbitré 2026-07-25)
   Nettoyage : les anciennes largeurs v5 (190/150/125px) et l'addendum
   « agrandissement par hauteur » ont été fusionnés ici — les largeurs
   étaient mortes (écrasées par les hauteurs). Aucun changement visuel.
   ============================================================ */
[data-elementor-type="header"] .elementor-widget-image {
  width: auto !important;
}

[data-elementor-type="header"] .elementor-widget-image .elementor-widget-container {
  width: auto !important;
}

[data-elementor-type="header"] .elementor-widget-image a {
  display: flex !important;
  align-items: center !important;
}

[data-elementor-type="header"] .elementor-widget-image img {
  height: 64px !important;
  max-height: 64px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Tablette */
@media (max-width: 1024px) {
  [data-elementor-type="header"] .elementor-widget-image img {
    height: 48px !important;
    max-height: 48px !important;
  }
}

/* Mobile */
@media (max-width: 480px) {
  [data-elementor-type="header"] .elementor-widget-image img {
    height: 38px !important;
    max-height: 38px !important;
  }
}


/* ============================================================
   EFFET CARTE FLOTTANTE
   ============================================================ */
[data-elementor-type="header"] > .elementor-section:first-child {
  margin: 16px 24px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(15, 45, 74, 0.08), 0 1px 2px rgba(15, 45, 74, 0.04) !important;
  width: calc(100% - 48px) !important;
  max-width: calc(100% - 48px) !important;
}

@media (max-width: 1024px) {
  [data-elementor-type="header"] > .elementor-section:first-child,
  [data-elementor-type="header"] > .elementor-section:last-child {
    margin: 12px 16px !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 480px) {
  [data-elementor-type="header"] > .elementor-section:last-child {
    margin: 8px 12px !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }
}


/* ============================================================
   MENU MIEUX RÉPARTI
   ============================================================ */
[data-elementor-type="header"] .the7_horizontal-menu {
  display: flex !important;
  justify-content: center !important;
}

[data-elementor-type="header"] .the7_horizontal-menu > ul {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
}


/* ============================================================
   BADGE PANIER CACHÉ SI VIDE
   ============================================================ */
[data-elementor-type="header"] .the7-woocommerce-menu-cart .the7-cart-indicator:not(.has-items),
[data-elementor-type="header"] .empty .the7-cart-indicator {
  display: none !important;
}

[data-elementor-type="header"] .the7-cart-indicator[data-count="0"] {
  display: none !important;
}


/* ============================================================
   BOUTON WHATSAPP DESKTOP
   ============================================================ */
.icp-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 48px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #FFFFFF !important;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  white-space: nowrap;
}

.icp-wa-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  color: #FFFFFF !important;
}

.icp-wa-icon {
  flex-shrink: 0;
}

.icp-wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.icp-wa-text small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.icp-wa-text strong {
  font-size: 14px;
  font-weight: 700;
}


/* ============================================================
   BOUTON WHATSAPP MOBILE
   ============================================================ */
.icp-wa-cta-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #FFFFFF !important;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 4px;
  flex-shrink: 0;
}

.icp-wa-cta-round:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  color: #FFFFFF !important;
}


/* ============================================================
   TYPOGRAPHIE GLOBALE
   ============================================================ */
[data-elementor-type="header"] {
  font-family: var(--font-body);
}

[data-elementor-type="header"] .the7_horizontal-menu .menu-item > a {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em;
}


/* ============================================================
   HOVER ICÔNES
   ============================================================ */
[data-elementor-type="header"] .the7_icon_widget a:hover,
[data-elementor-type="header"] .the7-login-widget a:hover {
  opacity: 1;
  transform: scale(1.05);
  transition: transform 0.15s ease;
}


/* ============================================================
   BADGE PANIER (quand il y a des items)
   ============================================================ */
[data-elementor-type="header"] .the7-woocommerce-menu-cart .the7-cart-indicator {
  background: var(--icp-orange) !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 1 !important;
}


/* ============================================================
   MENU : LIEN ACTIF PASTILLE VERTE
   ============================================================ */
[data-elementor-type="header"] .the7_horizontal-menu .menu-item.current-menu-item > a,
[data-elementor-type="header"] .the7_horizontal-menu .menu-item.current_page_item > a {
  background: var(--icp-green-light) !important;
  color: var(--icp-blue) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

[data-elementor-type="header"] .the7_horizontal-menu .menu-item > a {
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

[data-elementor-type="header"] .the7_horizontal-menu .menu-item:not(.current-menu-item):not(.current_page_item) > a:hover {
  background: var(--icp-bg-light) !important;
  color: var(--icp-blue) !important;
}


/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
[data-elementor-type="header"] a:focus-visible,
[data-elementor-type="header"] button:focus-visible {
  outline: 2px solid var(--icp-orange);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .icp-wa-cta,
  .icp-wa-cta-round,
  [data-elementor-type="header"] * {
    transition: none !important;
    animation: none !important;
  }
}


/* (Addendum logo fusionné dans la section ★ LOGO ci-dessus — 2026-07-25.) */
