/* Réinitialisation des marges et padding */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Contenu général */
body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Header */
header {
    height: 80px; /* Ajuste la hauteur si nécessaire pour correspondre exactement à index.html */
    display: flex;
    align-items: center;
    background-color: black;
}


#header-content {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#title {
    margin: 0;
    font-size: 2rem;
    color: white;
}

#menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

#menu li {
    position: relative;
}

#menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

#menu li a:hover {
    text-decoration: underline;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    padding: 10px;
    border: 1px solid #444;
    z-index: 1;
    list-style-type: none;
}

.dropdown-menu li {
    margin-bottom: 10px;
}

.dropdown-menu li a {
    color: white;
}

.dropdown-menu li a:hover {
    color: #ccc;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Section Compétences */
#competences {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#competences h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #ffffff;
}

.competence-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.competence-box {
    width: 45%;
    min-width: 300px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.competence-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.certification {
    background-image: url('https://images.unsplash.com/photo-1607799279861-4dd421887fb3?auto=format&fit=crop&q=80&w=1000');
}

.tableau {
    background-image: url('https://images.unsplash.com/photo-1588508065123-287b28e013da?auto=format&fit=crop&q=80&w=1000');
}

.competence-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    width: 100%;
    height: 80px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.competence-box:hover .competence-info {
    height: 280px;
}

.competence-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.competence-info p {
    margin: 5px 0;
    font-size: 1rem;
}

.competence-info ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.competence-info ul li {
    margin-bottom: 10px;
}

.competence-info a {
    color: white;
    text-decoration: none;
}

.competence-info a:hover {
    text-decoration: underline;
}

/* Forcer tous les liens à rester blancs */
a,
a:visited,
a:hover,
a:active {
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .competence-box {
        width: 100%;
        margin-bottom: 20px;
    }

    #menu {
        flex-direction: column;
        gap: 10px;
    }
}
