/* ============================================================
   LOCATION v1 — page de demande de location (catalogue + panier + infos),
   design system NEON. S'appuie sur neon-page.css.
   Classes propres à cette page préfixées .loc- pour éviter tout conflit.
   Page en pleine largeur : aucun .neon-container ici, uniquement .loc-wide.
   ============================================================ */

.loc-wide { width: 100%; max-width: none; margin: 0; padding-left: clamp(14px, 1.8vw, 32px); padding-right: clamp(14px, 1.8vw, 32px); box-sizing: border-box; }

/* ---------- HERO COMPACT + AVANTAGES ---------- */
.loc-hero.neon-band { padding-top: 56px; padding-bottom: 36px; }
.loc-hero-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.loc-hero-top .neon-section-title { margin-bottom: 10px; }
.loc-hero-top .neon-hero-sub { margin-bottom: 0; }
.loc-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--neon-accent);
    background: rgba(89,148,212,.12);
    border-radius: 20px;
    padding: 5px 14px;
    white-space: nowrap;
}
.loc-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 28px; }
.loc-adv-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--neon-dark-hairline);
    border-radius: 12px;
}
.loc-adv-item svg { flex: 0 0 26px; width: 26px; height: 26px; stroke: var(--neon-accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.loc-adv-item strong { display: block; font-size: 14px; color: var(--neon-dark-text); margin-bottom: 3px; }
.loc-adv-item span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--neon-dark-text-dim); }

