/* General Settings */
main {
    margin-top: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color-light);
    --smooth-color: #ffffff;
    --accent-color: #CEE4ED;/*#F5BBBB;/*#F3B304;*/
    --accent-active: #90BDD1; /*#A74602;/*#59221D;*/
}

/* General Styles */
a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-active);
}

/* Hero Section */
.hero {
    font-family: 'Orbitron', sans-serif;

    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    align-items: center;
    padding-top: var(--header-size);
    padding-right: 2%;
    padding-left: 2%;
    min-height: 100vh;
    text-align: center;
    background-color: var(--smooth-color);
    overflow: hidden;
}

.hero-title {
    text-align: left;
    margin: 10px 10px;
    line-height: 1;
    color: var(--text-color-light);
    letter-spacing: -.04em;
    max-width : 45rem;
}

.hero-title h1 {
    font-size: 6em;
    font-weight: 500;
}

.hero-title p {
    font-size: 2.1rem;
    max-width : 45rem;
}

.hero img {
    max-width: 80%;
    max-height: 80vh;
    margin-right: 0;
    border-radius: 4em;
    object-fit: contain;
    overflow: hidden;
    animation: slideIn-X 0.8s ease-out;
}


@media (max-width: 1200px) {
    .hero {
        flex-direction: column-reverse;
        height: auto;
    }

    .hero img {
        max-width: 100%;
        border-radius: 0px;
        padding-left: 0;
    }

    .hero h1 {
        margin: 20px 0;
        max-width: 80%;
    }
    .hero-title {
    max-width : 100%;
    }

    .hero-title h1 {
        font-size: 4.3em;
        font-weight: 500;
    }
}

@media (max-width: 40em) {
    .hero-title h1 {
        font-size: 3.5em;
        font-weight: 500;
    }

    .hero-title p {
        font-size: 2.1rem;
        max-width : 45rem;
    }
}

@media (max-width: 35em) {
    .hero-title h1 {
        font-size: 3em;
    }

    .hero-title p {
        font-size: 2.1rem;
    }
}
@media (max-width: 25em) {
    .hero-title h1 {
        font-size: 2.5em;
    }

    .hero-title p {
        font-size: 1.2rem;
    }
}



/* services cards*/

.services-container{
    background : url("../../img/about/noise.594efbe591a1.png") repeat var(--accent-active);
    border-radius : 3em 3em 0 0;

    padding : 5em 40px;
    display: flex;
    gap : 40px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40rem, 100fr));

    grid-auto-flow: dense;
}
@media (max-width: 968px) {
    .services-container{
        padding : 5em 20px;
        grid-template-columns: 100%;
        gap : 20px;
    }
}

.service-card {
    --pad-width : 20px;
    --bor-width : 10px ;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--pad-width) + var(--bor-width));
    border : none;
    border-radius: 5px;


    background-color: var(--primary-color);
    color : var(--text-color-dark);
}
.service-card:hover {
    border : var(--bor-width) solid var(--smooth-color);
    padding: var(--pad-width);
    transition: padding 0.2s ease-out, border 0.2s ease-out;
}

.service-image {
    max-width: 30%;
    max-height : 10em;
}
.service-title {
    font-size: 24px;
    font-weight: 500;
    color: inherit;
    margin-bottom: 10px;
}
.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
    text-align: justify;
}

.know-more {
    text-decoration : none;

    background : var(--smooth-color);
    color : var(--primary-color);

    font-size : 1.25em;
    margin-top : 0.5em;
    width : 100%;
    border-radius : 5px;
    padding : 0.2em;
    text-align : center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-card:hover .know-more {
    opacity: 1;
    visibility: visible;
}





/* services details */
.details-global-container {
    margin : 1em 0 2em 0 ;
    padding : 0;
}
.service-details-title {
    margin : 7rem auto 2rem auto;
    padding : 5%;
    max-width : 70%;

    font-size : 2em;
    text-align: center;

    border : solid 10px var(--primary-color);
    border-radius : 5px;
}

@media (max-width : 40em){
    .service-details-title {
        font-size : 1.4em;
    }
}


.services-details {
    display : flex;
    flex-direction : column;
    justify-content : center ;
    align-items : center;
    gap : 3em;

    border-radius : 0px 0px 3em 3em;
    background :  var(--primary-color);
    margin-bottom : 0;

    padding : 5em 40px;
}
@media (max-width: 968px) {
    .services-details{
        padding : 5em 20px;
    }
}



.service-card-detail {

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border : none;
    border-radius: 5px;

    width : 1200px;
    max-width : 80%;
    justify-content : center;

    background-color: var(--background-color-light);
    color : var(--text-color-light);
}
@media (max-width : 40em){
    .service-card-detail{
            max-width : 100%;
    }
}

.service-detail-header {
    display : flex;
    flex-direction : row;
    gap : 10%;
    width : 100%;
    align-items: center;
    padding : 1em;

}

.service-detail-header .service-image {
    max-width: 40%;
    max-height : 18em;
}

.service-detail-header  .service-title {
    font-size: 2rem;
    font-weight: 500;
    color: inherit;
}
.services-details .service-description {
    margin : 0.5em 0;
    padding : 1em;
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
    text-align: justify;
    background-color : var(--background-color-light);

    border : dashed 8px var(--primary-color); /* todo : demander à un graphiste si c'est une bonne idée*/
}


