/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    background-color: rgb(221,194,141);
}

body{
    background-color: rgb(221,194,141);
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/*----------VARIABLE------------*/

:root {
  --main-bg-color: rgb(221,194,141);
}

/*----------FONT-----------------*/

@font-face {
    font-family: 'FuturaPTBold';
    src: url('../font/FuturaPTBold.otf') format('truetype');    
}

@font-face {
    font-family: 'FuturaBook_BT';
    font-family: 'FuturaBook_BT';
    src: url('../font/FuturaBook_BT.ttf') format('truetype');    
}

h1{
    font-family: FuturaPTBold;
    padding-top: 20px;    
}

p{
/*    font-family: FuturaBook_BT;*/
    font-family: Arial;
    font-size: 24px;
    line-height: 28px;
    /*text-align: justify;*/
}

/*----------HEADER---------------*/

.mainContener{
    position: relative;
    overflow: hidden;
}

html,body{
    width: 100%;    
    height: 100%;
    background-color: var(--main-bg-color);
}

header{
    position: fixed;       
    width: 100vw;
    height: 100px;
    top: 0;
    background-color: white;
    z-index: 1;
}

#logoBD{
    margin-top:10px;
    margin-left: 10px;
    height: 80px;
}

#logoCNAM{
    position: absolute;
    height: 70px;
    top: 15px;
    right: 10px;
}

/*----------FOOTER---------------*/

footer{
    position: relative;
    margin-top: 50px;
    width: 100%;    
    background-color: white;
}

.footer_copyright span{
    display: block;
    color: rgb(0,158,224);
    font-family: FuturaBook_BT;
    font-size: 12.5px;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;

}

.footer_trait{
    width: calc(100% - 20px);
    height: 1px;
    margin-left: 10px;
    background-color: rgb(0,158,224);
}

.footer_imageContener{
    position: relative;
    height: 100px;
}

.footer_imageContener img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 90%;
}

/*----------GENERAL---------------*/

.main{
    position: relative;
    margin-top: 100px;
    transition: right 0.5s;
    /*background-color: white;*/    
}

.fond_appli{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(221,194,141);
}

.mainContent{       
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);   
}

#smartphone{
    pointer-events: none;
}

/*-----------COMPTE REBOURS-------*/

#CompteRebours{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background-color: rgb(255,0,0);    */
    background-color: rgb(221,194,141);    
}

.footerCompteRebours{
    position: absolute;
    width: 100%;
    bottom: 0;
    background-color: white;
}

/*---------------Compte à rebours----------*/

#CompteRebours{
    opacity:1;
    transition: opacity 1s;
}

.CR_contener{
    width: 100%;
    height: 141px;    
    position: absolute;
    top: 90px;
}

.CR_digit_contener{
    position: absolute;
    width: 100%;
}

.CR_top{
    width: 100%;
    height: 10px;
}

.CR_jour{
    width: 100%;
    text-align: center;
    font-family: 'FuturaPTBold';
    color: black;
    font-size: 70px;
    line-height: 70px;

    opacity:1;
    transition: opacity 3s;
}

.transparent{
    opacity:0!important;
}

.CR_HMS_contener{
/*    display: none;*/
    position: relative;
    width: 100%;
    height: 40px;
    opacity:1;
    transition: opacity 3s;
}

.CR_HMS_bloc{
    position: absolute;
    top:50%;
    left:50%;
    width: calc(110px * 3 + 9px);
    height: 100%;
    transform: translate(-50%,-50%);
}

.CR_HMS_sousbloc{
    position: relative;
    display: inline-block;
    width: 110px;
    height: 100%;
/*    background-color: rgba(0, 255, 0, 0.5);*/
}

.CR_HMS_chiffre{
    position: absolute;
    top:50%;
    left:46%;
    transform: translate(-50%,-50%);
    font-family: 'FuturaPTBold';
    color: black;
    font-size: 60px;
}

.CR_HMS_lettre{
    position: absolute;
    top:71%;
    left:95%;
    transform: translate(-50%,-50%);
    font-family: 'FuturaPTBold';
    color: black;
    font-size: 35px;
}

#imgCompteRebours{
    position: fixed;
    width: 80%;
    top: 220px;
    left:50%;
    transform: translate(-50%,0);
}

/*----------ACCUEIL---------------*/


