/**
 * Styles pour les optimisations SEO automatiques
 * AL Métallerie Theme
 */

/* ============================================
   FIL D'ARIANE (BREADCRUMB)
   Invisible visuellement mais présent pour le SEO
   ============================================ */
.breadcrumb {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.breadcrumb a {
    color: #F08B18;
    text-decoration: none;
}

.breadcrumb span:last-child {
    color: #F2F2F2;
}

/* ============================================
   ENRICHISSEMENT DE CONTENU
   Intégré dans realisation-content (pas de card séparée)
   ============================================ */
.seo-enrichment {
    margin-top: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.seo-enrichment h3 {
    color: #F08B18;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.seo-enrichment p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.seo-enrichment ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.seo-enrichment ul li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.seo-enrichment ul li strong {
    color: #F08B18;
    font-weight: 600;
}

.seo-enrichment a {
    color: #F08B18;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.seo-enrichment a:hover {
    color: #d67610;
    text-decoration: underline;
}

/* ============================================
   CONTENU PRINCIPAL (TEXTE SANS CARD)
   ============================================ */
.realisation-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-align: left;
}

.realisation-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-align: left;
}

.realisation-content h2 {
    color: #F08B18;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    text-align: left;
}

.realisation-content h2:first-child {
    margin-top: 0;
}

.realisation-content h3 {
    color: #F08B18;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    text-align: left;
}

.realisation-content a {
    color: #F08B18;
    text-decoration: none;
    transition: color 0.3s ease;
}

.realisation-content a:hover {
    color: #d67610;
    text-decoration: underline;
}

/* ============================================
   LIENS INTERNES CONTEXTUELS
   ============================================ */
.internal-links-seo {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border: 2px solid #F08B18;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.internal-links-seo h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.internal-links-seo ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.internal-links-seo ul li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.internal-links-seo ul li:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(240, 139, 24, 0.15);
    transform: translateX(5px);
}

.internal-links-seo ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.internal-links-seo ul li a:hover {
    color: #F08B18;
}

.internal-links-seo ul li a::before {
    content: "→";
    margin-right: 0.75rem;
    color: #F08B18;
    font-weight: bold;
    font-size: 1.2rem;
}

.internal-links-seo .btn-see-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #F08B18;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    max-width: 300px;
}

.internal-links-seo .btn-see-more:hover {
    background: #d67610;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 139, 24, 0.3);
}

/* ============================================
   BADGES DE CATÉGORIES CLIQUABLES
   ============================================ */
.type-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.type-badge-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 139, 24, 0.2);
}

.type-badge-link .type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.type-badge-link .type-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ============================================
   MINI CARTE GOOGLE MAPS DANS LA SIDEBAR
   ============================================ */
.realisation-map-container {
    margin-top: 1rem;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(240, 139, 24, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.realisation-map {
    width: 100%;
    height: 100%;
    filter: grayscale(0%) contrast(1.1) brightness(0.9);
}

/* ============================================
   SECTION "POURQUOI CHOISIR" DANS LA SIDEBAR
   ============================================ */
.realisation-why-choose {
    margin-top: 2rem;
}

.realisation-why-choose h3 {
    margin-bottom: 1.5rem;
}

.realisation-why-choose .why-choose-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.realisation-why-choose .why-choose-list li {
    padding: 1rem 0;
}

.realisation-why-choose .why-choose-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.realisation-why-choose .why-choose-list li strong {
    display: block;
    color: #F08B18;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.realisation-why-choose .why-choose-list li span {
    display: block;
    color: #FAFAFA;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   NAVIGATION ENTRE RÉALISATIONS (STYLE SIDEBAR)
   Même style que les cards de la sidebar
   ============================================ */
.realisation-navigation-cards {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.nav-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.nav-card:hover {
    border-color: #F08B18;
    box-shadow: 0 2px 6px rgba(240, 139, 24, 0.1);
}

.nav-card .nav-arrow {
    font-size: 1rem;
    color: #F08B18;
    font-weight: 400;
}

.nav-card .nav-title {
    color: #666;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.nav-card:hover .nav-title {
    color: #F08B18;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .seo-enrichment,
    .internal-links-seo {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .seo-enrichment h3,
    .internal-links-seo h3 {
        font-size: 1.25rem;
    }
    
    .internal-links-seo ul {
        gap: 0.75rem;
    }
    
    .internal-links-seo ul li {
        padding: 0.75rem;
    }
    
    /* Navigation cards sur mobile */
    .realisation-navigation-cards {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .nav-card {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .nav-card .nav-title {
        max-width: 150px;
        font-size: 0.8rem;
    }
}
