/**
 * Styles pour la section de localisation avec photos et carte
 */

.omc-location-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.omc-location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Grille de photos */
.omc-location-photos {
    display: flex;
    align-items: center;
}

.omc-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.omc-photo-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 pour des images carrées */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.omc-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.omc-photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carte Google Maps */
.omc-location-map {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.omc-map-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
}

.omc-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.omc-map-info {
    padding: 20px;
    background: #fff;
}

.omc-map-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.omc-map-address {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.omc-map-directions {
    display: inline-block;
    padding: 10px 20px;
    background-color: #D1A98C;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.omc-map-directions:hover {
    background-color: #b8935a;
    color: #fff;
}

/* Responsive */
@media (max-width: 968px) {
    .omc-location-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .omc-map-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .omc-location-section {
        padding: 40px 15px;
        margin-bottom: 0;
    }
    /* Espace incompressible sous la carte (pseudo-élément = pas de collapse des marges) */
    .omc-location-section::after {
        content: "";
        display: block;
        height: 3rem;
        width: 100%;
    }
    
    .omc-photos-grid {
        gap: 10px;
    }
    
    .omc-map-wrapper {
        height: 300px;
    }
    
    .omc-map-title {
        font-size: 20px;
    }
}

