* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #1a1a2e, #16213e, #0f3460);
    background-size: cover;
    line-height: 1.6;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.7);
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f9a826; /* Couleur hover */
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 15px rgba(255, 255, 255, 0.6);
}

section {
    padding: 40px 20px;
    text-align: center;
}

#portfolio .project {
    display: inline-block;
    margin: 20px;
    max-width: 300px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

#portfolio .project:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

#portfolio img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid rgba(255, 215, 0, 0.6);
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

footer p {
    font-size: 14px;
}
/* Animation de texte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about {
    animation: fadeInUp 1s ease-in-out; /* Animation de fadeInUp */
    margin: 40px 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
    color: #f9a826; /* Couleur du titre */
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ffffff; /* Couleur du texte */
    transition: color 0.3s; /* Transition pour l'effet de survol */
}

#about p:hover {
    color: #f9a826; /* Changer la couleur au survol */
}
#portfolio {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si l'espace est limité */
    justify-content: center; /* Centre les projets horizontalement */
    padding: 40px 20px;
}

.project {
    background-color: rgba(255, 255, 255, 0.1); /* Fond léger pour les projets */
    border-radius: 10px;
    margin: 20px;
    max-width: 300px; /* Largeur maximale des projets */
    width: 100%; /* Prend tout l'espace disponible */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s; /* Animation pour le survol */
}

.project:hover {
    transform: scale(1.05); /* Agrandit légèrement au survol */
}

.project img {
    width: 100%; /* S'assure que l'image prend toute la largeur */
    height: auto; /* Garde les proportions de l'image */
    border-top-left-radius: 10px; /* Coins arrondis en haut à gauche */
    border-top-right-radius: 10px; /* Coins arrondis en haut à droite */
}

.project h3 {
    text-align: center; /* Centre le titre du projet */
    color: #f9a826; /* Couleur du titre */
    margin: 10px 0;
}

.project p {
    padding: 10px; /* Ajoute de l'espace autour du texte */
    text-align: center; /* Centre le texte */
    color: #ffffff; /* Couleur du texte */
}

#portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
    text-align: center; /* Centre le contenu de la section */
}

#portfolio h2 {
    width: 100%; /* Prend toute la largeur disponible */
    font-size: 36px; /* Ajuste la taille du titre */
    color: #f9a826; /* Couleur du titre */
    margin-bottom: 30px; /* Espace en dessous du titre */
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5); /* Ombre du texte */
}
/* Styles pour la section des services */
#services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
    text-align: center; /* Centre le contenu de la section */
}

#services h2 {
    width: 100%;
    font-size: 36px;
    color: #f9a826;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

/* Animation de service */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px;
    max-width: 300px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease forwards; /* Animation de glissement */
    opacity: 0; /* Masque l'élément par défaut pour l'animation */
    transition: transform 0.3s;
}

.service:hover {
    transform: scale(1.05); /* Agrandit légèrement au survol */
}

.service h3 {
    color: #f9a826;
    margin-bottom: 10px;
}

.service p {
    color: #ffffff;
    line-height: 1.6;
}
/* Styles pour la section de contact */
#contact {
    padding: 40px 20px;
    text-align: center; /* Centre le contenu de la section */
}

#contact h2 {
    font-size: 36px;
    color: #f9a826;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

/* Styles de formulaire */
.form-group {
    margin: 20px 0;
    text-align: left; /* Aligne le texte à gauche */
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: background-color 0.3s; /* Transition pour changement de couleur */
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.3); /* Change la couleur au focus */
    outline: none; /* Enlève le contour par défaut */
}

button {
    background-color: #f9a826;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s; /* Transition pour changement de couleur */
}

button:hover {
    background-color: #f89a1b; /* Couleur au survol */
}

/* Animation de glissement pour le formulaire */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appliquer l'animation à la section contact */
#contact {
    animation: fadeIn 0.5s ease forwards; /* Animation d'apparition */
}

