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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2, h3 {
    font-weight: 700;
    color: #FF6347;
    font-family: 'Bebas Neue', sans-serif;
}

h1{
    font-size: 65px;
}

  h2 {
    font-size: 50px;
  }

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #000000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav ul {
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 20px;
}

header nav ul li a {
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 16px;
    transition: background 0.3s ease;
}

header nav ul li a:hover {
    background-color: #FF6347;
    border-radius: 5px;
}


/* bienvenue Section */

.welcome-image {
    width: 500px;
    height: auto;
}

.bienvenue {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    margin-bottom: 20%;
}

.bienvenue h1 {
    font-size: 64px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.bienvenue p {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 600px;
}

.bienvenue .btn {
    background-color: #FF6347;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bienvenue .btn:hover {
    background-color: #000000;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Projets accueil Section */
.projets {
    padding: 50px 20px;
    background-color: #000;
    text-align: center;
}

.projets img { 
    padding-top: 5%;
    width: 100%;  
    max-width: 500px; 
    height: auto; 
    border-radius: 8px;
}

@media (max-width: 768px) {
    .projets img {
        width: 90%; 
        max-width: 300px; 
    }
    
    .bienvenue{
        height: 90vh;
    }

    .bienvenue h1 {
        font-size: 36px; 
    }
    
    .bienvenue p {
        font-size: 16px; 
    }
}


.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 300px est la largeur minimale des cartes */
    gap: 30px; /* Espace entre les cartes */
    justify-content: center; /* Centre les cartes dans la grille */
    padding: 0 20px; /* Ajoute un padding horizontal pour mieux centrer */
}

.projet {
    border-radius: 10px; /* Coins arrondis */
    transition: transform 0.3s ease; /* Transition pour l'animation */
}


.projet:hover {
    transform: translateY(-10px); /* Légère élévation au survol */
}

#accueilprojets{
    background-color: #f9f9f9;
}


/* Projets Section */

/*carousel*/
.carousel-container {
    position: relative;
    width: 300px; /* Ajustez la largeur selon vos besoins */
    margin: auto;
    overflow: hidden;
}
.carousel {
    display: flex;
    transition: transform 0.5s ease;
    padding: 0;
    list-style: none;
}
.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}
.carousel-item img {
    width: 100%;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Adaptabilité pour les écrans plus petits */
@media (max-width: 600px) {
    .carousel-container {
        width: 100%;
    }
}

.projets {
    padding: 50px 0;
    background-color: black;/*#f9f9f9*/
    padding-top: 50px;
}

.projet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    padding-top: 50px;
}

.projet-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 565px;
}

.projet-card:hover {
    transform: translateY(-10px);
}

.projet-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.projet-card h3 {
    font-size: 24px;
    margin: 15px 0;
}

.projet-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    text-align: left;
}

.projet-card a {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
}

.projet-card a:hover {
    background-color: #FF6347;
}

.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste à la même position */
    z-index: 1000; /* Au-dessus des autres contenus */
    left: 0;
    top: 0;
    width: 100%; /* Pleine largeur */
    height: 100%; /* Pleine hauteur */
    overflow: auto; /* Activer le défilement si nécessaire */
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
}

.modal p{
    text-align: left;
}

.modal-content {
    background-color: white;
    margin: 15% auto; /* Centre la modale */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Largeur de la modale */
    max-width: 600px; /* Limite maximale */
    border-radius: 10px; /* Coins arrondis */
}


.close {
    color: #aaa; /* Couleur de la croix */
    float: right; /* Alignement à droite */
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black; /* Couleur au survol */
    text-decoration: none;
    cursor: pointer;
}


/* Compétences Section */
.competences {
    padding: 20px;
    text-align: left; /* Aligner le texte à gauche */
}

.competences-title {
    text-align: center; /* Centre le titre */
    margin-bottom: 20px; /* Espace sous le titre */
}

.competences-wrapper {
    display: flex; /* Utiliser flexbox pour aligner les colonnes */
    justify-content: space-between; /* Espace entre les colonnes */
    align-items: flex-start; /* Alignement en haut */
}

