/* ============================================================================
   ACCUEIL — CORPS DE PAGE : « À propos » + « Comment commander »
   Fichier : assets/css/home-body.css  (v1.0)
   Portée  : toutes les règles sont préfixées .hb- et limitées à main.hb-main
   Charte  : bleu #004E89 · orange #FF6B35 · jaune #F7B801 · marine #1A1A2E
   Police  : Montserrat (déjà chargée via fonts-local.css)
   ============================================================================ */

/* ---------- 1. Jetons de design + base ---------- */
main.hb-main {
    --hb-blue: #004E89;
    --hb-blue-2: #0A6BB5;
    --hb-navy: #1A1A2E;
    --hb-orange: #FF6B35;
    --hb-yellow: #F7B801;
    --hb-ink: #1A1A2E;
    --hb-text: #334155;     /* 10:1 sur blanc */
    --hb-muted: #475569;    /* 7.6:1 sur blanc */
    --hb-line: #E2E8F0;
    --hb-tint: #F4F8FC;
    --hb-surface: #FFFFFF;
    --hb-radius: 18px;
    --hb-radius-sm: 12px;
    --hb-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .08);
    --hb-ease: cubic-bezier(.4, 0, .2, 1);
    --hb-gap: clamp(1.25rem, 2.5vw, 2rem);

    min-height: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.5rem);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--hb-text);
    background: transparent;
}

.hb-main .hb-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 1025px) {
    /* Même largeur utile que la section « Avis » (avis.css : 2.5rem) */
    .hb-main .hb-container { padding: 0 2.5rem; }
}

.hb-main .hb-section { scroll-margin-top: 6rem; }
.hb-main .hb-section + .hb-section { margin-top: var(--hb-gap); }

.hb-main .hb-card {
    background: var(--hb-surface);
    border: 1px solid rgba(0, 78, 137, .08);
    border-radius: var(--hb-radius);
    box-shadow: var(--hb-shadow);
    padding: clamp(1.25rem, 3.2vw, 3rem);
}

/* ---------- 2. Typographie ---------- */
.hb-main .hb-eyebrow {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .65rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--hb-blue);
}
.hb-main .hb-eyebrow::before,
.hb-main .hb-head--center .hb-eyebrow::after {
    content: '';
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hb-orange), var(--hb-yellow));
}
.hb-main .hb-head--center .hb-eyebrow::after { background: linear-gradient(90deg, var(--hb-yellow), var(--hb-orange)); }
.hb-main .hb-eyebrow::before { flex: 0 0 auto; }

.hb-main .hb-title {
    margin: 0 0 1.1rem;
    font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--hb-blue);
    text-wrap: balance;
}

.hb-main .hb-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hb-main .hb-head--center { text-align: center; }
.hb-main .hb-head--center .hb-eyebrow { justify-content: center; }
.hb-main .hb-head--center .hb-title { margin-bottom: .9rem; }
.hb-main .hb-intro {
    margin: 0 auto;
    max-width: 62ch;
    font-size: 1.0625rem;
    color: var(--hb-text);
}

.hb-main .hb-link {
    color: var(--hb-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(0, 78, 137, .35);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s var(--hb-ease);
}
.hb-main .hb-link:hover { text-decoration-color: var(--hb-blue); }

.hb-main .hb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hb-main .hb-ico { width: 20px; height: 20px; flex: 0 0 auto; display: block; }

/* ---------- 3. Boutons + focus clavier ---------- */
.hb-main .hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;                 /* cible tactile ≥ 44-48 px */
    padding: .8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s var(--hb-ease), color .2s var(--hb-ease),
                border-color .2s var(--hb-ease), box-shadow .2s var(--hb-ease), transform .2s var(--hb-ease);
}
.hb-main .hb-btn .hb-ico { width: 18px; height: 18px; transition: transform .2s var(--hb-ease); }
.hb-main .hb-btn:hover .hb-ico { transform: translateX(3px); }
.hb-main .hb-btn:active { transform: scale(.98); }