#ACCUEIL p{
    text-align: left;
    width: 64%;   
     margin-bottom: 60px; 
}

#btPhoto{
    margin-bottom: 60px;
    width: 280px;
    margin-left: calc(50% - 140px);
}

#ACCUEIL .illustration{
    position: absolute;    
    top: 0;
    right: 0;
    width: 50%;
}

.boutonAccueil{
    display: block;
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100px;
    margin-bottom: 20px;
    /*background-color: rgba(255,0,0,0.3);*/
}

.boutonAccueil:-webkit-any-link{
    color: black;
}

.iconePlanete{
    position: relative;
    width: 100px;
    height: 100px;
}

.iconePlanete img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
}

#saturne img{
    width: 145%;
}

.contourBlanc{
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-color: white;
}

.bandeBlanche{
    position: relative;
    float: left;
    width: 90%;
    height: 70px;
    margin-top: 15px;
    margin-left: 10%;
    background-color: white;
}

.bandeBlanche span{
    position: absolute;
    margin: 0;
    top: 50%;
    left: 80px;
    transform: translate(0,-50%);
    font-family: FuturaPTBold;
    font-size: 25px; 
    line-height: 22px;   

}

.bandeBlanche span font{
    margin-left: 30px;
}

#titreReussi{
    display: none;    
}

#ACCUEIL  #texteReussi{
    display: none;   
    margin-bottom: 0;
}

#ACCUEIL #btOuvrirCadeau{
    margin-top: 25px;
    margin-left:0;
    margin-bottom: 50px;
}

#btOuvrirCadeau{
    display: none;
}



/*--------------Pop Up---------------------------*/

.fondNoir{
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0);
    opacity: 0;
    transition: opacity 0.3s; 
    pointer-events: none;   
}

.fondNoir_OUVERT{
    opacity: 0.75!important;
}

.PopUp{
    position: fixed;
    top : calc(50% + 25px);
    left: 50%;
    width: 90%;
    height: calc((100% - 100px) * 0.85);
    transform: translate(-50%,-50%) scale(0);
    background-image: url("../img/fondPopUp.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;

    transition: transform 0.3s;
}

.PopUp_OUVERT{
    transform: translate(-50%,-50%) scale(1.0);
}

.PopUp_content{
    position: absolute;
    width: 80%;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
/*    background-color: rgba(255,0,0,0.3);*/
}

.PopUp_titre{
    font-family: FuturaPTBold;
    font-size: 40px;
}

.PopUp_texte{
    font-family: FuturaBook_BT;
    /*font-size: 25px;
    line-height: 25px;*/
    font-size: 18px;
    line-height: 18px;
    color:rgb(86,54,24);
}

/*.PopUp_texte font{
    font-size: 20px;
    line-height: 20px;
}*/

.PopUp_planete{
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.PopUp_planete img{
    height: 150px;
}

#victoryFINAL{
    height: 260px;
}

.PopUp_bt{
    cursor: pointer;
    display: block;
    position: relative;
    width: 200px;
    height: 50px;
    background-color: white;
    margin-left: calc(50% - 100px);
}

.PopUp_bt span{
    position: absolute;
    white-space: nowrap;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    color:rgb(66,114,93);
    font-family: FuturaPTBold;
    font-size: 20px;
}

.decoPopUp{
    position: absolute;
    width: 60px;
}

.deco_01{
    top: 5px;
    left: 5px;
}

.deco_02{
    top: 5px;
    right: 5px;
    transform: rotate(90deg);
}

.deco_03{
    bottom: 5px;
    left: 5px;
    transform: rotate(270deg);
}

.deco_04{
    bottom: 5px;
    right: 5px;
    transform: rotate(180deg);
}

#ACCUEIL .PopUp{    
    top: calc(50% + 50px);
    height: calc((100%) * 0.95 - 100px);  
}

/*----------AUTRES PAGES GENERIQUE---------------*/

/*----Titre---*/

.Titre{
    position: relative;
    margin-top: 100px;
    width: 100%;
    height: 100px;
    /*background-color: rgba(255,0,0,0.3);*/
}

.Titre .iconePlanete{
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
}

.Titre .contourBlanc{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
}

.Titre h1{
    position: absolute;
    margin: 0;
    padding: 0;
    top: 50%;
    left: 95px;
    transform: translate(0%, -50%);
    line-height: 25px;
}

