#logo {
    margin: 0 auto;
    padding-top: 50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

body{
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

header{
    text-align: center;
    background-color: #1d1d1d;
    color: white;
    padding-bottom: 30px;
}

h1{
    font-family: 'theblacklist',arial,sans-serif;
    margin-top: 0;
    padding-top: 30px;
    font-size: 2.5em;
}

h2{
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    max-width: 400px;
    margin: auto;
    padding: 0 20px;
}

h3:before{
    content: "« ";
    color: grey;
}
h3:after{
    content: " »";
    color: gray;
}
h3{
    font-size: 1.5em;
    text-transform: uppercase;
    padding: 0 20px;
}

ul{
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

li{
    list-style-type: none;
    margin: 10px;
}

li:hover{
    font-weight: bold;
}

nav{
    text-align: center;
    background-color: white;
    box-shadow: 0px 3px 1px -1px rgba(0, 0, 0, 0.5);
    font-size: 1.1em;
    padding: 15px;
    position: static;
    width: 100%;
}

section{
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

a{
    text-decoration: none;
    color: black;
    display: block;
    padding: 10px;
}

footer{
    background-color: #1D1D1D;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

*{
    box-sizing: border-box;
}

#contact{
    border: 1px black solid;
    border-radius: 15px;
    padding: 30px;
    margin: 0 20px 50px 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#contact a {
    color: black;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

#contact a:hover {
    color: black;
    background-color: #f0f8ff;
    transform: scale(1.05);
}

#contact a b {
    font-weight: bold;
}

#projets{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

#pictureprojet {
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    max-width: 1200px;
}

/* Images dans pictureprojet avec effet de suite séquentielle */
#pictureprojet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.picture-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

#pictureprojet img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: grayscale(30%) brightness(0.9);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

#pictureprojet img:hover {
    width: 180px;
    height: 220px;
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-10px) scale(1.02);
    z-index: 5;
}

/* Effet de suite : quand on survole une image, les suivantes se décalent */
#pictureprojet img:hover ~ img {
    transform: translateX(20px);
    transition: transform 0.4s ease;
}

/* Animation en cascade pour l'effet de suite */
#pictureprojet img:nth-child(1):hover ~ img:nth-child(2) {
    transform: translateX(25px);
    transition-delay: 0.1s;
}

#pictureprojet img:nth-child(1):hover ~ img:nth-child(3) {
    transform: translateX(35px);
    transition-delay: 0.2s;
}

#pictureprojet img:nth-child(1):hover ~ img:nth-child(4) {
    transform: translateX(45px);
    transition-delay: 0.3s;
}

#pictureprojet img:nth-child(2):hover ~ img:nth-child(3) {
    transform: translateX(25px);
    transition-delay: 0.1s;
}

#pictureprojet img:nth-child(2):hover ~ img:nth-child(4) {
    transform: translateX(35px);
    transition-delay: 0.2s;
}

#pictureprojet img:nth-child(3):hover ~ img:nth-child(4) {
    transform: translateX(25px);
    transition-delay: 0.1s;
}

/* Effet de bordure lumineuse au survol */
#pictureprojet img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#pictureprojet img:hover::before {
    opacity: 1;
}

.separator{
    width: 40px;
    height: 1px;
    margin: 15px auto;
    display: block;
    background: #999999;
}

.contener{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.projet{
    width: 100%;
    max-width: 350px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition: all 0.3s ease;
}

.projet:hover{
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    transform: translateY(-5px);
}

.picture{
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.projet img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projet:hover img{
    transform: scale(1.05);
}

.projet span{
    text-transform: uppercase;
    display: block;
    padding: 20px;
    font-weight: 500;
    font-size: 1.1em;
}

.projet .date-project{
    font-size: 0.7em;
}

.pictureproject img, .pictureproject video{
    width: 80%;
    max-width: 100%;
    height: auto;
}

@font-face {
    font-family: 'theblacklist';
    src: url('../src/theblacklist.ttf') format('truetype');
}

/* MEDIA QUERIES POUR LA RESPONSIVITÉ */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    h1 {
        font-size: 2em;
        padding: 20px 15px 15px 15px;
    }
    
    h2 {
        font-size: 1.2em;
        width: 100%;
        padding: 0 15px;
    }
    
    h3 {
        font-size: 1.3em;
        padding: 0 15px;
    }
    
    #logo {
        width: 120px;
        height: 120px;
        padding-top: 30px;
    }
    
    nav {
        padding: 10px;
        font-size: 1em;
    }
    
    ul {
        flex-direction: row;
        justify-content: space-around;
    }
    
    li {
        margin: 5px;
    }
    
    li a {
        padding: 8px 12px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    li a:hover {
        background-color: #f0f0f0;
    }
    
    .contener {
        width: 100%;
        padding: 0 15px;
    }
    
    section {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    #projets {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .projet {
        max-width: 400px;
        width: 100%;
        margin: 10px 0;
    }
    
    .picture {
        height: 180px;
    }
    
    #contact {
        margin: 0 15px 30px 15px;
        padding: 20px;
    }
    
    #pictureprojet {
        padding: 15px;
        margin: 30px auto;
    }
    
    #pictureprojet img {
        width: 140px;
        height: 180px;
    }
    
    #pictureprojet img:hover {
        width: 160px;
        height: 200px;
        transform: translateY(-5px) scale(1.05);
    }
    
    /* Désactiver l'effet de suite sur tablette */
    #pictureprojet img:hover ~ img {
        transform: none;
    }
    
    #pictureprojet img:nth-child(1):hover ~ img:nth-child(2),
    #pictureprojet img:nth-child(1):hover ~ img:nth-child(3),
    #pictureprojet img:nth-child(1):hover ~ img:nth-child(4),
    #pictureprojet img:nth-child(2):hover ~ img:nth-child(3),
    #pictureprojet img:nth-child(2):hover ~ img:nth-child(4),
    #pictureprojet img:nth-child(3):hover ~ img:nth-child(4) {
        transform: none;
        transition-delay: 0s;
    }
}

