/* ===== PAGE.CSS - STYLES SPÉCIFIQUES PAGES SECONDAIRES =====
 * Styles pour les pages autres que l'accueil
 * Téléphone Rose Belgique - Compatible avec common.css
 */

/* ===== ANIMATIONS D'ENTRÉE POUR ÉLÉMENTS LÉGAUX ===== */
.legal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.legal-item.visible,
.legal-item:nth-child(1) { animation-delay: 0.1s; }
.legal-item:nth-child(2) { animation-delay: 0.2s; }
.legal-item:nth-child(3) { animation-delay: 0.3s; }
.legal-item:nth-child(4) { animation-delay: 0.4s; }
.legal-item:nth-child(5) { animation-delay: 0.5s; }

/* ===== AMÉLIORATIONS SPÉCIFIQUES PAGE LÉGISLATION ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.3), rgba(139, 0, 139, 0.3)),
                radial-gradient(circle at 20% 80%, #120136 0%, #3b1c32 30%, #6a1b47 60%, #000000 100%);
}

/* Cards légales avec style adapté */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.05), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.service-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* ===== ICÔNES SPÉCIFIQUES ===== */
.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.6));
    display: block;
    text-align: center;
}

/* ===== MISE EN VALEUR DES INFORMATIONS LÉGALES ===== */
.legal-price-info {
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.15), rgba(139, 0, 139, 0.15));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 20, 147, 0.3);
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    backdrop-filter: blur(5px);
}

/* ===== SECTIONS SPÉCIALISÉES ===== */
.approaches-list .approach-item {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.08), rgba(139, 0, 139, 0.08));
    border: 1px solid rgba(255, 20, 147, 0.25);
    position: relative;
}

.approaches-list .approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff1493, #ff69b4);
    border-radius: 0 2px 2px 0;
}

/* ===== LISTES AVEC PUCES PERSONNALISÉES ===== */
.seo-text-column ul {
    list-style: none;
    padding-left: 0;
}

.seo-text-column ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.seo-text-column ul li::before {
    content: "⚖️";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

.specialty-features li::before {
    content: "📋";
    color: #ff69b4;
    font-size: 1rem;
}

/* ===== CHRONOLOGIE AMÉLIORÉE ===== */
.legal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
}

.legal-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #ff1493, rgba(255, 20, 147, 0.3));
    z-index: 1;
}

.legal-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 20, 147, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.legal-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    width: 12px;
    height: 12px;
    background: #ff1493;
    border-radius: 50%;
    border: 3px solid #000;
    z-index: 3;
}

.legal-item:nth-child(odd)::before {
    right: auto;
    left: -8px;
}

.legal-item h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

/* ===== AMÉLIORATIONS RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .legal-price-info {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .approach-item {
        padding: 25px 20px;
    }
}

/* ===== ÉTATS FOCUS AMÉLIORÉS ===== */
.approach-link:focus,
.cta-button:focus {
    outline: 3px solid #ff69b4;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(255, 105, 180, 0.3);
}

/* ===== ANIMATIONS PERSONNALISÉES ===== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.service-card,
.approach-item {
    animation: fadeInScale 0.6s ease forwards;
}

/* ===== THÈME SOMBRE (SI ACTIVÉ) ===== */
.dark-theme .legal-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 20, 147, 0.4);
}

.dark-theme .legal-price-info {
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.2), rgba(139, 0, 139, 0.2));
    border-color: rgba(255, 20, 147, 0.4);
}

/* ===== PRINT STYLES ===== */
@media print {
    .service-card,
    .approach-item,
    .legal-item {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .service-icon {
        display: none;
    }
    
    .approach-link,
    .cta-button {
        display: none;
    }
    
    .legal-price-info {
        border: 2px solid #333 !important;
        background: #f5f5f5 !important;
        color: black !important;
    }
}

/* ===== ACCESSIBILITÉ AMÉLIORÉE ===== */
@media (prefers-reduced-motion: reduce) {
    .legal-item,
    .service-card,
    .approach-item {
        animation: none !important;
        transition: none !important;
    }
    
    .legal-details::before,
    .service-card::after {
        display: none !important;
    }
}

@media (prefers-high-contrast: high) {
    .legal-item,
    .service-card,
    .approach-item {
        border-width: 2px !important;
        border-color: #ff1493 !important;
    }
    
    .legal-price-info {
        border-width: 2px !important;
        background: rgba(255, 20, 147, 0.3) !important;
    }
}

/* ===== MICRO-INTERACTIONS ===== */
.legal-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.25);
    border-color: rgba(255, 20, 147, 0.5);
}

.legal-item:hover h3 {
    color: #ff1493;
}

/* ===== OPTIMISATIONS PERFORMANCE ===== */
.service-card,
.approach-item,
.legal-item {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ===== STYLES POUR CONTENU DYNAMIQUE ===== */
.legal-highlight {
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.2), rgba(255, 105, 180, 0.2));
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #ff1493;
    margin: 10px 0;
    font-weight: bold;
}

.legal-warning {
    background: linear-gradient(45deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-left-color: #ff4500;
    color: #fff;
}

/* ===== ÉTATS LOADING ===== */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.1) 25%, rgba(255, 105, 180, 0.2) 50%, rgba(255, 20, 147, 0.1) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
    height: 20px;
    margin: 10px 0;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ===== CORRECTION FINALE RESPONSIVE ===== */
@media (max-width: 480px) {
    .legal-details {
        padding-left: 20px;
    }
    
    .legal-item {
        padding: 20px 15px;
    }
    
    .legal-item h3 {
        font-size: 1.1rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .legal-price-info {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* ===== STYLES POUR NAVIGATION AMÉLIORÉE ===== */
.breadcrumb {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

/* ===== FIN DU FICHIER ===== */ {
    .legal-details::before {
        left: 20px;
        transform: none;
    }
    
    .legal-item::before {
        left: -8px !important;
        right: auto !important;
    }
    
    .legal-details {
        grid-template-columns: 1fr;
        padding-left: 30px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

/* ===== EFFETS SPÉCIAUX POUR LES LIENS LÉGAUX ===== */
.approach-link[href*="etaamb"],
.approach-link[href*="ibpt"],
.approach-link[href*="dncm"] {
    background: linear-gradient(45deg, #673DE6, #4f46e5);
    position: relative;
    overflow: hidden;
}

.approach-link[href*="etaamb"]::before,
.approach-link[href*="ibpt"]::before,
.approach-link[href*="dncm"]::before {
    content: '🔗';
    margin-right: 5px;
}

/* ===== ANIMATIONS AU SCROLL ===== */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-item {
    animation: slideInFromBottom 0.6s ease forwards;
}

/* ===== SECTIONS AVEC BACKGROUND SPÉCIAUX ===== */
.seo-text {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.03), rgba(139, 0, 139, 0.03));
    position: relative;
}

.seo-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ff1493" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ff69b4" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* ===== FOOTER ADAPTÉ ===== */
.footer-other {
    display: block;
}

.footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px)