﻿/* =============================================
   HEADER MODERNE — chargeurdeportable
   Remplace .background_fixed, .search_posi,
   .compte_client, .panier et leurs enfants
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --hdr-green:      #6eccae;
    --hdr-green-dark: #3a76de;
    --hdr-yellow:     #FDC300;
    --hdr-gray:       #51626f;
    --hdr-dark:       #1a1a2e;
    --hdr-bg:         #f5f6f7;
    --hdr-white:      #ffffff;
    --hdr-border:     #e8e9eb;
    --hdr-font:       'Outfit', Arial, sans-serif;
}

/* -----------------------------------------------
   Wrapper global
----------------------------------------------- */
#site-header {
    font-family: var(--hdr-font);
    background: var(--hdr-white);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 1px 0 var(--hdr-border);
}

/* -----------------------------------------------
   Topbar sombre
----------------------------------------------- */
.hdr-top {
    background: var(--hdr-dark);
    height: 34px;
    display: flex;
    align-items: center;
}

.hdr-top-inner {
    max-width: 1624px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hdr-top-left,
.hdr-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hdr-top-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .3px;
    color: #a0a8b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .18s;
}

.hdr-top-link:hover { 
    color: var(--hdr-white); 
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .3px;
}

.hdr-top-link .tl-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hdr-green);
    flex-shrink: 0;
}

.hdr-top-pill {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(93, 174, 43, .15);
    color: var(--hdr-green);
}

.hdr-top-sep {
    color: rgba(255,255,255,.12);
    font-size: 11px;
}

/* -----------------------------------------------
   Barre principale (logo + search + actions)
----------------------------------------------- */
.hdr-main {
    max-width: 1624px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
    border-bottom: 1px solid var(--hdr-border);
}

/* Logo */
.hdr-logo {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--hdr-dark);
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
}

.hdr-logo span { color: var(--hdr-green); }

.hdr-logo small {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--hdr-gray);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Champ de recherche */
.hdr-search {
    flex: 1;
    position: relative;
}

.hdr-search input,
#inputSearch {
    width: 100%;
    height: 40px;
    background: var(--hdr-bg);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 0 40px 0 14px;
    font-family: var(--hdr-font);
    font-size: 13px;
    color: var(--hdr-dark);
    outline: none;
    transition: border-color .2s, background .2s;
}

.hdr-search input:focus,
#inputSearch:focus {
    background: var(--hdr-white);
    border-color: var(--hdr-green);
}

.hdr-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    pointer-events: none;
}

/* Résultats de recherche */
#divResult {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--hdr-white);
    border: 1px solid var(--hdr-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 400;
    max-height: 380px;
    overflow-y: auto;
}

/* -----------------------------------------------
   Actions (compte + panier)
----------------------------------------------- */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* Wrapper pour le hover dropdown */
.hdr-btn-wrap {
    position: relative;
    display: inline-flex;
}

/* Bouton générique */
.hdr-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    border: 1.5px solid var(--hdr-border);
    border-radius: 10px;
    background: var(--hdr-white);
    cursor: pointer;
    font-family: var(--hdr-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--hdr-gray);
    text-decoration: none;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}

.hdr-btn:hover {
    border-color: var(--hdr-green);
    color: var(--hdr-dark);
    font-family: var(--hdr-font);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.hdr-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Badge panier */
.hdr-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: var(--hdr-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--hdr-white);
}

/* -----------------------------------------------
   Dropdown générique
----------------------------------------------- */
.hdr-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    background: var(--hdr-white);
    border: 1px solid var(--hdr-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .10);
    padding: 16px;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.hdr-btn-wrap:hover .hdr-dropdown,
.hdr-btn-wrap:focus-within .hdr-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dd-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hdr-green);
    margin-bottom: 12px;
}

/* ---- Dropdown connexion ---- */
.dd-field { margin-bottom: 10px; }

