/* ==========================================
   index.css – Page d'accueil (index.html)
   ECT Sécurité
========================================== */

/* --- Hero Banner --- */
.hero {
    background: url('../images/bg-hero.jpg') center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero h1,
.hero p,
.hero a {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #c8a951;
    transition: 0.3s;
}

.hero h1:hover {
    color: #fff;
    transform: scale(1.05);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Bouton animé */
.hero .btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Section Services --- */
.services {
    padding: 70px 50px;
    text-align: center;
}

.services-grid,
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
}

.service i {
    font-size: 2.5rem;
    color: #c8a951;
    margin-bottom: 15px;
}

/* Mode clair */
.light-mode .service {
    background: #fff;
    color: #222;
}

.light-mode .service i {
    color: #c8a951;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .services {
        padding: 50px 20px;
    }
}