
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    overflow-x: hidden;
}

body {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
    text-align: center;
}

.gallery-yt {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 250px;
    justify-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.h1dex, .h2dex {
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

h1, h2 {
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 50px;
}

header {
    background-color: #a856b1;
    padding: 20px 0;
    top: 0;
    width: 100%;
    z-index: 10;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #7000a3;
}

header img {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 75px;

}



.intro {
    position: relative;
    height: 100vh;
    color: white;
    background: rgba(0, 0, 0, 0.5);  /* Fond semi-transparent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px; 
}


.intro h1, .intro h2, .intro p, .colombe{
    position: relative;
    z-index: 2; 
    margin: 0 0 20px;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(4px) brightness(0.5);

}

.intro h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
    background: rgba(0, 0, 0, 0.6); 
    padding: 10px 20px;
    border-radius: 5px;
}

.intro h2 {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
    background: rgba(0, 0, 0, 0.4); 
    padding: 8px 16px;
    border-radius: 5px;
}

.intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
    background: rgba(0, 0, 0, 0.3); 
    padding: 15px;
    border-radius: 5px;
}
video:fullscreen {
    object-fit: contain;
}

footer {
    padding: 20px;
    background-color: #a856b1;
    color: #ecf0f1;
}

footer p {
    font-size: 1rem;
}
footer a {
    text-decoration: none;
}
footer ul {
    list-style-type: none;
    display: flex;
    align-items: center;
}
footer li {
    margin-left: auto;
    margin-right: auto;
    width: 33.333%;
}

footer a p {
    color: white;
    font-size: 15px;
}
.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1.1rem;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin-bottom: 10px;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .gallery-yt {
        gap: 10px;
    }
    .gallery-site {
        grid-template-columns: 1fr 1fr ;
        gap: 25px !important;
        width: 100%;
    }
    .work-card{
        width: 350px;
    }
    .work-card-site {
        width: 300px;
    }
    iframe {
        width:330px;
        height: 225px;
        margin: 0;
    }
    body .langues {
        position: relative;
        left: 0;
        top: 0;
    }
    .intro {
        height: auto;
        padding: 50px 20px;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .intro h2 {
        font-size: 1.2rem;
    }

    .intro p {
        font-size: 0.9rem;
    }

    .colombe {
        width: 100px;
    }

}

.colombe {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s; 
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    justify-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-site {
    display: grid;
    width: 600px;
    justify-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.4s ease-in-out;
}

.img-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.img-container:hover img {
    filter: brightness(1.2);
}

.img-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(25deg);
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 2;
}

.img-container:hover::before {
    transform: translate(100%, 100%);
    opacity: 1;
}
  
  .gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
  }
  

iframe {
    border-radius: 10px;
}
.apropos {
    width:1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}


.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    background-color: #a856b1;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-content {
    padding: 15px;
    background: rgba(161, 1, 209, 0.2);
    border-radius: 5px;
}
.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.competences {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comp {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}


.comp li {
    text-align: center;
    flex: 1 1 100px;
    transition: transform 0.3s ease;
}

.comp a {
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.comp a:hover {
    color: #7000a3;
}

.comp li:hover {
    transform: scale(1.05);
}

.logo {
    margin:15px;
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.comp2 {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.comp2 p {
    font-size: 1.2rem;
    color: #555;
}

.grid {
    grid-template-columns: 1fr;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    color: #fff;
    background-color: #9d50ec; 
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.btn-download:hover {
    background-color: #7a3d9d;
    transform: translateY(-2px);
}

.btn-download:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(157, 80, 236, 0.5);
}

.work-category {
    margin: 50px 0;
    padding: 0 20px;
}

.work-category h3 {
    font-size: 28px;
    color: #9d50ec;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
}

.work-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

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

.work-card p {
    font-size: 18px;
    color: #333;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 0;
    font-weight: bold;
}

.work-card a {
    color: inherit;
    text-decoration: none;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.langues {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 100px;
    top: 185px;
}

.langues a {
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}
.langues a:hover {
    color: #7000a3;
}

.langues img {
    border-radius: 5px;
}
.lang {
    list-style-type: none;
    text-decoration: none;
}

.work-card-site {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

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

.work-card-site p {
    font-size: 18px;
    color: #333;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 0;
    font-weight: bold;
}

.work-card-site a {
    color: inherit;
    text-decoration: none;
}

.work-card-site:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
