/* ------------------- /
#Reset
/ ------------------- */
*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    list-style-type: none;
}

.padding{
    padding-left: 100px;
    padding-right: 100px;
}

/* media query */

@media screen and (max-width: 830px){
    .padding{
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media screen and (max-width: 450px){
    .padding{
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ------------------- /
#Body
/ ------------------- */
body{
    font-size: 16px;
    color: #141b1fea;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
a{
    text-decoration: none;
}
/* ------------------- /
#Header
/ ------------------- */

header{
    display: flex;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
    position: fixed;
    width: 100%;
    z-index: 10;
    background-color: #3c8cc9;
    /* background: linear-gradient(to right, #16222cf9 0%, #141b1ff5 100%); */
    justify-content: space-between;
}

header img{
    width: 170px;
}

.my-list{
    display: flex;
    gap: 35px;
    -webkit-column-gap: 35px;
}

select{
    border: none;
    outline: none;
    padding: 5px 20px;
    border-radius: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

select option{
    font-style: italic;
}

select option[disabled]{
    display: none;
}

.my-list ul{
    display: flex;
    gap: 35px;
    align-items: center;
    -webkit-column-gap: 35px;
}

.list{
    display: flex;
    gap: 10px;
    -webkit-column-gap: 10px;
    align-items: center;
}

header i{
    color: #3c8cc9;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.menu{
    display: none;
}

.exit{
    display: none;
}

.list ul li a{
    color: #fff;
}

.list ul .acti{
    color: #3c8cc9;
    padding: 5px 5px;
    border-radius: 2px;
    width: fit-content;
    border-bottom: 1px solid #fff;
}



/* Media query */
@media screen and (max-width: 830px){
    header{
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media screen and (max-width: 950px){

    .menu{
        display: flex;
    }

    .my-list ul{
        padding-left: 40px;
        padding-right: 40px;
    }

    select{
        margin-left: 40px;
        margin-right: 40px;
        padding: 15px 15px;
        border-radius: 30px;
        width: fit-content;
    }

    .my-list ul{
        align-items: flex-start;
        flex-direction: column;
    }

    .my-list{
        position: fixed;
        top: 110px;
        display: flex;
        width: 100%;
        left: 0;
        padding: 40px 0px;
        flex-direction: column;
        background-color: #3c8cc9;
        transform: translateX(-120%);
        transition: 0.8s ease-in-out;
        transition-delay: 0.3s;
    }

    .my-list.active{
        transform: translateX(0);
    }

    .my-list ul li a{
        color: #fff;
    }
}

@media screen and (max-width: 460px){
    header img{
        width: 100px;
    }
    .my-list{
        top: 85px;
    }
}

/* ------------------- /
#General consulting
/ ------------------- */

.general-consulting{
    height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #16222cd8 0%, #141b1fea 100%), url('../images/generalconsulting/bg.jpg') fixed no-repeat;
    background-size: cover;
}

.welcome{
    width: 100%;
    margin: auto;
    color: #dad8d8;
    text-align: center;
}

.welcome h1{
    font-size: 35px;
}

.welcome h1 span {
    color: #3c8cc9;
}

.welcome p{
    font-size: 18px;
    margin-top: 20px;
    font-style: italic;
    width:100%;
}

.title h1{
    color: #3c8cc9;
    font-size: 30px;
    font-style: italic;
}

.title h2{
    width: 150px;
    margin-top: 10px;
    border-radius: 20px;
    border: 2px solid #3c8cc9;
}

/* Media query */
@media screen and (max-width: 1000px){
    .welcome{
        width: 100%;
    }
    
    .welcome h1{
        font-size: 25px;
    }
    .welcome p{
        font-size: 16px;
    }
    .title h1{
        font-size: 20px;
    }
    
    .title h2{
        width: 90px;
    }
}

/* ------------------- /
#circle
/ ------------------- */

.circle-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-container a {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    padding: 20px;
    font-style: italic;
    font-weight: 600;
    color: #3c8cc9;
    border: 1px solid #b3b2b2;
    position: absolute;
    transform-origin: 0 0;
    transition-delay: 0.4s;
    transition: 0.5s ease-in-out;
}

.circle-container a:hover{
    color: #fff;
    background-color: #3c8cc9;
}

/* Positionnement précis pour entourer le centre sans espaces */
.circle-container a:nth-child(1) { transform: rotate(0deg) translate(250px) rotate(0deg); }
.circle-container a:nth-child(2) { transform: rotate(51.42deg) translate(250px) rotate(-51.42deg); }
.circle-container a:nth-child(3) { transform: rotate(102.84deg) translate(250px) rotate(-102.84deg); }
.circle-container a:nth-child(4) { transform: rotate(154.26deg) translate(250px) rotate(-154.26deg); }
.circle-container a:nth-child(5) { transform: rotate(205.68deg) translate(250px) rotate(-205.68deg); }
.circle-container a:nth-child(6) { transform: rotate(257.1deg) translate(250px) rotate(-257.1deg); }
.circle-container a:nth-child(7) { transform: rotate(308.52deg) translate(250px) rotate(-308.52deg); }

/* Style du centre avec "BBB NATION" */
.circle-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: url('../images/logo-gcg.png') no-repeat center;
    background-size: 90%;
    background-color: #3c8cc9;
}

/* media query */

@media (max-width: 670px) {

    .circle-container{
        height: 60vh;
    }

    .circle-container a {
        width: 120px;
        height: 120px;
        padding: 10px;
        font-size: 12px;
    }

    /* Réduire encore la distance de translation */
    .circle-container a:nth-child(1) { transform: rotate(0deg) translate(150px) rotate(0deg); }
    .circle-container a:nth-child(2) { transform: rotate(51.42deg) translate(150px) rotate(-51.42deg); }
    .circle-container a:nth-child(3) { transform: rotate(102.84deg) translate(150px) rotate(-102.84deg); }
    .circle-container a:nth-child(4) { transform: rotate(154.26deg) translate(150px) rotate(-154.26deg); }
    .circle-container a:nth-child(5) { transform: rotate(205.68deg) translate(150px) rotate(-205.68deg); }
    .circle-container a:nth-child(6) { transform: rotate(257.1deg) translate(150px) rotate(-257.1deg); }
    .circle-container a:nth-child(7) { transform: rotate(308.52deg) translate(150px) rotate(-308.52deg); }

    /* Réduire encore la taille du centre */
    .circle-container::before {
        width: 150px;
        height: 150px;
        background-size: 70%;
    }
}

@media (max-width: 440px) {
    .circle-container{
        height: 50vh;
    }

    .circle-container a {
        width: 90px;
        height: 90px;
        padding: 8px;
        font-size: 10px;
    }

    .circle-container a:nth-child(1) { transform: rotate(0deg) translate(120px) rotate(0deg); }
    .circle-container a:nth-child(2) { transform: rotate(51.42deg) translate(120px) rotate(-51.42deg); }
    .circle-container a:nth-child(3) { transform: rotate(102.84deg) translate(120px) rotate(-102.84deg); }
    .circle-container a:nth-child(4) { transform: rotate(154.26deg) translate(120px) rotate(-154.26deg); }
    .circle-container a:nth-child(5) { transform: rotate(205.68deg) translate(120px) rotate(-205.68deg); }
    .circle-container a:nth-child(6) { transform: rotate(257.1deg) translate(120px) rotate(-257.1deg); }
    .circle-container a:nth-child(7) { transform: rotate(308.52deg) translate(120px) rotate(-308.52deg); }

    .circle-container::before {
        width: 120px;
        height: 120px;
        background-size: 60%;
    }
}



/* ------------------- /
#services
/ ------------------- */

.service{
    padding-top: 40px;
    padding-bottom: 40px;
}

.service-container{
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    -webkit-column-gap: 20px;
    margin-top: 30px;
}

.service-item{
    display: flex;
    flex-direction: column;
    padding: 30px 30px;
    border-radius: 15px;
    /* border: 1px solid #d6d6d6c2; */
    transition-delay: 0.4s;
    transition: 0.5s ease-in-out;
    box-shadow: 0px 1px 10px #e9e9e9c2;
}

.service-item:hover{
    box-shadow: 0px 1px 10px #89898990;
}

.service-item h4{
    color: #3c8cc9;
}

.service-item p{
    margin-top: 10px;
    margin-bottom: 15px;
}

.service i{
    color: #3c8cc9;
}

.service span{
    font-style: italic;
    color: #3c8cc9;
}

/* Media query */
@media screen and (max-width: 730px){
    .service-container{
        grid-template-columns: auto;
    }
}


/* ------------------- /
#Choose us
/ ------------------- */

.choose-us{
    background-color: #f6f5f5;
}

.choose-us h1{
    padding-top: 30px;
    text-align: center;
}

.choose-us h2{
    margin: auto;
    width: 300px;
    margin-top: 20px;
}

.choose-us-container{
    margin-top: 40px;
    margin-left: 70px;
    margin-right: 70px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-column-gap: 15px;
}

.choose-us-item{
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 30px;
    -webkit-column-gap: 30px;
}

.choose-us-item img{
    width: 510px;
    height: 300px;
    object-fit: cover;
}

.choose-us-item strong{
    font-size: 20px;
    color: #3c8cc9;
    font-weight: 600;
}

/* Media query */
@media screen and (max-width: 1290px){
    .choose-us-container{
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media screen and (max-width: 1000px){
    .choose-us-item{
        grid-template-columns: auto;
        margin-bottom: 40px;

    }

    .about-item{
        display: flex;
        flex-direction: column-reverse;
    }
    .choose-us h2{
        width: 140px;
    }

    .choose-us-item img{
        width: 100%;
    }
}

/* -------------------
#Partenaire
------------------- */

.partenaire {
    padding-top: 30px;
    background-color: #f6f5f5;
}

.partenaire .title h1 {
    text-align: center;
}

.partenaire .title h2 {
    margin: auto;
    margin-top: 20px;
}

.partenaire-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 40px;
}

.partner-item {
    flex: 1 1 calc(33.33% - 20px); /* Ensures at least 3 blocks fit in one row with a gap */
    max-width: calc(33.33% - 20px); /* Same width calculation */
    background-color: #ffffff;
    border: 1px solid #dad8d8;
    padding: 10px 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}
.item-partner img{
    height: 140px;
}
.partner-item img,video{
    max-width: 100%;
    object-fit: contain;
}

.partner-item h3 {
    font-size: 18px;
    color: #333333;
    margin: 10px 0;
}

.partner-item p {
    color: #666666;
    margin: 0;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .partner-item {
        flex: 1 1 calc(50% - 20px); /* Adjust to show 2 items per row on medium screens */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .partner-item {
        flex: 1 1 100%; /* Adjust to show 1 item per row on smaller screens */
        max-width: 100%;
    }

}

/* ------------------- /
#Representation
/ ------------------- */

.representation .title{
    margin-top: 30px;
}

.presentation-container{
    display: grid;
    grid-template-columns: auto auto;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    -webkit-column-gap: 15px;
}

.presentation-item{
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    -webkit-column-gap: 10px;
    border-radius: 10px;
    border: 1px solid #dad8d8;
    transition-delay: 0.2s;
    transition: 0.5s ease-in-out;
}

/* Media query */

@media screen and (max-width: 670px){
    .presentation-container{
        grid-template-columns: auto;
    }
}

/* ------------------- /
#Advantages
/ ------------------- */

.advantage{
    background-color: #e4e4e44b;
}

.advantage .title {
    padding-top: 30px;
}

.advantage .title h1{
    text-align: center;
}

.advantage .title h2{
    margin: auto;
    margin-top: 20px;
}

.advantage-container {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    -webkit-column-gap: 20px;
    grid-template-columns: auto auto;
}

.lines {
    display: grid;
    gap: 10px;
    -webkit-column-gap: 10px;
    grid-template-columns: 5% auto;
}

.lines h5 {
    position: relative;
    height: 1px;
    background-color: #3c8cc9;
}

.lines h5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    transform: scaleY(0.9);
    transform-origin: top;
}

.lines h6 {
    position: relative;
    height: 1px;
    background-color: #ddd;
}

.lines h6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    transform: scaleY(0.9);
    transform-origin: top;
}

.advantage-textbox {
    padding-top: 30px;
    padding-bottom: 20px;
}

.advantage-textbox h4 {
    color: #3c8cc9;
    margin-bottom: 10px;
}


/* Media query */

@media screen and (max-width: 670px){
    .advantage-container{
        grid-template-columns: auto;
    }
}

@media screen and (max-width: 600px) {
    .choose-us-details {
        gap: 10px;
        -webkit-column-gap: 10px;
        grid-template-columns: auto;
    }
}


/* ------------------- /
#mission
/ ------------------- */

.mission .title{
    margin-top: 20px;
}

.mission-container{
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    -webkit-column-gap: 20px;
    margin-bottom: 30px;
}

.mission-item{
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    gap: 20px;
    -webkit-column-gap: 20px;
}

.mission-item img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Media query */

@media screen and (max-width: 670px){
    .mission-item{
        grid-template-columns: 100%;
    }
    .second-item{
        display: flex;
        flex-direction: column-reverse;
    }
}

/* ---------------------------- /
#Gallery or status
/ ---------------------------- */
.show-image {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    /* display: flex; */
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #000000e1;
}

.show-image img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.show-image i {
    color: #000;
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 1.2rem;
    padding: 10px 12px;
    border-radius: 50%;
    background-color: #fff;
}

/* .gallery-page {
    padding: 30px 30px;
} */

.gallery-container {
    display: grid;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    -webkit-column-gap: 15px;
    grid-template-columns: auto auto auto auto;
}

.gallery-item {
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid #dad8d8;

}

.gallery-item img {
    width: 320px;
    height: 270px;
    object-fit:cover;
    transition: 0.4s ease-in;
    transition-delay: 0.2s;
}
.gallery-item video {
    width: 320px;
    height: 270px;
    transition: 0.4s ease-in;
    transition-delay: 0.2s;
}

/* MEDIA QUERY */

@media screen and (max-width: 1050px) {
    .gallery-container {
        display: grid;
        grid-template-columns: auto auto auto;
    }
    .gallery-item .gallery-text {
        padding: 10px 20px;
    }
}

@media screen and (max-width: 750px) {
    .gallery-container {
        display: grid;
        grid-template-columns: auto auto;
    }
}

@media screen and (max-width: 610px) {
    .gallery-page {
        padding: 15px 15px;
    }
    .gallery-container {
        display: grid;
        grid-template-columns: auto;
    }
    .show-image img {
        width: 100%;
        height: 60vh;
        padding: 20px;
    }
    
    .gallery-item img{
        width: 100%;
        height: 250px;
    }
    .gallery-item video{
        width: 100%;
        height: 250px;
    }
}


/* --------------------------
#Pagination
--------------------------- */

.pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    -webkit-column-gap: 10px;
    margin-bottom: 30px;
}

.pagination span{
    padding: 10px 12px;
    color: #3c8cc9;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0px 1px 10px #d9d9d9;
}

/* --------------------------
#footer
--------------------------- */

footer{
    color: #fff;
    padding: 60px 100px;
    text-align: center;
    background-color: #3c8cc9;
}

footer .soft{
    font-size: 14px;
    color: #fff;
    font-style: italic;
    margin-bottom: 20px;
    border-bottom: 1px solid #fff;
}

.author{
    margin-bottom: 20px;
    display: flex; 
    gap: 10px; 
    margin-top: 10px;
    -webkit-column-gap: 10px; 
    justify-content: center; 
}

.policy{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #ececedea;
    padding-top: 20px;
    justify-content: center;
    -webkit-column-gap: 10px;
}

.policy a{
    color: #fff;
}

/* Media query */
@media screen and (max-width: 710px){
    footer{
        padding: 60px 20px;
    }
}

@media screen and (max-width: 548px){
    footer{
        padding: 60px 20px;
    }
}


/* --------------------------
#Policy & ethique
--------------------------- */

.etique h1,h2,h3,h4,h5,h6{
    color: #3c8cc9;
    margin-top: 10px;
    margin-bottom: 10px;
}

.etique h3{
    margin-top: 40px;
}

.etique{
    margin-top: 30px;
    margin-bottom: 30px;
    padding-left: 200px;
    padding-right: 200px;
}

.adapte{
    margin-top: 30px;
    margin-bottom: 30px;
}

.adapte form div, .signature form div{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
    margin-top: 10px;
    -webkit-column-gap: 10px;
}

.etique input{
    border: none;
    outline: none;
    background: none;
    padding: 10px 10px;
    border-radius: 2px;
    width: 50%;
    border-bottom: 2px solid #b3b2b2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.engagement{
    margin-top: 30px;
    font-style: italic;
}

/* Media query */
@media screen and (max-width: 920px){
    .etique{
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media screen and (max-width: 630px){
    .etique{
        padding-left: 40px;
        padding-right: 40px;
    }
    .etique input{
        width: 100%;
    }
}

@media screen and (max-width: 450px){
    .etique{
        padding-left: 20px;
        padding-right: 20px;
    }
}
