body {
    justify-content: center;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse; /* Inversé sur mobile */
    min-height: 100vh;
    position: relative;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
.tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    body {
        flex-direction: row; /* Retour à row sur desktop */
        padding: 2% 5% 5% 5%;
        overflow: hidden;
    }
}



body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 32, 63, 0.75);
    z-index: -1;
}

h1 {
    color: white;
    font-size: clamp(40px, 8vw, 90px);
    z-index: 1;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.1;
}

.button.primary {
    display: inline-block;
    /* margin-top: 16px; */
    font-size: clamp(14px, 2vw, 17px);
    padding: 12px 24px;
    background: white;
    color: black;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.button.secondary{
    border-radius: 980px;
}

.button.primary:hover {
    transform: scale(1.05);
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button.primary:active {
    transform: scale(0.98);
}

h3{
    color: #ffffff;
}

p {
    color: rgba(255, 255, 255);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
    max-width: 600px;
    letter-spacing: 0.2px;
}

.main {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0;
}

.slider-for .slide {
    border-radius: 10px;
    position: relative;
    text-align: center;
    aspect-ratio: 16/9;
    width: 100%;
}

.slider-nav {
    margin-top: 15px;
}

.slider-nav .slide {
    border-radius: 10px;
    margin: 0 8px;
    position: relative;
    text-align: center;
    aspect-ratio: 16/9;
}

.gauche {
    width: 100%;
    margin-bottom: 30px;
}

.droite {
    width: 100%;
    margin-bottom: 30px; /* Ajouté pour l'espacement sur mobile */
}

@media (min-width: 768px) {
    .gauche {
        width: 50%;
        padding-right: 40px;
        margin-bottom: 0;
    }

    .droite {
        width: 45%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0;
    }
}

.action {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
}

.action a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background 0.3s;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.action a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.boutons {
    display: flex;
    gap: 10px;
}

@media (max-width: 480px) {
    .slider-nav{
        display: none;
    }

    .action {
        flex-direction: column;
    }

    .boutons {
        justify-content: center;
    }

    .autres.projets {
        text-align: center;
    }
}