body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
}

h2,h4 {
    color: #1b2a49;
    text-align: center;
}

/* Styles généraux pour les boutons */
button {
    background-color: #f5b041; 
    color: #ffffff; 
    border: none; 
    border-radius: 25px; 
    padding: 10px 20px; 
    margin-top: 20px;
    font-size: 1rem; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s ease-in-out; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

/* Styles pour les liens dans les boutons */
button a {
    text-decoration: none; /* Supprime le soulignement */
    color: #ffffff; /* Garde la couleur du texte */
}


button:hover {
    background-color: #e67e22; 
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); 
}



/* Navigation */
nav {
    background: #0F2027;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #2C5364, #203A43, #0F2027);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #2C5364, #203A43, #0F2027); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */    
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    list-style: none;
    margin: 0;
    height: 75px;
}

nav ul .logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #f5b041; 
}

/* Section Hero */
.hero {
    text-align: center;
    background: #0F2027;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #2C5364, #203A43, #0F2027);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #2C5364, #203A43, #0F2027); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #f5f5f5;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}


.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero .btn {
    background-color: #f5b041;
    color: #1b2a49;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #d69330;
}

/* Services */
.services {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Portfolio */
.portfolio {
    padding: 50px 20px;
    text-align: center;
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Conteneur global pour les projets */
.portfolio-item {
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centre le contenu */
    background-color: #fff;
    overflow: hidden; 
}

/* Spécifique aux images dans portfolio-item */
.portfolio-item img {
    max-width: 400px; /* L'image prend toute la largeur du conteneur */
    height: 400px; /* Maintient le ratio de l'image */
    border-radius: 8px; /* Pour donner un effet arrondi aux bords de l'image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre subtile sous l'image */
}

/* Personnalisation des autres projets sans images */
.portfolio-item:not(:has(img)) {
    background-color: #f7f7f7; /* Légère couleur de fond différente pour les projets sans image */
    color: #333;
    font-size: 18px;
    padding: 20px;
    border-radius: 8px;
}

/* Responsive design : adapter l'affichage sur petits écrans */
@media (max-width: 768px) {
    .portfolio-item {
        margin: 5px;
        padding: 5px;
    }

    .portfolio-item img {
        width: 100%; /* Pour que l'image occupe toute la largeur sur les petits écrans */
    }
}

.portfolio-intro {
    padding: 40px 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-gallery {
    padding: 40px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item video, .gallery-item img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.gallery-item h3 {
    font-size: 1.2rem;
    color: #1b2a49;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Section compétences */
.competences {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.competences h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1b2a49; /* Bleu nuit */
}

.competences-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.competences-card {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.competences-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.competences-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.competences-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.competences-card p {
    font-size: 1rem;
    color: #666;
}

/* Section Tarifs */
.tarifs {
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.tarifs h2 {
    color: #1b2a49;
    font-size: 2rem;
    margin-bottom: 20px;
}

.tarifs p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.tarifs-table th, .tarifs-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.tarifs-table th {
    background-color: #f5b041;
    color: white;
    font-weight: bold;
}

.tarifs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}



.tarifs-table td {
    font-size: 0.9rem;
    color: #333;
}

/* Section À propos de moi */
.about-me {
    padding: 4em 2em;
    color: #2c3e50; /* Bleu-gris pour le texte */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center; /* Centre tout le contenu */
}

.about-me h2 {
    font-size: 2.8em;
    color: #1b4f72; /* Bleu foncé pour le titre */
    margin-bottom: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.about-me p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    max-width: 800px; /* Limite la largeur du texte pour une meilleure lisibilité */
    margin-left: auto;
    margin-right: auto;
}

.about-me img {
    display: block;
    margin: 2em auto 3em auto;
    border-radius: 50%; /* Rend l'image circulaire */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    height: auto;
}



.contact {
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f7fa;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact h2 {
    font-size: 2em;
    color: #1b4e80;
    margin-bottom: 20px;
}

.contact p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #4a4a4a;
}

.contact a {
    color: #1b4e80;
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 20px;
    text-align: left;
    font-size: 1em;
}

.contact-item {
    margin-bottom: 15px;
}

.contact-item strong {
    color: #1b4e80;
    font-weight: bold;
}


/* Section vidéo */
.presentation-video {
    text-align: center;
    margin-bottom: 40px;
}

.presentation-video video {
    width: 80%;
    max-width: 1080px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Onglets de catégories */
.portfolio-categories .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    font-size: 1.1rem;
    padding: 10px 20px;
    margin: 10px;
    background-color: transparent;
    border: 2px solid #333;
    color: #333;
    transition: background-color 0.3s, transform 0.2s ease;
    cursor: pointer;
}

.tab-button.active, .tab-button:hover {
    background: #0F2027;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #2C5364, #203A43, #0F2027);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #2C5364, #203A43, #0F2027); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */    
    color: white;
    transform: scale(1.05); /* Léger agrandissement */
}


/* Contenu des catégories */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.social-links {
    display: flex;
    justify-content: center; 
    gap: 15px; 
    margin-top: 10px; 
}

.social-links a img {
    width: 40px; 
    height: auto; 
    transition: transform 0.3s ease; 
}

.social-links a img:hover {
    transform: scale(1.1); 
}

/* Galerie */
.gallery-grid {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de se placer sur plusieurs lignes si nécessaire */
    justify-content: center;
    gap: 25 px; /* Réduction du gap */
    margin-top: 20px;
}

.gallery-grid video {
    width: 100%;
    max-width: 300px; /* Fixe la taille maximale des vidéos */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-grid-large {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de se placer sur plusieurs lignes si nécessaire */
    justify-content: center;
    gap: 10px; /* Réduction du gap */
    margin-top: 20px;
}
.gallery-grid-large video {
    width: 100%;
    max-width: 1000px; /* Fixe la taille maximale des vidéos */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Pour les écrans plus petits */
@media (max-width: 1024px) {
    .gallery-grid {
        gap: 8px; /* Réduit le gap */
    }

    .gallery-grid video {
        max-width: 250px; /* Limite la taille des vidéos pour les écrans de taille moyenne */
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        gap: 8px; /* Réduit encore le gap */
    }

    .gallery-grid video {
        max-width: 90%; /* Ajuste la taille des vidéos sur les petits écrans */
    }
}



.gallery-item {
    text-align: center;
    overflow: hidden;
}

.gallery-item video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item h4 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.gallery-item p {
    font-size: 14px;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Footer */
footer {
    text-align: center;
    background: #0F2027;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #2C5364, #203A43, #0F2027);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #2C5364, #203A43, #0F2027); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */    
    color: #f5f5f5;
    padding: 20px 0;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #f5b041;
    text-decoration: none;
}

footer a:hover {
    color: #d69330;
}