.skills-section {
    flex: 1; /* Permet à la section de compétences de prendre l'espace disponible */
    margin-right: 20px; /* Espace entre la section de compétences et l'image */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.skill-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-logo {
    width: 60px; /* Ajustez la taille des logos ici */
    height: auto;
}

.skills-wrapper {
    display: flex; /* Utiliser flexbox pour aligner les colonnes */
    justify-content: space-between; /* Espace entre les colonnes */
    align-items: flex-start; /* Alignement en haut */
}

.skills-image {
    flex: 1; /* Permet à l'image de prendre l'espace restant */
    display: flex;
    justify-content: center; /* Centre l'image horizontalement */
}

.image-right {
    width: 100%; /* Ajustez la largeur de l'image selon vos besoins */
    max-width: 350px; /* Limite la largeur maximale */
    border-radius: 8px;
}
.competences>h2{
    font-size: 40px;
}

@media (max-width: 768px) { /* Vous pouvez ajuster la largeur maximale selon vos besoins */
    .skills-image {
        display: none; /* Masque l'image sur les petits écrans */
    }
}

iframe {
    border: none;
    border-radius: 12px;
    max-width: 100%;
}

/* About Section */
.about {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#texteabout{
    text-align: justify;
    color: #000;
}

.about h1 {
    margin-bottom: 20px;
}

.about p {
    font-size: 20px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
}
  
.timeline {
    position: relative;
    margin: 3.125rem auto;
    padding: 1.25rem;
    max-width: 56.25rem;
}
  
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.25rem;
    background: linear-gradient(180deg, #FF6347 0%, #FF4500 100%);
}
  
.timeline-item {
    position: relative;
    margin: 1.25rem 0;
}
  
.timeline-item::before {
    content: '';
    position: absolute;
    top: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.9375rem;
    height: 0.9375rem;
    background-color: #FF6347;
    border-radius: 50%;
    z-index: 1;
}
  
.timeline-content {
    background: white;
    padding: 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    position: relative;
    width: 45%;
    margin-left: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}
  
.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.2);
}
  
.timeline h3 {
    font-size: 1.75rem;
    margin-bottom: 0.625rem;
}
  
.timeline p {
    font-size: 1.1rem;
} 

@media (max-width: 48rem) {
    .projet-card {
        padding: 0.9375rem; /* Réduisez le padding pour mobile */
    }

    .projet-card h3 {
        font-size: 1.25rem; /* Réduisez la taille du texte si nécessaire */
    }

    .projet-card p {
        font-size: 1rem; /* Réduisez la taille du texte si nécessaire */
    }
}

@media (max-width: 480px) {
    .about h1 {
        font-size: 3.5rem; /* Taille encore plus petite sur les petits écrans */
    }
}

@media (max-width: 48rem) {
    /* Rendre la timeline une seule colonne sur mobile */
    .timeline {
        padding: 0.625rem; /* Réduire le padding global */
    }

    .timeline::before {
        left: 10%; /* Aligner la ligne de la timeline vers la gauche */
            display: none;
    }

    .timeline-item::before {
        left: 10%; /* Aligner le point de la timeline vers la gauche */
    }

    .timeline-content {
        width: 90%; /* Occuper presque toute la largeur */
        margin: 1rem auto; /* Centrer les éléments */
    }

    /* Ajuster la taille du texte pour un affichage mobile */
    .timeline h3 {
        font-size: 1.25rem;
    }

    .timeline p {
        font-size: 1rem;
    }
}
  

/* Button */
.btn {
    background-color: black;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #FF6347;
}

/*Passion photos*/
.photography-section {
    padding: 20px;
    margin: 0 auto;
}

.photo-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Pour aligner l'image et le texte*/
    padding-top: 1%;
    padding-bottom: 1%;
    margin-left: 0; /* Retire la marge gauche */
}

.photo-image {
    flex-shrink: 0; /* Empêche l'image de rétrécir */
}

.photo-image img {
    width: 100%;
    max-width: 400px; /* Taille maximale de l'image */
    height: auto;
    border-radius: 8px;
}

.photo-text {
    flex-grow: 1; /* Le texte prend tout l'espace disponible */
    padding-left: 20px;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    max-width: 500px; /* Limite la largeur du texte */
}

/* Responsiveness pour les petits écrans */
@media (max-width: 768px) {
    .photo-content {
        flex-direction: column;
        align-items: center;
    }

    .photo-image {
        margin-bottom: 20px; 
    }

    .photo-text {
        margin-top: 20px;
        max-width: 100%; 
        justify-content: center;
        text-align: center;
    }
}

