/* =====================================================================
   Header + footer 2026 — chargé avec haut-2026.php / bas-2026.php
   Toutes les règles sont préfixées .h26 / .f26 pour ne pas toucher aux pages
   qui utilisent encore haut.php / bas.php.
   ===================================================================== */
:root {
    --h26-orange: #c8641e;
    --h26-orange-d: #a9500f;
    --h26-rouge: #bd2425;
    --h26-txt: #3d3d3d;
    --h26-txt-l: #7a7268;
    --h26-ligne: #e3dccf;
    --h26-creme: #faf8f4;
    --h26-sable: #f1ebe2;
}
.h26-wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
body.h26-noscroll { overflow: hidden; }

/* ---------- barre d'engagements ---------- */
.h26-top { background: var(--h26-txt); color: #fff; font-size: 13px; font-family: 'Poppins', 'Urbanist', Arial, sans-serif; }
.h26-top .h26-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 20px; flex-wrap: wrap; }
.h26-top span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.h26-top i { color: var(--h26-orange); }
.h26-top a { color: #fff; text-decoration: none; }
.h26-top a:hover { text-decoration: underline; }

/* ---------- header principal (sticky) ---------- */
header.h26 {
    position: sticky; top: 0; z-index: 500;
    background: #fff; border-bottom: 1px solid var(--h26-ligne);
    font-family: 'Poppins', 'Urbanist', Arial, sans-serif;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    transition: box-shadow .2s;
}
header.h26.compact { box-shadow: 0 4px 16px rgba(60,40,10,.10); }
header.h26 * { box-sizing: border-box; }
header.h26 a { text-decoration: none; color: var(--h26-txt); }

.h26-main { display: flex; align-items: center; gap: 28px; height: 88px; transition: height .2s; }
header.h26.compact .h26-main { height: 64px; }
.h26-logo { display: flex; align-items: center; flex-shrink: 0; height: 100%; }
.h26-logo img { height: 60px; width: auto; max-width: none; display: block; transition: height .2s; }
header.h26.compact .h26-logo img { height: 44px; }

.h26-search { flex: 1; display: flex; max-width: 640px; margin: 0; }
.h26-search input {
    flex: 1; min-width: 0; border: 2px solid var(--h26-ligne); border-right: 0; border-radius: 6px 0 0 6px;
    padding: 10px 16px; font: inherit; font-size: 15px; color: var(--h26-txt); background: #fff; margin: 0; height: 44px;
}
.h26-search input:focus { outline: none; border-color: var(--h26-orange); }
.h26-search button {
    background: var(--h26-orange); color: #fff; border: 0; border-radius: 0 6px 6px 0;
    padding: 0 20px; font-size: 18px; cursor: pointer; height: 44px;
}
.h26-search button:hover { background: var(--h26-orange-d); }

.h26-icons { display: flex; gap: 22px; margin-left: auto; flex-shrink: 0; }
.h26-icons a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; position: relative; line-height: 1; }
.h26-icons a i { font-size: 22px; color: var(--h26-orange); }
.h26-icons a:hover { color: var(--h26-orange); }
.h26-badge {
    position: absolute; top: -6px; right: -10px;
    background: var(--h26-rouge); color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 99px; padding: 2px 6px; line-height: 1; font-style: normal;
}

/* ---------- navigation ---------- */
.h26-nav { border-top: 1px solid var(--h26-ligne); background: #fff; }
.h26-nav .h26-wrap { display: flex; align-items: stretch; gap: 24px; }
.h26-burger {
    display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--h26-txt); padding: 12px 0; white-space: nowrap;
}
.h26-burger i { font-size: 20px; color: var(--h26-orange); }
.h26-burger:hover { color: var(--h26-orange); }

header.h26 ul.h26-menu { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 0; border: 0; width: auto; }
header.h26 ul.h26-menu > li { list-style: none; position: static; flex: none; display: block; }
header.h26 ul.h26-menu > li > a {
    display: flex; align-items: center; gap: 6px; padding: 13px 10px;
    font-size: 13.5px; font-weight: 500; color: var(--h26-txt); text-transform: none;
    white-space: nowrap; border-bottom: 3px solid transparent; background: none; width: auto; text-align: left;
}
header.h26 ul.h26-menu > li > a i { font-size: 9px; color: var(--h26-txt-l); }
header.h26 ul.h26-menu > li:hover > a, header.h26 ul.h26-menu > li.open > a { color: var(--h26-orange); border-bottom-color: var(--h26-orange); background: none; }
header.h26 ul.h26-menu > li.h26-promo > a { color: var(--h26-rouge); font-weight: 600; }

