body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
header {
    background: #333;
    color: #fff;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1001; /* Ensure header is above nav */
    margin-top: 25px;
}
header img {
    height: 50px;
    width: 50px;
}
header h1 {
    margin: 0;
    text-align: center;
    flex: 1;
}
.logoretour:hover {
    -ms-transform: scale(1.1); /* IE 9 */
    -webkit-transform: scale(1.1); /* Safari 3-8 */
    transform: scale(1.1);
} 
.container {
    width: 90%;
    margin: auto;
    padding-top: 100px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
.project-details, .project-preview, .technologies-used {
    margin-bottom: 20px;
}
.project-details h2, .project-preview h2 {
    font-size: 1.8em;
    color: #333;
    margin-top: 0;
    text-align: center;
}
.project-details p {
    font-size: 1.2em;
    line-height: 1.6;
}
.divpreview {
    text-align: center;
    margin-top: 20px;
    border-radius: 5px;
    border-color: darkgray;
}
.preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.technologies-used {
    text-align: center;
}
.technologies-used h3 {
    font-size: 1.5em;
    color: #333;
}
.technologies-used ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.technologies-used ul li {
    display: inline-block;
    color: #fff;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 5px;
}
.footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    margin-top: 20px;
    border-radius: 8px;
}
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: #444;
    z-index: 1000;
}
nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 0;
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
}
nav ul li a:hover {
    text-decoration: underline;
}

.accordion {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.accordion-button {
    background-color: #007BFF;
    color: #ffffff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    /* Ajout de position relative pour faciliter le positionnement absolu */
    position: relative;
}

.accordion-button:hover {
    background-color: #ccc;
}

.accordion-button.active {
    background-color: #007BFF;
    position: relative;
}

.panel {
    padding: 18px;
    display: none; /* Cache les panels par défaut */
    background-color: rgb(55, 55, 55);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel.open {
    display: block; /* Affiche le panel lorsque la classe .open est ajoutée */
    margin-top: 10px; /* Ajoute un espace entre le bouton et le panel */
    position: relative;
}

@media only screen and (max-width: 600px) {
    .container {
        width: 100%;
        padding-top: 80px;
    }
    header {
        padding: 0.5em;
    }
    .project-details h2, .project-preview h2 {
        font-size: 1.5em;
    }
    .preview {
        max-width: 100%;
    }
}


@media only screen and (min-width: 601px) {
    .container {
        width: 90%;
        padding-top: 100px;
    }
    header {
        padding: 0.5em 1em;
    }
    .project-details h2, .project-preview h2 {
        font-size: 1.8em;
    }
    .preview {
        max-width: 100%;
    }
}

/* From Uiverse.io by Jedi-hongbin */ 
/* button {
    display: flex;
    height: 3em;
    width: 100px;
    align-items: center;
    justify-content: center;
    background-color: #eeeeee4b;
    border-radius: 3px;
    letter-spacing: 1px;
    transition: all 0.2s linear;
    cursor: pointer;
    border: none;
    background: #fff;
   }
   
   button > svg {
    margin-right: 5px;
    margin-left: 5px;
    font-size: 20px;
    transition: all 0.4s ease-in;
   }
   
   button:hover > svg {
    font-size: 1.2em;
    transform: translateX(-5px);
   }
   
   button:hover {
    box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff;
    transform: translateY(-2px);
   } */

/* bouton retour */
   .cta {
    position: relative;
    margin: auto;
    padding: 12px 18px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: #b1dae7;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.cta span {
    position: relative;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #234567;
}

.cta svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #234567;
    stroke-width: 2;
    transform: translateX(5px); /* Départ à droite */
    transition: all 0.3s ease;
}

.cta:hover:before {
    width: 100%;
    background: #b1dae7;
}

.cta:hover svg {
    transform: translateX(0); /* Retour au centre */
}

.cta:active {
    transform: scale(0.95);
}


.back-to-top {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #386269;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 5px;
    text-decoration: none;
    z-index: 1100;
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.back-to-top:hover {
    transform: translateX(-10px); 
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #386269; 
    text-decoration: none;
    border-radius: 5px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

.btn:hover {
    background-color: #2c4d50; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
}

.project-details p {
    text-align: center; /* Centre le texte horizontalement */
    margin: 0 auto; /* Centre le conteneur si nécessaire */
}
.divpreview {
    display: flex;
    justify-content: center; /* Centre l'iframe horizontalement */
    align-items: center; /* Centre l'iframe verticalement si nécessaire */
    margin: 20px auto; /* Ajoute un espacement autour */
    width: 100%; /* S'assure que le conteneur prend toute la largeur */
}

.divpreview iframe {
    width: 100%; /* Ajuste la largeur pour occuper tout l'espace disponible */
    height: 90vh; /* Ajuste la hauteur pour occuper 90% de la hauteur de la fenêtre */
    border: none; /* Supprime la bordure de l'iframe */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajoute une ombre légère */
    border-radius: 8px; /* Arrondit légèrement les coins */
}
.Documentation h2 {
    text-align: center; /* Centre le texte horizontalement */
    margin: 20px auto; /* Ajoute un espacement autour */
    font-size: 1.8em; /* Ajuste la taille de la police si nécessaire */
    color: #333; /* Couleur du texte pour rester dans le thème */
}