.decoTitre{
    position: absolute;
    top: 10%;
    left: 79px;
    height: 80%;
}

/*----légende---*/

.legende{
    position: relative;
    height: 25px;
} 

.legende span{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%,0%);
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

/*----menu---*/

.menuPage{
    position: fixed;
    bottom: 0;
    left: 0%;
    transform: translate(0%,0);
    width: 100vw;
    height: 50px;
    background-color: rgb(66,114,93);
    z-index: 2;
}

.btMenuPage{
    cursor: pointer;
    position: relative;
    float: left;
    width: calc((100% - 50px)/2);
    height: 100%;    
    /*background-color: rgba(255,0,0,0.3);*/
}

.btMenuPage span{
    font-family: 'FuturaPTBold';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    transform: translate(-50%,-50%);
    color: white;
    letter-spacing: 0.5px;
}

.btFermer{
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: white;
    color: rgb(66,114,93);
}

.btFermer span{
    font-family: 'FuturaBook_BT';
    position: absolute;
    top: 46%;
    left: 57%;
    font-size: 40px;
    transform: translate(-50%,-50%);
}

.btFermer span img{
    width: 20px;
}

#fondMenuPage{
    position: absolute;
    top: 0;
    left: 0;
    width: calc((100% - 50px)/2);
    height: 100%;
    background-color: black;
    transition: left 0.5s;
}

/*----partie Définition---*/

.pageEnigme .mainContener{
    padding-bottom: calc((100vh - 863px)/2 + 148px);
}

#mainDEF{
    margin-top: 0;
    right: 0;
}

#mainDEF img{
    width: 100%;
}

#mainDEF p{
    font-size: 20px;
    line-height: 24px;
    margin-top: 50px;
    margin-bottom: 50px;

}

/*-----partie JEU---------------*/

#mainJEU{
    position: absolute;
    top: 100px;
    left: 100%;
    transition: left 0.5s;
    width: 100%;         
}

#mainJEU img,canvas{
    width: 100%;
}

#mainJEU footer img{
    width: initial;
}

/*-----partie ASTROLAB---------------*/

#ASTROLABE #jeux{
    margin-bottom: 60px;
}

#compteurDeg{
    position: relative;
    transform: translate(0,-130px);
    width: 100%;
    height: 60px;
    /*background-color: rgba(0,255,0,0.3);*/
}

#compteurDeg span{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);

    font-family: 'FuturaPTBold';
    color: rgb(192,10,39);
    font-size: 60px;   
    text-align: center;
}

#compteurDeg_VERT{
    color: rgb(66,114,93)!important;
    opacity: 0;
}

#RTK_touch_01{
    position: absolute;
    top: 0;    
    width: 180px;
    height: 600px;
    background-color: rgba(255,0,0,0);
}

#RTK_touch_02{
    position: absolute;
    top: 0;    
    right: 0;
    width: 70px;
    height: 600px;
    background-color: rgba(255,0,0,0);
}

/*-----partie LUNETTE---------------*/

#LUNETTE #jeux{    
    margin-bottom: 60px;
}

#degLunette{
    position: absolute;
    width: 100%;
    height: 50px;
    top: 125px;
    /*background-color: rgba(255,0,0,0.1);*/
}

#degLunette span{
    font-family: 'FuturaPTBold';
    color: rgb(192,10,39);
    font-size: 50px;
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

#degLunette_VERT{
    color: rgb(66,114,93)!important;
    opacity: 0;
}

#RTK_touch_03{
    position: absolute;
    top: 0;    
    width: 60px;
    height: 600px;
    background-color: rgba(255,0,0,0);
}

#RTK_touch_04{
    position: absolute;
    top: 0; 
    right: 0;   
    width: 60px;
    height: 600px;
    background-color: rgba(255,0,0,0);
}

#RTK_touch_05{
    position: absolute;
    top: 390px; 
    right: 0;   
    width: 100%;
    height: 300px;
    background-color: rgba(255,0,0,0);
}

/*-----partie COMPAS---------------*/

#COMPAS #jeux{
    width: 100%;
    pointer-events: none;
    margin-bottom: 20px;
    /*margin-left: 5%;
    margin-bottom: 60px;*/
}

