/*------------- ELEMENTS HTML ------------------*/

* {
    font-family:verdana;
}
html {
    background-color: grey;
}

body {
        height: auto;
        max-width: 1200px;
        margin: 10px auto;
        background-color:#00539F;
        position: relative;
        border: 5px solid white;
        border-radius: 10px;
        overflow-y: scroll; /* pour éviter le décalage sur la droite lors du clic sur le détail des notions*/
        border-radius: 10px;
}

/* -------HEADER (bandeau du haut avec bouton Accueil, titre, logo ---------- */

header {
    background-color: black;
    display:flex;
    color:rgb(40, 184, 206);
    height:60px;
    gap: 10px;
    margin: auto;
    padding: 20px;
    align-items: center;
    border-radius: 2px;
    border-bottom: 4px solid grey;
    margin-bottom: 20px;
}

#accueil {
    width: 40px;
}

#accueil:hover {
    transform: scale(1.3); /* plutôt que de changer width, ça évite le décalage vers la droite du titre*/
    transition: transform 0.3s ease; /* ease est une fonction de timing pour la transition */
}

#accueil, #logo {
    display: flex;
    flex-direction: column;
}


#titre {
    margin: auto;
    font-size: 45px;
    background-image: linear-gradient(to right, rgb(40,184,206),rgb(130,180,74),rgb(240,84,90));
    -webkit-background-clip: text; /* Pour une meilleure compatibilité avec les navigateurs */
    background-clip: text; /* Ne s'applique qu'au texte */
    color: transparent; /* Rend le texte transparent pour que la couleur soit appliquée */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

#logo {
    width: 170px;
    margin-top:10px;
}




/* ------- IMAGE de la page d'accueil --------- */

#bandeau {
    visibility: hidden; /* Pour éviter le clignotement, en lien avec le JS */
}
#bandeau img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    margin-bottom: -5px; /* Pour empêcher l'apparition d'une bande de la couleur de body */
}


/* ----------- BIENVENUE BANDEAU DESCRIPTIF DE LA PAGE -------- */

#bienvenue {
    visibility: hidden; /* Pour éviter le clignotement, en lien avec le JS */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: white;
    color: black;
    width: 75%;
    height: auto;
    font-size:15px;
    font-weight: bold;
    padding: 15px;
    margin: 10px auto;
    border: 4px solid grey;
    border-radius: 10px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
}

/* ---------- FOOTER AVEC DATE ET COORDONNEES ---------------*/

footer {
    background-color: black;
    display: flex;
    justify-content: space-between; /* This will align the date to the left and the contact to the right */
    align-items: center; 
    height: auto;
    color: white;
    width: 100%;
}

footer a {
    color:rgb(40, 184, 206);
}

#date {
    margin-left: 20px;
}

#coordonnees {
    margin-right: 30px;
}


/* ------CASES------- */