.dd-field label {
    display: block;
    font-size: 11px;
    color: var(--hdr-gray);
    margin-bottom: 4px;
    font-weight: 500;
}

.dd-field input {
    width: 100%;
    height: 36px;
    border: 1.5px solid var(--hdr-border);
    border-radius: 8px;
    padding: 0 10px;
    font-family: var(--hdr-font);
    font-size: 13px;
    color: var(--hdr-dark);
    outline: none;
    transition: border-color .2s;
    background: var(--hdr-white);
}

.dd-field input:focus { border-color: var(--hdr-green); }

.dd-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.dd-btn {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--hdr-font);
    font-size: 12px;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.dd-btn-primary { background: var(--hdr-green); color: #fff; }
.dd-btn-primary:hover { background: var(--hdr-green-dark); }
.dd-btn-secondary {
    background: var(--hdr-bg);
    color: var(--hdr-dark);
    border: 1.5px solid var(--hdr-border);
}
.dd-btn-secondary:hover { border-color: var(--hdr-gray); }

.dd-forgot {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--hdr-gray);
    text-decoration: underline;
    cursor: pointer;
}

/* ---- Menu utilisateur connecté ---- */
.dd-user-menu { list-style: none; margin: 0; padding: 0; }

.dd-user-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hdr-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.dd-user-menu li a:hover {
    background: var(--hdr-bg);
    color: var(--hdr-dark);
}

.dd-user-menu li a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--hdr-green);
}

.dd-user-sep { height: 1px; background: var(--hdr-border); margin: 6px 0; }

/* ---- Dropdown panier ---- */
.dd-cart-empty {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: var(--hdr-gray);
}

.dd-cart-empty-icon { font-size: 28px; margin-bottom: 8px; }

.dd-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hdr-border);
}

.dd-cart-img {
    width: 40px;
    height: 40px;
    background: var(--hdr-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dd-cart-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.dd-cart-info { flex: 1; min-width: 0; }

.dd-cart-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--hdr-dark);
    line-height: 1.3;
    word-break: break-word;
}

.dd-cart-ref {
    font-size: 10px;
    color: var(--hdr-gray);
    margin-top: 2px;
}

.dd-cart-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--hdr-dark);
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.dd-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1.5px solid var(--hdr-border);
}

.dd-cart-total-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--hdr-gray);
}

.dd-cart-total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--hdr-dark);
}

.dd-cart-cta {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 12px;
    background: var(--hdr-green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--hdr-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-cart-cta:hover { background: var(--hdr-green-dark); color: #fff; }

/* -----------------------------------------------
   Zone menu dynamique
----------------------------------------------- */
.hdr-nav-wrapper {
    border-top: 1px solid var(--hdr-border);
}

/* -----------------------------------------------
   Responsive
----------------------------------------------- */
@media (max-width: 768px) {
    .hdr-top-right { display: none; }
    .hdr-btn-label  { display: none; }
    .hdr-logo small { display: none; }
    .hdr-main { gap: 12px; padding: 0 10px; }
    .hdr-search { max-width: none; }
}

@media (max-width: 480px) {
    .hdr-top-left { gap: 12px; }
    .hdr-actions { gap: 4px; }
    .hdr-btn { padding: 0 10px; }
}

/* =============================================
   MENU NAVIGATION MODERNE — chargeurdeportable
   Remplace #HEADER / #MENU / #onglets
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --nav-green:       #6eccae;
    --nav-green-dark:  #3a76de;
    --nav-yellow:      #FDC300;
    --nav-text:        #51626f;
    --nav-text-dark:   #1a1a2e;
    --nav-bg:          #ffffff;
    --nav-border:      #e8e9eb;
    --nav-gray-light:  #f5f6f7;
    --nav-height:      52px;
    --nav-font:        'Outfit', Arial, sans-serif;
    --nav-radius:      12px;
}

.menu_dyna {
	margin-bottom: 20px;
}

/* ---- Wrapper global ---- */
#nav-principal {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    font-family: var(--nav-font);
    position: relative;
    z-index: 100;
}

/* ---- Barre principale ---- */
#nav-principal .nav-inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    height: var(--nav-height);
    padding: 0 8px;
}

/* ---- Élément de menu ---- */
#nav-principal .nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* ---- Lien onglet ---- */
#nav-principal .nav-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--nav-text);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color .2s;
    border: none;
    background: none;
    cursor: pointer;
}