.blocCasaCocher{
    position: relative;
    width: 100%;
    height: 100px;
/*    background-color: rgba(0,255,0,0.3);*/
}

.blocCasaCocher_Gauche{
    position: relative;
    float: left;
    width: 20%;
    height: 100%;
}

.casaCocher{
    position: absolute;
    left:50%;
    transform: translate(-50%,0);
    width: 25px;
    height: 25px;
    border: 2px solid rgb(0,0,0);
    cursor: pointer;
}

.blocCasaCocher_Droite{
    float: left;
    width: 70%;
    height: 100%;
}

.blocCasaCocher_Droite span{
    font-family: FuturaBook_BT;
    font-size: 20px;
    line-height: 24px;
}

#btRecommencer{
    cursor: pointer;
}

#lost .PopUp_texte{
    margin-top: 40px;
    margin-bottom: 50px;
}


/*-----partie TELLERIUM---------------*/

#TELLURIUM #jeux{
    width: 90%;
    margin-left: 5%;
    margin-bottom: 60px;
}

#TELLURIUM canvas{
    pointer-events: none;
}

.titreSchema{
    font-family: FuturaBook_BT;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
    margin-bottom: 20px;
} 

        /*----------Menu Déroulant--------*/

.menuDeroulant_contener{
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    height: 50px;
    background-color: rgb(255,255,255);
}

#TELLURIUM .menuDeroulant_contener{
    margin-bottom: 25px;
}

.champSelectionne{
    position: relative;
    float: left;
    width: calc(100% - 50px);
    height: 100%;
}

.champSelectionne span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);

    font-family: FuturaBook_BT;
    font-size: 20px;
    white-space: nowrap;
}

.btDeroulant{
    position: relative;
    float: left;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.fleche{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width: 0; 
    height: 0; 
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
  
    border-bottom: 12px solid black;

    transition: transform 0.5s;
}

.maskMenuDeroulant{
    position: absolute;
    width: 100%;  
    height: 0px;  
    bottom: 50px;
    overflow: hidden;
    transition: height 0.5s;
}

.menuDeroulant{
    position: absolute;
    width: 100%;    
}

.btMenuDeroulant{
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 50px;
    background-color: white;
}

.btMenuDeroulant span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);

    font-family: FuturaBook_BT;
    font-size: 18px;
    white-space: nowrap;
}

/*-----partie ASTRARIUM---------------*/

#ASTRARIUM #jeux{
    width: 100%;
    /*margin-top: 35px;*/
    /*margin-left: 5%;*/
    /*margin-bottom: 25px;*/
}

#RTK_touch_06{
    position: absolute;
    top: 0px;        
    width: 120px;
    height: 600px;
    background-color: rgba(255,0,0,0);
}

#RTK_touch_07{
    position: absolute;
    top: 0px; 
    right: 0;       
    width: 20px;
    height: 600px;
    background-color: rgba(255,0,0,0);
}

#footer_mobile{
    opacity: 0;
}

#blocDate{
    position: absolute;
    width: 20%;
    left: 0;
    top: 50px;
}

.date{
    position: relative;
    width: 100%;
    height: 45px;
    background-color: rgba(255,0,0,0.5);
}

.date span{
    font-family: FuturaBook_BT;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

/*-----partie IMPRIMERIE---------------*/
#IMPRIMERIE .iconePlanete img{
    width: 150%;
}

#IMPRIMERIE #jeux{
    width: 90%;
    margin-top: 35px;
    margin-left: 5%;
    margin-bottom: 25px;
}

#IMPRIMERIE #mainJEU .mainContent{
    margin-bottom: 50px;
}

/*-------------Memory-----------*/

.LesCartesContener{
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);    
}

.carteContener{
    position: relative;
    display: inline-block;
    width: 49%;
    margin-bottom: 4px;
    cursor: pointer;
}

.carteContener img{
    width: 100%;
}

.carteContener span{
    font-family: FuturaBook_BT;
    font-size: 18px;
    line-height: 18px;
    color: rgb(75,60,52)!important;

    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    white-space: nowrap;
}

#IMPRIMERIE .PopUp_texte{
    margin-top: 40px;
    margin-bottom: 50px;
}

/*-----partie EGLISE---------------*/
#EGLISE #illustration2{
    width: 110%;
    transform: translate(-5%, 0);
}

