/* ===== ELECOMM - Articles Blog / Réalisations ===== */
/* Partagé par tous les articles — couleurs cohérentes avec index.html */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; }
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAVBAR (identique index.html) ===== */
.header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.logo { font-size: 1.5rem; font-weight: bold; color: #1e40af; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-icon img { width: 32px; height: 32px; object-fit: contain; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
.nav-link:hover { color: #1e40af; }
.cta-button { background: #1e40af; color: white; padding: 0.75rem 1.5rem; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background 0.3s; }
.cta-button:hover { background: #1d4ed8; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: white; border-bottom: 1px solid #e5e7eb; padding: 0.75rem 0; margin-top: 72px; font-size: 0.9rem; color: #666; }
.breadcrumb a { color: #1e40af; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }

/* ===== HERO ARTICLE ===== */
.article-hero { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); color: white; padding: 3rem 0 2.5rem; text-align: center; }
.article-category { display: inline-block; background: rgba(245,158,11,0.9); color: white; padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.article-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; max-width: 750px; margin-left: auto; margin-right: auto; }
.article-meta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; opacity: 0.85; margin-top: 1rem; }
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== CONTENU ARTICLE ===== */
.article-body { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin: 2rem auto; padding: 2.5rem; }

.article-intro { font-size: 1.1rem; color: #444; border-left: 4px solid #1e40af; padding-left: 1.25rem; margin-bottom: 2rem; font-style: italic; }

.article-body h2 { font-size: 1.5rem; color: #1e40af; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }
.article-body h3 { font-size: 1.2rem; color: #333; margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; color: #444; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; color: #444; }
.article-body li { margin-bottom: 0.4rem; }

/* ===== PHOTOS ===== */
.photo-block { margin: 2rem 0; }
.photo-block img { width: 100%; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: block; }
.photo-caption { text-align: center; font-size: 0.85rem; color: #888; margin-top: 0.6rem; font-style: italic; }

/* Photo avec légende superposée */
.photo-labeled { position: relative; display: inline-block; width: 100%; }
.photo-labeled img { width: 100%; border-radius: 10px; display: block; }
.photo-label { position: absolute; top: 12px; left: 12px; background: rgba(30,64,175,0.85); color: white; padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.8rem; font-weight: 600; }
.photo-label.danger { background: rgba(220,38,38,0.85); }
.photo-label.success { background: rgba(5,150,105,0.85); }

/* ===== ENCADRÉ ALERTE / INFO ===== */
.alert-box { border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; display: flex; gap: 1rem; align-items: flex-start; }
.alert-box.danger { background: #fef2f2; border-left: 4px solid #dc2626; }
.alert-box.info { background: #eff6ff; border-left: 4px solid #1e40af; }
.alert-box.success { background: #f0fdf4; border-left: 4px solid #16a34a; }
.alert-box .icon { font-size: 1.4rem; flex-shrink: 0; }
.alert-box .content strong { display: block; margin-bottom: 0.25rem; }

/* ===== CTA FIN D'ARTICLE ===== */
.article-cta { background: linear-gradient(135deg, #1e40af, #1e3a8a); color: white; border-radius: 12px; padding: 2rem; text-align: center; margin: 2.5rem 0 1rem; }
.article-cta h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.article-cta p { opacity: 0.9; margin-bottom: 1.5rem; color: white; }
.article-cta .btn-white { background: white; color: #1e40af; padding: 0.75rem 2rem; border-radius: 5px; text-decoration: none; font-weight: 700; display: inline-block; margin: 0.25rem; transition: transform 0.2s; }
.article-cta .btn-white:hover { transform: translateY(-2px); }
.article-cta .btn-outline { background: transparent; border: 2px solid white; color: white; padding: 0.75rem 2rem; border-radius: 5px; text-decoration: none; font-weight: 600; display: inline-block; margin: 0.25rem; transition: all 0.2s; }
.article-cta .btn-outline:hover { background: white; color: #1e40af; }

/* ===== FOOTER (identique index.html) ===== */
.footer { background: #333; color: white; padding: 3rem 0 1rem; margin-top: 3rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.footer h3 { margin-bottom: 1rem; color: #f59e0b; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: #ccc; text-decoration: none; }
.footer a:hover { color: #f59e0b; }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid #555; color: #999; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .article-hero h1 { font-size: 1.6rem; }
    .article-body { padding: 1.5rem; margin: 1rem auto; }
    .article-meta { gap: 0.75rem; }
}