/**
 * Styles SEO Local pour les pages de taxonomie type_realisation
 * Thème sombre optimisé pour le référencement local et l'expérience utilisateur
 * 
 * @package ALMetallerie
 * @since 1.0.0
 */

/* ==========================================================================
   HERO SECTION AVEC IMAGE ALEATOIRE
   ========================================================================== */

.archive-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.archive-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.archive-hero .container {
    position: relative;
    z-index: 2;
}

.archive-hero .archive-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.archive-hero .archive-icon {
    display: flex;
    margin: 0 auto 1rem;
    color: #F08B18;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.archive-hero .archive-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .archive-hero {
        min-height: 300px;
    }
    
    .archive-hero .archive-title {
        font-size: 2rem;
    }
    
    .archive-hero .archive-subtitle {
        font-size: 1rem;
    }
}

/* ==========================================================================
   UNIFORMISER LA HAUTEUR DES IMAGES (comme page d'accueil)
   ========================================================================== */

/* Copié depuis custom.css - fonctionne sur la page d'accueil */
.realisation-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    height: 250px !important;
}

.actualites-grid .realisation-image,
.taxonomy-grid .realisation-image,
.archive-grid .realisation-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.realisation-card:hover .realisation-image {
    transform: scale(1.1);
}

/* ==========================================================================
   FICHE VILLE DÉTAILLÉE DANS POPUP
   ========================================================================== */

.city-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden;
}

.city-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.city-popup .leaflet-popup-close-button {
    color: #666;
    font-size: 20px;
    padding: 8px;
}

.city-card-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.city-card-header {
    background: linear-gradient(135deg, #F08B18, #FF6B35);
    padding: 1rem;
    color: white;
    position: relative;
}

.city-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.city-card-category {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.city-card-content {
    padding: 1rem;
}

.city-card-description {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.city-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #F08B18;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.city-card-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #F08B18;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.city-card-link:hover {
    background: #FF6B35;
}

/* Dernière réalisation */
.city-last-realisation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.city-last-realisation h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
}

.last-realisation-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.last-realisation-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.last-realisation-info {
    flex: 1;
}

.last-realisation-info h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.last-realisation-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.last-realisation-info h5 a:hover {
    color: #F08B18;
}

.btn-discover {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #F08B18;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-discover:hover {
    background: #FF6B35;
}

/* ==========================================================================
   SECTION ZONE D'INTERVENTION LOCAL
   ========================================================================== */

.taxonomy-zone-intervention {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 1px solid rgba(240, 139, 24, 0.3);
}

.taxonomy-zone-intervention .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
}

.taxonomy-zone-intervention .section-title svg {
    color: #F08B18;
    flex-shrink: 0;
}

.taxonomy-zone-intervention .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Grille compacte pour les villes sous la carte */
.cities-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Style unifié des cartes ville (identique à soudure-auvergne) */
.cities-grid-compact .zones-city-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.cities-grid-compact .zones-city-card:hover {
    background: rgba(240, 139, 24, 0.1);
    border-color: rgba(240, 139, 24, 0.4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 139, 24, 0.15);
}

.cities-grid-compact .zones-city-card svg:first-child {
    color: #F08B18;
    flex-shrink: 0;
    opacity: 0.6;
}

.cities-grid-compact .zones-city-card:hover svg:first-child {
    opacity: 1;
}

.cities-grid-compact .zones-city-card__name {
    flex: 1;
    font-weight: 500;
}

.cities-grid-compact .zones-city-card__arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: #F08B18;
    flex-shrink: 0;
}

.cities-grid-compact .zones-city-card:hover .zones-city-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.city-item {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.city-item:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 139, 24, 0.5);
    box-shadow: 0 8px 24px rgba(240, 139, 24, 0.25);
}

.city-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.city-link:hover {
    color: #F08B18;
}

.city-link svg {
    color: #F08B18;
    flex-shrink: 0;
}

.city-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.city-name svg {
    color: #F08B18;
    flex-shrink: 0;
}

.zone-info {
    text-align: center;
    padding: 2rem;
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(240, 139, 24, 0.2);
}

.zone-info p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0;
}

.zone-info strong {
    color: #F08B18;
    font-weight: 700;
}

/* ==========================================================================
   SECTION POURQUOI NOUS CHOISIR
   ========================================================================== */

.taxonomy-why-choose {
    padding: 80px 0;
    background: #1a1a1a;
}

.taxonomy-why-choose .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    justify-content: center;
}

.taxonomy-why-choose .section-title svg {
    color: #F08B18;
    flex-shrink: 0;
}