#EGLISE #jeux{
    width: 90%;
    margin-top: 35px;
    margin-left: 5%;
    margin-bottom: 25px;
}

#EGLISE .PopUp_texte{
    margin-top: 40px;
    margin-bottom: 50px;
}

.iconeCOCHER{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%!important;
    transform: translate(-50%,-50%);
    opacity: 0;
}

.blocBouton{
    position: relative;
    width: 100%;
    height: 100px;    
}

.Bouton{
    cursor:  pointer;
    position: absolute;
    top: 50%;
    left: 50%;  
    font-family: FuturaPTBold;
    font-size: 18px;
    color: white;
    transform: translate(-50%,-50%);  
    background-color: rgb(66,114,93);
    padding: 10px 80px;
}

/*-----partie PENDULE---------------*/

#PENDULE #jeux{
    width: 90%;
    margin-left: 5%;
    margin-top: 35px; 
    /*   
    margin-bottom: 25px;*/
}

#PENDULE #mainJEU .mainContent{
/*    margin-top: 70px;*/
    margin-bottom: 50px;
}

.blocCitation{
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 60px;
    width: calc(100% - 40px);
}

.blocCitation_text{
    font-family: FuturaBook_BT;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 20px;
}

#PENDULE .menuDeroulant_contener{
    margin-left: 40px;
    margin-right: 0px;
}

#PENDULE .btMenuDeroulant{
    height: 50px;
}



@media only screen and (orientation: portrait) and (max-width: 450px) {    

    #smartphone{
        display: none;
    }

    #cacheHaut{
        display: none;
    }

    #cacheBas{
        display: none;
    }

    .mainContener{        
        width: 100%;
        /*height: 100%;*/
    }

    .main{
        margin-top: 100px;
    }

}


@media only screen and (orientation: portrait) and (min-width: 450px){       

    


    .PopUp{      
        top : calc(50% + 20px);        
        width: 370px;
        height: 650px;        
    }

    .fondNoir{
        top: 50%;
        left: 50%;
        width: 410px;
        height: 770px;
        transform: translate(-50%,-50%);
    }

    .menuPage{
        width: 410px;        
        bottom: calc((100vh - 863px)/2 + 8px);   
        left: 50%;
        transform: translate(-50%,0);     
    }

    header{
        position: fixed;       
        width: 410px;
        height: 100px;
        top: calc((100vh - 863px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        background-color: white;
        z-index: 1;
    }

    #smartphone{
        position: fixed;
        width: 450px;
        top: 50%;
        left: calc(50% - 3px);
        transform: translate(-50%,-50%);
        z-index: 10;
    }

    #cacheHaut{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc((100vh - 863px)/2);
        background-color: var(--main-bg-color);
    }

    #cacheBas{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc((100vh - 863px)/2);
        background-color: var(--main-bg-color);
    }

    .fond_appli{
        position: fixed;
        top: calc((100vh - 863px)/2);
        padding-bottom: calc((100vh - 863px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        width: 410px;   
        height: 863px;   
    }

    .mainContener{
        position: absolute;
        top: calc((100vh - 863px)/2);
        padding-bottom: calc((100vh - 863px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        width: 410px;       
    }

    /*-----------COMPTE REBOURS-------*/

    #CompteRebours{
        width: 410px; 
        left: 50%;
        transform: translate(-50%,0%);
    }

    .footerCompteRebours{
        padding-bottom: calc((100vh - 863px)/2);
    }

    .CR_contener{
        top: calc((100vh - 673px)/2);
    }

    #imgCompteRebours{
        top: calc((100vh - 393px)/2);
    }

    
}


@media only screen and (orientation: landscape) and (max-height: 905px){  

    p{
        font-size: 18px;
        line-height: 20px;
    }     

    .PopUp{      
        top : calc(50% + 20px);        
        width: 300px;
        height: 510px;        
    }

    .fondNoir{
        top: 50%;
        left: 50%;
        width: 360px;
        height: 700px;
        transform: translate(-50%,-50%);
    }

    .menuPage{
        width: 338px;        
        bottom: calc((100vh - 710px)/2 + 8px); 
        left: 50%;
        transform: translate(-50%,0);       
    }

    header{
        position: fixed;       
        width: 338px;
        height: 100px;
        top: calc((100vh - 710px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        background-color: white;
        z-index: 1;
    }

    #smartphone{
        position: fixed;
        width: 370px;
        top: 50%;
        left: calc(50% - 3px);
        transform: translate(-50%,-50%);
        z-index: 10;
    }

    #cacheHaut{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc((100vh - 710px)/2);
        background-color: var(--main-bg-color);
    }

    #cacheBas{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc((100vh - 710px)/2);
        background-color: var(--main-bg-color);
    }

    .fond_appli{
        position: fixed;
        top: calc((100vh - 710px)/2);
        padding-bottom: calc((100vh - 710px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        width: 338px;   
        height: 688px;   
    }

    .mainContener{
        position: absolute;
        top: calc((100vh - 710px)/2);
        padding-bottom: calc(50px + (100vh - 710px)/2)!important;
        left: 50%;
        transform: translate(-50%,0%);
        width: 338px;       
    }

    #ACCUEIL .mainContener{        
        padding-bottom: calc((100vh - 710px)/2)!important;            
    }

    .bandeBlanche span{
        font-size: 20px;
        line-height: 20px;
    }

    .bandeBlanche span font{
        margin-left: 23px;
    }

    /*--------Lunette astronomique---------------*/

    #degLunette{
        top: 85px;
    }

    /*-----------COMPTE REBOURS-------*/

    #CompteRebours{
        width: 338px; 
        left: 50%;
        transform: translate(-50%,0%);
    }

    .footerCompteRebours{
        padding-bottom: calc(50px + (100vh - 800px)/2)!important;
    }

    .CR_contener{
        top: calc((100vh - 523px)/2);
    }

    #imgCompteRebours{
        top: calc((100vh - 253px)/2);
    }

    
}


