@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;1,300;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,700;0,900;1,400&family=Roboto:ital,wght@0,400;0,700;0,900;1,400&display=swap");

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* laisse un espace sous le header pour éviter contenu caché */
    padding-top: var(--header-h);
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: rgb(252, 251, 250);
}

a:hover {
    color: wheat;
}

.header a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-right: 5px;
}

.hamb {
    display: none;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 1rem 2rem;
    position: relative;
    z-index: 1000;
}

.logo {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/*Nav */
/* === Styles pour la nouvelle navbar === */
:root {
    --header-h: 64px;
    --max-width: 1100px;
}

/* header fixe & conteneur */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(34, 34, 34, 0.438);
    color: #fff;
    z-index: 1100;
    backdrop-filter: blur(6px);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

/* bouton hamburger (mobile) */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle .hamburger::before {
    top: -7px;
}

.nav-toggle .hamburger::after {
    top: 7px;
}

/* navigation desktop */
.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    text-decoration: none;
    font-weight: 600;
    padding: 8px 6px;
}

.primary-nav a:focus,
.primary-nav a:hover {

    outline-offset: 4px;
    border-radius: 4px;
}

/* overlay pour mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/*titre*/
h2 {
    text-align: center;
    color: white;
}

/*mentions legal*/
.legal-paragraph {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin: 20px auto;
    background-color: #f0f4f8;
    padding: 30px 20px;
    border-left: 5px solid #2980b9;
    border-radius: 10px;
    max-width: 700px;
    text-align: center;
}

/* ----- Conteneur 1 ----- */

.d1 {
    width: 576px;
    height: 432px;
    margin: 50px auto;
    background-color: #EDEDED;
    background-size: contain;
    background-repeat: no-repeat;
    /* 👈 bloque la répétition */
    background-position: center;
    /* 👈 centre l’image */
    box-shadow: 0px 15px 10px -5px #777;
    animation: fondu 15s ease-in-out infinite both;
}

.conteneur {
    max-width: 576px;
    margin: 50px auto;
}

.d1:hover {
    animation-play-state: paused;
}

/*animation de fond de l acceuil*/
.fond {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    animation: fondu 20s ease-in-out infinite both;
    z-index: -1;
}

.fond::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes fondu {
    0% {
        background-image: url("../Image/acceuil.png");
    }

    33.33% {
        background-image: url("../Image/carrelage5.png");
    }

    66.67% {
        background-image: url("../Image/carrelage4.jpg");
    }

    100% {
        background-image: url("../Image/carrelage5.png");
    }
}

/*gallerie de notre travail */
.d1:hover {
    animation-play-state: paused;
}


/* --- Galerie --- */

.galerie-section {
    padding: 100px 20px 60px;
    /* espace pour le header fixe */
    background: #f9f9f9;
    text-align: center;
}

.galerie-section h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 30px;
}

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: auto;
}

.galerie img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.galerie img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}



.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 40px;
    right: 60px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox .close:hover {
    color: #d4bd5e;
}

/*fin galeeri*/

.btn {
    padding: 10px 30px;
    border-radius: 5px;
    color: rgb(6, 6, 7);
    text-decoration: none;

}

.btn-primary {
    margin: auto;
    background-color: rgb(235, 230, 248);
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: rgba(19, 19, 20, 0.342);
}

.txt-uppercase {
    text-transform: uppercase;
    color: rgb(243, 240, 237);
}

.paragraphe {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding-left: 2%;
    padding-right: 3%;
    font-size: 18px;
    line-height: 30px;

}

.hero-title {
    text-align: center;
    font-style: italic;
    font-size: clamp(50px, 7vw, 90px);
    font-weight: 900;
    color: #fff;
}

/* ======================================= */
/* SECTION : Nos Services (id="service")   */
/* ======================================= */
.service {
    padding: 70px;
}

#service {
    padding: 60px 20px;
    background-color: none;
    text-align: justify;
}