.hb-main .hb-btn--primary { background: var(--hb-yellow); color: var(--hb-navy); }
.hb-main .hb-btn--primary:hover {
    background: #FFC933;
    box-shadow: 0 8px 20px rgba(247, 184, 1, .38);
    transform: translateY(-2px);
}
.hb-main .hb-btn--ghost { background: transparent; color: var(--hb-blue); border-color: var(--hb-blue); }
.hb-main .hb-btn--ghost:hover { background: var(--hb-blue); color: #fff; }

.hb-main a:focus-visible,
.hb-main button:focus-visible {
    outline: 3px solid var(--hb-blue);
    outline-offset: 3px;
}
.hb-main .hb-cta a:focus-visible { outline-color: #fff; }

/* ---------- 4. Section « À propos de nous » ---------- */
.hb-main .hb-about-grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 1025px) {
    .hb-main .hb-about-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: center;
    }
}
.hb-main .hb-about-copy p {
    margin: 0 0 1rem;
    max-width: 68ch;
    font-size: 1rem;
    color: var(--hb-text);
}
.hb-main .hb-about-copy .hb-lead { font-size: 1.0625rem; color: var(--hb-ink); } .hb-main .hb-about-copy p { max-width: 42rem; text-align: justify; text-justify: inter-word; hyphens: auto; hyphenate-limit-chars: 9 4 4; -webkit-hyphens: auto; overflow-wrap: break-word; } .hb-main .hb-about-copy .hb-nw, .hb-main .hb-about-copy strong { white-space: nowrap; hyphens: none; -webkit-hyphens: none; }
.hb-main .hb-about-copy strong { color: var(--hb-blue); font-weight: 700; } .hb-main .hb-about .hb-eyebrow::before { display: none; } .hb-main .hb-about-grid { align-items: start; } .hb-main .hb-about .hb-eyebrow { font-size: clamp(1.2rem, 2.4vw, 1.65rem); font-weight: 800; letter-spacing: .1em; margin-bottom: 1rem; }
.hb-main .hb-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.hb-main .hb-values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .875rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    align-content: start;
}
.hb-main .hb-value {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem;
    background: var(--hb-tint);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-sm);
}
.hb-main .hb-value-ico {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--hb-blue);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), inset 0 0 0 1px var(--hb-line);
}
.hb-main .hb-value-ico .hb-ico { width: 22px; height: 22px; }
.hb-main .hb-value h3 {
    margin: 0 0 .2rem;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hb-ink);
}
.hb-main .hb-value p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--hb-muted); }

/* ---------- 5. Section « Comment commander » : étapes ---------- */
.hb-main .hb-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}
.hb-main .hb-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 1.25rem;
}
.hb-main .hb-step-num {
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: 1.1rem;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--hb-blue), var(--hb-blue-2));
    box-shadow: 0 0 0 6px var(--hb-surface), 0 8px 18px rgba(0, 78, 137, .28);
}
/* Fil conducteur de la frise (desktop / tablette) */
.hb-main .hb-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 27px;
    width: 2px;
    top: calc(1.1rem + 56px + 6px);
    bottom: calc(6px - 1.25rem - 1.1rem);
    background: #CBD9E8;
}

.hb-main .hb-step-card {
    min-width: 0;
    padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2.4vw, 1.9rem);
    background: var(--hb-tint);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
}
.hb-main .hb-step-head { margin: 0; font-size: inherit; line-height: inherit; }
.hb-main .hb-step-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: default;
    pointer-events: none;            /* desktop : titre non interactif */
    -webkit-tap-highlight-color: transparent;
}
.hb-main .hb-step-title {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--hb-blue);
}
.hb-main .hb-step-badge,
.hb-main .hb-chevron { display: none; }

.hb-main .hb-step-panel { display: block; }
.hb-main .hb-step-body { display: grid; gap: 1rem 2rem; margin-top: .9rem; }
@media (min-width: 1025px) {
    .hb-main .hb-step-body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: start; }
}
.hb-main .hb-step-intro { margin: 0; font-size: 1rem; color: var(--hb-text); }
.hb-main .hb-step-intro strong { color: var(--hb-ink); font-weight: 700; }

.hb-main .hb-details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .hb-main .hb-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-main .hb-details--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    .hb-main .hb-details--3 { grid-template-columns: 1fr; }   /* colonne droite étroite */
}
.hb-main .hb-detail {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .8rem .95rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-left: 3px solid var(--hb-yellow);
    border-radius: 10px;
}
.hb-main .hb-detail strong { font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--hb-blue); }
.hb-main .hb-detail span { font-size: .875rem; line-height: 1.5; color: var(--hb-muted); }

