@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}


.telephone {
    display: block;
}

.pc {
    display: none;
}


.logo img {
    width: 100px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    position: relative;
}

.nav-links a:hover::after,
.nav-links .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: orange;
}

/* Sous-menu */
.submenu {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    min-width: 180px;
}

.submenu li {
    padding: 10px 15px;
    white-space: nowrap;
}

.submenu li a {
    color: #333;
    font-weight: normal;
}

.nav-links li:hover .submenu {
    display: block;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon i {
    color: white;
}

.cta-button {
    background-color: #0d4979;
    color: snow;
    padding: 12px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #437dac;
}


.btn {
    background-color: #0d4979;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #3f688a;
}

.section {
    padding: 80px 20px;
    text-align: center;
}

.bg-light {
    background-color: #f7f7f7;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.gallery img {
    border-radius: 10px;
    width: 300px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: none;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
}

/* Responsive navbar */
.navbar {
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2b2b2b;
}

.services-section {
    background-color: #f9f9f9;
    margin-bottom: 4rem;
    padding: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin: 1rem auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: all 0.6s;
}

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

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.service-item img {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: block;
    width: 150px;
}

.service-item:hover img {
    color: #764ba2;
    transform: scale(1.1) rotate(5deg);
}

.service-item p {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.hero-section {
    background-image: url('../image/bg.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    /* effet sombre pour lisibilité */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.hero-content .btn {
    background-color: #0d4979;
    color: #fff;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #437dac;
}

.contact-whatsapp {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.section {
    background-color: #f7f7f7;
}

.contact-whatsapp a {
    color: #0d4979;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-whatsapp a:hover {
    transform: scale(1.05);
    color: #0a365a;
}

.contact-whatsapp i {
    font-size: 24px;
}

.about-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1 1 500px;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: left;
}

.about-image {
    flex: 1 1 400px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .telephone {
        display: none;
    }

    .pc {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: #2c3e50;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        justify-content: space-between;
    }
}