/* Soulignement animé */
#nav-principal .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: var(--nav-green);
    border-radius: 3px 3px 0 0;
    transition: left .22s ease, right .22s ease;
}

#nav-principal .nav-link:hover,
#nav-principal .nav-item.active .nav-link {
    color: var(--nav-text-dark);
    text-decoration: none;
}

#nav-principal .nav-link:hover::after,
#nav-principal .nav-item.active .nav-link::after {
    left: 12px;
    right: 12px;
}

/* Chevron */
#nav-principal .nav-chev {
    display: inline-block;
    margin-left: 5px;
    font-size: 9px;
    transition: transform .2s;
    opacity: .5;
    font-style: normal;
}

#nav-principal .nav-item:hover .nav-chev,
#nav-principal .nav-item.active .nav-chev {
    transform: rotate(180deg);
    opacity: 1;
}

/* ---- Badge promo ---- */
#nav-principal .nav-badge {
    background: var(--nav-yellow);
    color: #7a4f00;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 6px;
    letter-spacing: .3px;
    vertical-align: middle;
}

/* ---- Dropdown ---- */
#nav-principal .nav-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 210px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 0 0 var(--nav-radius) var(--nav-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 200;
}

#nav-principal .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#nav-principal .nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    transition: background .15s, color .15s;
}

#nav-principal .nav-dropdown a:hover {
    background: var(--nav-gray-light);
    color: var(--nav-text-dark);
}

#nav-principal .nav-dropdown a .dd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nav-green);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .15s;
}

#nav-principal .nav-dropdown a:hover .dd-dot {
    opacity: 1;
}

#nav-principal .nav-dropdown-sep {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

/* ---- Hamburger mobile ---- */
#nav-principal .nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    cursor: pointer;
    background: none;
    align-self: center;
    gap: 0;
}

#nav-principal .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--nav-text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    margin: 2.5px 0;
}

#nav-principal .nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#nav-principal .nav-burger.open span:nth-child(2) {
    opacity: 0;
}
#nav-principal .nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Menu mobile déroulant ---- */
#nav-principal .nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    padding: 8px 0 16px;
}

#nav-principal .nav-mobile.open {
    display: flex;
}

#nav-principal .nav-mobile a {
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: border-color .15s, color .15s, background .15s;
}

#nav-principal .nav-mobile a:hover {
    border-left-color: var(--nav-green);
    color: var(--nav-text-dark);
    background: #f8fdf5;
}

#nav-principal .nav-mobile-sep {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 20px;
}

/* =============================================
   FOOTER MODERNE — chargeurdeportable
   Thème sombre avec animations
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --footer-green:       #5DAE2B;
    --footer-yellow:      #FDC300;
    --footer-bg:          #0f1117;
    --footer-bg2:         #161820;
    --footer-bg3:         #1e2029;
    --footer-border:      rgba(255, 255, 255, .07);
    --footer-text:        #a0a8b8;
    --footer-text-bright: #e8eaf0;
    --footer-font:        'Outfit', Arial, sans-serif;
}

/* -----------------------------------------------
   Wrapper global
----------------------------------------------- */
footer.site-footer {
    background: var(--footer-bg);
    font-family: var(--footer-font);
    color: var(--footer-text);
    overflow: hidden;
}

/* -----------------------------------------------
   Bande de réassurance (verte)
----------------------------------------------- */
.footer-trust {
    background: var(--footer-green);
    padding: 18px 0;
}

