/* ========================
   Style général du site
======================== */

/* --- Hero / header --- */
.hero {
    position: relative;
    background: url("../img/hero-bg.jpg") center/cover no-repeat;
    padding: 120px 40px;
    color: white;
    border-radius: 10px;
    margin-bottom: 50px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 50px;
    border-radius: 10px;
    max-width: 650px;
}

.logo-container {
    position: absolute;
    top: 25px;
    left: 25px;
}
.logo-container img {
    height: 90px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}

.hero p {
    font-size: 18px;
    margin-top: 15px;
}

.hero .phone {
    font-size: 28px;
    font-weight: 700;
    color: red;
    margin-top: 20px;
}

/* ========================
   Menu fixe
======================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: #1c7c54;
    padding: 10px 50px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.navbar a:hover {
    text-decoration: underline;
}

/* ========================
   Service cards / blocs
======================== */
.service-card {
    border: none;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #1c7c54;
}

.service-card h5 {
    color: #1c7c54;
    font-weight: 600;
}

.service-card ul li a {
    text-decoration: none;
    color: #333;
}

.service-card ul li a:hover {
    text-decoration: underline;
    color: #1c7c54;
}

/* ========================
   Service blocs défilants (clim, domotique, reseaux)
======================== */
.service-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 60px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 30px;
}

.service-text {
    flex: 1 1 400px;
    padding-right: 20px;
}

.service-images {
    flex: 1 1 300px;
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.service-images img {
    width: 100%;
    height: auto;
    animation: slide 12s infinite;
}

@keyframes slide {
    0% { transform: translateX(0%); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

.service-block h3 {
    color: #1c7c54;
    margin-bottom: 15px;
}

.service-block p {
    font-size: 16px;
    line-height: 1.6;
}

/* ========================
   Titres pages services
======================== */
.page-title {
    color: red;
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

/* ========================
   Pourquoi nous choisir
======================== */
.why {
    background: #f7f7f7;
    padding: 40px;
    border-radius: 10px;
    margin-top: 50px;
}

.why h2 {
    color: #1c7c54;
}

.why ul {
    font-size: 17px;
    line-height: 1.8;
}

/* ========================
   Footer
======================== */
footer {
    background-color: #f8f9fa;
    padding: 30px 5%;
    text-align: center;
    margin-top: 50px;
}
