/* Style global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Poids normal pour le texte */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Titre en gras */
}

p, a, li {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Texte normal */
}

button, .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Boutons avec un poids semi-gras */
}
/* Conteneur de l'image de fond */
.header-background {
    position: relative;
    width: 100%;
    height: 400px; /* Ajuste la hauteur selon tes besoins */
    background-color: #f4f4f4;
    overflow: hidden;
    margin-top: -50px; /* Décalage vers le haut */
}

.header-background img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    top: -50px; /* Ajuste ce décalage pour le positionnement de l'image */
}

/* Conteneur du titre dans le header */
.header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage vertical et horizontal */
    color: white;
    text-align: center;
}

.header-title h1 {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Container du formulaire */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
/* Style général du formulaire */
.enterprise-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
/* Titre du formulaire */
.enterprise-form h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}
/* Chaque groupe de formulaire */
.form-group {
    margin-bottom: 20px;
}

/* Style des labels */
.form-group label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

/* Champs de texte et de fichier */
.form-group input[type="text"],
.form-group textarea,
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

/* Style au focus */
.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007BFF;
    outline: none;
}

/* Style du bouton */
.btn {
    width: 100%;
    padding: 12px 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
    .enterprise-form {
        padding: 15px;
    }
    
    .btn {
        font-size: 1.1em;
    }
}

/* Container du formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}

/* Chaque groupe de formulaire */
.form-group {
    margin-bottom: 20px;
}

/* Style des labels */
.contact-form label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

/* Champs de texte et textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* Effet au focus */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Bouton d'envoi */
.contact-form .btn {
    width: 100%;
    padding: 12px 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
    background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form {
        padding: 15px;
    }

    .contact-form .btn {
        font-size: 1.1em;
    }
}

/* Style général du formulaire */
.article-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
/* Style de l'image d'article dans le blog */
.article-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Bouton de soumission */
.btn {
    width: 100%;
    padding: 12px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* Container de la grille des entreprises */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Conteneur de la carte de l'entreprise */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33.33% - 40px); /* 3 colonnes sur grand écran */
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Contenu principal de la carte */
/* .card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
} */
.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 10px; /* Ajoute un padding de 10px autour de l'image */
    box-sizing: border-box; /* Assure que le padding n'affecte pas la taille totale de l'image */
    background-color: white; /* Ajoute un fond blanc pour mieux encadrer l'image */
    border-radius: 8px; /* Optionnel : arrondir légèrement les coins de l'image */
    border: 1px solid #ddd; /* Ajoute une bordure subtile */
}

.card-content {
    padding: 15px;
}

.card h3 {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #333;
}

.card p {
    font-size: 0.9em;
    color: #666;
}

/* Footer de la carte avec la date à gauche et la catégorie à droite */
.card-footer {
    background-color: #f4f4f4;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #555;
    border-top: 1px solid #ddd;
}

.card-footer .date-ajout {
    font-size: 0.8em;  /* Réduire la taille de la date */
    color: #bbb;       /* Gris clair pour la date */
    width: 50%;
}

.card-footer .categorie i {
    margin-right: 5px;
    color: #007BFF;
}

.card-footer .categorie {
    font-weight: bold;
    color: #007BFF;
    display: flex;
    align-items: center;
    width: 50%;
}
/* Suppression du style des liens dans le footer du cadre */
.card-footer .categorie a {
    text-decoration: none;  /* Supprime le soulignement par défaut */
    color: inherit;         /* Applique la couleur héritée du parent (donc celle du texte environnant) */
}

.card-footer .categorie a:hover {
    color: #007BFF; /* Si tu veux un effet au survol, tu peux personnaliser la couleur ici */
    text-decoration: underline; /* Ajoute éventuellement un soulignement au survol */
}


/* Effet au survol pour la carte */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 480px) {
    .card {
        width: calc(100% - 20px); /* 1 colonne sur mobile */
    }
}





/* Style pour le conteneur du menu */
.navbar {
    background-color: #1f2f3f;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar ul li {
    position: relative;
    padding: 0;
}

.navbar ul li a {
    color: white;
    padding: 16px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
    background-color: #2f3f5f;
}

/* Style pour le sous-menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-content li {
    text-align: left;
}

.dropdown-content li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #ddd;
}

/* Afficher le sous-menu au survol */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Style pour le lien principal avec animation au survol */
.dropbtn:hover {
    background-color: #2f3f5f;
}

/* Menu principal */
.navbar ul {
    display: flex;
}

.navbar ul li {
    padding: 0;
}

/* Responsive: Adapter le menu sur mobile */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        width: 100%;
    }

    /* .dropdown-content {
        position: static;
        box-shadow: none;
    } */
     
}





/* Footer élégant */
.site-footer {
    background-color: #1f2f3f;
    color: white;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    width: 30%;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-section p, .footer-section ul {
    font-size: 0.9em;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

/* Liens sociaux */
.social-links a {
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
    text-decoration: none;
}

.social-links a:hover {
    color: #007BFF;
}

/* Section du bas */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85em;
}

.footer-bottom p {
    margin: 0;
}
