/* Style Général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Menu / Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 800;
    color: #0b3c5d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-container {
    display: flex;
    align-items: center;
}

.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    font-size: 15px;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0b3c5d;
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after, .navbar nav ul li a.active::after {
    width: 100%;
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #0b3c5d;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mode Mobile */
@media screen and (max-width: 768px) {
    .menu-toggle { display: flex; }
    .navbar nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    .navbar nav.open { max-height: 320px; }
    .navbar nav ul { flex-direction: column; padding: 20px; }
    .navbar nav ul li { margin: 15px 0; text-align: center; }
    .hero-section { height: 55vh; }
    .hero-content h1 { font-size: 32px; }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(11, 60, 93, 0.75), rgba(11, 60, 93, 0.6)), url('trano.jpg') no-repeat center center/cover;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content { animation: fadeInUp 1s ease-out; }
.hero-content h1 { font-size: 42px; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 18px; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn-main {
    display: inline-block;
    padding: 12px 35px;
    background-color: #00b4d8;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,180,216,0.3);
}

.btn-main:hover {
    background-color: #0077b6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,119,182,0.4);
}

/* Content */
.container { padding: 60px 10%; text-align: center; }
.container h2 { color: #0b3c5d; font-size: 28px; margin-bottom: 10px; }
.line { width: 0px; height: 4px; background-color: #00b4d8; margin: 0 auto 30px auto; border-radius: 2px; transition: width 1s ease-in-out; }
.reveal.active .line { width: 80px; }

/* Grid Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(11, 60, 93, 0.15);
}

.service-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img { transform: scale(1.08); }
.service-info { padding: 25px 20px; }
.service-card h3 { margin-bottom: 12px; color: #0b3c5d; font-size: 20px; }

/* Formulaires */
.devis-box, .contact-form {
    max-width: 650px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
}

/* Footer */
footer {
    background-color: #0b3c5d;
    color: white;
    text-align: center;
    padding: 40px 10%;
    margin-top: 60px;
    font-size: 15px;
}

footer a { color: #00b4d8; text-decoration: none; }

/* WhatsApp Flottant */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
}