/* méga-menu */
.h26-mega {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--h26-ligne); border-bottom: 1px solid var(--h26-ligne);
    box-shadow: 0 16px 32px rgba(60,40,10,.12); z-index: 600;
}
header.h26 ul.h26-menu > li:hover > .h26-mega, header.h26 ul.h26-menu > li.open > .h26-mega { display: block; }
.h26-mega-in { max-width: 1400px; margin: 0 auto; padding: 24px 20px 20px; }
header.h26 ul.h26-mega-cols {
    list-style: none; margin: 0; padding: 0; display: grid; border: 0; width: auto;
    grid-template-columns: repeat(4, 1fr); gap: 6px 32px;
}
header.h26 ul.h26-mega-cols li { list-style: none; display: block; flex: none; position: static; }
header.h26 ul.h26-mega-cols a {
    display: block; padding: 6px 0; font-size: 14px; color: var(--h26-txt); text-transform: none;
    font-weight: 400; text-align: left; white-space: normal; background: none; width: auto;
}
header.h26 ul.h26-mega-cols a:hover { color: var(--h26-orange); background: none; }
.h26-mega-all { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--h26-orange) !important; font-size: 14px; }
header.h26 nav { position: relative; }

/* ---------- tiroir mobile ---------- */
.h26-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; }
.h26-overlay.open { display: block; }
.h26-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: #fff; z-index: 950;
    transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column;
    font-family: 'Poppins', 'Urbanist', Arial, sans-serif; box-shadow: 4px 0 24px rgba(0,0,0,.2);
}
.h26-drawer.open { transform: translateX(0); }
.h26-drawer * { box-sizing: border-box; }
.h26-drawer a { text-decoration: none; color: var(--h26-txt); }
.h26-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--h26-txt); color: #fff; font-weight: 600; }
.h26-drawer-close { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; padding: 4px 6px; }
.h26-drawer-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.h26-drawer-list > li { border-bottom: 1px solid var(--h26-ligne); }
.h26-drawer-row { display: flex; align-items: stretch; }
.h26-drawer-row > a { flex: 1; padding: 14px 18px; font-size: 15px; font-weight: 500; }
.h26-drawer-toggle { background: none; border: 0; border-left: 1px solid var(--h26-ligne); padding: 0 18px; cursor: pointer; color: var(--h26-txt-l); }
.h26-drawer-toggle i { transition: transform .2s; }
.h26-drawer-list > li.open .h26-drawer-toggle i { transform: rotate(180deg); }
.h26-drawer-sub { display: none; list-style: none; margin: 0; padding: 4px 0 10px; background: var(--h26-creme); }
.h26-drawer-list > li.open .h26-drawer-sub { display: block; }
.h26-drawer-sub a { display: block; padding: 9px 18px 9px 30px; font-size: 14px; }
.h26-drawer-sub a.h26-drawer-all { color: var(--h26-orange); font-weight: 600; }
.h26-drawer-foot { border-top: 1px solid var(--h26-ligne); padding: 10px 0; background: #fff; }
.h26-drawer-foot a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 14px; }
.h26-drawer-foot i { color: var(--h26-orange); width: 18px; text-align: center; }

/* ---------- barre d'onglets mobile ---------- */
.h26-tabbar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
    background: #fff; border-top: 1px solid var(--h26-ligne); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom); font-family: 'Poppins', 'Urbanist', Arial, sans-serif;
}
.h26-tabbar a, .h26-tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px;
    background: none; border: 0; font: inherit; font-size: 11px; color: var(--h26-txt); text-decoration: none; position: relative; cursor: pointer;
}
.h26-tabbar i { font-size: 20px; color: var(--h26-orange); }
.h26-tabbar .h26-badge { top: 2px; right: calc(50% - 22px); }

