/* Style général pour le site */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: url('../background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    text-align: center;
}

/* Styles de l'en-tête */
header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    z-index: 1000;
}

/* Styles de la navigation */
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav ul li {
    margin-left: 20px;
}

nav ul li.logo {
    margin-left: 0;
    margin-right: auto;
}

nav ul li.logo img {
    height: 50px;
    width: auto;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #a0a0a0;
}

/* Styles du burger menu */
.burger {
    display: none;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px;
    transition: all 0.3s ease;
}

.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle span:nth-child(2) {
    opacity: 0;
}

.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1100;
    }

    nav ul {
        position: fixed;
        top: 60px;
        right: 0;
        height: calc(100vh - 60px);
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        overflow: hidden;
    }

    nav ul.nav-active {
        transform: translateX(0);
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li.logo {
        display: none;
    }
}

/* Styles du contenu principal */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 20px;
    flex-direction: column;
}

/* Style pour le titre de la page */
h1 {
    font-size: 48px;
    margin-bottom: 30px; /* Légèrement plus d'espace entre le titre et la section */
    margin-top: 150px; /* Un peu plus de distance par rapport au haut de la page */
}

/* Styles pour les sections de compétences */
.competence-section {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin-top: 30px; /* Un peu plus d'espace entre le titre et la section */
}

.competence-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Styles pour les cartes de compétences */
.competence-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.competence-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 200px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.competence-card:hover {
    transform: scale(1.05);
}

.competence-card img {
    max-width: 60px;
    margin-bottom: 10px;
}

.competence-card .logos img {
    max-width: 50px;
    margin: 0 5px;
}

/* Styles spécifiques pour les images des cartes */
.competence-card img[src*="vlan.png"],
.competence-card img[src*="routage.png"],
.competence-card img[src*="acl.png"],
.competence-card img[src*="virtualisation.png"],
.competence-card img[src*="dns.png"],
.competence-card img[src*="hardware.png"] {
    max-width: 80px; /* Taille spécifique pour les images des sections Administration Réseau et Administration Système */
}

/* Styles pour les informations de la carte */
.competence-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.competence-info p {
    font-size: 16px;
}

/* Style spécifique pour "Services DNS et AD" */
.competence-info h3 span {
    display: block;
    font-size: 14px; /* Taille réduite pour "DNS" et "et AD" */
}

/* Styles du footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

footer a:hover {
    color: #a0a0a0;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .competence-cards {
        flex-direction: column;
    }

    .competence-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    .competence-card img {
        max-width: 40px;
    }

    .competence-info h3 {
        font-size: 18px;
    }

    .competence-info p {
        font-size: 14px;
    }
}
