/* Styles généraux */
main {
    display: flex;
    flex-direction: column;
}

.presentation {
    margin-bottom: 75px;
}

.video-presentation-logo {
    position: relative;
}

.video-presentation {
    width: 100vw;
    height: 480px;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-span {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: rgba(2, 25, 62,);
    box-shadow: 5px 5px 10px rgba(2, 25, 62, 0.5);*/
    border-radius: 25px;
    padding: 5px;
}

.logo-span .logo {
    width: 200px;
    height: 200px;
}

.logo-span span {
    text-align: center;
    color: #e76130;
    font-size: 36px;
    font-weight: bolder;
}

.texte-du-logo {
    width: 300px;
}

.texte-presentation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 50px;
}

.texte-presentation h1 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.texte-presentation h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
}

.texte-presentation hr {
    height: 3px;
    background-color: black;
}

.texte-presentation p {
    font-size: 20px;
    margin-left: 75px;
    margin-right: 75px;
}

.texte-presentation p strong {
    color: #e76130;
}

.last-prods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
}

.last-prods h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

.last-prods .categories {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.last-prods .categories a {
    text-decoration: none;
    color: #FFFFFF;
    display: inline-block;
    position: relative;
}

.last-prods .categories a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: #FFFFFF;
    transition: transform 0.3s ease-out;
}

.last-prods .categories a:hover::after {
    transform: scaleX(1);
}

.last-prods .categories h4 {
    font-size: 20px;
    font-weight: normal;
}

.last-prods iframe {
    width: 720px;
    height: 400px;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-left: 10%;
    margin-right: 10%;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease-in-out;
}

.grid-item:hover img {
    filter: blur(5px) brightness(50%);
}

.info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 16px;
    width: 80%;
}

.grid-item:hover .info {
    opacity: 1;
}

.info h3 {
    margin: 0;
    font-size: 15px;
}

.info p {
    margin: 5px 0 0;
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
        gap: 15px;
    }

    .info h3 {
        font-size: 18px;
    }

    .info p {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr); /* 1 seule colonne sur petits écrans */
        gap: 10px;
    }

    .info h3 {
        font-size: 16px;
    }

    .info p {
        font-size: 11px;
    }
}

.production:active .info {
    opacity: 1; /* Affiche le texte au tap */
}





.bouton-autres-prods {
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.bouton-autres-prods:hover {
    background-color: #e76130;
    color: #FFFFFF;
}

.services {
    padding-top: 50px;
    padding-bottom: 50px;
}

.services h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 70px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 225px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.service {
    text-align: center;
    margin-bottom: 30px;
}

.circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.circle img {
    width: 100px;
    height: auto;
}

.circle .visuel-production {
    width: 225px;
    height: auto;
}

.circle .visuel-postprod {
    width: 175px;
    height: auto;
}
.circle .visuel-pdm {
    width: 175px;
    height: auto;
}

.service h3 {
    margin-bottom: 5px;
}

#contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
}

#contact h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

#contact {
    font-size: 20px;
    margin-left: 75px;
    margin-right: 75px;
}

.btn-contact {
    background-color: #FFFFFF;
    color: #43659F;
    border: solid 1 black;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-contact:hover {
    background-color: #e76130;
    color: #FFFFFF;
}

/* Version responsive pour mobile et tablette */
@media screen and (max-width: 1024px) {
    main {
        margin: 0;
    }

    .logo-span .logo {
        width: 150px;
        height: 150px;
    }

    .logo-span span {
        font-size: 24px;
    }

    .texte-presentation p {
        margin-left: 30px;
        margin-right: 30px;
    }

    .last-prods .categories {
        gap: 10px;
    }

    .last-prods .categories h4 {
        font-size: 10px;
    }



    .last-prods iframe {
        width: 100%;
        height: auto;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .circle {
        width: 200px;
        height: 200px;
    }

    .services h2 {
        font-size: 24px;
    }

    .service h3 {
        font-size: 20px;
    }

    #contact {
        font-size: 18px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .btn-contact {
        font-size: 1em;
        padding: 8px 16px;
    }
}

/* Version mobile */
@media screen and (max-width: 768px) {
    main {
        margin: 0;
    }
    
    .texte-presentation {
        margin-left: 5%;
        margin-right: 5%;
    }

    .last-prods iframe {
        width: 100%;
        height: auto;
    }

    .bouton-autres-prods {
        width: 150px;
        height: 30px;
        font-size: 10px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .circle {
        width: 150px;
        height: 150px;
    }

    .circle img {
        width: 50px;
    }

    .circle .visuel-production {
        width: 130px;
    }

    .circle .visuel-postprod {
        width: 100px;
    }

    .circle .visuel-pdm {
        width: 100px;
    }

    .service h3 {
        font-size: 18px;
    }

    .service p {
        margin-left: 25px;
        margin-right: 25px;
    }

    #contact {
        font-size: 16px;
        margin-left: 10px;
        margin-right: 10px;
    }

    #contact p {
        text-align: center;
    }

    .btn-contact {
        font-size: 0.9em;
        padding: 6px 12px;
    }
}