/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #c51212; /* Fond rouge */
    color: #fff; /* Texte blanc pour un meilleur contraste */
}

/* -----------------------------------------------------Typography ---------------------------------------------------------------- */
h1, h2 {
    font-family: Verdana, sans-serif;
}

p {
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Conteneur du formulaire */

.soumission-container, .contact-container, .register-container, .login-container, .forgot-password-container, main {
    max-width: 800px;
    padding-top: 100px;
    margin: 50px auto;
   
    padding-top: 80px; /* Espace sous le menu */
    height: 150vh;
    color: #333;
}

.soumission-container h2, .contact-container h2, .register-container h2, .login-container h2, .forgot-password-container h2, main h1 {
    color: #ccc;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2.3em;
} 

/* Formulaire */
form {
    max-width: 600px;
    margin: 0 auto; /* Centrer le formulaire */
    padding: 20px;
    background-color: transparent; /* Fond transparent */
    border-radius: 8px;
    /* box-shadow: none; */ /* Supprimer l'ombre si nécessaire */
}

/* Labels des champs */
.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #fff; /* Couleur du texte des labels si le fond est sombre */
}

/* Champs de formulaire */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9); /* Fond légèrement transparent pour les champs */
    color: #333;
}

/* Bouton des formulaires */
.button {
    width: 95%;
    margin: 20px;
    padding: 15px;
    background-color: orange;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
  
}

.button:hover {
    background-color: #c51212;
    transition: 0.5s;
}


.error-message {
    color: #cc0000;
    font-size: 0.9em;
    margin-top: 5px;
}

.success-message {
    color: #28a745;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: center;
}

/* Messages d'erreur et de succès */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Styles responsives pour les formulaires */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    .button {
        padding: 12px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    form {
        padding: 10px;
    }

    .button {
        padding: 10px;
        font-size: 0.9em;
    }
}