.footer-trust-inner {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 24px;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    animation: footer-fadeup .5s ease forwards;
}

.footer-trust-item:nth-child(1) { animation-delay: .05s; }
.footer-trust-item:nth-child(2) { animation-delay: .15s; }
.footer-trust-item:nth-child(3) { animation-delay: .25s; }
.footer-trust-item:nth-child(4) { animation-delay: .35s; }

.footer-trust-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* -----------------------------------------------
   Corps principal — grille 4 colonnes
----------------------------------------------- */
.footer-main {
    max-width: 1024px;
    margin: 0 auto;
    padding: 52px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--footer-border);
}

/* ---- Colonne marque ---- */
.footer-brand .brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--footer-text-bright);
    letter-spacing: -.3px;
}

.footer-brand .brand-name span {
    color: var(--footer-green);
}

.footer-brand .brand-tagline {
    font-size: 12px;
    color: var(--footer-text);
    margin-top: 6px;
    font-weight: 300;
    line-height: 1.7;
}

.footer-brand address {
    margin-top: 20px;
    font-style: normal;
    font-size: 13px;
    line-height: 2;
    color: var(--footer-text);
}

.footer-brand address a {
    color: var(--footer-text);
    text-decoration: none;
}

/* Bouton téléphone avec point pulsant */
.footer-tel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    background: var(--footer-bg3);
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--footer-text-bright);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.footer-tel:hover {
    border-color: var(--footer-green);
    color: var(--footer-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.footer-tel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--footer-green);
    flex-shrink: 0;
    animation: footer-pulse 1.8s infinite;
}

/* ---- Colonnes liens ---- */
.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--footer-yellow);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--footer-text);
    text-decoration: none;
    position: relative;
    transition: color .2s;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-green);
    transition: width .2s ease;
}

.footer-col ul li a:hover {
    color: var(--footer-text-bright);
    text-decoration: none;
}

.footer-col ul li a:hover::before {
    width: 100%;
}

.footer-col ul li a:hover .lk-arrow {
    opacity: 1;
    transform: translateX(0);
}

.lk-arrow {
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s;
    color: var(--footer-green);
}

/* -----------------------------------------------
   Bande de bas de page
----------------------------------------------- */
.footer-bottom {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 12px;
    color: #4a5060;
}

.footer-copy strong {
    color: var(--footer-text);
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge {
    background: var(--footer-bg3);
    border: 1px solid var(--footer-border);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--footer-text);
    transition: border-color .2s, color .2s;
}

.footer-badge:hover {
    border-color: var(--footer-green);
    color: var(--footer-green);
}

/* =============================================
   BARRE DE RECHERCHE — version fluide
   Remplace l'ancien bloc #inputSearch / #divResult /
   .display_box / .suggestion_img (plus de px figés)
   ============================================= */

/* ---- Conteneur externe déjà géré par .hdr-search ---- */

/* ---- Champ input ---- */
#inputSearch {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 14px;
    box-sizing: border-box;
    background-color: var(--hdr-bg);
    background-image: none;                 /* la loupe vient de .hdr-search-icon */
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: var(--hdr-font);
    font-size: 13px;
    color: var(--hdr-dark);
    outline: none;
    transition: border-color .2s, background .2s;
}

#inputSearch:focus {
    background: var(--hdr-white);
    border-color: var(--hdr-green);
}

/* ---- Panneau de résultats ---- */
#divResult {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;                            /* plus de 431px figé */
    display: none;                          /* conservé pour compat JS */
    max-height: 380px;
    overflow-y: auto;
    background: var(--hdr-white);
    border: 1px solid var(--hdr-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    box-sizing: border-box;
    z-index: 400;
}

/* ---- Ligne de résultat ---- */
.display_box {
    position: relative;
    width: 100%;                            /* plus de 481px figé */
    min-height: 56px;
    padding: 10px 90px 10px 14px;           /* réserve 76px à droite pour l'image */
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    border-top: 1px solid #eee;
    cursor: pointer;
}