/* ---------- BANDEAU « SANS ENGAGEMENT » ---------- */
.loc-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--neon-light-hairline, #dde3ea);
    border-radius: 10px;
}
.loc-notice svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; stroke: var(--neon-accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loc-notice p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--neon-light-text-dim, #55657a); }
.loc-notice strong { color: var(--neon-light-text, #14202e); }

/* ---------- ZONE APPLICATION : 3 COLONNES 50 / 30 / 20 ---------- */
.loc-app-band.neon-band { padding-top: 28px; padding-bottom: 44px; }
.loc-app-band.neon-band-light { background: #f2f5f9; }
.loc-grid { scroll-margin-top: 84px;
    display: grid;
    grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
    gap: 16px;
    align-items: start;
}
/* panier (30 %) + « Votre location » (20 %) : même hauteur, celle de « Votre location » dépliée en entier */
.loc-right {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
    align-items: stretch;
    min-width: 0;
}
.loc-panel {
    background: #fff;
    border: 1px solid var(--neon-light-hairline, #dde3ea);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15,25,40,.04);
    min-width: 0;
}
.loc-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 12px;
}
.loc-panel-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--neon-light-text, #14202e); }
.loc-count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--neon-accent); }

/* « Votre location » : hauteur naturelle, sans ascenseur ; le panier prend exactement cette hauteur
   (contain:size = le panier ne pèse pas dans le calcul de la hauteur de la ligne) */
.loc-side { display: flex; flex-direction: column; }
.loc-col-cart { contain: size; }
.loc-side > .loc-panel-head { flex: 0 0 auto; }
.loc-cart-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.loc-form { flex: 0 0 auto; overflow: visible; }
.loc-cart-foot[hidden], .loc-pack-hint[hidden], .loc-errors[hidden] { display: none; }

/* ---------- CATALOGUE (gauche) ---------- */
.loc-cat-tools { position: sticky; top: var(--loc-sticky-top, 84px); z-index: 3; background: #fff; border-radius: 14px 14px 0 0; padding: 0 18px 12px; border-bottom: 1px solid var(--neon-light-hairline, #dde3ea); }
.loc-cat-tools .loc-panel-head { padding-left: 0; padding-right: 0; }
.loc-search { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; padding: 10px 12px; border: 1px solid #cdd5df; border-radius: 9px; background: #f8fafc; color: #14202e; }
.loc-search:focus, .loc-field:focus { outline: 2px solid var(--neon-accent); outline-offset: 0; border-color: var(--neon-accent); background: #fff; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.loc-chip {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #3d4b5c;
    background: #eef2f7;
    border-radius: 20px;
    padding: 6px 12px;
    transition: background .15s, color .15s;
}
.loc-chip:hover { background: #e1e8f0; }
.loc-chip.is-on { background: var(--neon-accent); color: #fff; }
.loc-chip:focus-visible, .loc-btn:focus-visible, .loc-step button:focus-visible { outline: 2px solid var(--neon-accent); outline-offset: 2px; }

.loc-list { padding: 4px 18px 18px; }
.loc-group-title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--neon-accent); font-weight: 600; margin: 18px 0 6px; }
.loc-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}
.loc-item:last-child { border-bottom: 0; }
.loc-thumb {
    width: 104px;
    height: 78px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6ebf1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.loc-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.loc-thumb svg { width: 40px; height: 40px; stroke: #8aa0b6; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.loc-item-body h3 { margin: 0 0 3px; font-size: 14.5px; font-weight: 650; color: var(--neon-light-text, #14202e); line-height: 1.3; }
.loc-item-body p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--neon-light-text-dim, #55657a); }
.loc-item-act { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 112px; }
.loc-empty { padding: 28px 8px; text-align: center; font-size: 13.5px; color: var(--neon-light-text-dim, #55657a); }

/* ---------- BOUTONS + STEPPER ---------- */
.loc-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--neon-accent);
    color: #fff;
    text-align: center;
    transition: filter .15s, background .15s;
}
.loc-btn:hover { filter: brightness(1.08); }
.loc-btn-ghost { background: #fff; color: #3d4b5c; border: 1px solid #cdd5df; }
.loc-btn-ghost:hover { background: #f3f6fa; filter: none; }
.loc-btn-block { display: flex; width: 100%; padding: 12px 14px; font-size: 14px; }
.loc-btn[disabled] { opacity: .55; cursor: wait; }

.loc-step { display: inline-flex; align-items: center; border: 1px solid #cdd5df; border-radius: 9px; background: #fff; overflow: hidden; }
.loc-step button { all: unset; cursor: pointer; width: 30px; height: 32px; text-align: center; font-size: 17px; line-height: 32px; color: #3d4b5c; }
.loc-step button:hover { background: #eef2f7; }
.loc-step input { width: 36px; height: 32px; box-sizing: border-box; border: 0; border-left: 1px solid #e3e8ee; border-right: 1px solid #e3e8ee; text-align: center; font: inherit; font-size: 13.5px; font-weight: 600; color: #14202e; background: #fff; -moz-appearance: textfield; }
.loc-step input::-webkit-outer-spin-button, .loc-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- PANIER (milieu) ---------- */
.loc-cart-body { padding: 0 18px 8px; }
.loc-cart-empty { margin: 4px 0 14px; padding: 26px 14px; text-align: center; border: 1.5px dashed #cdd5df; border-radius: 12px; font-size: 13.5px; line-height: 1.55; color: var(--neon-light-text-dim, #55657a); }
.loc-line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.loc-line:last-child { border-bottom: 0; }
.loc-line .loc-thumb { width: 56px; height: 44px; border-radius: 8px; }
.loc-line .loc-thumb svg { width: 24px; height: 24px; }
.loc-line h3 { margin: 0 0 2px; font-size: 13.5px; font-weight: 650; line-height: 1.3; color: var(--neon-light-text, #14202e); }
.loc-line p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: var(--neon-light-text-dim, #55657a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loc-line-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loc-note-label { display: block; margin: 10px 0 4px; font-size: 11.5px; font-weight: 600; color: #3d4b5c; }
.loc-line .loc-note { margin: 0; font-size: 12px; min-height: 84px; line-height: 1.45; }
.loc-remove { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; color: #b3453c; padding: 4px 2px; }
.loc-remove:hover { text-decoration: underline; }
.loc-cart-foot { padding: 12px 18px 16px; border-top: 1px solid #edf1f5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.loc-cart-sum { font-size: 13px; color: #3d4b5c; }
.loc-cart-sum strong { color: #14202e; }
.loc-link { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--neon-accent); }
.loc-link:hover { text-decoration: underline; }
.loc-pack-hint { margin: 0 18px 16px; padding: 12px 14px; border-radius: 10px; background: rgba(89,148,212,.1); font-size: 12.5px; line-height: 1.55; color: #3d4b5c; }
.loc-pack-hint strong { color: #14202e; }

/* ---------- INFOS DE LOCATION (droite) ---------- */
.loc-form { padding: 0 16px 0; }
.loc-fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.loc-fieldset > legend, .loc-legend { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--neon-accent); padding: 0; margin: 0 0 8px; }
.loc-label { display: block; font-size: 12px; font-weight: 600; color: #3d4b5c; margin: 0 0 4px; }
.loc-label em { color: #b3453c; font-style: normal; }
.loc-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 13px;
    padding: 9px 10px;
    margin: 0 0 10px;
    border: 1px solid #cdd5df;
    border-radius: 8px;
    background: #f8fafc;
    color: #14202e;
}
textarea.loc-field { min-height: 70px; resize: vertical; }
.loc-field.is-bad { border-color: #c0483e; background: #fff6f5; }
.loc-hint { margin: -4px 0 10px; font-size: 11.5px; line-height: 1.45; color: var(--neon-light-text-dim, #55657a); }
.loc-hint.is-warn { color: #9a6a00; }
.loc-check, .loc-radio { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: #2c3a4b; margin: 0 0 8px; cursor: pointer; }
.loc-check input, .loc-radio input { margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--neon-accent); }
.loc-check small { display: block; color: var(--neon-light-text-dim, #55657a); font-size: 11.5px; }
.loc-submit { position: sticky; bottom: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 18%); padding: 14px 16px 16px; margin: 0 -16px; }
.loc-errors { margin: 0 0 10px; padding: 10px 12px; border-radius: 9px; background: #fff1ef; border: 1px solid #efc3be; font-size: 12.5px; line-height: 1.5; color: #8c2f27; }
.loc-errors ul { margin: 4px 0 0 16px; padding: 0; }
.loc-legal { margin: 8px 0 0; font-size: 11px; line-height: 1.45; color: var(--neon-light-text-dim, #55657a); }

/* ---------- RESULTAT D'ENVOI (fenêtre) ---------- */
.loc-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(8,14,24,.66); }
.loc-modal.is-open { display: flex; }
.loc-modal-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.loc-modal-box h2 { margin: 0 0 6px; font-size: 20px; color: #14202e; }
.loc-modal-ref { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--neon-accent); margin: 0 0 12px; }
.loc-modal-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #3d4b5c; }
.loc-modal-steps { margin: 0 0 16px; padding: 0; list-style: none; }
.loc-modal-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #3d4b5c; margin: 0 0 6px; }
.loc-modal-steps li::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #b8c4d2; }
.loc-modal-steps li.ok::before { background: #2f9e62; }
.loc-modal-steps li.ko::before { background: #c0483e; }
.loc-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- COMMENT CA SE PASSE (bas de page) ---------- */
.loc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.loc-step-card { padding: 20px 22px; background: rgba(255,255,255,.04); border: 1px solid var(--neon-dark-hairline); border-radius: 12px; }
.loc-step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--neon-accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.loc-step-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--neon-dark-text); }
.loc-step-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--neon-dark-text-dim); }

/* ---------- BARRE PANIER MOBILE ---------- */
.loc-mobile-bar { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1240px) {
    .loc-right { display: block; }
    .loc-col-cart { contain: none; margin-bottom: 16px; }
    .loc-side { display: block; }
    .loc-cart-body { overflow: visible; }
    .loc-submit { position: static; background: none; padding-left: 0; padding-right: 0; margin: 0; }
}
@media (max-width: 760px) {
    .loc-grid { grid-template-columns: minmax(0, 1fr); }
    .loc-cat-tools { top: 0; }
    .loc-item { grid-template-columns: 76px minmax(0, 1fr); }
    .loc-thumb { width: 76px; height: 58px; }
    .loc-item-act { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .loc-item-act .loc-btn { flex: 1; }
    .loc-mobile-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 9990;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        background: #0f1b2d;
        color: #fff;
        font-size: 13px;
        box-shadow: 0 -4px 18px rgba(0,0,0,.3);
    }
    .loc-mobile-bar a { color: #fff; font-weight: 700; text-decoration: none; background: var(--neon-accent); border-radius: 8px; padding: 8px 14px; }
    .loc-app-band.neon-band { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .loc-btn, .loc-chip { transition: none; } }
