/*
Theme Name: vision
Template: twentytwentyone
Author: YANIS
Version: 1.0
*/

/*Feuille de style fille appelée quand la largeur 
du viewport est inférieure à 1100px (Tablette)/*

/*------------------------------*/
/* ----------- ROOT ----------- */
/*------------------------------*/

:root h3 {
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: -2%;
    font-family: "cc-regeneration-variable", sans-serif;
    font-variation-settings: "ital" 0, "wght" 300;
}

:root h2 {
    font-size: 2.8rem;
    line-height: 110%;
    letter-spacing: -2.5%;
    font-family: "cc-regeneration-variable", sans-serif;
    font-variation-settings: "ital" 0, "wght" 200;
    font-variation-settings: "ital" 100, "wght" 400;
    display: flex;
    justify-content: center;
    transform: rotate(-2.73deg);
}

:root h1 {
    font-size: 2.8rem;
    line-height: 100%;
    letter-spacing: -3%;
    font-family: "cc-regeneration-variable", sans-serif;
    font-variation-settings: "ital" 100, "wght" 400;
    display: flex;
    justify-content: center;
    transform: rotate(-2.73deg);
    color: var(--blanc-fixe);
}

/*--------------------------------------*/
/* ----------- LANDING PAGE ----------- */
/*--------------------------------------*/

.landing {
    height: 100vh;
}

/* Header mobile non affiché sur desktop */
.burger-icon {
    display: block;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.burger-icon svg path {
    transition: 0.3s ease;
}

.burger-icon.active svg path:nth-child(1) {
    transform: translateY(-4.5px) rotate(45deg);
    transform-origin: center;
}

.burger-icon.active svg path:nth-child(2) {
    opacity: 0;
}

.burger-icon.active svg path:nth-child(3) {
    transform: translateY(4.5px) rotate(-45deg);
    transform-origin: center;
}

nav,
.flexhead>a>.contact-button {
    display: none;
}

.mobile-header {
    position: fixed;
    display: flex;
    gap: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--bleu-nuit);
    z-index: 500;
    transition: 0.3s ease;
    transform: translateX(100%);
}

.hide {
    transform: translateX(0);
}

.baseline {
    bottom: 30%;
}

.socials {
    right: 0;
}

/*-------------------------------------*/
/* ----------- DESCRIPTION ----------- */
/*-------------------------------------*/

.description {
    padding-inline: 10%;
}

.desc-container {
    display: block;
    justify-content: center;
}

.desc-container>div {
    max-width: 100%;
}

.hook {
    margin-bottom: 8px;
}

/*----------------------------------*/
/* ----------- SERVICES ----------- */
/*----------------------------------*/

.services {
    margin-inline: 5%;
}

.service-card {
    max-width: 500px;
    height: 20vh;
}

.services-liste {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.service-card>p {
    max-width: 250px;
}


.service-card:hover {
    transform: scale(1.1);
}

.service-card:hover .service-icon {
    width: 100%;
    transform: translateX(28%);
}

/*--------------------------------------*/
/* ----------- RÉALISATIONS ----------- */
/*--------------------------------------*/

#real {
    margin-bottom: -80px;
}

.realisations {
    padding: 0;
    min-height: 60vh;
}

.container {
    max-height: 500px;
    margin-top: 200px;
    overflow: hidden;
}

.card {
    width: 80%;
    overflow: visible;
}

.cards {
    width: 120%;
}

.titre {
    opacity: 1;
    font-size: 40px !important;
}

.desc {
    opacity: 1;
}

.card-content {
    overflow: visible;
}

#item-1:checked~.cards #song-3,
#item-2:checked~.cards #song-1,
#item-3:checked~.cards #song-2 {
    transform: translatex(-80%) scale(.8);
    opacity: .4;
    z-index: 0;
}

#item-1:checked~.cards #song-2,
#item-2:checked~.cards #song-3,
#item-3:checked~.cards #song-1 {
    transform: translatex(80%) scale(.8);
    opacity: .4;
    z-index: 0;
}

#item-1:checked~.cards #song-1,
#item-2:checked~.cards #song-2,
#item-3:checked~.cards #song-3 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;

    img {
        box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
    }
}

/*--------------------------------*/
/* ----------- ÉQUIPE ----------- */
/*--------------------------------*/

/* Rendre la div scrollable horizontalement */
.team-container {
    padding-inline: 10%;
    display: block;
    width: 90vw;
    height: fit-content;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* rend la barre fine sur Firefox */
}

.team-container::-webkit-scrollbar {
    height: 8px;
    border-radius: 100px;
}

.team-container::-webkit-scrollbar-thumb {
    background: var(--blanc);
    border-radius: 4px;
}

.team-container::-webkit-scrollbar-thumb:hover {
    background: var(--gris-fonce);
}

.team-container::-webkit-scrollbar-track {
    display: none;
    border-radius: 5px;
}

.team-container::-webkit-scrollbar-button {
    display: none;
}

.team {
    width: 70%;
    float: none;
    display: inline-block;
}

/*------------------------------*/
/* ----------- AVIS ----------- */
/*------------------------------*/

.avis-liste {
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.avis {
    max-width: 500px;
}

/*-----------------------------------------*/
/* ----------- SECTION CONTACT ----------- */
/*-----------------------------------------*/

.contact>p {
    margin-inline: 8%;
}

.devis {
    flex-direction: column;
    align-items: center;
}

.devis>a>div {
    width: 300px;
    text-align: center;
    justify-content: center;
}

/*--------------------------------*/
/* ----------- FOOTER ----------- */
/*--------------------------------*/

:root footer {
    flex-direction: column;
    justify-content: center;
}

.footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.col {
    gap: 4px;
}

.col>h4 {
    margin-bottom: 8px;
    margin-top: 32px;
    font-variation-settings: "ital" 0, "wght" 300 !important;
}

.icons {
    flex-direction: row;
    margin-top: 16px;
}

.bottom-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.credits {
    text-align: center !important;
}

/*--------------------------------------*/
/* ----------- PAGE CONTACT ----------- */
/*--------------------------------------*/

.contact-image {
    display: none;
}

.page-contact {
    width: 100vw;
    overflow: hidden;
}

.contact-form {
    width: 200vw;
    justify-content: space-between;
    transition: transform 1s;
    transition-timing-function: cubic-bezier(0.791, -0.452, 0, 1.003);
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    bottom: 0;
}

.gauche {
    transform: translateX(-50%);
}

.droite {
    transform: translateX(0);
}

.left,
.right {
    padding-top: 2%;
}

.inside-left-side {
    width: 100vw;
    height: 100vh;
    max-height: 65vh;
    padding-top: 5%;
    padding-inline: 10%;
}

.flex {
    max-width: 100vw;
    justify-content: left;
    gap: 16px;
}

.envoyer {
    left: 10%;
    right: 10%;
}

/*------------------------------------------*/
/* ----------- PAGE RÉALISATION ----------- */
/*------------------------------------------*/

.landing-real {
    margin-inline: 5%;
    padding-top: 15%;
}

.flexr {
    flex-direction: column;
}

/*------------------------------------------*/
/* ----------- MENTIONS LÉGALES ----------- */
/*------------------------------------------*/

.mentions-legales {
    padding-top: 5%;
    padding-inline: 20%;
}