body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #131313; /* Couleur de fond en hexadécimal */
}



header {
    display: flex;
    align-items: center;
    background-color: #282b30;
    color: #fff;
    padding: 40px;
    justify-content: center;
    
}

header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 500px; /* Limite la largeur du h1 */
    width: 400px; /* Assure que la largeur est flexible mais limitée par max-width */
}

h1 {
    font-family: 'ABeeZee', Arial, sans-serif;
    font-weight: 700; 
}

h2, h3, p, li {
    color: white;
}

.menu {
    display: none; /* Hide menu by default */
    flex-direction: column;
    position: absolute;
    top: 60px; /* Positions menu below the button */
    right: 20px;
    width: 100px; /* Adjust width as needed */
    background-color: #1a1a1a; /* Dark background */
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    text-align: center;
}

.menu a:hover {
    background-color: #333;
}

/* Button styling */
.menu-toggle {
    background-color: #242424; /* Darker than header */
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

/* Show menu when active */
.menu.active {
    display: flex;
}

/* Desktop: hide toggle button and display full header */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    .header-links a {
        display: inline;
    }
}

.header-links {
    display: flex;
    gap: 15px;
    margin-left: 900px;
}

.header-links a {
    margin-left: 15px;
    color: #fff;
    text-decoration: none;
}

.header-links a:hover {
    text-decoration: none; /* Change la couleur au survol */
}

.custom-card {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px ; /* Centrer la carte */
    max-width: 800px; /* Limiter la largeur */
    width: 100%; /* S'adapte aux écrans plus petits */
}

.custom-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: #0056b3;
}


#Accueil p {
    margin-bottom: 15px; /* Espace entre les paragraphes */
    font-size: 14px; /* Taille de police */
    line-height: 1.6; /* Espacement entre les lignes pour améliorer la lisibilité */
    font-family: 'ABeeZee', Arial, sans-serif; 
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between the text and image */
}

.about-text {
    flex: 1; /* Allow the text to take up remaining space */
}

.about-image {
    width: 200px; /* Adjust the image size */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}



/* Pour mobile */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack items on smaller screens */
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 100px; /* Smaller image for mobile */
    }

    .header-links {
        margin-left: 0; /* Ajuste la position des liens dans l'entête pour les petits écrans */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .header-links a {
        margin-left: 0;
        margin-bottom: 10px;
    }

    header {
        flex-direction: column; /* Aligner l'entête en colonne sur les petits écrans */
        padding: 20px;
    }

    header h1 {
        width: 100%; /* Le titre prendra toute la largeur */
        position: static;
        transform: none;
    }

    .custom-card {
        max-width: 100%; /* Laisser la carte s'étirer sur toute la largeur sur mobile */
        margin: 10px 0; /* Réduire la marge autour des cartes */
    }

    .carousel {
        width: 100%;
    }

    .carousel-container {
        flex-direction: column; /* Afficher les slides en colonne sur mobile */
    }

    form input[type="text"],
    form input[type="email"],
    form textarea,
    form button {
        width: 90%; /* Les champs et boutons occuperont 90% de la largeur sur mobile */
        margin-left: 0;
    }
}

/* Section pour les très petits écrans */
@media (max-width: 480px) {
    body {
        font-size: 14px; /* Réduit la taille de la police */
    }

    .about-image {
        width: 80px; /* Encore plus petit pour les écrans très petits */
        height: 80px;
    }

    .custom-button {
        padding: 8px 15px;
    }

    .back-to-top {
        font-size: 16px; /* Taille réduite du bouton */
        right: 10px; /* Réduit l'espace à droite du bouton */
        bottom: 20px; /* Ajuste la position du bouton */
    }

    .header-links {
        margin-left: 0;
        gap: 10px;
    }

    .header-links a {
        margin-left: 0;
        margin-bottom: 8px;
    }

    .carousel-slide {
        font-size: 12px; /* Réduit la taille du texte dans le carousel */
    }
}



.email-link {
    color: white; /* Garde le lien en blanc */
    text-decoration: none; /* Supprime le soulignement du lien */
    max-width: 200px;
}

.mail {
    width: 20px;  /* Ajuste la taille du logo */
    height: auto; /* Maintient le ratio de l'image */
    margin-right: -1px; /* Espace à droite du logo */
    vertical-align: middle; /* Aligne le logo verticalement avec le texte */
    margin-top: -4px;
    text-decoration: none;
}

.linkdin {
    color: white;
    text-decoration: none;
    max-width: 200px;
}

.github {
    color: white;
    text-decoration: none;
    max-width: 200px;
}

.rootme {
    color: white;
    text-decoration: none;
    max-width: 200px;
    margin-right: -1px;
}

.root {
    width: 20px;
    height: auto;
    margin-left: -1px;
    margin-top: -6px;
    vertical-align: middle;
}

.social-logo {
    width: 20px;  /* Ajuste la taille du logo */
    height: auto; /* Maintient le ratio de l'image */
    margin-right: -3px; /* Espace à droite du logo */
    vertical-align: middle; /* Aligne le logo verticalement avec le texte */
    margin-top: -4px;
    text-decoration: none;
}

.social-icons {
    display: inline-block;
}

.social-logo {
    display: inline-block;
    margin-right: 10px; /* Ajoute un espace entre les icônes */
    vertical-align: middle; /* Aligne verticalement les icônes */
}

.Attaque-par-fautes-sur-DES {
    color: white;
    text-decoration: none;
}

.PRESENT24-Attack {
    color: white;
    text-decoration: none;
}

.Projet_BDD_Instagram {
    color: white;
    text-decoration: none;
}

.carousel {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-left: 10px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
    color: white;
    text-align: center;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

button.prev { left: 10px; }
button.next { right: 10px; }


section {
    padding: 20px;
}

ul {
    list-style-type: none;
}

/* Réduit la largeur des champs du formulaire */
form input[type="text"],
form input[type="email"],
form textarea {
    width: 60%; /* Ajustez ce pourcentage selon vos préférences */
    max-width: 400px; /* Fixe une largeur maximale */
    margin: 0 auto; /* Centre les champs */
    display: block;
    padding: 8px; /* Réduit le padding pour un champ plus compact */
    font-size: 14px; /* Réduit légèrement la taille de la police */
    margin-left: 10px;
}

/* Bouton d'envoi */
form button {
    width: 60%; /* Correspond à la largeur des autres champs */
    max-width: 400px;
    padding: 10px;
    font-size: 14px;
    margin: 10px auto 0;
    display: block;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

form button:hover {
    background-color: #555;
}

.back-to-top {
    position: fixed !important;
    bottom: 60px !important;
    right: 20px !important; /* Ajustez cette valeur pour décaler davantage */
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000; /* Pour le placer au-dessus d'autres éléments */
}

.back-to-top:hover {
    background-color: #0056b3;
}


#scrollToTopBtn {
    display: none; /* caché par défaut */
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
}



footer {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
}
