
/* Réinitialisation des marges et dimensions */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général de la page */
html {
    background-color: #080b12;
}

body {
    font-family: Arial, sans-serif;
    background-color: #080b12;
    color: #f1f5f9;
    line-height: 1.7;
    min-height: 100vh;
}

/* En-tête et navigation */
header {
    background-color: #0b1220;
    border-bottom: 1px solid #1e293b;
    padding: 20px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.logo span {
    color: #39ff14;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #39ff14;
}

/* Introduction */
main {
    width: 84%;
    max-width: 1200px;
    margin: auto;
}

.introduction {
    padding: 70px 0 45px;
    max-width: 800px;
}

.surtitre {
    color: #39ff14;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: bold;
}

h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
    margin: 15px 0;
}

h1 span {
    color: #00aaff;
}

.introduction > p:last-child {
    color: #cbd5e1;
    margin-top: 20px;
}

/* Cartes de compétences */
.competences {
    padding: 30px 0 60px;
}

h2 {
    color: #39ff14;
    font-size: 27px;
    margin-bottom: 25px;
}

.grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.carte {
    background-color: #101827;
    border: 1px solid #263449;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s;
}

.carte:hover {
    transform: translateY(-5px);
    border-color: #00aaff;
}

.carte h3 {
    color: #00aaff;
    margin-bottom: 12px;
}

.carte p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.niveau {
    display: inline-block;
    color: #39ff14;
    border: 1px solid #287a25;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
}

/* Objectifs */
.objectifs {
    padding: 30px;
    margin-bottom: 60px;
    background-color: #0b1220;
    border-left: 3px solid #39ff14;
    border-radius: 8px;
}

.objectifs ul {
    padding-left: 25px;
}

.objectifs li {
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* Pied de page */
footer {
    background-color: #0b1220;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 25px;
}

/* Adaptation aux écrans plus petits */
@media screen and (max-width: 850px) {
    .grille {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        flex-direction: column;
    }

    nav {
        justify-content: center;
    }
}

@media screen and (max-width: 550px) {
    main {
        width: 90%;
    }

    .grille {
        grid-template-columns: 1fr;
    }

    .introduction {
        padding-top: 45px;
    }
}