#service h2 {
    font-size: 30px;
    margin-bottom: 60px;
    color: rgb(250, 250, 250);
    text-transform: uppercase;
}

/* Conteneur des cartes */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

/* Carte individuelle */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    min-height: 450px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.226);
    border-radius: 8px;
    text-align: center;
    box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Image ronde */
.card .card-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Titre */
.card .card-title {
    font-size: 20px;
    text-transform: uppercase;
    color: rgb(0, 0, 0);
    margin-bottom: 15px;
}

/* Bouton */
.card .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.card .btn:hover {
    background-color: wheat;
    transform: scale(1.05);
}

/*contact */

#contacte h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fffffffa;
    margin: auto;
}

#contacte form {
    color: rgb(255, 254, 254);
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}

#contacte form div {
    width: 50%;
    display: flex;
    flex-direction: column;
    margin: auto;
}

#contacte form label {
    font-size: 20px;

}

#contacte form input,
#contacte form textarea {
    color: white;
    margin: 30px auto;
    width: 100%;
    border-radius: 10px;
    padding-left: 10px;
}

#contacte form input {
    height: 30px;
}

#contacte form button {
    border-color: rgba(245, 222, 179, 0.644);
    width: 80px;
    padding: 15px;
    border-radius: 5px;
    background-color: white;
    color: black;
    font-size: 15px;
    margin: 15px auto 60px auto;
}

#contacte form button:focus {
    background-color: wheat;
}

#contacte form textarea {
    background-color: rgba(14, 13, 13, 0.116);
    border-color: white;
    color: white;
}

#contacte form input {
    background-color: rgba(14, 13, 13, 0.116);
    border-color: white;
}


#contacte form textarea:focus {
    background-color: rgba(14, 13, 13, 0.116);
}

.notification {
    position: fixed;
    top: 250px;
    /* ou bottom: 20px; si tu préfères en bas */
    right: 650px;
    background-color: rgb(44, 39, 39);
    /* vert */
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

.notification.show {
    opacity: 1;
    pointer-events: auto;
}


.error {
    color: rgb(236, 223, 223);
}

/* FOOTER STYLE */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;

}

.site-footer {
    background-color: #222;
    color: #eee;
    padding: 40px 20px 20px;
    font-size: 14px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 200px;

}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: wheat;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    color: #ccc;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #444;
    color: #aaa;
}


/* --- Lightbox --- */

/* ✅ Mode tablette (entre 768px et 1024px) */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .galerie-section {
        padding: 80px 15px 50px;
        text-align: center;
    }

    .galerie {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* images un peu plus petites */
        gap: 12px;
        max-width: 900px;
        /* un peu moins large pour bien centrer */
        margin: 0 auto;
        /* centre le conteneur */
    }

    .galerie img {
        height: 200px;
        /* plus petit que 220px */
    }
}

/* Cacher l'icône "fermer" par défaut */

/* DESKTOP: masquer le bouton hamburger */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .nav-overlay {
        display: none;
    }
}

/* MOBILE: menu glissant */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    /* cacher menu horizontal */
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: 260px;
        height: calc(100vh - var(--header-h));
        background: rgba(34, 34, 34, 0.274);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        padding: 1.5rem 1rem;
        z-index: 1101;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .primary-nav a {
        font-size: 1rem;
        color: #fff;
        display: block;
        padding: 8px 12px;
    }

    /* classe active affichera le menu */
    .primary-nav.active {
        transform: translateX(0);
    }

    /* overlay visible */
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* transform hamburger en X quand actif */
    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 550px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        text-align: center;
        font-size: 16px;
    }
}

/* ========================== */
/* 📱 Responsive (Mobile)     */
/* ========================== */
/* 📱 Responsive : mobile friendly */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        /* presque pleine largeur */
        min-height: auto;
    }

    .card-img {
        width: 160px;
        height: 160px;
    }

    #service h2 {
        font-size: 28px;
    }
}