/* 0 - TYPOS_________________________________________________ */


/*!
 * Font Awesome Free 6.3.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2023 Fonticons, Inc.
 */
 @font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("./font/fa-solid-900.woff2") format("woff2"), url("./font/fa-solid-900.ttf") format("truetype");
 }
  
  
  @font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url("./font/fa-v4compatibility.woff2") format("woff2"), url("./font/fa-v4compatibility.ttf") format("truetype");
  }

  
/*OPEN sans, google Font : https://fonts.google.com/specimen/Open+Sans/about?query=open */

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: local('Open Sans Light'), url('./font/OpenSans-Light.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300;
    src: local('Open Sans Light Italic'), url('./font/OpenSans-LightItalic.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), url('./font/OpenSans-Regular.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: local('Open Sans Italic'), url('./font/OpenSans-Italic.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    src: local('Open Sans'), url('./font/OpenSans-Medium.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 500;
    src: local('Open Sans Medium Italic'), url('./font/OpenSans-MediumItalic.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: local('Open Sans Semi Bold'), url('./font/OpenSans-SemiBold.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 600;
    src: local('Open Sans Semi Bold Italic'), url('./font/OpenSans-SemiBoldItalic.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: local('Open Sans Bold'), url('./font/OpenSans-Bold.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: local('Open Sans Bold Italic'), url('./font/OpenSans-BoldItalic.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: local('Open Sans Extra Bold'), url('./font/OpenSans-ExtraBold.ttf') format('ttf');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 800;
    src: local('Open Sans Extra Bold Italic'), url('./font/OpenSans-ExtraBoldItalic.ttf') format('ttf');
}

/* 0 - VARIABLES GENERALES_________________________________________________ */

:root{
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body{
position:relative;
overflow-x: hidden;
overflow-y: scroll;

margin: 0;
padding: 0;
background-color: var(--backColor);
width: 100vw;
height: 100vh;


/* Padding*/
--varPadding : 40px;

/* Couleurs */
--mainColor : rgb(255, 255, 255);
--mainColor2: rgb(110, 110, 110);

--textColor : #d0d0d0;

--suppColor :#0152a3;
--suppColor2 :#0274e6;
--suppColor3 :#369bff;
--suppColor4 :#304767;

--backColor : #00131d;
--backColor2 : #000000;
--backColor3 : #001c2a;

/*Les traits de séparation*/
--varLine : solid 1px rgb(58, 58, 58);
/* Polices */
font-family: 'Open Sans', sans-serif;
}

/* CONTENANT GENERAL _________________________________________________ */

.all{
    position: relative; /* essentiel pour la stickyness du header*/
}

/* 1 - HEADER _________________________________________________ */


header{
    position: sticky;
    top: 0;
    z-index: 10;

    width: 100vw;
    height: fit-content;
    background-color: var(--backColor);
    padding: 5px var(--varPadding);

    /*justify-content: center;*/

    align-items:center;
    display: grid;
    grid-template-columns: minmax(90px, 20%) auto ;
    
}

.logo img{
    width: 100%;
}


/*les onglets du menu*/

.nav{text-align: center;}


.menu{
    margin-left: 5vw;
    display: grid; 
    grid-template-columns: auto auto auto auto auto;
    text-align: center;
    /*gap: auto;*/

}

.menu .onglet{
    color: var(--mainColor); 
    text-align: center;
    justify-content: center;
    /*margin: 0 1em;*/
    width: fit-content;
    padding: 0.5em 1em;
    cursor: pointer;

}

.menu .arrow::after{
    content: '⌵';
    height: 0.3em;
    vertical-align:auto;
    font-weight: 700;
    padding-left: 0.3em;
}

.menu .onglet:hover{
    color: var(--textColor);
    opacity: 0.9;
    cursor: pointer;
}

.active{
    color: var(--textColor);
}

.menu a{
    text-decoration: none; 
    color: var(--mainColor);
    text-transform: uppercase;
    font-size: 0.9em;
    cursor: pointer;
}

.menu a:hover{
    color: var(--textColor);
    cursor: pointer;
}

/* Menu icon boutton */

label, #toggle{
    display: none;
}


.menu-icon{
    display: none;
}
  
.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: var(--mainColor);
    border-radius: 1.5px;
    margin: 8px 0;
    transition: 0.4s;
}
  
.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}
  
.change .bar2 {
    opacity: 0;
}
  
.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

/* 2 - MAIN _________________________________________________ */

main{
    position: relative;

    color: var(--textColor);

    z-index: 1;
}


/* 2 - 0 _ BANDEAU ______________________________________________________*/

.bandeau{
    width: 100%;
    background-color: var(--backColor);
}

.container-main {
    width:100%;
    height:100%;
    margin:0 auto;
    background-color: aqua;
    object-fit: cover;
    overflow: hidden;
}
  
.slider {
    position:relative;
    margin:0 auto;
    width: 100%;
    min-height: 40vh;
    aspect-ratio: 3/1;
    /*padding-bottom:66.666666667%;*/

    left: 50%;
    transform: translate(-50%);
}
  
.slider__after {
    position:absolute;
    top:0px;
    left:0px;
    z-index:1;
    width:100%;
    height:100%;
    background-image:url('./img/bandeau_arblock_2.png');
    background-size:cover;
    pointer-events: none;
}
  
.slider__before {
    position:absolute;
    top:0px;
    left:0px;
    z-index:2;
    width:50%;
    height:100%;
    background-image:url('./img/bandeau_arblock_1.png');
    background-size:cover;
    pointer-events: none;
    overflow:hidden;
}

.slider__separator {
    position:absolute;
    left:50%;
    width:4px;
    top:0px;
    bottom:0px;
    background:var(--backColor);
    /*box-shadow: 0 5px 10px 0px rgba(0,0,0,0.5);*/
    cursor:ew-resize;
    z-index:3;
    transform:translateX(-50%);
}

.slider__separator:after {
    position: absolute;
    top: 50%;
    right: 25px;
    content:'avec AR Block';
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.788);
    font-size: 0.85em;
    font-weight: 400;
    color: var(--mainColor);
    white-space: nowrap;
}

.slider__separator:before {
    position: absolute;
    top: 50%;
    left: 25px;
    content:'sans AR Block';
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.788);
    font-size: 0.85em;
    font-weight: 400;
    color: var(--mainColor);
    white-space: nowrap;
}

.slider-button .icon-svg{
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    width: fit-content;
    padding: 5px 5px 0px 5px;
    border-radius: 8px;

    left: 50%;
    top: 50%;
    transform: translateX(-50%);

}

.slider-button svg{
    height: 25px;
}


/* 2-0 GRILLE_____________________________________________________________________*/

/* structure de chaque rang de la grille */

.grille{
    margin: auto;
    justify-content: center;

    gap: var(--varPadding);
    padding: var(--varPadding);

    display: grid;
    grid-template-columns: minmax(auto, 550px) 300px;
    grid-auto-rows: auto auto;
    align-items: start;
    /*display: flex;
    flex-direction: column;
    flex-wrap: wrap;*/
}



/* 2.1 - COLONE DROITE - description _________________________________________________ */


.colonne-droite{
    align-self: start;
    position: sticky;
    top: 120px;

    color: var(--textColor);

    border: var(--varLine);
    border-radius: 8px;
}

.description{
    padding: 25px;
}

.separation{
    margin: 0 ;
    border-bottom: var(--varLine);
}



/* PAYER*/

.payer{
    position: sticky;
    top: 100px;
    align-self:start;

    grid-column: 1;
    grid-row: 2;
    align-content: center;
    justify-content: center;
}

.payer h4{
    text-align: center;
    background-color: var(--suppColor);
    border-radius: 6px;
    padding: 1em;
    /*width: fit-content;*/
    margin: 0;
}

.payer h4:hover{
    background-color: var(--suppColor2);
    cursor: pointer;
   transition: 0.4s;
}

.payer h4:not(:hover){
    background-color: var(--suppColor);
    cursor:initial;
   transition: 0.6s;
}

.payer a{
    opacity: 1;
    color: var(--mainColor);
    text-decoration: none;
}


/*les infos ont le même style dans le bandeau que dans la description*/

.info{
    display: grid;
    grid-template-columns: min-content auto ;
    align-items: center;

    margin-bottom: 1em;
}

.info .icon{
    position: relative;
    display:flex;
    width: 18px;
    height: 18px;
    vertical-align: center;
    align-items: center;
    padding: auto;
    
}

.info .icon img{
    position: relative;
    display:flex;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    vertical-align: center;
    padding: auto;
    margin: auto;
    align-items: center;
}

.info p{ 
    font-size: 0.85em;
    margin: 0 0 0 0.8em;
}

.spe .info p{
    font-size: 0.95em;
    font-weight: 600;
}

.info a{ 
    text-decoration: none;
    border-bottom: solid 2px var(--suppColor);
}

/*petites options de payement*/

.description a{ 
    color: var(--mainColor);
    opacity: 0.7;
    text-decoration: none;
}

.description a:hover{ 
    opacity: 1;
    transition: 0.2s;
}

.payer a{
    opacity: 1;
    color: var(--mainColor);
    text-decoration: none;
}

.responsive-sticky{
    display: none;
}

/*liens vers des mentions spéciales*/
.underline a{
    font-size: inherit;
    color: inherit;
    opacity: 1;
    text-decoration: underline;
    border: none;
}

.underline a:hover{
    color: var(--mainColor);
    text-decoration: none;

}



/* 2.2 - TEXT CENTRAL - corps de texte _________________________________________________ */

.text-central{
    align-self: start;
    position: relative;
}

/*TITRES*/

.text-central h1{
    color: var(--mainColor);
    font-size: 3em;
    font-weight: 300;
    margin: 0;

}

.text-central b{
    font-weight: 500;
}

.text-central h2{
    color: var(--mainColor);
    font-size: 1.8em;
    font-weight: 400;
    margin: 0.2em 0;
}

.text-central h3{

    font-size: 1.4em;
    font-weight: 400;
    color: var(--mainColor);

    margin: 3em 0 1em 0;
}

.text-central .text-mineur{
    margin: -1em 0 1.5em 0;
    color: var(--mainColor2);
    font-size: 1em;
}

.text-central .small{
    font-style: italic;
    font-weight: 400;
    font-size: 0.85em;
}

/*DESCRIPTION */

.text-central p{
    font-weight: 300;
}

/*petits détails de l'app évaluée*/

.details{
    display: inline-flex;
    flex-wrap: wrap;
}

.details .info{
    margin-bottom: 0;
    padding: 0.2em 0.6em 0.2em 0.4em;
}

.details .separateur{
    border-right: var(--varLine);
}

.details a{ 
    color: var(--suppColor3);
    font-weight: 600;
    /*opacity: 0.7;*/
    text-decoration: none;
    margin: 1em 1em 1em 0;
}

.details p{
    font-weight: 600;
}

.details a:hover{ 
    /*opacity: 1;*/
    background-color: var(--suppColor4);
    border-radius: 1em;
    transition: 0.2s;
}

.more-info[data-title]:hover::before{
    content: attr(data-title);
    z-index: 30;
    display: inline-block;
    position: absolute;
    top: 10px;
    left:-40px;

    margin-top: 1.5em;
    padding:1em;
    max-height: 30vh;
    max-width: 30vw;
    width: max-content;

    border-radius: 2px;
    box-shadow: 10px 10px 20px 0px rgba(255, 255, 255, 0.059);

    background: rgba(249, 249, 249, 0.978);
    color: var(--backColor);
    font-size: 0.9em;
    line-height: 150%;
    white-space: normal;

    transition: 0.5s;
}

[data-title]{
    position: relative;
}

/*NOTE*/

.note{
    display: grid;
    grid-template-columns: min-content auto;
    color: var(--mainColor2);
    gap: 0.5em;
    align-content: center;
    align-items: center;
    margin: 0 0 2em 0;
}

.etoiles{
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    gap: 5px;
}

.etoiles img{
    width: 15px;
    display: block;
}

.etoiles .uncheked{
    opacity: 0.5;
}

.etoiles{
    color: var(--mainColor);
}

.note p{
    margin: 0 0 0 0.5em;
    font-weight: 400;
}


/*CARTES POINTS FORTS*/

.cards{
    margin-top: 3em;
    display: grid;
    grid-template-columns: auto auto;/*fr c'est le coéfficient de flexibilité*/
    gap: 20px;
}

.card{
    /*background-color: var(--backColor3);*/
    background-color: rgba(255, 255, 255, 0.101);
    border-radius: 6px;
    padding: 1.5em;
    /*border: var(--varLine);*/
    /*box-shadow: 5px 5px 14px 0px rgba(0, 0, 0, 0.564);*/
}

.icon-card{
    position: relative;
    display:flex;
    width: 50px;
    height: 50px;
    place-content: center;
    padding: auto;
    margin: auto;
    justify-content: center;
}

.icon-card img{
    position: relative;
    display:flex;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    vertical-align: center;
    padding: auto;
    margin: auto;
    align-items: center;
    place-content: center;

    opacity: 0.9;
}

.card h4{
    font-size: 1em;
    color: var(--mainColor);
    text-align: center;
    font-weight: 500;
    margin: 0.9em 0 0.5em;
}

.card p{
    font-size: 0.9em;
    color: var(--textColor);
    text-align: center;
}

.plus{
    display: none; /* Finalement pas de liens "en savoir plus" dans le cartes. Mais pour les faire réapparaitre il suffit d'enlever ce display: none*/
    padding: auto;
    margin: auto;
    text-align: center;
}

.plus a{
    color: var(--suppColor3);
    text-decoration: none;
    font-size: 0.85em;
    text-align: center;
}

.plus a:hover{
    color: var(--suppColor2);
}

/*SPECIFICATION (détails supp)*/

.specifications{
    margin: 2em 0;
    display: grid;
    grid-template-columns: max-content auto ;
    width: 100%;
    gap: 0 1em;
}

.spec{
    padding: 1em 0.5em;
    border-bottom: var(--varLine);
    font-size: 0.9em;
}

.categorie{
    padding: 1em 2em 1em 0;
    font-weight: 600;
    color: var(--mainColor);
}

.bottom{
    border-bottom: none;
}

.specifications ul{
    padding: 0 0 0 0.5em;
    margin: 0;
}

.specifications li{
    padding-bottom: 0.9em;
}


/*COMMENTAIRES*/

.commentaire{
    border-top: var(--varLine);
    padding: 20px 0;
}

.commentaire .comment-info{
    display: grid;
    grid-template-columns: min-content auto min-content ;
    align-items: center;
    width: 100%;

}

.commentaire .author{
    font-weight: 600;
    color: var(--mainColor);
}

.commentaire .date{
    color: var(--mainColor2);
    margin-left: 1em;
    white-space: nowrap;
    font-size: 0.9em;
}

.commentaire p{
    font-weight: 400;
}

.commentaire .comment-info .etoiles{
    width: min-content;
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    gap: 5px;

}

.commentaire .title-comment{
    font-weight: 600;
    color: var(--mainColor);
}

.commentaire .comment{
    font-weight: 100;
    color: var(--textColor);
}

.more-comment{
    background-color: rgba(255, 255, 255, 0.094);
    color: var(--mainColor);
    padding: 0.5em 1em;
    border-radius: 6px;
    width: fit-content;
}
.more-comment a{
    text-decoration: none;
    color: var(--mainColor);
}

.more-comment:hover{
    background-color: var(--suppColor);
}


.illustration{
    width: 100%;
}

.illustration img{
    width: 100%;
}

.legende{
    margin-top: 0.3em;
    font-size: 0.8em;
    color: var(--textColor);
    opacity: 0.6;
}



/* X - FOOTER _________________________________________________ */

footer{
    width: 100vw;
    height: fit-content;

    padding: var(--varPadding);
    background-color: var(--backColor2);
    color: var(--mainColor);

}

/*la plus part des styles seront immités du header sauf : */

footer .menu{
    margin-left: 0;
}

footer .menu .onglet:hover{
    border-bottom: none;
    text-decoration: underline;
    transition: 0.1s;
}


footer p{
    font-size: 0.8em;
    font-weight: 300;
    white-space: nowrap;
    margin-bottom: 0;
    text-align: center;
}



/* MEDIA QUERY - Responsive _________________________________________________ */


@media screen and (max-width: 820px), screen and (orientation:portrait){

    header{
        display: block;
        /*grid-template-columns: 200px auto max-content;*/
        padding: 10px var(--varPadding);
        min-height: 70px;
    }

    .logo{
        display: block;
        position: absolute;
        width: 200px;
    }


    .menu{
        align-content: right;
        right: 0;
    }

    .menu-icon{
        display: block;
        cursor: pointer;
        z-index: 3;
        right: 0;
    }

    label {
        width: 30px;
        display: flex;
        justify-content: end;
        align-items:center;
        margin: 0 0 0 auto;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

    header .menu{
        display: none;
        flex-direction: column;
        height: max-content;
        margin-top: 1em;
    }

    .menu .onglet{
        color: var(--mainColor); 
        text-align: left;
        justify-content: none;
        /*margin: 0 1em;*/
        width: fit-content;
        padding: 1.5em 0;
    
    }

    #toggle:checked + .menu {
        display: flex;
    }
    


    .grille{
        display: block;
    }

    .bandeau{
        object-fit: cover;
        height: 40vh;
        overflow: hidden;
    }

    .bandeau img{
        height: 40vh;
        max-width: none;
    }

    .container{
        object-fit: cover;
    }
    .colonne-droite{
        max-width: 400px;
        margin: 3em auto;
    }

    .hide{
        display: none;
    }


    .more-info[data-title]:hover::before{
        
        top: 10px;
        left:-40px;
    
        margin-top: 1.5em;
        padding:1em;
        max-height: 100vh;
        width: minmax(auto, 80vw);
    }


    .responsive-sticky{
        background-color: var(--backColor);
        width: 100%;
        display: block;
        position: sticky;
        bottom: 0;

        border-top: var(--varLine);
        margin-top: 2em;
    }

    footer .menu{
        display: block;
    }

}

@media screen and (max-width: 555px){
    body{
        --varPadding : 33px;
    }

    .text-central h1{
        font-size: 2em;
    }

    .text-central h2{
        font-size: 1.4em;
    }

    .details{
        padding: 0.5em 0 0.5em 0;
    }

    .details .info{
        margin: 0;
        padding: 0.2em 0.2em 0.2em 0.5em;
    }

    .details a{
        margin: 0.3em 0 0.3em 0;
    }

    .cards{
        gap: 15px
    }

    .card{
        padding: 1em;
    }

    .card p{
        font-size: 0.75em;
        margin-block-end: 0;
    }

    .responsive-sticky{
        padding: 0.5em 1em;
    }
}

