/**
 * Pharmacie de Garde - Frontend Styles
 */

.pharmacie-garde-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.pharmacie-garde-section .section-title h2 {
    color: #00a651;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pharmacie-garde-date {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin: 0.5rem auto 2rem auto;
    padding: 8px 20px;
    background: #fff;
    border-radius: 20px;
    display: block;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pharmacie-garde-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pharmacie-garde-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pharmacie-garde-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pharmacie-garde-card h3 {
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.pharmacie-garde-card.jour h3 {
    background: linear-gradient(135deg, #00a651, #4dc483);
}

.pharmacie-garde-card.nuit h3 {
    background: linear-gradient(135deg, #0077b6, #48a9d0);
}

.pharmacie-garde-card h3 .icon {
    font-size: 1.5rem;
}

.pharmacie-garde-card h3 .hours {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-left: auto;
}

.rtl .pharmacie-garde-card h3 .hours {
    margin-left: 0;
    margin-right: auto;
}

.pharmacie-garde-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pharmacie-garde-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.pharmacie-garde-item:last-child {
    border-bottom: none;
}

.pharmacie-garde-item:hover {
    background-color: #f8f9fa;
}

.pharmacy-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 6px;
}

.pharmacy-address,
.pharmacy-phone {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.pharmacy-phone a {
    color: #0077b6;
    text-decoration: none;
}

.pharmacy-phone a:hover {
    text-decoration: underline;
}

.pharmacie-garde-source {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1.5rem;
}

.pharmacie-garde-source a {
    color: #0077b6;
}

/* Responsive */
@media (max-width: 600px) {
    .pharmacie-garde-container {
        grid-template-columns: 1fr;
    }

    .pharmacie-garde-card h3 {
        font-size: 1.1rem;
        padding: 0.875rem 1rem;
    }

    .pharmacie-garde-item {
        padding: 0.875rem 1rem;
    }
}

/* RTL Support */
.rtl .pharmacie-garde-card h3 {
    flex-direction: row-reverse;
}

.rtl .pharmacy-name,
.rtl .pharmacy-address,
.rtl .pharmacy-phone {
    text-align: right;
}

/* Pharmacie Garde Image */
.pharmacie-garde-image {
    margin-top: 2rem;
    text-align: center;
}

.pharmacie-garde-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .pharmacie-garde-image img {
        border-radius: 12px;
    }
}
