/* ==========================================================================
   STYLE CSS - APROELEC - VERSION PRO 2026
   ========================================================================== */

:root {
    --primary: #003366;       /* Bleu Industriel */
    --secondary: #f39c12;     /* Orange Sécurité */
    --dark: #1a1a1a;          /* Anthracite */
    --light: #f8fafc;         /* Gris Très Clair */
    --white: #ffffff;
    --gray-text: #64748b;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 800;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--dark);
    margin-left: 25px;
    font-size: 14px;
    font-weight: 700;
}

.nav-links li a:hover {
    color: var(--secondary);
}

.header-phone {
    background: var(--light);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 800;
    color: var(--primary);
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), 
                url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1600'); 
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-text {
    max-width: 700px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* Section Title */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--secondary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title span {
    font-weight: 300;
    font-size: 24px;
    color: var(--gray-text);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eee; /* Fallback si image absente */
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}

.btn-devis {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
}

.btn-devis:hover {
    background: var(--secondary);
}

/* Background Utility */
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }

/* Contact Section */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.footer-info h3, .footer-cta h3 {
    margin-bottom: 25px;
    color: var(--secondary);
}

.footer-info p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-info i {
    width: 25px;
    color: var(--secondary);
}

/* Footer Bottom */
footer {
    background: #000;
    padding: 25px 0;
    color: #555;
    font-size: 13px;
    border-top: 1px solid #222;
}

footer a {
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links, .header-phone { display: none; }
    .hero h1 { font-size: 40px; }
}

@media (max-width: 600px) {
    .hero { height: 500px; }
    .hero h1 { font-size: 32px; }
    .hero-btns .btn { display: block; width: 100%; margin: 10px 0; }
    .btn-outline { margin-left: 0; }
}