/* Responsiveness pour les écrans tablette et plus petits */
@media (max-width: 1024px) {
    .photo-content {
        flex-direction: column; /* Passe en colonne */
        align-items: center;
    }

    .photo-image {
        margin-bottom: 20px; /* Ajoute un espace sous les images */
    }

    .photo-text {
        max-width: 90%; /* Ajuste la largeur maximale du texte */
        text-align: center; /* Centre le texte */
        margin-top: 10px;
    }
}

.photography-section {
    background-color: #000;
    color: #F5F5F5;
    padding: 25px;
    text-align: center;
}

.photography-section h2 {
    font-size: 3rem;
    color: #FF4500;
}
  
.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 5%;
}
  
.gallery img {
    width: 30%;
    height: auto;
    border-radius: 10px;
}

/* Burger Menu Style */
.burger-menu {
    display: none; /* Cacher par défaut */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}

.burger-menu .bar {
    display: block; /* Assurez-vous que les barres sont affichées */
    width: 100%;
    height: 4px;
    margin-left: 30%;
    background-color: white;
    transition: all 0.3s ease;
}

/* Changer l'icône burger en croix */
.burger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0; /* Masquer la barre du milieu */
}

.burger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Cacher le menu par défaut sur mobile et tablette */
@media (max-width: 1024px) {
    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000000;
    }

    /* Afficher le menu burger */
    .burger-menu {
        display: flex;
    }

    /* Menu déroulant */
    header nav ul.show {
        display: flex;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .item {
        flex: 1 1 45%; /* Chaque item prend 45% de la largeur sur les tablettes */
    }
}

@media (max-width: 480px) {
    .item {
        flex: 1 1 100%; /* Chaque item prend 100% de la largeur sur les téléphones */
    }

    .caption h3 {
        font-size: 14px; /* Réduire la taille des titres sur petits écrans */
    }

    .caption p {
        font-size: 10px; /* Réduire la taille des descriptions sur petits écrans */
    }
}

:root {
    --color-1: #283242;
    --color-2: #ffdd40;
    --color-3: #131417;
    /* Other variables */
  }
  
  .container {
    padding: 50px 20px; /* Ajout de padding pour la section */
    background-color: #000;
}

.gallery-wrap {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne si l'espace est insuffisant */
    justify-content: center; /* Espace entre les éléments */
    gap: 20px; /* Espace entre les éléments */
    padding-top: 2%;
}

.gallery-wrap > h2 {
    font-size: 50px;
}

.gallery-wrap .item{
    width: 100%;
}

@media (max-width: 768px) {
    
    .gallery-wrap {
        grid-template-columns: 1fr; /* Une seule colonne pour chaque projet */
    }
}

.item {
    flex: 1 1 30%; /* Chaque item prend 30% de la largeur de son conteneur */
    max-width: 300px; /* Largeur maximale pour chaque item */
    margin: 10px; /* Marge autour de chaque item */
}

.item img {
    width: 100%; /* L'image occupe toute la largeur du conteneur */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item:hover img {
    transform: scale(1.05); /* Zoom léger lors du survol */
}

.caption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: white;
}

.caption>p{
    text-align: left;
}

.caption h3 {
    font-size: 26px; /* Ajustement de la taille des titres */
}

.caption p {
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: lighter;
}


.item:hover .caption {
    opacity: 1;
}

.gallery-wrap>h2{
    font-size: 50px;
}

.gallery-wrap>.modal{
    overflow: auto; /* Activer le défilement si nécessaire */
}


/* Footer */
footer {
    background-color: black;
    color: white;
    text-align: center; /* Assurez-vous que le texte et les icônes sont centrés */
    padding: 20px 0;
}

.footer-icons {
    margin-top: 10px; /* Ajoute un peu d'espace au-dessus des icônes */
}

.footer-icons a {
    color: white; /* Couleur des icônes */
    margin: 0 15px; /* Espace entre les icônes */
    font-size: 24px; /* Taille des icônes */
    transition: color 0.3s ease; /* Ajoute une transition lors du survol */
    justify-content: center; /* Centre les icônes */
    margin-top: 10px; /* Ajustez si nécessaire */
}

.footer-icons a:hover {
    color: #FF6347; /* Couleur au survol */
}
  
