/* --- BODY --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f4f8; /* fond clair légèrement bleu */
}

/* --- HEADER --- */
header {
    height: 10vh;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    color: #fff;
    background-color: #0dcaf0fc; /* bleu clair pour le header */
}

/* Logo avec image de fond */
header .logo {
    height: 100%;
    background-image: url("images/logo.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.nav {
    display: flex;
    justify-content: center;   /* centre les liens */
    align-items: center;
    gap: 40px;                 /* espace entre les liens */
    height: 100%;
}

.nav a {
    color: #160f3b;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.nav a:hover {
    color: orange;             /* effet hover */
    text-decoration: underline;
}

/* --- BODY / CARTES --- */
.cards-container {
	margin:50px;
    height: 800px;
    align-content: center;
}

.cards-row {
    display: flex;
    flex-direction: row; 
    gap: 30px; /* réduit l’écart pour plus d’équilibre */
}

/* Carte générale */
.card-service-link {
    display: block;          /* pour remplir l’espace */
    text-decoration: none;   /* supprime le soulignement du lien */
    color: inherit;          /* hérite de la couleur du texte de la carte */
    width: 100%;

    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    height: 730px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;        /* montre que c’est cliquable */
    transition: transform 0.2s;
}

/* Effet au survol */
.card-service-link:hover .card-service {
    transform: scale(1.03);
}
.card-service {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    height: 730px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;        /* montre que c’est cliquable */
    transition: transform 0.2s;
}

/* Background image via pseudo-élément ::before */
.card-service::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/image00000811.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    border-radius: 10px;
}

/* Texte au premier plan */
.card-service * {
    position: relative;
    z-index: 2;
}

/* Titre cliquable */
.card-title {
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.80);
    padding: 25px 30px;
    border-radius: 12px;
    backdrop-filter: blur(3px);
    color:#ffc107;
}

.card-title .card-link {
    text-decoration: none;
    color: #ffc107; /* orange clair sur fond sombre */
    font-size: 20px;
    font-weight: bold;
}

.card-title .card-link:hover {
    text-decoration: underline;
    color: #ff6f00; /* orange foncé au survol */
}


/* Description */
.card-service p {
    margin-top: 5px;
    color: #ffffff;
}

/* --- FOOTER --- */
footer {
    background: #0dcaf0fc; /* bleu clair pour le footer */
    color: #160f3b;       /* noir clair pour le texte */
}

footer .footer-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

footer .footer-left {
    width: 20%;
    text-align: center;
        align-content: center;

}

footer .footer-right {
    width: 80%;
}

iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---- PAGINATION ---- */

.dynamic-content {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.dynamic-content.histoire {
	max-width: 700px;
    background: rgba(0, 0, 0, 0.80);
    padding: 25px 30px;
    border-radius: 12px;
    backdrop-filter: blur(3px);
}
.infoPrdt {
    background-image: url(images/image00000811.jpg);
    background-size: contain;
	text-align:center;
	margin: 5px auto;
	max-width: 700px;
    background: rgba(0, 0, 0, 0.80);
    padding: 10px 10px 1px 10px;
    border-radius: 12px;
    backdrop-filter: blur(3px);
}
.backgroundPrdt {
    background-image: url(images/image00000811.jpg);
    background-size: cover;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;

}

.infoRealisation {
    background-image: url(images/image00000811.jpg);
    background-size: contain;
	text-align:center;
	margin: 5px auto;
	max-width: 700px;
    background: rgba(0, 0, 0, 0.80);
    padding: 10px 10px 1px 10px;
    border-radius: 12px;
    backdrop-filter: blur(3px);
}
.backgroundRealisation {
    background-image: url(images/image00000811.jpg);
    background-size: cover;

    padding: 10px;
    margin-bottom: 10px;
 border-radius: 12px

}

.dynamic-content.prdt {
    padding: 25px 30px;
    border-radius: 12px;
    
}
.dynamic-content h2 {
    margin-bottom: 15px;
    font-size: 28px;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dynamic-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    grid-template-rows: repeat(3, auto);  /* hauteur automatique selon le texte */
    gap: 10px;
    width: 100%;
}

.gallery-item {
    display: flex;
    flex-direction: column;   /* image en haut, texte en bas */
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background-color: #fff;
    transition: transform 0.3s;
    cursor: pointer;
}

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

.gallery-item .image-box {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}
.gallery-item .image-boxReal {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

.gallery-item .description {
    margin-top: 5px;
    padding: 5px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.pagination button {
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:disabled {
    background: #999;
    cursor: default;
}

/* --- RESPONSIVE --- */
/* Tablette */
@media (max-width: 992px) {
    .cards-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card-service-link {
        height: 200px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item .image-box {
        height: 140px;
    }
    header .logo {
        height: 35%;
    }
	.nav {
	 gap:30px;
	}
}

/* Mobile */
@media (max-width: 576px) {
    header{
        height: auto;
    }
    .cards-row {
        flex-direction: column;
        gap: 20px;
    }

    .card-service-link {
         height: 200px;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
    }
	.dynamic-content {
        padding: 0px;
        font-size: 15px;
    }
.dynamic-content.prdt {
        padding: 0px;
    }
    .dynamic-content p {
    font-size: 14px;
}

    .dynamic-content h2 {
        font-size: 22px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item .image-box {
        height: 120px;
    }

    footer .footer-flex {
        flex-direction: column;
        gap: 10px;
    }
    footer .footer-left {
        text-align: center;
        width: auto;
    }

    footer .footer-right {
        width: auto;
    }
    header .logo {
        height: 20%;
    }
    .infoPrdt {
        max-height: 350px;
    }
.cards-container {
	margin:20px;
  
}
    
}

/* La fenêtre noire en arrière-plan */
.lightbox {
  display: none; /* Caché par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

/* L'image agrandie */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  animation: zoomEffect 0.3s;
}

@keyframes zoomEffect {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

/* Bouton fermer */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}