.display_box:first-child {
    border-top: 0;
}

.display_box:hover {
    background: var(--hdr-green);
    color: #fff;
}

.display_box:hover .dd-cart-ref,
.display_box:hover * {
    color: inherit;
}

/* ---- Miniatures de suggestion ---- */
.suggestion_img {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    margin: 0;                              /* écrase les margin-left:356px / margin-top:174/348 */
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Variantes empilées (si encore utilisées par le JS) — neutralisées */
.suggestion_img2,
.suggestion_img3 {
    margin-top: 0;
}

/* -----------------------------------------------
   Animations
----------------------------------------------- */
@keyframes footer-fadeup {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes footer-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(93, 174, 43, .6); }
    60%       { box-shadow: 0 0 0 6px rgba(93, 174, 43, 0); }
}

/* =============================================
   RESPONSIVE — chargeurdeportable - menu_dyna
   
   Breakpoints :
   - ≤ 1024px : tablette large / petit desktop
   - ≤ 900px  : tablette
   - ≤ 768px  : bascule mobile (nav burger)
   - ≤ 600px  : grand téléphone
   - ≤ 480px  : téléphone standard
   - ≤ 380px  : petit téléphone
   - tactile  : hover → tap
   ============================================= */


/* ---------------------------------------------
   ≤ 1024px — début des contraintes
--------------------------------------------- */
@media (max-width: 1024px) {

    /* Les containers n'atteignent plus leur max-width,
       on garantit un padding de sécurité */
    .hdr-top-inner,
    .hdr-main,
    #nav-principal .nav-inner,
    .footer-trust-inner,
    .footer-main,
    .footer-bottom {
        max-width: 100%;
    }

    .hdr-search { max-width: 360px; }

    #nav-principal .nav-link {
        padding: 0 12px;
        font-size: 12px;
    }
}


/* ---------------------------------------------
   ≤ 900px — Tablette
--------------------------------------------- */
@media (max-width: 900px) {

    .hdr-top-sep  { display: none; }
    .hdr-top-pill { display: none; }
    .hdr-top-left { gap: 14px; }

    .hdr-search { max-width: 260px; }

    /* Footer : 3 colonnes, brand pleine largeur */
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
}


/* ---------------------------------------------
   ≤ 768px — Bascule mobile
--------------------------------------------- */
@media (max-width: 768px) {

    /* ---- Topbar ---- */
    .hdr-top        { height: 30px; }
    .hdr-top-right  { display: none; }
    .hdr-top-left   { gap: 12px; }
    .hdr-top-link   { font-size: 10px; }
    .hdr-top-inner  { padding: 0 10px; }

    /* ---- Header main : wrap ---- */
    .hdr-main {
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 10px;
    }

    .hdr-logo       { font-size: 16px; }
    .hdr-logo small { display: none; }

    /* Search passe sur la 2e ligne */
    .hdr-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin-top: 4px;
    }

    /* ---- Actions : icônes seules ---- */
    .hdr-btn-label { display: none; }
    .hdr-btn {
        gap: 0;
        padding: 0 12px;
    }
    .hdr-actions {
        margin-left: auto;
        gap: 8px;
    }

    /* Dropdowns bornés à la viewport */
    .hdr-dropdown {
        right: 0;
        min-width: 260px;
        max-width: calc(100vw - 20px);
    }

    /* ---- Navigation : burger ---- */
    #nav-principal .nav-inner > .nav-item { display: none; }
    #nav-principal .nav-burger           { display: flex; }

    /* ---- Footer ---- */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 20px 28px;
    }
    .footer-brand { grid-column: 1 / -1; }

    .footer-trust-inner {
        gap: 16px;
        justify-content: space-around;
        padding: 0 16px;
    }
    .footer-trust-item { font-size: 12px; }

    #divResult {
        max-height: 320px;
    }
    .display_box {
        padding: 10px 70px 10px 12px;
        min-height: 52px;
        font-size: 12px;
    }
    .suggestion_img {
        width: 56px;
        height: 56px;
    }
}


