/* ============================= SECTION FIRST ============================= */

.section-first {
    display: flex;
    flex-direction: column;
    height: 70vh;
    width: 100%;
    background: black;
}
.section-first .img-relative {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    background: black;
    opacity: 0.7;
}
.section-first .img-relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: 0;
    opacity: 1;
}

.section-first .content-details title {
    font-size: 10vh;
    font-weight: 800;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /*position: absolute;
    top: 15.542vw;*/
}

.section-first .content-details{
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 30vh;
    width: 100%;
}

/* ============================= SECTION SECOND ============================= */

.section-second {
    padding: 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10vw;
}

.gallery_network{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Crée 3 colonnes de largeur égale */
    grid-gap: 3vw; /* Espacement de 10px entre les éléments */
    margin-bottom: 10vw;
}

.gallery_unity{
    display: flex;
    flex-direction: column;
    width: 27.98vw;
}

.gallery_unity a{
    text-decoration: none;
}

.gallery_unity_section_1 img{
    width: 27.98vw;
    height: 19.51vw;
    object-fit: cover;
    box-sizing: border-box;
    border-radius: 0.6613vw;
}

.gallery_unity_section_1.image-card{
    width: 25vw;
    height: auto;
}
.gallery_unity_section_1.image-card img{
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 0.6613vw;
}

