/* =====================================================================
 * Fichier : assets/css/pages/liefergebiet.css
 * Projet  : Brennholz Shop24
 * Rôle    : Styles propres à la page locale d'une zone de livraison
 *           (liefergebiet.php) : en-tête avec chiffres clés, modes de
 *           livraison, calculateur de frais, texte local et étapes,
 *           produits populaires, FAQ, villes voisines, barre mobile,
 *           état « zone introuvable ».
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. En-tête
 * ------------------------------------------------------------------- */
.lz-hero-embers { position: absolute; inset: 0; pointer-events: none; }
.lz-hero-inner { position: relative; z-index: 1; }
.lz-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: 1rem; }
.lz-hero-text h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); animation: hfk-fade-up .7s var(--hfk-ease) both; }
.lz-hero-text h1 span { display: block; background: var(--hfk-grad-fire-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lz-hero-text > p { animation: hfk-fade-up .7s .12s var(--hfk-ease) both; }
.lz-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; animation: hfk-fade-up .7s .22s var(--hfk-ease) both; }
.lz-hero-actions .btn.is-done, .lz-bar .btn.is-done { background: var(--hfk-forest); border-color: var(--hfk-forest); color: #fff; }
.lz-hero-actions .btn.is-loading, .lz-bar .btn.is-loading { pointer-events: none; opacity: .85; }
.lz-hero-actions .btn.is-loading i, .lz-bar .btn.is-loading i { animation: hfk-spin .8s linear infinite; }
.lz-hero-eta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1.2rem 0 0; padding: .55rem .9rem; font-size: .92rem; background: rgba(255, 255, 255, .08); border-left: 3px solid var(--hfk-amber); animation: hfk-fade-up .7s .3s var(--hfk-ease) both; }
.lz-hero-eta i { color: var(--hfk-amber); }
.lz-hero-eta strong { color: #fff; }

.lz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.lz-tile { position: relative; padding: 1.2rem 1.2rem 1.1rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-top: 4px solid var(--hfk-flame); overflow: hidden; backdrop-filter: blur(6px); transition: transform .4s var(--hfk-ease), background .4s; animation: hfk-fade-up .7s var(--hfk-ease) both; }
.lz-tile:nth-child(1) { animation-delay: .15s; }
.lz-tile:nth-child(2) { animation-delay: .25s; }
.lz-tile:nth-child(3) { animation-delay: .35s; }
.lz-tile:nth-child(4) { animation-delay: .45s; }
.lz-tile:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .12); }
.lz-tile.is-sky { border-top-color: var(--hfk-sky); }
.lz-tile.is-forest { border-top-color: var(--hfk-forest); }
.lz-tile.is-amber { border-top-color: var(--hfk-amber); }
.lz-tile.is-off { border-top-color: rgba(255, 255, 255, .25); opacity: .7; }
.lz-tile > i { position: absolute; right: .9rem; top: .9rem; font-size: 2.2rem; color: rgba(255, 255, 255, .13); transition: transform .4s var(--hfk-ease), color .4s; }
.lz-tile:hover > i { transform: scale(1.15) rotate(-8deg); color: rgba(255, 227, 43, .5); }
.lz-tile small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #D5DADF; }
.lz-tile strong { display: block; margin: .25rem 0 .1rem; font-family: var(--hfk-font-head); font-size: clamp(1.2rem, 2.1vw, 1.6rem); line-height: 1.15; color: #fff; }
.lz-tile span { font-size: .82rem; color: #D5DADF; }

/* ---------------------------------------------------------------------
 * 2. Modes de livraison
 * ------------------------------------------------------------------- */
.lz-options-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.lz-option { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--hfk-border); border-left: 5px solid var(--hfk-flame); transition: transform .35s var(--hfk-ease), box-shadow .35s var(--hfk-ease), border-color .35s; }
.lz-option:nth-child(5n+2) { border-left-color: var(--hfk-amber); }
.lz-option:nth-child(5n+3) { border-left-color: var(--hfk-sky); }
.lz-option:nth-child(5n+4) { border-left-color: var(--hfk-forest); }
.lz-option:nth-child(5n+5) { border-left-color: var(--hfk-plum); }
.lz-option:hover { transform: translateX(6px); box-shadow: var(--hfk-shadow-md, var(--hfk-shadow-sm)); }
.lz-option.is-off { border-left-color: var(--hfk-border); background: var(--hfk-cream); }
.lz-option.is-off h3, .lz-option.is-off p { opacity: .6; }
.lz-option-icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--hfk-charcoal); color: var(--hfk-amber); font-size: 1.35rem; transition: background .3s, color .3s, transform .35s var(--hfk-ease); }
.lz-option:hover .lz-option-icon { background: var(--hfk-flame); color: #fff; transform: rotate(-6deg); }
.lz-option.is-off .lz-option-icon { background: var(--hfk-ash); color: var(--hfk-muted); }
.lz-option h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.lz-option p { margin: 0; font-size: .92rem; color: var(--hfk-muted); }
.lz-option small { display: inline-block; margin-top: .35rem; font-size: .82rem; font-weight: 600; color: var(--hfk-forest-dark); }
.lz-option.is-off small { color: var(--hfk-ember-dark); }
.lz-option-price { text-align: right; white-space: nowrap; }
.lz-option-price strong { display: block; font-family: var(--hfk-font-head); font-size: 1.35rem; color: var(--hfk-flame-dark); }
.lz-option.is-off .lz-option-price strong { font-size: 1rem; color: var(--hfk-muted); }
.lz-option-price span { font-size: .82rem; color: var(--hfk-muted); }
.lz-minorder { margin: 1.2rem 0 0; padding: .8rem 1rem; background: var(--hfk-amber-light); border-left: 4px solid var(--hfk-amber); }
.lz-minorder i { color: #7A6200; margin-right: .3rem; }

/* ---------------------------------------------------------------------
 * 3. Calculateur
 * ------------------------------------------------------------------- */
.lz-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.lz-calc-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.lz-calc-text p { color: #D5DADF; }
.lz-calc-text ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.lz-calc-text li { display: flex; gap: .7rem; padding: .35rem 0; color: #E6E9EC; }
.lz-calc-text li i { margin-top: .3rem; color: var(--hfk-amber); }

.lz-calc { padding: clamp(1.3rem, 3vw, 2rem); background: #fff; color: var(--hfk-text); border-top: 5px solid var(--hfk-flame); box-shadow: var(--hfk-shadow-lg); }
.lz-calc > label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hfk-muted); }
.lz-calc-amount { display: block; margin: .1rem 0 .6rem; font-family: var(--hfk-font-head); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.1; color: var(--hfk-charcoal); }
.lz-calc-amount.is-bump { animation: lz-bump .25s var(--hfk-ease); }
@keyframes lz-bump { 50% { transform: scale(1.04); color: var(--hfk-flame-dark); } }
.lz-calc input[type="range"] { --lz-fill: 20%; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lz-calc input[type="range"]:focus { outline: 0; }
.lz-calc input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--hfk-flame) 0 var(--lz-fill), var(--hfk-ash) var(--lz-fill) 100%); }
.lz-calc input[type="range"]::-moz-range-track { height: 8px; background: var(--hfk-ash); }
.lz-calc input[type="range"]::-moz-range-progress { height: 8px; background: var(--hfk-flame); }
.lz-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; background: var(--hfk-charcoal); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--hfk-flame), var(--hfk-shadow-sm); transition: transform .2s var(--hfk-ease); }
.lz-calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 0; background: var(--hfk-charcoal); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--hfk-flame); }
.lz-calc input[type="range"]:active::-webkit-slider-thumb, .lz-calc input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.18); }
.lz-calc-scale { position: relative; display: flex; justify-content: space-between; margin-top: .2rem; font-size: .76rem; color: var(--hfk-muted); }
.lz-calc-mark { position: absolute; top: 0; transform: translateX(-50%); padding: 0 .35rem; background: var(--hfk-forest); color: #fff; font-weight: 600; white-space: nowrap; }
.lz-calc-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.2rem; }
.lz-calc-modes label { margin: 0; cursor: pointer; }
.lz-calc-modes input { position: absolute; opacity: 0; pointer-events: none; }
.lz-calc-modes span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem .8rem; border: 2px solid var(--hfk-border); font-weight: 700; color: var(--hfk-charcoal); transition: background .25s, border-color .25s, color .25s; }
.lz-calc-modes input:checked + span { background: var(--hfk-charcoal); border-color: var(--hfk-charcoal); color: #fff; }
.lz-calc-modes input:checked + span i { color: var(--hfk-amber); }
.lz-calc-modes input:focus-visible + span { outline: 2px solid var(--hfk-flame); outline-offset: 2px; }
.lz-calc-result { margin: 1.2rem 0 0; }
.lz-calc-result > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--hfk-border); }
.lz-calc-result dt { font-weight: 400; color: var(--hfk-muted); }
.lz-calc-result dd { margin: 0; font-weight: 700; color: var(--hfk-charcoal); }
.lz-calc-result dd.is-free { color: var(--hfk-forest-dark); }
.lz-calc-result .is-total { border-bottom: 0; padding-top: .7rem; }
.lz-calc-result .is-total dt { font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); }
.lz-calc-result .is-total dd { font-family: var(--hfk-font-head); font-size: 1.5rem; color: var(--hfk-flame-dark); }
.lz-calc-free { margin: .6rem 0 1.2rem; padding: .8rem .9rem; background: var(--hfk-cream); transition: background .4s; }
.lz-calc-free.is-reached { background: #E8F6EC; }
.lz-calc-bar { height: 8px; background: var(--hfk-ash); overflow: hidden; }
.lz-calc-bar span { display: block; height: 100%; background: var(--hfk-grad-fire-h); transition: width .3s var(--hfk-ease), background .4s; }
.lz-calc-free.is-reached .lz-calc-bar span { background: var(--hfk-forest); }
.lz-calc-free p { margin: .5rem 0 0; font-size: .88rem; color: var(--hfk-text); }
.lz-calc-free.is-reached p { color: var(--hfk-forest-dark); font-weight: 600; }
.lz-calc-free.is-off { display: none; }

/* ---------------------------------------------------------------------
 * 4. Texte local et étapes
 * ------------------------------------------------------------------- */
.lz-about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.lz-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.rich-text .lz-cats li { margin: 0; padding: 0; }
.rich-text .lz-cats li::before { display: none; }
.lz-cats a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--hfk-border); background: #fff; color: var(--hfk-charcoal); font-weight: 600; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--hfk-ease); }
.lz-cats a i { color: var(--hfk-flame); transition: color .25s; }
.lz-cats a:hover { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; transform: translateY(-3px); }
.lz-cats a:hover i { color: #fff; }

.lz-steps { position: sticky; top: calc(var(--hfk-header-h, 80px) + 1rem); padding: clamp(1.2rem, 2.6vw, 1.8rem); background: var(--hfk-cream); border-top: 4px solid var(--hfk-charcoal); }
.lz-steps h2 { margin: 0 0 1.2rem; font-size: 1.3rem; }
.lz-steps ol { position: relative; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.lz-steps ol::before { content: ''; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px; background: var(--hfk-border); }
.lz-steps li { position: relative; display: flex; gap: .9rem; padding-bottom: 1.1rem; }
.lz-steps li:last-child { padding-bottom: 0; }
.lz-steps li > span { position: relative; z-index: 1; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; background: #fff; border: 2px solid var(--hfk-border); color: var(--hfk-flame); transition: background .3s, color .3s, border-color .3s, transform .3s var(--hfk-ease); }
.lz-steps li:hover > span { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; transform: scale(1.1); }
.lz-steps strong { display: block; font-family: var(--hfk-font-head); color: var(--hfk-charcoal); }
.lz-steps p { margin: .1rem 0 0; font-size: .9rem; color: var(--hfk-muted); }

.lz-products-more { margin: 2rem 0 0; text-align: center; }

/* ---------------------------------------------------------------------
 * 5. FAQ, villes voisines, appel à l'action
 * ------------------------------------------------------------------- */
.lz-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.lz-faq-intro { position: sticky; top: calc(var(--hfk-header-h, 80px) + 1rem); }
.lz-contact { display: grid; gap: .5rem; margin-top: 1.2rem; }
.lz-contact a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; background: var(--hfk-cream); border-left: 4px solid var(--hfk-flame); font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); transition: background .25s, color .25s, padding-left .25s var(--hfk-ease); }
.lz-contact a:hover { background: var(--hfk-charcoal); color: #fff; padding-left: 1.3rem; }
.lz-contact a i { color: var(--hfk-flame); }
.lz-faq-item { margin-bottom: .6rem; background: #fff; border: 1px solid var(--hfk-border); border-left: 4px solid var(--hfk-border); transition: border-color .3s, box-shadow .3s; }
.lz-faq-item[open] { border-left-color: var(--hfk-flame); box-shadow: var(--hfk-shadow-sm); }
.lz-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; list-style: none; cursor: pointer; font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); transition: color .25s; }
.lz-faq-item summary::-webkit-details-marker { display: none; }
.lz-faq-item summary:hover { color: var(--hfk-flame-dark); }
.lz-faq-item summary i { flex: 0 0 auto; color: var(--hfk-flame); transition: transform .35s var(--hfk-ease); }
.lz-faq-item[open] summary i { transform: rotate(135deg); }
.lz-faq-item > div { padding: 0 1.1rem 1rem; }
.lz-faq-item[open] > div { animation: hfk-fade-up .35s var(--hfk-ease) both; }
.lz-faq-item p { margin: 0; font-size: .95rem; color: var(--hfk-text); }

.lz-nearby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.lz-nearby-list a { position: relative; display: block; padding: .8rem 2.4rem .8rem 1rem; background: #fff; border-bottom: 3px solid var(--hfk-border); color: inherit; transition: transform .3s var(--hfk-ease), border-color .3s, box-shadow .3s; }
.lz-nearby-list a:hover { transform: translateY(-4px); border-color: var(--hfk-flame); box-shadow: var(--hfk-shadow-md, var(--hfk-shadow-sm)); }
.lz-nearby-list strong { display: block; font-family: var(--hfk-font-head); color: var(--hfk-charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-nearby-list span { font-size: .82rem; color: var(--hfk-muted); }
.lz-nearby-list span i { color: var(--hfk-amber); }
.lz-nearby-list a > i { position: absolute; right: 1rem; top: 50%; transform: translate(-6px, -50%); color: var(--hfk-flame); opacity: 0; transition: opacity .25s, transform .25s var(--hfk-ease); }
.lz-nearby-list a:hover > i { opacity: 1; transform: translate(0, -50%); }
.lz-nearby-more { margin: 1.5rem 0 0; }

.lz-cta { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--hfk-grad-fire-h); background-size: 200% 100%; animation: hfk-gradient-pan 10s ease-in-out infinite alternate; color: #fff; }
.lz-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.lz-cta-inner h2 { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lz-cta-inner p { margin: 0; color: rgba(255, 255, 255, .94); }
.lz-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------------------------------------------------------------------
 * 6. Barre mobile et zone introuvable
 * ------------------------------------------------------------------- */
.lz-bar { display: none; }
.lz-missing .empty-state h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.lz-missing-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 560px; margin: 1.4rem auto; }
.lz-missing-form .form-control { flex: 1; min-width: 200px; }
.lz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.lz-chips a { display: block; padding: .4rem .8rem; border: 1px solid var(--hfk-border); background: #fff; color: var(--hfk-charcoal); font-size: .88rem; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.lz-chips a:hover { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; }

/* ---------------------------------------------------------------------
 * 7. Adaptation aux écrans
 * ------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .lz-hero-grid, .lz-calc-grid, .lz-about-grid, .lz-faq-grid { grid-template-columns: minmax(0, 1fr); }
    .lz-steps, .lz-faq-intro { position: static; }
}
@media (max-width: 767.98px) {
    .lz-option { grid-template-columns: 48px minmax(0, 1fr); gap: .8rem 1rem; padding: 1rem; }
    .lz-option-icon { width: 48px; height: 48px; font-size: 1.1rem; align-self: start; }
    .lz-option-price { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding-top: .7rem; border-top: 1px dashed var(--hfk-border); text-align: left; }
    .lz-option:hover { transform: none; }
    .lz-cta-inner, .lz-cta-actions { flex-direction: column; align-items: stretch; }
    .lz-bar { position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .14); transform: translateY(110%); transition: transform .4s var(--hfk-ease); }
    .lz-bar.is-visible { transform: none; }
    .lz-bar > div { min-width: 0; }
    .lz-bar small { display: block; font-size: .72rem; color: var(--hfk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lz-bar strong { font-family: var(--hfk-font-head); font-size: .98rem; color: var(--hfk-charcoal); white-space: nowrap; }
    .lz-bar .btn { flex: 0 0 auto; }
    body.page-liefergebiet { padding-bottom: 70px; }
}
@media (max-width: 575.98px) {
    .lz-hero-actions .btn { width: 100%; }
    .lz-tile { padding: .9rem; }
    .lz-tile > i { font-size: 1.5rem; right: .6rem; top: .6rem; }
    .lz-tile small { font-size: .66rem; letter-spacing: .05em; padding-right: 1.6rem; }
    .lz-tile span { font-size: .74rem; }
    .lz-nearby-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lz-nearby-list a { padding-right: 1rem; }
    .lz-nearby-list a > i { display: none; }
    .lz-missing-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lz-cta { animation: none; }
}

/* Les entrées latérales (AOS fade-left / fade-right) ne doivent pas élargir la page */
.lz-calc-section, .lz-faq-section { overflow-x: clip; }