/* Autres styles spécifiques aux formulaires */
.form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.checkbox-group label,
.form-group label input[type="radio"] {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }

    form {
        padding: 20px;
    }
}
/* Menu de filtrage */
.filter-menu {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.filter-menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.filter-menu a.active {
    background-color: orange;
    color: #fff;
}

/* Styles pour la page des réalisations */
.realisations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.realisation-item {
    width: 30%;
    margin: 15px 0;
    text-align: center;
}

.realisation-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.realisation-item p {
    margin-top: 10px;
    color: #333;
}

/* Dashboard Admin */
.manage-realizations,
.manage-quotations,
.manage-users {
    margin-bottom: 30px;
}

.realization-item {
    position: relative;
}

.realization-item form {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dashboard-container a {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ff0000;
    text-decoration: none;
}

.dashboard-container a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ Section Header page index --------------------------------------------------------------------*/

.header-section {
    position: relative;
    overflow: hidden;
    text-align: left;
    color: #fff;
    padding: 100px 20px; /* Ajustement pour une meilleure réactivité */
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header-content {
    position: relative;
    max-width: 75%; /* Largeur maximale pour limiter l'étirement sur grands écrans */
    margin: auto;
    text-align: left;
    padding: 50px 20px;
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.header-content h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    border-radius: 10px;
    line-height: 1.6;
    max-width: 100%;
    text-align: justify;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: orange;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    margin-top: 20px;
    font-size: 1em;
    transition: background 0.5s;
}

.btn:hover {
    background: #c51212;
}

/* Responsive Design for Large Screens (up to 992px) */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.5em;
    }

    .header-content h3 {
        font-size: 1.4em;
    }

    .header-content p {
        font-size: 1em;
    }

    .btn {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

/* Responsive Design for Tablets (up to 768px) */
@media (max-width: 768px) {
    .header-content {
        max-width: 90%;
        text-align: center; /* Centrer le texte sur les écrans plus petits */
    }

    .header-content h1 {
        font-size: 2em;
        margin-top: 20px;
    }

    .header-content h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .header-content p {
        font-size: 0.9em;
        padding: 15px 20px;
    }

    .btn {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

/* Responsive Design for Mobile (up to 480px) */
@media (max-width: 480px) {
    .header-content {
        padding: 20px;
    }

    .header-content h1 {
        font-size: 1.8em;
        margin-top: 20px;
    }

    .header-content h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .header-content p {
        font-size: 0.8em;
        padding: 10px 15px;
    }

    .btn {
        font-size: 0.8em;
        padding: 6px 10px;
    }
}


/* ----------------------------------------------------------------------Section Services de la Page index-----------------------------------------------------------------*/


/* Section Services */
.services-section {
    background-color: #c51212;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.services-section h1 {
    font-family: Verdana, sans-serif;
    margin-bottom: 20px;
    font-size: 2.3em;
}

.services-section p {
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 2.5em;
    font-size: 1.2em;
    font-weight: 400;
}

/* Grille de cartes services */
.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.service-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: calc(33.33% - 20px); /* Trois colonnes sur les grands écrans */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card img {
    width: 40%; /* Taille par défaut des icônes */
    height: auto;
    margin: 0 auto;
    display: block;
}

.service-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    margin-top: 15px;
    font-size: 1.5em;
    text-transform: uppercase;
}

.service-card p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

.btn-grand {
    background-color: orange;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-grand:hover {
    background-color: #c51212;
    color: #fff;
    transition: 0.5s;
}

/* Media Queries */

/* Grands écrans (jusqu'à 1200px) */
@media (max-width: 1200px) {
    .service-card {
        width: calc(50% - 20px); /* Deux colonnes sur les écrans moyens */
    }
}

/* Tablettes (jusqu'à 768px) */
@media (max-width: 768px) {
    .service-card {
        width: 100%; /* Une colonne sur tablettes et mobiles */
    }

    .service-card img {
        width: 35%; /* Réduction des icônes sur tablettes */
    }

    .services-section h1 {
        font-size: 2em;
    }

    .services-section p {
        font-size: 1em;
    }
}

/* Mobiles (jusqu'à 480px) */
@media (max-width: 480px) {
    .service-card img {
        width: 30%; /* Réduction supplémentaire pour mobiles */
    }

    .services-section h1 {
        font-size: 1.8em;
    }

    .services-section p {
        font-size: 0.9em;
    }

    .btn-grand {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}


/* -----------------------------------------------------------------------Section Réalisations de la Page index --------------------------------------------------------------------*/

.realisations-section {
    background-color: #292b32; /* Fond gris moyen */
    padding: 60px 20px;
    text-align: center;
}

.realisations-section h2 {
    font-family: Verdana, sans-serif;
    color: #fff; /* Titre blanc pour contraste */
    margin-bottom: 2.3empx;
}


.realisations-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.realisation-card {
    background: #fff; /* Fond blanc des cartes */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33% - 20px); /* Trois colonnes par défaut */
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.realisation-card p {
    color: #333;
}

.realisation-card:hover {
    transform: scale(1.05);
}

.realisation-card img {
    width: 100%;
    height: auto;
    display: block;
}

.realisation-info {
    padding: 15px;
    text-align: center;
}

.realisation-info {
    font-size: 1.2em;
    color: #333;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.realisation-type img {
    width: 20%;
    background-color: orange;
    border-radius: 10%;
}

/* Responsive Styles for Réalisations */
@media (max-width: 992px) {
    .realisation-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .realisation-card {
        width: 80%;
    }
}

/* Section Devis */
.devis-section {
    background-color: #fff;
    color: #333;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.devis-section img {
    max-width: 200px;
    margin-bottom: 20px;
}

.devis-section h3 {
    font-family: Verdana, sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
}

.devis-section .btn {
    font-size: 1em;
    padding: 10px 20px;
    background: orange;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.devis-section .btn:hover {
    background: #c51212;
    color: white;
}

/* Responsive Styles for Devis Section */
@media (max-width: 768px) {
    .devis-section img {
        max-width: 80px;
    }

    .devis-section h3 {
        font-size: 1.5em;
    }

    .devis-section .btn {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .devis-section img {
        max-width: 60px;
    }

    .devis-section h3 {
        font-size: 1.2em;
    }

    .devis-section .btn {
        padding: 6px 12px;
    }
}

/*-------------------------------------------------------------------- Section Notre Entreprise de la page index-------------------------------------------------------------- */


.section-about {
    background-color: #c51212;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.section-about h1 {
    font-family: Verdana, sans-serif;
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.section-about p {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto;
    color: #ddd;
    text-align: justify;
}

/* Responsive Styles for About Section */
@media (max-width: 992px) {
    .section-about h1 {
        font-size: 2em;
    }

    .section-about p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .section-about h1 {
        font-size: 1.8em;
    }

    .section-about p {
        font-size: 0.9em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .section-about h1 {
        font-size: 1.5em;
    }

    .section-about p {
        font-size: 0.8em;
        line-height: 1.4;
    }
}

/*--------------------------------------------------------------- Page à Propos ---------------------------------------------------*/


/* Section À propos */
.about-section {
    background-image: url(../images/photos/equipe.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 20px;
    position: relative;
    text-align: center;
    color: #fff;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section h1 {
    font-family: Verdana, sans-serif;
    color: #fff;
    margin-bottom: 30px;
    font-size: 3em;
}

.about-section p {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    color: #ddd;
}

.text-int {
    font-size: 1.2em;
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

/* Animation de fade-in gauche-droite */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
}

/*------------------------------------------------------------------ Section Équipe de la page A propos -------------------------------------------------------------------*/

.team-section {
    background-color: #444;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.photo-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.photo-item {
    background: #555;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    width: calc(25% - 20px);
}

.photo-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
}

.photo-item h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
}

.photo-item p {
    font-size: 1em;
}

.photo-item a {
    color: #ddd;
}

.photo-item a:hover {
    color: orange;
    transition: 0.5s;
}
/* section équipe responsive  */

@media (max-width: 992px) {
    .photo-item {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .photo-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .photo-item {
        width: 100%;
    }
}

/* Section Services détaillés */
.service_background {
    background-color: #c51212;
    padding: 50px 20px;

}

.service_section {
    margin-bottom: 40px;
    background-color: #c51212;
    max-width: 1220px;
}

.service_col_page {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin: auto;
    max-width: 1200px;
}

.colonne1 {
    width: 23%;
    padding: 10px;
    box-sizing: border-box;
}

.colonne1 h3 {
    font-size: 2.3em;
    line-height: 1.4;
    text-align: center;
    color: #333;
}

.colonne1 img {
    margin-bottom: 20px;
}

.colonne1 p {
    color: #464646;
    font-size: 18px;
    margin-top: 20px;
    text-align: justify;
}

.colonne1 ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

.colonne1 li {
    color: #464646;
    text-transform: uppercase;
    margin-top: 10px;
    font-weight: 700;
    font-size: 15px;
}

.image1 {
    width: 120px;
    height: auto;
}

.image2 {
    width: 350px;
    height: auto;
}

/* REsponsive pour le service */

@media (max-width: 1200px) {
    .colonne1 {
        width: 45%;
        margin-bottom: 20px;
    }

    .image2 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .colonne1 {
        width: 100%;
    }
}

/* Navigation des catégories */


.category-navigation {
    text-align: center;
    margin-bottom: 20px;
}

.category-navigation a {
    margin: 5px;
    padding: 8px 12px;
    background-color: orange; /* Couleur de base */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.category-navigation a.active {
    background-color: #991111;
}

.category-navigation p{
    color: #fff;
}

/* Styles pour la galerie */
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    width: calc(20% - 10px); /* 5 colonnes avec un espace de 10px */
    margin: 5px;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
}

.gallery-item p {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #ebebeb;
    font-weight: 600
}

/* Responsive Design for Gallery */
@media (max-width: 1200px) {
    .gallery-item {
        width: calc(25% - 10px); /* 4 colonnes */
    }
}

@media (max-width: 900px) {
    .gallery-item {
        width: calc(33.33% - 10px); /* 3 colonnes */
    }
}

@media (max-width: 600px) {
    .gallery-item {
        width: calc(50% - 10px); /* 2 colonnes */
    }
}

@media (max-width: 400px) {
    .gallery-item {
        width: 100%; /* 1 colonne */
    }
}



/* Autres styles spécifiques */
.anchor-offset {
    position: relative;
    margin-top: -120px; /* Ajustez selon la hauteur de votre barre de navigation */
    padding-top: 70px; /* Correspond également à la hauteur du header */
}

/* Styles pour les formulaires */
.form-container {
    max-width: 800px;
    margin: 1000px auto;
    padding: 20px;
}

form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label,
.form-group label input[type="radio"] {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}



@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }

    form {
        padding: 20px;
    }
}

/* Navigation des catégories (Disposition en ligne par défaut) */
.category-navigation {
    text-align: center;
    margin-bottom: 20px;
}

.category-navigation a {
    margin: 5px;
    padding: 8px 12px;
    background-color: orange;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.category-navigation a.active {
    background-color: #991111;
}

/* Media query pour empiler le menu de la galerie sur les petits écrans */
@media (max-width: 768px) {
    .category-navigation {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrer les éléments empilés */
    }

    .category-navigation a {
        width: 80%; /* Ajuster la largeur pour s'étendre */
        margin: 5px 0; /* Espace vertical entre les liens */
    }
}

/* Gallery Styles */
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    width: calc(20% - 10px); /* 5 colonnes avec un espace de 10px */
    margin: 5px;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
}

.gallery-item p {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #ebebeb;
    font-weight: 600;
}

/* Styles pour la lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    max-height: 80%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

/* Responsive Design for Large Screens (up to 1200px) */
@media (max-width: 1200px) {
    .gallery-item {
        width: calc(25% - 10px); /* 4 colonnes */
    }
    .realisation-card, .service-card, .photo-item {
        width: calc(33.33% - 20px);
    }
}

/* Responsive Design for Tablets (up to 768px) */
@media (max-width: 768px) {
    .gallery-item, .realisation-card, .service-card, .photo-item {
        width: calc(50% - 10px); /* 2 colonnes */
    }
    .form-container, .header-content h1, .header-content h3 {
        font-size: 1.8em;
    }
    .header-content p {
        font-size: 1em;
    }
    .button, .btn {
        font-size: 0.9em;
    }
}

/* Responsive Design for Mobile (up to 480px) */
@media (max-width: 480px) {
    .gallery-item, .realisation-card, .service-card, .photo-item {
        width: 100%; /* 1 colonne */
    }
    .header-content h1 {
        font-size: 1.5em;
    }
    .header-content h3 {
        font-size: 1.1em;
    }
    .header-content p {
        font-size: 0.8em;
    }
    .btn, .button {
        font-size: 0.8em;
        padding: 8px 10px;
    }
    .category-navigation a {
        padding: 6px 8px;
        font-size: 0.8em;
    }
}