.gallery_unity_section_1 {
    border-radius: 0.6613vw;
    margin-bottom: 1vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery_unity_section_1 span{
    background-color: #DF951F;
    width: fit-content;
    padding: 0.66vw 1.65vw 0.66vw 1.65vw;
    color: white;
    border-radius: 1.3227vw;
    position: absolute;
    bottom: 6vw;
    right : 2vw;
}

.gallery_unity_section_2{
    display: flex;
    flex-direction: row;
}

.gallery_unity_section_2_part_1{
    display: flex;
    flex-direction: column;
}

.gallery_unity_section_2_part_2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.gallery_unity_section_2_part_2 img{
    vertical-align: middle;
    width: 2.25vw;
    height: 2.25vw;
}

.gallery_unity_section_2_part_2 img:hover,
.gallery_unity_section_2_part_2 img:focus{
    filter: brightness(2);
}

.prev_next{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

.prev img{
    width: 3.97vw;
    height: 3.97vw;
    color: #1237A5;
}


.prev_next a{
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ombre de base */
}

.prev_next a img {
    transition: filter 0.3s ease-in-out;
}

/* Changer la couleur en noir au survol */
.prev_next a:hover img,
.prev_next a:focus img {
    filter: brightness(2);
}

/* Changer la couleur en noir lors du clic */
.prev_next a:active img {
    filter: brightness(0) contrast(1.2);
}


.next img{
    width: 3.97vw;
    height: 3.97vw;
    color: #1237A5;
    transform: rotate(180deg); /* Rotation de 180 degrés */
}

body section.section-second div.pagination-container 
nav div.flex.justify-between.flex-1.sm\:hidden{
    font-size: 16px;
    display: none;
}


body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body section.section-second div.pagination-container nav 
div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(1) p{
    display: none;
}

body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span{
    display: flex;
    flex-direction: row;
    justify-content: center;
}


body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span{
    font-size: 16px;
    color: black;
    text-decoration: underline;
    font-weight: 500;
}


body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a svg,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span svg{
    width: 30px;
    color: black;
}

body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a svg path,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span svg path{
    width: 20px;
    font-size: 16px;
    color: black;
}

body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a:hover,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span:hover,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span:hover,body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a svg:hover,body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span svg:hover{
    color: #1237A5;
    background-color: #1237A5;
}

body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a:focus,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span:focus,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span:focus,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a svg path:focus,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span svg path:focus{
    color: #1237A5;
    background-color: #1237A5;
}

body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a.active,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span.active,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span.active,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span a svg path.active,
body section.section-second div.pagination-container 
nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between 
div:nth-child(2) span span span svg path.active{
    color: #1237A5;
    background-color: #1237A5;
}

body section.section-second div.pagination-container nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between div:nth-child(2) span a.active,
body section.section-second div.pagination-container nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between div:nth-child(2) span span span.active,
body section.section-second div.pagination-container nav div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between div:nth-child(2) span a svg path.active {
    color: #1237A5 !important;
    background-color: #1237A5 !important;
}


@media only screen  and (max-width: 900px) {
    /* ============================= SECTION FIRST ============================= */
    
    .section-first {
      height: 60vh;
      margin-bottom: 20px;
    }
    
    .section-first .content-details {
      position: absolute;
      top: 25vh;
    }

    .section-first .content-details title {
        font-size: 7vh;
        font-weight: 800;
        text-align: center;
        color: white;
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        z-index: 2;
        /*position: absolute;
        top: 15.542vw;*/
    }
    
    /* ============================= SECTION SECOND ============================= */
    
    .gallery_network{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Crée 3 colonnes de largeur égale */
        grid-gap: 3vw; /* Espacement de 10px entre les éléments */
        margin-bottom: 10vw;
    }
    
    .gallery_unity{
        display: flex;
        flex-direction: column;
        width: 35vw;
        height: 100%;
        margin-bottom: 1vw;
        padding-bottom: 1vw;
        box-shadow: 0.06613vw 0.5291vw 1.3227vw 0vw rgba(0, 0, 0, 25%);
    }
    
    .gallery_unity_section_1 img{
        width: 100%;
        height: 24vw;
        box-sizing: border-box;
    }
    
    .gallery_unity_section_1 span{
        font-size: 15px;
        padding: 7px 15px 7px 15px;
        border-radius: 10px;
    }
    
    .gallery_unity_section_2 {
        display: flex;
        flex-direction: row;
        padding: 15px;
    }

    .gallery_unity_section_2 span, .gallery_unity_section_2 h8{
        font-size: 12px;
    }

    .gallery_unity_section_2 img {
        width: 30px;
        height: 30px;
    }

    
    
    .prev img, .next img{
        width: 35px;
        height: 35px;
    }

    .text_between{
        font-size: 12px;
    }
    
}

@media only screen  and (max-width: 750px) {
    /* ============================= SECTION FIRST ============================= */
    
    .section-first {
      height: 60vh;
    }
    
    .section-first .content-details title {
        font-size: 6vh;
        font-weight: 800;
        text-align: center;
        color: white;
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        z-index: 2;
        /*position: absolute;
        top: 15.542vw;*/
    }
    /* ============================= SECTION SECOND ============================= */
    
    
    .gallery_unity{
        display: flex;
        flex-direction: column;
        width: 40vw;
        height: 100%;
        margin-bottom: 1vw;
        padding-bottom: 1vw;
        box-shadow: 0.06613vw 0.5291vw 1.3227vw 0vw rgba(0, 0, 0, 25%);
    }
    
    .gallery_unity_section_1 img{
        width: 100%;
        height: 25vw;
        box-sizing: border-box;
    }

    
}

@media only screen  and (max-width: 650px) {
    /* ============================= SECTION FIRST ============================= */


    /* ============================= SECTION SECOND ============================= */
    
    .gallery_network{
        display: flex;
        flex-direction: column;
        gap : 40px;
    }

    .gallery_unity{
        display: flex;
        flex-direction: column;
        width: 65vw;
        height: 100%;
        margin-bottom: 0px;
        padding-bottom: 30px;
        box-shadow: 0.06613vw 0.5291vw 1.3227vw 0vw rgba(0, 0, 0, 25%);
        gap : 10px
    }
    
    .gallery_unity_section_1 img{
        width: 100%;
        height: 40vw;
        box-sizing: border-box;
    }

    
}

@media only screen  and (max-width: 500px) {
    /* ============================= SECTION FIRST ============================= */
    
    .section-first {
      height: 40vh;
    }
    
    .section-first .content-details {
      position: absolute;
      top: 15vh;
    }
    
    /* ============================= SECTION SECOND ============================= */
    .gallery_unity{
        padding-bottom: 20px;
    }
      
}

@media only screen  and (max-width: 390px) {
    /* ============================= SECTION FIRST ============================= */
    

    /* ============================= SECTION SECOND ============================= */
    
    .gallery_network{
        display: flex;
        flex-direction: column;
        gap : 30px;
    }

    .gallery_unity{
        display: flex;
        flex-direction: column;
        width: 80vw;
        height: 100%;
        padding-bottom: 20px;
    }
    
    .gallery_unity_section_1 img{
        width: 100%;
        height: 50vw;
        box-sizing: border-box;
    }

    .gallery_unity_section_1 span{
        padding: 7px 15px 7px 15px;
        border-radius: 10px;
    }
    
}

@media only screen  and (max-width: 315px) {
    /* ============================= SECTION FIRST ============================= */
    

    /* ============================= SECTION SECOND ============================= */
    .gallery_unity_section_2 span, .gallery_unity_section_2 h8{
        font-size: 11px;
    }
}
