* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f7fa;
    color: #1f2d3d;
}

/* HEADER NAV */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 10%;
    transition: background 0.3s, box-shadow 0.3s;
}

.header--transparent {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    height: 50px;
}

/* NAV */
.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #00006d;

     text-decoration: none;
}

/* BOUTON CONTACT */
.nav-btn {
    background: #30a41d;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
}

.nav-btn:hover {
    background: #00006d;
    color: #ffffff;
}

.nav-btn2 {
    background: #30a41d;
      color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
      text-decoration: none; 
}

.nav-btn2:hover {
    background: #00006d;
    color: #ffffff;
}
/* ESPACE POUR LE HEADER FIXE */
.hero {
    margin-top: 90px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 6%;
    }

    .nav ul {
        gap: 15px;
    }

    .logo img {
        height: 40px;
    }
}

/* ANIMATION HEADER */
.animate-header {
    animation: headerFade 1s ease forwards;
}

.animate-logo {
    opacity: 0;
    transform: translateY(-10px);
    animation: logoFade 0.8s ease forwards;
    animation-delay: 0.2s;
}

.animate-nav {
    opacity: 0;
    transform: translateY(-10px);
    animation: navFade 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* KEYFRAMES */
@keyframes headerFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes logoFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* HERO */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

/* SLIDER */
.slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: zoomFade 15s infinite;
}

/* Images */
.slide1 {
    background-image: url("images/vitres1.jpg");
    animation-delay: 0s;
}
.slide2 {
    background-image: url("images/bureau.jpg");
    animation-delay: 5s;
}
.slide3 {
    background-image: url("images/sol.jpg");
    animation-delay: 10s;
}

/* Animation Fade + Zoom */
@keyframes zoomFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 1;
    }
    30% {
        opacity: 1;
        transform: scale(1.08);
    }
    40% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@media (max-width: 1000px) {
    .slide {
        animation: zoomFadeMobile 15s infinite;
    }

    @keyframes zoomFadeMobile {
        0% { opacity: 0; transform: scale(1); }
        10% { opacity: 1; }
        30% { opacity: 1; transform: scale(1.04); }
        40% { opacity: 0; transform: scale(1.04); }
        100% { opacity: 0; transform: scale(1); }
    }
} 
/* CONTENU AU-DESSUS */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    margin: 60px;
    border-radius: 12px;
}

/* SECTIONS */
section {
    padding: 70px 10%;
}

h2 {

    margin-bottom: 40px;
}


        /* ===== SECTION SERVICES ===== */
        .services {
            padding: 60px 40px;
            max-width: 1200px;
            margin: auto;
        }

        .services h1 {
            text-align: center;
            margin-bottom: 50px;
        }

        .cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .card {
            background: #ffffff;
            border-radius: 15px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .card-content {
            padding: 25px;
        }

        .card-content h3 {
            margin-top: 0;
            margin-bottom: 10px;
        }

        /* ===== DETAILS ===== */
        .details {
            background: #ffffff;
            padding: 60px 40px;
            margin-top: 60px;
        }

        .detail {
            max-width: 1000px;
            margin: auto;
            margin-bottom: 80px;
        }

        .detail h2 {
            margin-bottom: 15px;
        }

        .detail p {
            line-height: 1.8;
            font-size: 16px;
        }

        .detail ul {
            margin-top: 15px;
            padding-left: 20px;
        }

        .detail ul li {
            margin-bottom: 10px;
        }

        /* ===== SMOOTH SCROLL ===== */
        html {
            scroll-behavior: smooth;
        }
/* SERVICES */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    padding: 15px;
}

.service-card p {
    padding: 0 15px 20px;
    font-size: 14px;
}

/* WHY */
.why {
    background: #eef3f8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.why-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
}


.why-grid img{
  width: 50px;
    height: 50px;
}

/* REALISATIONS */
.real-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.real-grid img {
    width: 100%;
    border-radius: 10px;
}
/* CLIENTS */
.clients {
    background: #f1f5f9;
    padding: 60px 0;
    text-align: center;
}

.clients h2 {
    margin-bottom: 40px;
}

/* CONTENEUR */
.logos-wrapper {
    overflow: hidden;
    position: relative;
}

/* LIGNE DE LOGOS */
.logos {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logos img {
    height: 20px;

    transition: 0.3s;
}

.logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ANIMATION */
@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* CONTACT MODERNE */
.contact-modern {
    background: linear-gradient(135deg, #eef3f8, #ffffff);
    padding: 90px 10%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* INFOS */
.contact-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 25px;
    color: #556677;
}

.contact-info ul {
    list-style: none;
    font-size: 15px;
}

.contact-info li {
    margin-bottom: 12px;
}

/* CARD FORM */
.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* FLOATING LABEL */
.field {
    position: relative;
    margin-bottom: 25px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    font-size: 14px;
    background: none;
    outline: none;
}

.field textarea {
    min-height: 120px;
    resize: none;
}

.field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 6px;
    font-size: 13px;
    color: #8899aa;
    pointer-events: none;
    transition: 0.3s;
}

/* LABEL ANIMATION */
.field input:focus + label,
.field textarea:focus + label,
.field input:valid + label,
.field textarea:valid + label {
    top: -8px;
    font-size: 11px;
    color: #1e73be;
}

/* BUTTON */
.contact-card button {
    width: 100%;
    background: #00006d;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-card button:hover {
    background: #30a41d;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
.footer {
    background: #1f2d3d;
    color: #dce3ec;
    padding: 60px 10% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer h3,
.footer h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #dce3ec;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer a:hover {
    color: #1e73be;
}

/* BAS DU FOOTER */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #b9c3d1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer {
        padding: 40px 6% 20px;
    }
}