@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
        text-align: center;
    }
    .tagline {
        font-size: 1.2rem;
        text-align: center;
    }
    .header-buttons {
        text-align: center;
    }

    .btn {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .skill-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
    }
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-item::after {
        left: 10px;
    }

    section {
        padding: 4rem 0;
    }
}

/* ✅ 1️⃣ Header optimisé pour mobile */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 3rem;
        text-align: center;
    }

    .tagline {
        font-size: 1.5rem;
        text-align: center;
    }

    .header-buttons {
        text-align: center;
    }
}

/* ✅ 2️⃣ Timeline en une seule colonne sur mobile */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px; /* Recentre la ligne */
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item::after {
        left: 10px;
    }
}

/* ✅ 3️⃣ Boutons mieux adaptés aux petits écrans */
@media screen and (max-width: 480px) {
    .btn {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
}

/* ✅ 4️⃣ Optimisation des espacements */
@media screen and (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

/* ✅ 5️⃣ Ajustement des cartes de compétences */
@media screen and (max-width: 480px) {
    .skill-card {
        padding: 1.5rem;
    }
}