/* ---------------------------------------------
   ≤ 600px — Grand téléphone
--------------------------------------------- */
@media (max-width: 600px) {

    /* Topbar : on ne garde qu'un seul lien */
    .hdr-top-left .hdr-top-link:nth-of-type(n+2) {
        display: none;
    }

    /* Dropdowns plein écran */
    .hdr-dropdown {
        position: fixed;
        top: 64px;
        left: 10px;
        right: 10px;
        min-width: 0;
        max-width: none;
    }

    /* Réassurance en 2×2 */
    .footer-trust-inner {
        justify-content: flex-start;
        row-gap: 14px;
    }
    .footer-trust-item {
        flex: 0 0 calc(50% - 8px);
    }
    .footer-trust-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}


/* ---------------------------------------------
   ≤ 480px — Téléphone standard
--------------------------------------------- */
@media (max-width: 480px) {

    .hdr-top      { height: 28px; }
    .hdr-top-left { gap: 10px; }

    .hdr-main {
        padding: 10px 8px;
        gap: 8px;
    }
    .hdr-logo    { font-size: 15px; }
    .hdr-actions { gap: 4px; }

    .hdr-btn {
        height: 38px;
        padding: 0 10px;
    }
    .hdr-btn svg {
        width: 15px;
        height: 15px;
    }

    .hdr-search input,
    #inputSearch {
        height: 38px;
        font-size: 12px;
    }

    #nav-principal .nav-inner {
        height: 48px;
        padding: 0 8px;
    }

    /* Footer : 1 colonne */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 16px 24px;
    }
    .footer-brand      { grid-column: auto; }
    .footer-col h4     { margin-bottom: 12px; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .footer-trust       { padding: 14px 0; }
    .footer-trust-item  {
        flex: 0 0 100%;
        justify-content: flex-start;
    }
    .footer-badges      { width: 100%; }
    .display_box {
        padding: 10px 58px 10px 10px;
        min-height: 48px;
    }
    .suggestion_img {
        width: 44px;
        height: 44px;
        right: 6px;
    }

}


/* ---------------------------------------------
   ≤ 380px — Petit téléphone
--------------------------------------------- */
@media (max-width: 380px) {

    .hdr-top-link { font-size: 10px; }
    .hdr-logo     { font-size: 14px; }

    /* Boutons actions : carrés, icône seule */
    .hdr-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .hdr-dropdown {
        padding: 12px;
        left: 6px;
        right: 6px;
    }

    #nav-principal .nav-mobile a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer-main         { padding: 24px 12px 20px; }
    .footer-trust-inner  { padding: 0 12px; }
    .footer-tel {
        padding: 9px 14px;
        font-size: 13px;
    }
    .display_box {
        padding: 10px 10px;                     /* on vire la miniature */
    }
    .suggestion_img {
        display: none;                          /* plus assez de place */
    }
}


/* ---------------------------------------------
   Support tactile (hover → tap)
   Sur un écran tactile le :hover est collant ou
   absent. On neutralise les :hover des dropdowns
   et on s'appuie sur une classe .is-open
   (à toggler via JS au tap du bouton parent).
--------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

    /* ---- Neutraliser les :hover ---- */
    .hdr-btn-wrap:hover .hdr-dropdown,
    #nav-principal .nav-item:hover .nav-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
    }

    /* ---- Ouverture contrôlée par JS (.is-open) ---- */
    .hdr-btn-wrap.is-open .hdr-dropdown,
    .hdr-btn-wrap:focus-within .hdr-dropdown,
    #nav-principal .nav-item.is-open .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Feedback tactile */
    .hdr-btn:active,
    .dd-btn:active,
    .dd-cart-cta:active,
    #nav-principal .nav-link:active {
        transform: scale(.97);
    }
}