/* Smartphones (480px et moins) */
@media screen and (max-width: 480px) {
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    h1 {
        font-size: 1.8em;
        padding: 15px 10px 10px 10px;
    }
    
    h2 {
        font-size: 1.1em;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    h3 {
        font-size: 1.2em;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    #logo {
        width: 100px;
        height: 100px;
        padding-top: 20px;
    }
    
    nav {
        padding: 8px;
        font-size: 0.9em;
    }
    
    ul {
        flex-direction: column;
        gap: 5px;
    }
    
    li {
        margin: 3px 0;
        width: 100%;
    }
    
    li a {
        padding: 12px;
        border-radius: 8px;
        font-weight: 500;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        background-color: #f8f8f8;
        border: 1px solid #e0e0e0;
    }
    
    li a:hover {
        background-color: #1d1d1d;
        color: white;
    }
    
    .contener {
        width: 100%;
        padding: 0 10px;
    }
    
    section {
        margin-top: 25px;
        padding: 0 10px;
    }
    
    section p {
        text-align: justify;
        line-height: 1.7;
        color: #333;
        font-size: 1.05em;
        margin-bottom: 20px;
    }
    
    #projets {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }
    
    .projet {
        max-width: 100%;
        width: 100%;
        margin: 8px 0;
    }
    
    .picture {
        height: 160px;
    }
    
    #contact {
        margin: 0 10px 25px 10px;
        padding: 15px;
        font-size: 0.95em;
    }
    
    #pictureprojet {
        padding: 10px;
        margin: 25px auto;
        width: 100%;
        overflow: hidden;
    }
    
    /* Images en pile verticale pour mobile */
    .picture-gallery {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    
    #pictureprojet img {
        width: calc(100vw - 60px);
        max-width: 280px;
        height: 200px;
        object-fit: cover;
    }
    
    #pictureprojet img:hover {
        width: calc(100vw - 40px);
        max-width: 300px;
        height: 220px;
        transform: translateY(-5px) scale(1.02);
    }
    
    /* Désactiver complètement l'effet de suite sur mobile */
    #pictureprojet img:hover ~ img {
        transform: none;
    }
    
    #pictureprojet img:nth-child(1):hover ~ img:nth-child(2),
    #pictureprojet img:nth-child(1):hover ~ img:nth-child(3),
    #pictureprojet img:nth-child(1):hover ~ img:nth-child(4),
    #pictureprojet img:nth-child(2):hover ~ img:nth-child(3),
    #pictureprojet img:nth-child(2):hover ~ img:nth-child(4),
    #pictureprojet img:nth-child(3):hover ~ img:nth-child(4) {
        transform: none;
        transition-delay: 0s;
    }
}

@media screen and (max-width: 360px) {
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    #logo {
        width: 80px;
        height: 80px;
    }
    
    nav {
        font-size: 0.85em;
    }
    
    section p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .service-content {
        padding: 15px;
        margin: 0 10px;
        border-left: 3px solid #007bff;
    }
    
    .service-content h3 {
        font-size: 1.5em;
    }
    
    .service-content p {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .service-section {
        padding: 15px;
        margin: 15px 0;
        border-left: 2px solid #28a745;
    }
    
    .service-section h4 {
        font-size: 1.1em;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .service-list li {
        padding-left: 20px;
        font-size: 0.95em;
    }
    
    footer {
        padding: 20px 10px;
        font-size: 0.9em;
    }
}