/* ---------- responsive ---------- */
header.h26 ul.h26-menu { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; position: static; } /* static : le méga-menu se positionne par rapport au nav, pas au ul (base.css met position:relative) */
header.h26 ul.h26-menu::-webkit-scrollbar { display: none; }
@media (max-width: 1500px) {
    header.h26 ul.h26-menu > li > a { padding: 13px 8px; font-size: 13px; }
    header.h26 ul.h26-menu > li > a i { display: none; }   /* chevrons masqués : le survol suffit */
    .h26-burger span { display: none; }                    /* icône seule, libellé dans title */
}
@media (max-width: 1280px) {
    header.h26 ul.h26-menu > li > a { padding: 13px 6px; font-size: 12.5px; }
}
@media (max-width: 1024px) {
    header.h26 ul.h26-menu { display: none; }          /* menu horizontal -> tiroir */
    .h26-top .h26-top-sec { display: none; }
    .h26-main { gap: 16px; }
    .h26-icons { gap: 16px; }
    .h26-icons a span { font-size: 11px; }
}
@media (max-width: 700px) {
    .h26-top { display: none; }
    .h26-main { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px 12px; }
    header.h26.compact .h26-main { height: auto; }
    .h26-logo img, header.h26.compact .h26-logo img { height: 42px; }
    .h26-icons { gap: 14px; }
    .h26-icons a span { display: none; }
    .h26-icons .h26-pro { display: none; }
    .h26-search { order: 3; flex-basis: 100%; max-width: none; }
    .h26-search input, .h26-search button { height: 40px; }
    .h26-nav .h26-wrap { padding: 0 20px; }
    .h26-burger { padding: 10px 0; }
    .h26-burger span { display: inline; }                 /* libellé rétabli : il y a la place */
    .h26-tabbar { display: flex; }
    body { padding-bottom: 62px; }                        /* place pour la barre d'onglets */
}
@media (max-width: 400px) {
    .h26-main { gap: 8px; }
    .h26-icons { gap: 12px; }
}

/* =====================================================================
   Footer 2026
   ===================================================================== */
footer.f26 {
    background: var(--h26-txt); color: #cfc8bd; font-family: 'Poppins', 'Urbanist', Arial, sans-serif;
    font-size: 14px; padding: 0; margin: 0; display: block; border-top: 0; width: 100%;
}
footer.f26 > div { text-align: left; }
footer.f26 > div p:first-child { font-weight: normal; }
footer.f26 > div p a { color: #cfc8bd; }
footer.f26 > div p a:hover { color: #fff; text-decoration: underline; }
footer.f26 * { box-sizing: border-box; }
footer.f26 a { color: #cfc8bd; text-decoration: none; }
footer.f26 a:hover { color: #fff; }
.f26-engage { background: var(--h26-creme); color: var(--h26-txt); border-top: 1px solid var(--h26-ligne); }
.f26-engage .h26-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 20px; }
.f26-engage div { display: flex; align-items: center; gap: 14px; }
.f26-engage i { font-size: 28px; color: var(--h26-orange); width: 34px; text-align: center; flex-shrink: 0; }
.f26-engage b { display: block; font-size: 14px; }
.f26-engage small { color: var(--h26-txt-l); font-size: 12.5px; }
.f26-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 44px 20px 32px; }
footer.f26 h4 { color: #fff; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
footer.f26 ul { list-style: none; margin: 0; padding: 0; }
footer.f26 li { margin: 0 0 8px; }
footer.f26 p { margin: 0 0 12px; }
.f26-brand img { height: 48px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; margin-bottom: 12px; }
.f26-pay { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.f26-pay img { height: 26px; width: auto; background: #fff; border-radius: 4px; padding: 3px 5px; }
.f26-bottom { border-top: 1px solid #55504a; padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.f26-bottom .bouton, .f26-retract { display: inline-block; background: var(--h26-orange); color: #fff !important; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 980px) {
    .f26-engage .h26-wrap { grid-template-columns: repeat(2, 1fr); }
    .f26-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
    .f26-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .f26-engage .h26-wrap { grid-template-columns: 1fr; gap: 10px; }
    .f26-cols { grid-template-columns: 1fr; }
}
