/* CSS de base pour l'ensemble de la page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
}

/* Header */
header {
    background-color: #0073e6;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Navigation */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #005bb5;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #004a99;
    border-radius: 5px;
}

/* Contenu principal */
main {
    padding: 20px;
    background-color: #e0f7fa;
    margin: 20px auto;
    width: 90%;
    height: 25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

main h2 {
    color: #0073e6;
    text-align: center;
    margin-bottom: 20px;
}

main p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}

/* Footer */
footer {
    background-color: #0073e6;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

/* Liens dans le contenu principal */
main a {
    color: #0073e6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

main a:hover {
   
    color: #004a99;
}
/* Conteneur des rectangles */
.rectangle-container {
    display: flex;
    margin-top: 20px;
    height: 200px;
    gap: 70px;
    margin-left: 0rem;
}


.rectangle-container2 {
    display: flex;
    margin-top: 0px;
    height: 200px;
    gap: 70px;
    margin-left: 10rem;
}

/* Style des rectangles */
.rectangle {
    width: 17%;
    background-image: url('poste.png'); /* Remplacez 'AP-img.jpg' par le bon chemin de votre image */
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

/* Style du texte à l'intérieur des rectangles */
.rectangle-content {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    align-items: center;
    display: flex;
    justify-content: center;
}

/* Effet interactif au survol */
.rectangle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style des rectangles avec l'image de fond */
.rectangle_1 {
    width: 30%;
    background-image: url('poste.png'); /* Assurez-vous que l'image AP-img.jpg est dans le bon dossier */
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.rectangle-5 {
    width: 17%;
    background-image: url('glpi1.png'); /* Assurez-vous que l'image AP-img.jpg est dans le bon dossier */
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

/* Style du texte à l'intérieur des rectangles */
.rectangle-content {
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
    background-color: #0e33bc34;
    border-radius: 15%;
    font-weight: bold;
    margin-top: 5px;
}
.rectangle-2 {
    background-image: url('OS.png');
}


.rectangle-3 {
    background-image: url('V.jpg');
}

.rectangle-4 {
    background-image: url('ordi.jpg');
}
.rectangle1 {
    background-image: url('poste.png');
}


/* Effet interactif au survol */
.rectangle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style global pour le body */
body {
    background-image: url('conception-plexus-moderne-3d-communications-reseau-techno-moderne.jpg'); /* Image de fond pour toute la page */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Styles pour les rectangles */
.rectangle {
    background-color: rgba(255, 255, 255, 0.7); /* Fond blanc semi-transparent pour les rectangles */
}

.menu {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    padding: 10px;
    color: #fff;
}
header{
    background-image: url('conception-plexus-moderne-3d-communications-reseau-techno-moderne.jpg'); /* Image de fond pour toute la page */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}
#backButton {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #007BFF; /* Bleu */
    color: white;
    border: none;
    border-radius: 5px; /* Bord arrondi */
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

#backButton:hover {
    background-color: #0056b3; /* Couleur légèrement plus foncée au survol */
}
main.Formation img {
    width: 100px; /* Taille adaptée pour une visibilité facile */
    height: auto; /* Conserve le ratio de l'image */
    border-radius: 15px; /* Bords arrondis */
    display: block; /* Pour centrer l'image si nécessaire */
    margin: 10px auto; /* Espacement et centrage */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Légère ombre pour améliorer la visibilité */
}

main.entreprise img {
    width: 200px; /* Taille adaptée pour une visibilité facile */
    height: auto; /* Conserve le ratio de l'image */
    border-radius: 15px; /* Bords arrondis */
    display: block; /* Pour centrer l'image si nécessaire */
    margin: 10px auto; /* Espacement et centrage */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Légère ombre pour améliorer la visibilité */
}
/* Styles pour le bouton Retour */
.back-button {
    position: fixed; /* Position fixe pour rester visible lors du défilement */
    top: 20px; /* Position en haut */
    left: 20px; /* Position à gauche */
    background-color: #007bff; /* Couleur bleue */
    color: white; /* Texte blanc */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    padding: 10px 15px; /* Espacement intérieur */
    font-size: 16px; /* Taille de la police */
    cursor: pointer; /* Curseur pointer */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce */
    transition: background-color 0.3s, transform 0.3s; /* Animation fluide */
    z-index: 1000; /* S'assurer qu'il est au-dessus des autres éléments */
}

.back-button:hover {
    background-color: #0056b3; /* Changement de couleur au survol */
    transform: scale(1.05); /* Effet de zoom au survol */
}
/* Barre de navigation de filtre et recherche */
.filter-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007BFF;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.filter-search-bar select {
    padding: 8px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
}

.filter-search-bar select:hover {
    background-color: #f4f4f4;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-container input {
    padding: 8px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    width: 250px;
    outline: none;
}

.search-container button {
    background-color: #0056b3;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container button:hover {
    background-color: #004494;
}

.search-container button .search-icon {
    width: 20px;
    height: 20px;
    display: block;
}
