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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #f5f7fa;
}

/* Overlay pour les sections avec fond */
.hoverback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.3); /* Superposition bleue semi-transparente */
    z-index: 1;
}

.hoverback .container {
    position: relative;
    z-index: 2; /* Contenu au-dessus de l'overlay */
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    width: 100px;
    height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: #ffd700;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #ffd700;
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    borderFern: none;
    cursor: pointer;
    color: #333;
}

/* Hero Carousel */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
}

.hero-content {
    max-width: 1000px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.hero-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-control.active {
    background: #ffd700;
    transform: scale(1.3);
}

/* Button Styles */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Team Section */
#team {
    padding: 6rem 0;
    background: #fff;
}

.team-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
}

/* Testimonials Section */
#testimonials {
    padding: 6rem 0;
    background: #f8f9fa;
}

.carousel-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
}

/* Partners Section */
#partners {
    padding: 6rem 0;
    position: relative;
    background-image: url('https://avatars.mds.yandex.net/get-altay/10494556/2a0000018e934c15ce8fb538c747a6f77b1a/XXXL');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

#partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 201, 185, 0.6), rgba(1, 164, 193, 0.6));
    z-index: 1;
}

#partners .container {
    position: relative;
    z-index: 2;
}

.partner-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 280px;
    margin: 0 auto;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.partner-logo {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    position: relative;
    background-image: url('https://media.deutsche-handwerks-zeitung.de/uploads/2022/06/bauzinsen.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(15, 52, 96, 0.7));
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ffd700;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffd700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0c0c0c, #1a1a1a);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

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

    .hamburger {
        display: block;
    }

    .hero {
        height: 70vh; /* Réduire la hauteur pour mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-slide {
        background-attachment: scroll; /* Éviter fixed sur mobile */
        background-size: cover;
        background-position: center;
    }

    /* Images spécifiques pour mobile dans le carrousel hero */
    .hero-slide:nth-child(1) {
        background-image: url('./images/IMG-20250523-WA0093-mobile.jpg');
    }
    .hero-slide:nth-child(2) {
        background-image: url('./images/img1-mobile.jpg');
    }
    .hero-slide:nth-child(3) {
        background-image: url('./images/img2-mobile.jpg');
    }
    .hero-slide:nth-child(4) {
        background-image: url('./images/IMG-20250523-WA0097-mobile.jpg');
    }
    .hero-slide:nth-child(5) {
        background-image: url('./images/IMG-20250523-WA0100-mobile.jpg');
    }
    .hero-slide:nth-child(6) {
        background-image: url('./images/i-mobile.webp');
    }

    #partners {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-image: url('https://avatars.mds.yandex.net/get-altay/10494556/2a0000018e934c15ce8fb538c747a6f77b1a/mobile');
    }

    .contact {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-image: url('https://media.deutsche-handwerks-zeitung.de/uploads/2022/06/bauzinsen-mobile.jpg');
    }

    .partner-card {
        width: 100%;
        max-width: 250px;
    }

    .partner-logo {
        height: 100px;
    }

    .team-img,
    .carousel-item img {
        width: 80px;
        height: 80px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-map iframe {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    #partners,
    .contact {
        padding: 4rem 0;
    }

    .partner-logo {
        height: 80px;
    }

    .team-img,
    .carousel-item img {
        width: 60px;
        height: 60px;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-map iframe {
        height: 200px;
    }
}