/* ============================================================
   location.css — Page Location de matériel médical
   ============================================================ */

/* ── Navigation flottante latérale ──────────────────────── */
.loc-nav {
    position: fixed;
    right: 24px;
    top: 0; /* géré par JS */
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: end;
}

.loc-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1.5px solid #dce3ec;
    border-radius: 50%;
    padding: 0;
    font-family: 'MontserratSemiBold', sans-serif;
    font-size: 13px;
    color: #6b7a8d;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    transition: width .25s ease, border-radius .25s ease, background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.loc-nav-link i {
    font-size: 16px;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.loc-nav-link .loc-nav-text {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 0;
    transition: max-width .25s ease, opacity .2s ease, margin-left .25s ease;
}

.loc-nav-link.active,
.loc-nav-link:hover {
    width: auto;
    height: 42px;
    border-radius: 50px;
    padding: 0 16px 0 12px;
}

.loc-nav-link.active .loc-nav-text,
.loc-nav-link:hover .loc-nav-text {
    max-width: 160px;
    opacity: 1;
    margin-left: 8px;
}

/* Couleurs par section */
.loc-nav-link[href="#tire-lait"]:hover,
.loc-nav-link[href="#tire-lait"].active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,174,188,.35);
}

.loc-nav-link[href="#aerosol"]:hover,
.loc-nav-link[href="#aerosol"].active {
    background: #4a7bdc;
    border-color: #4a7bdc;
    color: #fff;
    box-shadow: 0 4px 14px rgba(74,123,220,.35);
}

.loc-nav-link[href="#materiel-medical"]:hover,
.loc-nav-link[href="#materiel-medical"].active {
    background: #3aaa5a;
    border-color: #3aaa5a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(58,170,90,.35);
}

/* ── Section location générique ────────────────────────── */
.loc-section {
    padding: 80px 0;
    scroll-margin-top: 20px;
}


/* ── Layout section : texte + visuel ───────────────────── */
.loc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.loc-layout.reverse { direction: rtl; }
.loc-layout.reverse > * { direction: ltr; }

/* ── Texte côté ─────────────────────────────────────────── */
.loc-text .tag {
    display: inline-block;
    background: rgba(0,174,188,.1);
    color: var(--primary-dark);
    font-family: 'MontserratSemiBold', sans-serif;
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.loc-text h2 {
    font-family: 'MontserratBold', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    color: #1a2a3a;
    margin: 0 0 18px;
    line-height: 1.25;
}

.loc-text h2 span { color: var(--primary); }

.loc-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
    margin-bottom: 16px;
}

.loc-text p:last-of-type { margin-bottom: 24px; }

/* Points clés (liste) */
.loc-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.loc-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #3a4a5a;
}

.loc-point-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* Bouton contact */
.loc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-family: 'MontserratBold', sans-serif;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background var(--transition), transform var(--transition);
}

.loc-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Visuel illustré ────────────────────────────────────── */
.loc-visual {
    position: sticky;
    top: 140px;
    align-self: start;
}

.loc-visual-card {
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.loc-visual-icon {
    font-size: 72px;
    line-height: 1;
}

.loc-visual-caption {
    font-family: 'MontserratSemiBold', sans-serif;
    font-size: 15px;
    color: #6b7a8d;
    text-align: center;
    padding: 0 24px;
}

/* Badge flottant sur la card visuelle */
.loc-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--primary);
    color: #fff;
    font-family: 'MontserratBold', sans-serif;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,174,188,.35);
    white-space: nowrap;
}

/* ── Encart "Comment ça marche" ─────────────────────────── */
.loc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.loc-step {
    background: #fff;
    /*border: 1px solid #dce3ec;*/
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    position: relative;
}

.loc-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'MontserratBold', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.loc-step h4 {
    font-family: 'MontserratBold', sans-serif;
    font-size: 14px;
    color: #1a2a3a;
    margin: 0 0 8px;
}

.loc-step p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ── Bandeau tarif/info ─────────────────────────────────── */
.loc-info-strip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.loc-info-strip i { font-size: 28px; opacity: .85; flex-shrink: 0; }

.loc-info-strip p { margin: 0; font-size: 14px; line-height: 1.6; opacity: .95; }
.loc-info-strip strong { font-family: 'MontserratBold', sans-serif; font-size: 15px; display: block; margin-bottom: 2px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .loc-layout,
    .loc-layout.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
    .loc-visual {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .loc-nav { display: none; }
}