/* Grille "Pourquoi choisir" - style unifié avec zones-service-card */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Style zones-service-card pour la section Pourquoi Choisir */
.taxonomy-why-choose .zones-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.taxonomy-why-choose .zones-service-card:hover {
    background: rgba(240, 139, 24, 0.08);
    border-color: rgba(240, 139, 24, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(240, 139, 24, 0.15);
}

.taxonomy-why-choose .zones-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(240, 139, 24, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.taxonomy-why-choose .zones-service-card__icon svg {
    color: #F08B18;
}

.taxonomy-why-choose .zones-service-card:hover .zones-service-card__icon {
    background: rgba(240, 139, 24, 0.2);
    transform: scale(1.1);
}

.taxonomy-why-choose .zones-service-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.taxonomy-why-choose .zones-service-card__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ==========================================================================
   SECTION FAQ SPÉCIFIQUE
   ========================================================================== */

.taxonomy-faq-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    position: relative;
}

.taxonomy-faq-section > .container {
    position: relative;
    z-index: 1;
}

.taxonomy-faq-section .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    justify-content: center;
}

.taxonomy-faq-section .section-title svg {
    color: #F08B18;
    flex-shrink: 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #2d2d2d;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(240, 139, 24, 0.25);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
    color: inherit;
}

.faq-question:hover {
    background-color: #333333;
}

.faq-item.active .faq-question {
    background-color: rgba(240, 139, 24, 0.1);
}

.faq-question h3,
.faq-question span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.faq-question svg {
    color: #F08B18;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   SECTION CARTE INTERACTIVE
   ========================================================================== */

.taxonomy-map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 1px solid rgba(240, 139, 24, 0.3);
}

.taxonomy-map-section .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.taxonomy-map-section .section-title svg {
    color: var(--color-primary);
}

.taxonomy-map-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

#taxonomy-map {
    background: #2a2a2a;
    border: 2px solid rgba(240, 139, 24, 0.2);
}

/* Personnalisation des marqueurs */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Popup des marqueurs */
.leaflet-popup-content-wrapper {
    background: #2a2a2a;
    color: var(--color-text-light);
    border-radius: 8px;
    border: 1px solid rgba(240, 139, 24, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
    background: #2a2a2a;
}

.leaflet-popup-content h4 {
    color: var(--color-primary) !important;
    margin: 0 0 8px 0 !important;
}

.leaflet-popup-content a {
    color: var(--color-primary) !important;
    text-decoration: none;
    font-weight: 600;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

/* Contrôles de la carte */
.leaflet-control-zoom a {
    background: #2a2a2a !important;
    color: var(--color-text-light) !important;
    border: 1px solid rgba(240, 139, 24, 0.3) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--color-primary) !important;
    color: white !important;
}

/* Légende de la carte */
.map-legend {
    margin-top: 2rem;
    text-align: center;
}

.map-legend p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.map-legend strong {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .taxonomy-map-section {
        padding: 60px 0;
    }
    
    .taxonomy-map-section .section-title {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    #taxonomy-map {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    #taxonomy-map {
        height: 350px !important;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .taxonomy-zone-intervention,
    .taxonomy-why-choose,
    .taxonomy-faq-section {
        padding: 60px 0;
    }
    
    .taxonomy-zone-intervention .section-title,
    .taxonomy-why-choose .section-title,
    .taxonomy-faq-section .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .cities-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .city-item {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .taxonomy-why-choose .zones-service-card {
        padding: 1.5rem 1rem;
    }
    
    .taxonomy-why-choose .zones-service-card__icon {
        width: 50px;
        height: 50px;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
    
    .zone-info {
        padding: 1.5rem;
    }
    
    .zone-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .taxonomy-zone-intervention,
    .taxonomy-why-choose,
    .taxonomy-faq-section {
        padding: 40px 0;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .taxonomy-zone-intervention .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.taxonomy-zone-intervention,
.taxonomy-why-choose,
.taxonomy-faq-section {
    animation: fadeInUp 0.6s ease-out;
}

.city-item,
.feature-item,
.faq-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.city-item:nth-child(1) { animation-delay: 0.1s; }
.city-item:nth-child(2) { animation-delay: 0.2s; }
.city-item:nth-child(3) { animation-delay: 0.3s; }
.city-item:nth-child(4) { animation-delay: 0.4s; }
.city-item:nth-child(5) { animation-delay: 0.5s; }
.city-item:nth-child(6) { animation-delay: 0.6s; }

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   RESPONSIVE - CARTE INTERACTIVE MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .taxonomy-map-section {
        padding: 40px 0;
    }
    
    .taxonomy-map-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .taxonomy-map-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    #taxonomy-map {
        height: 350px !important;
        border-radius: 8px;
    }
    
    .map-legend {
        font-size: 0.9rem;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .taxonomy-map-section {
        padding: 30px 0;
    }
    
    .taxonomy-map-section .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .taxonomy-map-section .section-title svg {
        width: 24px;
        height: 24px;
    }
    
    #taxonomy-map {
        height: 300px !important;
        border-radius: 6px;
    }
    
    /* Popup sur mobile */
    .leaflet-popup-content-wrapper {
        padding: 8px 12px;
    }
    
    .leaflet-popup-content {
        font-size: 0.9rem;
    }
    
    .leaflet-popup-content h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .leaflet-popup-content a {
        font-size: 0.85rem;
    }
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