@media only screen and (orientation: landscape) and (min-height: 905px){       

     p{
        font-size: 24px;
        line-height: 28px;
    }  

    .PopUp{      
        top : calc(50% + 20px);        
        width: 370px;
        height: 650px;        
    }

    .fondNoir{
        top: 50%;
        left: 50%;
        width: 410px;
        height: 770px;
        transform: translate(-50%,-50%);
    }

    .menuPage{
        width: 410px;        
        bottom: calc((100vh - 863px)/2 + 8px);  
        left: 50%;
        transform: translate(-50%,0);      
    }

    header{
        position: fixed;       
        width: 410px;
        height: 100px;
        top: calc((100vh - 863px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        background-color: white;
        z-index: 1;
    }

    #smartphone{
        position: fixed;
        width: 450px;
        top: 50%;
        left: calc(50% - 3px);
        transform: translate(-50%,-50%);
        z-index: 10;
    }

    #cacheHaut{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc((100vh - 863px)/2);
        background-color: var(--main-bg-color);
    }

    #cacheBas{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc((100vh - 863px)/2);
        background-color: var(--main-bg-color);
    }

    .fond_appli{
        position: fixed;
        top: calc((100vh - 863px)/2);
        padding-bottom: calc((100vh - 863px)/2);
        left: 50%;
        transform: translate(-50%,0%);
        width: 410px;   
        height: 863px;   
    }

    .mainContener{
        position: absolute;
        top: calc((100vh - 863px)/2);
        padding-bottom: calc(50px + (100vh - 863px)/2)!important;
        left: 50%;
        transform: translate(-50%,0%);
        width: 410px;       
    }

    #ACCUEIL .mainContener{        
        padding-bottom: calc((100vh - 863px)/2)!important;      
    }

    .bandeBlanche span{
        font-size: 25px;
        line-height: 22px;
    }

    .bandeBlanche span font{
        margin-left: 30px;
    }

    /*--------Lunette astronomique---------------*/

    #degLunette{
        top: 125px;
    }

    /*-----------COMPTE REBOURS-------*/

    #CompteRebours{
        width: 410px; 
        left: 50%;
        transform: translate(-50%,0%);
    }

    .footerCompteRebours{
        padding-bottom: calc(50px + (100vh - 943px)/2)!important;
    }

    .CR_contener{
        top: calc((100vh - 673px)/2);
    }

    #imgCompteRebours{
        top: calc((100vh - 393px)/2);
    }
}




@media (prefers-color-scheme: dark) {
  /*.fond_appli {
    background-color: red!important;    
  }*/
}







/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}