/* =====================================================
   ARTICLE ÉLECTRICIEN - STYLES SPÉCIFIQUES
   Style professionnel pour les articles d'électricité
   ===================================================== */

/* Article Main Container */
.article-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f2ff 100%);
    min-height: 100vh;
    padding: 100px 0 40px;
}

.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Card */
.article {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 86, 179, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--electric-blue), var(--electric-yellow), var(--electric-orange));
    border-radius: 20px 20px 0 0;
}

/* Article Title */
.article-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--electric-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--electric-light);
    font-size: 0.95rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.article-meta svg {
    color: var(--electric-yellow);
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

/* Featured Image */
.featured-image {
    margin: 40px -20px;
    text-align: center;
    position: relative;
}

.featured-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 86, 179, 0.15);
    border: 3px solid var(--electric-light);
}

.featured-image figcaption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    padding: 0 20px;
}

/* Article Intro */
.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--electric-dark);
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, var(--electric-light) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 12px;
    border-left: 5px solid var(--electric-yellow);
    position: relative;
}

.article-intro::before {
    content: '⚡';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    opacity: 0.1;
}

/* Article Content */
.article-content {
    line-height: 1.9;
    color: #2c3e50;
    margin-bottom: 45px;
    font-size: 1.05rem;
}

.article-content h2 {
    color: var(--electric-blue);
    margin: 40px 0 20px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 30px;
}

.article-content h2::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--electric-yellow);
    font-size: 24px;
}

.article-content h3 {
    color: var(--electric-dark);
    margin: 30px 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid var(--electric-light);
    padding-bottom: 10px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content ul li::marker {
    color: var(--electric-yellow);
}

.article-content blockquote {
    background: linear-gradient(135deg, var(--electric-light) 0%, white 100%);
    border-left: 5px solid var(--electric-orange);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-content p {
    margin-bottom: 18px;
}

.article-content strong {
    color: var(--electric-dark);
    font-weight: 600;
}

.article-content em {
    color: var(--electric-blue);
}

.article-content a {
    color: var(--electric-orange);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--electric-blue);
    border-bottom-color: var(--electric-blue);
}

/* Article Conclusion */
.article-conclusion {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid var(--electric-yellow);
    position: relative;
    overflow: hidden;
}

.article-conclusion::before {
    content: '💡';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.conclusion-title {
    color: var(--electric-dark);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 700;
}

.article-conclusion p {
    line-height: 1.8;
    color: #2c3e50;
}

/* Related Posts Section */
.related-posts {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 86, 179, 0.1);
}

.related-title {
    color: var(--electric-blue);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-yellow), var(--electric-orange));
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    gap: 20px;
}

.related-post {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 2px solid var(--electric-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s ease;
}

.related-post:hover::before {
    left: 100%;
}

.related-post:hover {
    border-color: var(--electric-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.related-post-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.related-post-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--electric-yellow), var(--electric-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.related-post-content {
    flex: 1;
}

.related-post h3 {
    color: var(--electric-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post:hover h3 {
    color: var(--electric-blue);
}

.related-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, var(--electric-orange) 0%, #ff5722 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.3);
}

.article-cta::before,
.article-cta::after {
    content: '⚡';
    position: absolute;
    font-size: 150px;
    opacity: 0.05;
}

.article-cta::before {
    top: -30px;
    left: -30px;
    transform: rotate(-20deg);
}

.article-cta::after {
    bottom: -30px;
    right: -30px;
    transform: rotate(20deg);
}

.article-cta .cta-content {
    position: relative;
    z-index: 1;
}

.article-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.article-cta p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 1;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-phone,
.cta-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-phone {
    background: var(--electric-dark);
    color: white;
    border: 3px solid var(--electric-dark);
}

.cta-phone:hover {
    background: transparent;
    color: white !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-form {
    background: white;
    color: var(--electric-orange);
    border: 3px solid white;
}

.cta-form:hover {
    background: transparent;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--electric-dark) 0%, var(--electric-blue) 100%);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--electric-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    animation: electricPulse 2s infinite;
}

.logo-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--electric-dark);
}

@keyframes electricPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
        transform: scale(1.05);
    }
}

.logo-text h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: var(--electric-yellow);
    font-size: 0.9rem;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.home-link,
.blog-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--electric-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.home-link:hover,
.blog-link:hover {
    background: #ff5722;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Compact mobile header */
    .site-header {
        padding: 8px 0;
    }
    
    .header-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .logo-section {
        gap: 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .logo-text h2 {
        font-size: 0.95rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .home-link,
    .blog-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .home-link span,
    .blog-link span {
        display: none;
    }
    
    .home-link svg,
    .blog-link svg {
        width: 18px;
        height: 18px;
    }
    
    .article-main {
        padding-top: 60px;
    }

    .article {
        padding: 30px 25px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .featured-image {
        margin: 30px -10px;
    }

    .article-intro {
        padding: 20px;
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-conclusion {
        padding: 25px;
    }

    .related-posts {
        padding: 30px 20px;
    }

    .article-cta {
        padding: 40px 25px;
    }

    .article-cta h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-phone,
    .cta-form {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Keep header in one line */
    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .article {
        padding: 25px 20px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-content h2 {
        font-size: 1.3rem;
        padding-left: 25px;
    }

    .article-content h2::before {
        font-size: 20px;
    }

    .related-post-link {
        gap: 15px;
        padding: 15px;
    }

    .related-post-icon {
        width: 40px;
        height: 40px;
    }

    .related-post h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    /* Ultra compact header for small screens */
    .site-header {
        padding: 5px 0;
    }
    
    .header-container {
        padding: 0 10px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .logo-section {
        justify-content: flex-start;
        gap: 5px;
        flex: 1;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .logo-text h2 {
        font-size: 0.85rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .header-actions {
        justify-content: flex-end;
        gap: 5px;
    }
    
    .home-link,
    .blog-link {
        padding: 5px 8px;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .home-link svg,
    .blog-link svg {
        width: 14px;
        height: 14px;
    }
    
    .home-link span,
    .blog-link span {
        display: none;
    }
    
    /* Article styles for 375px */
    .article-main {
        padding-top: 50px;
    }
    
    .article-container {
        padding: 0 10px;
    }

    .article {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .featured-image img {
        border-radius: 10px;
    }

    .article-intro {
        padding: 15px;
        font-size: 1rem;
    }

    .article-cta h2 {
        font-size: 1.5rem;
    }

    .cta-phone,
    .cta-form {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
}

/* Fixed Call Button */
.fixed-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--electric-orange), var(--electric-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    z-index: 999;
    animation: electricPulse 2s infinite;
    transition: all 0.3s ease;
}

.fixed-call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
    color: white !important;
}

.fixed-call-button svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .fixed-call-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .fixed-call-button svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .fixed-call-button {
        width: 55px;
        height: 55px;
    }
    
    .fixed-call-button svg {
        width: 22px;
        height: 22px;
    }
}