/* Optimisations SEO - Styles pour les nouveaux éléments */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    margin: 0 8px;
}

.breadcrumb-item a {
    color: #1a66ac;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0d4a8c;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Services Recommandés */
.services-recommended {
    padding: 60px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #1a66ac;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card .btn {
    background: #1a66ac;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.service-card .btn:hover {
    background: #0d4a8c;
    color: white;
}

/* Optimisations pour les images */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Amélioration de l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour l'accessibilité */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #1a66ac;
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .services-recommended {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
}

/* Animation d'entrée pour les cartes de services */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque carte */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

/* Amélioration du contraste pour l'accessibilité */
.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Hover effects améliorés */
.breadcrumb-item a:hover {
    color: #0056b3;
}

.service-card:hover .btn {
    background: #0056b3;
    transform: scale(1.05);
}

/* Navigation des villes limitrophes */
.villes-limitrophes-nav {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.villes-limitrophes-nav h3 {
    text-align: center;
    color: #1a66ac;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.villes-limitrophes-nav p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 16px;
}

.departement-section {
    margin-bottom: 40px;
}

.departement-section h4 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #1a66ac;
    padding-bottom: 10px;
}

.villes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ville-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ville-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ville-item a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #1a66ac;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ville-item a:hover {
    color: #0d4a8c;
}

.ville-item i {
    margin-right: 10px;
    font-size: 18px;
    color: #1a66ac;
}

.ville-item span {
    font-weight: 500;
}

/* Liens de navigation des villes */
.villes-links {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.villes-links h4 {
    color: #1a66ac;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.ville-link {
    display: block;
    padding: 8px 12px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
}

.ville-link:hover {
    background: #1a66ac;
    color: white;
    text-decoration: none;
}

.ville-link.active {
    background: #1a66ac;
    color: white;
    font-weight: 500;
}

/* Responsive pour les villes */
@media (max-width: 768px) {
    .villes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .ville-item a {
        padding: 12px;
        font-size: 14px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .ville-link {
        font-size: 13px;
        padding: 6px 8px;
    }
}

/* Boutons toggle dans le footer */
.footer-villes-toggle,
.footer-zones-toggle {
    margin-top: 15px;
    text-align: center;
}

.btn-toggle-villes,
.btn-toggle-zones {
    background: #1a66ac;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-toggle-villes:hover,
.btn-toggle-zones:hover {
    background: #0d4a8c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-toggle-villes.expanded,
.btn-toggle-zones.expanded {
    background: #6c757d;
}

.btn-toggle-villes.expanded:hover,
.btn-toggle-zones.expanded:hover {
    background: #5a6268;
}

.btn-toggle-villes i,
.btn-toggle-zones i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.btn-toggle-villes.expanded i,
.btn-toggle-zones.expanded i {
    transform: rotate(180deg);
}

/* Animation pour l'affichage des listes supplémentaires */
#villes-limitrophes-extra,
#zones-interventions-extra {
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#villes-limitrophes-extra[style*="display: block"],
#zones-interventions-extra[style*="display: block"] {
    opacity: 1;
    max-height: 1000px;
}

/* Responsive pour le bouton toggle */
@media (max-width: 768px) {
    .btn-toggle-villes {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .footer-villes-toggle {
        margin-top: 10px;
    }
}

/* Print styles */
@media print {
    .breadcrumb-nav,
    .services-recommended,
    .villes-limitrophes-nav,
    .villes-links,
    .footer-villes-toggle {
        display: none;
    }
}