/* ---------- 6. Bandeau « Vous ne trouvez pas votre pièce ? » ---------- */
.hb-main .hb-cta {
    position: relative;
    overflow: hidden;
    margin-top: var(--hb-gap);
    display: grid;
    gap: 1.25rem 2rem;
    align-items: center;
    justify-items: center;
    padding: clamp(1.4rem, 3.2vw, 2.5rem);
    border-radius: var(--hb-radius);
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(247, 184, 1, .22) 0, rgba(247, 184, 1, 0) 45%),
        linear-gradient(135deg, var(--hb-navy) 0%, var(--hb-blue) 100%);
    box-shadow: var(--hb-shadow);
}
@media (min-width: 769px) {
    .hb-main .hb-cta {
        grid-template-columns: auto minmax(0, 1fr) auto;
        justify-items: stretch;
        text-align: left;
    }
}
.hb-main .hb-cta-ico {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--hb-yellow);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
}
.hb-main .hb-cta-ico .hb-ico { width: 30px; height: 30px; }
.hb-main .hb-cta h3 {
    margin: 0 0 .4rem;
    font-size: clamp(1.1rem, .95rem + .7vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}
.hb-main .hb-cta p { margin: 0; max-width: 60ch; font-size: 1rem; color: rgba(255, 255, 255, .9); } .hb-main .hb-step-intro, .hb-main .hb-detail span, .hb-main .hb-cta p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 3 3; overflow-wrap: break-word; } .hb-main .hb-about .hb-eyebrow { color: var(--hb-blue); display: inline-block; padding-bottom: .5rem; margin-bottom: 1.25rem; background: linear-gradient(90deg, var(--hb-yellow) 0%, var(--hb-yellow) 70%, rgba(255, 193, 7, 0) 100%) no-repeat left bottom / 100% 3px; }

/* ---------- 7. Mobile (≤ 768 px) : étapes en accordéon ---------- */
@media (max-width: 768px) {
    .hb-main .hb-card { border-radius: 16px; }

    .hb-main .hb-steps { gap: .75rem; }
    .hb-main .hb-step { display: block; }
    .hb-main .hb-step:not(:last-child)::before { display: none; }
    .hb-main .hb-step-num { display: none; }

    .hb-main .hb-step-card {
        padding: 0;
        overflow: hidden;
        background: var(--hb-surface);
        border-radius: 14px;
        transition: border-color .25s var(--hb-ease), box-shadow .25s var(--hb-ease);
    }
    .hb-main .hb-step.is-open .hb-step-card {
        border-color: rgba(0, 78, 137, .35);
        box-shadow: 0 6px 18px rgba(0, 78, 137, .1);
    }

    .hb-main .hb-step-toggle {
        min-height: 60px;                 /* cible tactile confortable */
        padding: .75rem 1rem;
        cursor: pointer;
        pointer-events: auto;
    }
    .hb-main .hb-step-toggle:focus-visible { outline-offset: -3px; border-radius: 14px; }
    .hb-main .hb-step-title { font-size: .98rem; }
    .hb-main .hb-step-badge {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        font-size: 1.05rem;
        font-weight: 800;
        color: #fff;
        background: linear-gradient(135deg, var(--hb-blue), var(--hb-blue-2));
        transition: background .25s var(--hb-ease), color .25s var(--hb-ease);
    }
    .hb-main .hb-step.is-open .hb-step-badge { background: var(--hb-yellow); color: var(--hb-navy); }
    .hb-main .hb-chevron {
        display: block;
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        color: var(--hb-blue);
        transition: transform .3s var(--hb-ease);
    }
    .hb-main .hb-step.is-open .hb-chevron { transform: rotate(180deg); }

    /* Repli animé sans toucher à height (grid 0fr → 1fr) ; visibility empêche le focus dans le panneau fermé */
    .hb-main .hb-step-panel {
        display: grid;
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows .3s var(--hb-ease), visibility 0s linear .3s;
    }
    .hb-main .hb-step.is-open .hb-step-panel {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows .3s var(--hb-ease), visibility 0s;
    }
    .hb-main .hb-step-panel-inner { min-height: 0; overflow: hidden; }
    .hb-main .hb-step-body { margin-top: 0; padding: .1rem 1rem 1.1rem; }
    .hb-main .hb-step-intro { font-size: .95rem; }
    .hb-main .hb-detail { background: var(--hb-tint); }

    .hb-main .hb-cta .hb-btn { width: 100%; max-width: 22rem; }
}

@media (max-width: 480px) {
    .hb-main .hb-card { padding: 1.25rem 1rem; }
    .hb-main .hb-actions .hb-btn { flex: 1 1 100%; }
    .hb-main .hb-value { padding: .95rem; }
}

/* ---------- 8. Apparition discrète au défilement + mouvement réduit ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hb-main.hb-anim .hb-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .45s var(--hb-ease), transform .45s var(--hb-ease);
    }
    .hb-main.hb-anim .hb-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hb-main *,
    .hb-main *::before,
    .hb-main *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
