
/* =====================================================
   INFORMATIONS PRATIQUES
===================================================== */

.practical {
    margin-top: 34px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.practical-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--deep);
}

.info-card h3 i {
    color: var(--bleu);
}


/* =====================================================
   HORAIRES — STRUCTURE GÉNÉRALE
===================================================== */

.hours-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px !important;
    font-size: 16px !important;
    font-weight: 800;
}

.hours-section {
    width: 100%;
    padding: 8px 0 0;
}

/* Ligne des urgences */

.hours {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 17px;
    padding: 10px 13px;
    list-style: none;
    border: 1px solid rgba(190, 55, 65, .13);
    border-radius: 10px;
    background: #fff8f8;
    font-size: 13px;
}

.hours li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.hours b {
    color: #263247;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-urg {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--urgence);
    font-weight: 800;
}

.badge-urg::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--urgence);
    box-shadow: 0 0 0 3px rgba(190, 55, 65, .10);
}


/* =====================================================
   EN-TÊTE DES CONSULTATIONS GÉNÉRALES
===================================================== */

.hours-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin: 0 0 10px;
}

.hours-section-icon,
.hours-specialists-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #eef2ff;
    color: #1f3fd1;
    font-size: 15px;
}

.hours-section-heading h3 {
    margin: 0 !important;
    color: #17234b;
    font-size: 13px !important;
    font-weight: 800;
}

.hours-section-heading p {
    margin: 3px 0 0;
    color: #778198;
    font-size: 11px;
    line-height: 1.4;
}

/* =====================================================
   LIGNES DES HORAIRES
===================================================== */

.hours-schedule {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.hours-day {
    display: grid;
    grid-template-columns: minmax(120px, 1.15fr) minmax(75px, .7fr) minmax(145px, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 5px;
    border-bottom: 1px solid #edf0f5;
}

.hours-day:last-child {
    border-bottom: 0;
}

.hours-day-name {
    color: #39445b;
    font-size: 12px;
    font-weight: 700;
}

.hours-day strong {
    color: #14288f;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.hours-day > span:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    color: #68748b;
    font-size: 11px;
    white-space: nowrap;
}

.hours-day small {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 20px;
    background: #fff5e8;
    color: #a56819;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}


/* =====================================================
   CONSULTATIONS SPÉCIALISÉES
===================================================== */

.hours-section-heading[style*="margin-top"] {
    margin-top: 13px !important;
    margin-bottom: 0;
    padding-top: 12px;
}

.hours-section-heading[style*="margin-top"] h3 {
    line-height: 1.5;
}

.hours-section-heading[style*="margin-top"] h3 span {
    color: #1f3fd1 !important;
    font-weight: 700;
}

.hours-section-heading[style*="margin-top"] p {
    margin-left: auto;
    flex-shrink: 0;
}

.hours-section-heading .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #e5eafe;
    border-radius: 30px;
    background: #f4f6ff;
    color: #1f3fd1;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hours-section-heading .btn-light i {
    font-size: 14px;
    color: #25a75a;
}

.hours-section-heading .btn-light:hover {
    border-color: #1f3fd1;
    background: #1f3fd1;
    color: #fff;
}

.hours-section-heading .btn-light:hover i {
    color: #fff;
}


/* =====================================================
   ASSURANCES ET PAIEMENT
===================================================== */

.insurers {
    display: grid;
    place-items: center;
    width: 100%;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.insurers img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
}

.pay {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-card .pay {
    margin-top: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 30px;
    background: var(--pale);
    color: var(--bleu-fonce);
    font-size: 12px;
    font-weight: 600;
}

.chip i {
    font-size: 12px;
}

.chip-logo {
    border: 1px dashed #c5cdf0;
    background: #fff;
    color: #7d88bd;
    font-weight: 500;
}

.info-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 9px 16px;
    border-radius: 30px;
    background: var(--pale);
    color: var(--bleu-fonce);
    font-size: 12.5px;
    font-weight: 700;
    transition: background .2s, color .2s;
}

.info-link:hover {
    background: var(--bleu);
    color: #fff;
}


/* =====================================================
   CONSULTATIONS PAR SPÉCIALITÉ
===================================================== */

.spec {
    width: 100%;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.spec summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    color: var(--bleu);
    font-size: 12.5px;
    font-weight: 700;
}

.spec summary::-webkit-details-marker {
    display: none;
}

.spec summary i {
    font-size: 11px;
    transition: transform .2s;
}

.spec[open] summary i {
    transform: rotate(180deg);
}

.spec summary:hover {
    color: var(--bleu-fonce);
}

.spec-list {
    display: grid;
    gap: 2px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.spec-list li {
    display: grid;
    grid-template-columns: 1.4fr 1fr .8fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12.5px;
}

.spec-list li:nth-child(odd) {
    background: #f6f8fe;
}

.spec-list b {
    color: var(--deep);
    font-weight: 600;
}

.spec-list span:last-child {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.spec .info-note {
    margin-top: 10px;
}


/* =====================================================
   TABLETTES
===================================================== */

@media (max-width: 900px) {
    .practical-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 20px;
    }

    .hours-day {
        grid-template-columns: minmax(150px, 1.15fr) minmax(90px, .7fr) minmax(160px, 1fr);
    }
}


/* =====================================================
   PETITS ÉCRANS
===================================================== */

@media (max-width: 600px) {
    .practical {
        margin-top: 26px;
    }

    .info-card {
        padding: 16px;
    }

    .hours-title {
        margin-bottom: 7px !important;
    }

    .hours {
        margin-bottom: 14px;
        padding: 9px 11px;
    }

    .hours-section {
        padding-top: 6px;
    }

    .hours-section-heading {
        gap: 9px;
    }

    .hours-section-icon {
        width: 33px;
        height: 33px;
        border-radius: 9px;
        font-size: 14px;
    }

    .hours-day {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 12px;
        padding: 10px 3px;
    }

    .hours-day-name {
        font-size: 12px;
    }

    .hours-day strong {
        font-size: 12px;
        text-align: right;
    }

    .hours-day > span:last-child {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 7px;
        padding-left: 0;
        font-size: 11px;
    }

    .hours-day small {
        font-size: 9px;
    }

    .hours-section-heading[style*="margin-top"] {
        align-items: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .hours-section-heading[style*="margin-top"] p {
        width: 100%;
        margin: 0 0 0 42px;
    }

    .hours-section-heading .btn-light {
        padding: 8px 13px;
    }

    .insurers {
        padding: 10px;
    }

    .info-link {
        width: 100%;
        justify-content: center;
    }

    .spec-list li {
        grid-template-columns: 1fr auto;
        row-gap: 2px;
        padding: 9px 10px;
    }

    .spec-list b {
        grid-column: 1 / -1;
    }

    .spec-list span:last-child {
        text-align: right;
    }
}


/* =====================================================
   TRÈS PETITS ÉCRANS
===================================================== */

@media (max-width: 380px) {
    .info-card {
        padding: 13px;
    }

    .hours-day {
        gap: 5px 8px;
    }

    .hours-day-name,
    .hours-day strong {
        font-size: 11px;
    }

    .hours-day > span:last-child {
        font-size: 10.5px;
    }

    .hours-section-heading h3 {
        font-size: 12px !important;
    }

    .hours-section-heading[style*="margin-top"] p {
        margin-left: 0;
    }
}
