* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Poppins', sans-serif; background:#f5f7ff; }

header {
    background:#002a80;
    padding:15px 50px;
    display:flex; align-items:center; justify-content:space-between;
    position:sticky; top:0; z-index:50;
}
header .logo { width:150px; height:100px; }
header nav a {
    color:white; margin-left:25px; text-decoration:none;
    font-weight:500; transition:0.3s;
}
header nav a:hover { opacity:0.75; }

/* SLIDER */
.slider {
    position:relative;
    height:450px;
    overflow:hidden;
}
.slides { display:flex; height:100%; transition:0.8s ease; }
.slide {
    min-width:100%;
    background-size:cover;
    background-position:center;
    position:relative;
}
.slide-content {
    position:absolute; bottom:80px; left:60px;
    color:white; max-width:500px;
}
.slide-content h1 { font-size:42px; margin-bottom:10px; }
.slide-content p { font-size:18px; }

.prev, .next {
    position:absolute; top:50%; transform:translateY(-50%);
    background:rgba(0,0,0,0.4);
    border:none; padding:10px 18px;
    color:white; font-size:26px;
    cursor:pointer; border-radius:4px;
}
.prev { left:10px; } .next { right:10px; }

/* Fade on scroll */
.fade { opacity:0; transform:translateY(30px); transition:1s; }
.show { opacity:1 !important; transform:translateY(0) !important; }
.fadein { animation:fadein 1.2s ease forwards; }
@keyframes fadein { from{opacity:0;} to{opacity:1;} }

/* SERVICES */
#services { padding:80px 50px; background:white; }
.section-title {
    text-align:center; font-size:32px;
    color:#002a80; margin-bottom:40px;
}
.services-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:25px;
}
.service-card {
    background:white; padding:25px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    transition:0.3s;
}
.service-card:hover { transform:translateY(-5px); }
.service-card i { font-size:40px; color:#005eff; margin-bottom:10px; }

/* CONTACT */
.contact-section {
    padding:80px 50px;
    background:url('images/contact_bg.png') center/cover no-repeat;
    color:white;
    position:relative;
}
.contact-section::after {
    content:""; position:absolute; inset:0;
    background:rgba(0,0,0,0.6);
}
.contact-section * { position:relative; z-index:2; }

.contact-form {
    max-width:600px; margin:auto;
    display:flex; flex-direction:column; gap:15px;
}
.contact-form input, .contact-form textarea {
    padding:12px 15px; border-radius:8px;
    border:none; font-size:16px;
}
.contact-form button {
    padding:12px; border:none; border-radius:8px;
    background:#00a2ff; color:white; font-size:18px;
    cursor:pointer; transition:0.3s;
}
.contact-form button:hover { background:#0089d0; }

.contact-info {
    text-align:center; margin-top:20px; font-size:18px;
}

/* ======= BOUTON SERVICE ======= */
.btn-service {
    display: inline-block;
    padding: 10px 22px;
    margin-top: 15px;
    background: linear-gradient(45deg, #0056ff, #00c6ff);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Effet lumière glissante */
.btn-service::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.btn-service:hover::before {
    left: 100%;
}

/* Zoom léger au hover */
.btn-service:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 140, 255, 0.4);
}

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
footer {
    background:#00235a; color:white;
    text-align:center; padding:20px;
    margin-top:50px;
}

/* RÉFÉRENCES */
/* SECTION */
#references {
    padding: 80px 5%;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(8px);
    text-align: center;
}

#references .section-title {
    color: white;
    margin-bottom: 40px;
}

/* CAROUSEL */
.ref-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-wrapper {
    width: 80%;
    overflow: hidden;
}

.ref-items {
    display: flex;
    gap: 60px;
    transition: transform 0.5s ease;
}

.ref-item img {
    width: 150px;
    /*filter: brightness(0) invert(1) opacity(0.8); */
	opacity: 0.9; /* juste un petit effet */
    transition: 0.3s ease;
}

.ref-item img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* BUTTONS */
.ref-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 32px;
    padding: 10px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.ref-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}
.ref-item img:hover {
    transform: scale(1.1);
    opacity: 1; /* plein visible au survol */
}

.prev-ref { margin-right: 20px; }
.next-ref { margin-left: 20px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .ref-items { gap: 30px; }
    .ref-item img { width: 100px; }
}