.cases {
    visibility: hidden; /* Pour éviter le clignotement, en lien avec le JS */
}
.cases, .cases_notions {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.cases a, .cases_notions a {
    text-decoration: none;
}

.box {
    display: flex;
    flex-direction: column;
    height:80px;
    width:200px;
    border:5px;
    background-color: rgb(130, 180, 74);
    border: 3px solid white;
    border-radius: 10px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    margin-bottom: 20px;
    color: white;
    font-size:25px;
  }

.box:hover {
    background-color: white;
    color:rgb(130, 180, 74);
    font-weight: bold;
}

  .box p {
    margin: auto;
  }


/* -------------------- ***** RUBRIQUE NOTIONS ****** -------------------------------- */

.notions {
    visibility: hidden;
}

.infos, .definition {
    color:white;
    margin-bottom: 30px;
}

.infos h2, .definition h2 {
    color:rgb(224, 94, 94);
    font-size: 20px;
    font-weight: bold;
    display: flex;
    margin-left:20px;
}

.infos p, .definition p {
    margin-left:60px;
    margin-right:60px;
}

.infos ul {
    margin-left: 20px;
    list-style: square;
}

.infos li {
    height:30px;
}


/* -------------------MATERIEL------------------*/

.rubriques_materiel { 
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
}
.rubriques_materiel a {
text-decoration: none;
}

.box_materiel{
    display: flex;
    height:60px;
    width:400px;
    border:5px;
    background-color: black;
    border-radius: 10px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    margin: 15px auto;
    color: white;
    font-size:25px;
    justify-content: center;
  }

.box_materiel:hover {
    background-color: white;
    color:black;
    font-weight: bold;
}

.box_materiel p {
    margin: auto;
  }


  /* ---- Ordinateurs -----*/

.ordis {
    background-color: white;
    color:black;
    display: flex;
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 20px;
    width:90%;
    visibility:hidden;
    border-radius: 10px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
}

.ordis h2 {
    color:white;
    background-color: black;
    margin-left: 10px;
    padding: 10px 10px 10px 10px;
    width: 350px;
    border-radius: 10px;
    text-align:center;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
}
.ordis h3 {
    font-size: 15px;
    font-weight: bold;
    display: flex;
    margin-left:20px;
}

.ordis p {
    margin-left:30px;
    margin-right:30px;
}

.ordis img {
    width:150px;
    margin-left:60px;
}

.colonne {
    flex:2;
}


/*---------- CABLES --------------*/

/* Tableau des câbles*/

.thumbnail { 
    width:90px;
}

.thumbnail:hover {
    cursor: pointer;
}   

.table_cables {
    visibility: hidden;
    width: 90%;
    margin: 0 auto;
}

.td_cables { /*blocs sur fond gris avec intitulé */
    display: block;
    border: 2px solid white; 
    border-radius: 10px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    background-color: lightgrey; 
    margin-bottom:10px;
    padding-bottom:10px;

}

.titre_cables {
    display:block;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: rgb(40, 184, 206);
}

.types_cables { /*emplacement des miniatures, sur fond blanc*/
    display: flex;
    width:80%;
    border-radius: 10px;
    justify-content: center;
    margin: 0 auto;
    background-color: white;
    font-weight: bold;
}

figcaption { /*légende des miniatures*/
    text-align: center; /* Centrer le texte */
    margin-top: 5px; /* Espacement entre l'image et la légende */
}

/* Pop-up image aggrandie des miniatures via le script JS */

.modal { /* nom données à la fenêtre qui s'affiche en surimpression */
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-right: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*-------Fin pop-up--------*/

/*--------------------------- SYSTEME ------------------------------ */

.systemes {
    visibility:hidden;
    display:flex;
}

.infos_systemes {
        color:white;
        display:flex;
        margin-bottom: 30px;
        margin: 0 auto;
        margin-bottom:20px;
        gap:50px;
        }

    .infos_systemes h2 {
        color:white;
        font-size: 15px;
        font-weight: bold;
        display: flex;
        margin-left:20px;
    }
    
    .infos_systemes p {
        margin-left:60px;
        margin-right:60px;
    }
    
    .infos_systemes ul {
        margin-left: 20px;
        list-style: square;
    }

    .infos_systemes a {
        text-decoration:none;
    }

.terme {
    font-size: 20px;
    font-weight: bold;
    color:black;
}

.details {
    cursor: pointer;
    font-weight: bold;
    color:rgb(130, 180, 74);
}

.tableau_systemes th, .tableau_systemes td {
    text-align: center;
    padding: 6px;
}

.tableau_systemes th {
    background-color: black;
}

.tableau_systemes td {
    background-color: rgb(40,184,206);
}

.tableau_systemes img {
    width: 50px;
}

#os {
    font-size:larger;
    font-weight:bold;
    color:rgb(35, 16, 201);
}

/*----------------WINDOWS---------------*/

.definition {
    visibility: hidden;
}

.definition table {
    width: 100%;
    border-collapse: collapse; /* Pour supprimer les espaces entre les cellules */
    table-layout: fixed; /* Pour s'assurer que toutes les colonnes ont la même largeur */
  }
  
  .definition th,
  .definition td {
    text-align: center; /* Centrer le texte et les images dans les cellules */
    padding: 5px; /* Ajouter un peu d'espace autour du contenu des cellules */
  }
  
  .definition img {
    width: 250px; /* Ou toute autre taille appropriée */
    height: auto; /* Pour maintenir le ratio d'aspect des images */
  }

/* Page VPN */

.consignes {
    visibility: hidden;
    color: white;
    margin-left: 20px;
}

/* Page Focat */

.consignes a{
    color:rgb(35, 16, 201);
}

/* ----------******* ASSISTANCE *******----------- */

#teamviewer {
    background-color: blue;
    
     }
#teamviewer:hover {
        background-color: white;
        color:blue;
        font-weight: bold;
    }