/* ======== STYLE GÉNÉRAL ======== */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #111;
    background-color: #f9f9f9;
    line-height: 1.6;
    overflow-x: hidden;
}

header,
footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 2px solid #111;
}

h1,
h2,
h3,
h4 {
    margin: 10px 0;
    padding: 0 20px;
    text-transform: uppercase;
}

h1 {
    text-align: center;
}

p {
    margin: 10px 0;
    padding: 0 20px;
}

/* ======== PROJETS ======== */
.project-section {
    padding: 0;
    margin: 0;
}

.project-block {
    width: 100%;
    padding: 40px 40px;
    /* Ajout de padding pour éviter le chevauchement des flèches */
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    /* Centrage des blocs */
}

/* === Ajustement des projets sur mobile et tablette === */
@media (max-width: 1024px) {
    .project-block {
        padding: 40px 80px;
    }
}

/* === Ajustement supplémentaire pour les écrans mobiles === */
@media (max-width: 600px) {
    .project-block {
        padding: 40px 70px;
    }
}

/* Style des titres, dates et descriptions */
.project-title {
    font-size: 2.5rem;
    /* Titre plus grand */
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.project-date {
    font-size: 1.8rem;
    /* Sous-titre agrandi */
    font-weight: 600;
    text-align: center;
    color: #555;
    margin-bottom: 10px;
}

.project-description {
    font-size: 1.4rem;
    /* Texte de présentation plus grand */
    color: #333;
    text-align: center;
    max-width: 900px;
    /* Limiter la largeur pour la lisibilité */
    margin: 20px auto;
    line-height: 1.8;
}

/* ======== SÉPARATEUR ======== */
.separator {
    border: none;
    border-top: 2px solid #111;
    margin: 20px 0;
    width: 100%;
}

/* ======== GALERIE ======== */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-gallery img {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.site-screen:hover,
.project-gallery img:hover {
    transform: scale(1.05);
}


.project-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ffc107;
    /* ou la couleur principale de ton portfolio */
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.project-button:hover {
    background-color: #e0a800;
}




@media (max-width: 768px) {
    .project-gallery img {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Responsive : 2 images par ligne sur tablette */
@media (max-width: 1024px) {

    .site-screen,
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-title {
        font-size: 2rem;
        /* Ajustement sur tablette */
    }

    .project-date {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 1.2rem;
    }
}

/* Responsive : 1 image par ligne sur mobile */
@media (max-width: 600px) {

    .site-screen,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 1.8rem;
        /* Ajustement sur mobile */
    }

    .project-date {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 1rem;
    }
}

/* ======== VIDÉOS ======== */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 40%;
    /* Réduction de la hauteur de la vidéo */
    margin: 20px 0;
    max-width: 800px;
    /* Limite la largeur de la vidéo */
    margin-left: auto;
    margin-right: auto;
    /* Centre la vidéo */
}




.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Légère ombre pour le style */
}

/* Responsive : Ajustement pour les écrans plus petits */
@media (max-width: 768px) {
    .video-container {
        padding-top: 45%;
        /* Légèrement plus grand sur tablette pour le confort visuel */
    }
}

@media (max-width: 480px) {
    .video-container {
        padding-top: 55%;
        /* Sur mobile, plus haut pour rester lisible */
    }
}


/* ======== FOOTER ======== */
footer {
    background: #111;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    margin-top: 20px;
}


.site-screen {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    width: 700px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
  }
  
    
  .project-divider {
    border: none;
    height: 2px;
    width: 80%;
    margin: 4rem auto;
    border-bottom: 2px solid #111;
  }
  

/* Conteneur des boutons */
.project-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Style des boutons adaptés à la DA */
.btn-custom {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    /* Forme plus arrondie */
    transition: all 0.3s ease-in-out;
    border: 2px solid #111;
    text-align: center;
    min-width: 150px;
    text-align: center;
}



.tech-used {
    text-align: center;
    margin-top: 2rem;
}

.tech-used h4 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #111;
}

.tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-logos img {
    border-radius: 50%;
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.tech-logos img:hover {
    transform: scale(1.2);
}