﻿@import url(reset.css);

html, body {
    background-color: #fff;
    color: #37424a;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    height: 100%;
    line-height: 24px;
}

    body > div {
        min-height: 100%;
        position: relative;
    }

#contenu {
    margin-top: 10px;
}

#accueil #contenu {
    margin-top: 150px;
    padding-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    font-weight: 600;
    line-height: 1em;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

#accueil .intro {
    margin: 50px auto 45px;
    text-align: center;
}

    #accueil .intro > p {
        font-size: 1.3em;
    }

.contenu {
    padding: 0 5px;
    margin: 20px auto;
    position: relative;
    width: 940px;
}
/* Boîte */
.boite {
    background-color: #f0f0f0;
    padding: 10px;
    position: relative;
}

    .boite::before {
        background-color: #f0f0f0;
        content: "\00a0";
        display: block;
        height: 15px;
        left: 20px;
        position: absolute;
        top: -8px;
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        width: 15px;
    }
/* Boutons */
button.btn, button.btn2, a.btn, a.btn2 {
    border: 1px solid #0073cf;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 400;
    line-height: 40px;
    padding: 0 15px;
    white-space: nowrap;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

button.btn, a.btn {
    background-color: #0073cf;
    color: #fff;
}

button.btn2, a.btn2 {
    background-color: #fff;
    color: #0073cf;
}

a.btn, a.btn2 {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}
    /* focus / survol */
    button.btn:focus, a.btn:focus, button.btn2:focus, a.btn2:focus, .inverse a.btn:focus {
        background-color: #37424a;
        border-color: #37424a;
        color: #fff;
        outline: none;
    }

    button.btn:hover, a.btn:hover, button.btn2:hover, a.btn2:hover {
        background-color: #3C8FD4;
        border-color: #3C8FD4;
        color: #fff;
    }
/* Bannière*/
#accueil #mozaik {
    position: fixed;
    -moz-transition: background-color linear .3s;
    -o-transition: background-color linear .3s;
    -webkit-transition: background-color linear .3s;
    transition: background-color linear .3s;
    z-index: 100;
}

#mozaik {
    background-color: #fff;
    left: 0;
    line-height: 60px;
    right: 0;
    top: 0;
}

   #mozaik > div {
      margin: auto;
      position: relative;
      width: 940px;
      padding: 0 5px;
   }

    #mozaik .logo {
        margin-left: 1px;
    }

        #mozaik .logo img {
            vertical-align: middle;
        }

    #mozaik .option {
        float: right;
    }

        #mozaik .option > div, #mozaik .option > a {
            float: right;
        }

            #mozaik .option > a, #mozaik .option > div > a + a {
                margin-left: 10px;
            }
    /* langue */
    #mozaik .langue > span {
        display: none;
    }

[lang^='en'] #mozaik .langue:before {
    content: 'Fr';
}

[lang^='fr'] #mozaik .langue:before {
    content: 'En';
}

#mozaik .langue {
    background-color: #fff;
    border: 1px solid #0073cf;
    border-radius: 50%;
    color: #0073cf;
    display: inline-block;
    font-size: 0.9em;
    height: 24px;
    line-height: 24px;
    margin-top: 15px;
    margin-right: 5px;
    padding: 3px;
    text-align: center;
    text-decoration: none;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    width: 24px;
}

    #mozaik .langue:focus {
        background-color: #37424a;
        border: 1px solid #37424a;
        color: #fff;
        outline: none;
    }

    #mozaik .langue:hover {
        background-color: #3C8FD4;
        border-color: #3C8FD4;
        color: #fff;
    }

#mozaik.inverse {
    background-color: #0073cf;
}

    #mozaik.inverse .logo > img {
        left: -999em;
        position: absolute;
    }

    #mozaik.inverse .logo {
        background: url(../img/logoMozaikPortailBlanc.png) no-repeat;
        display: inline-block;
        height: 40px;
        vertical-align: middle;
        width: 220px;
    }

.inverse button.btn, .inverse a.btn {
    background-color: #fff;
    border-color: #0073cf;
    color: #0073cf;
}

    .inverse button.btn:hover, .inverse a.btn:hover {
        background-color: #3C8FD4;
        color: #fff;
    }

.bandeauCharteFrancaise {
   background-color: #C5E4FF;
   text-align: center;
   padding: 10px 0;
   margin: 0;
   font-size: 0.9rem;
   position: relative;
   line-height: initial;
}

.bandeauCharteFrancaise em {
   font-style: italic;
}

/* Images */
#accueil .bg {
   position: relative;
   z-index: 0;
}

    #accueil .bg > div {
        background: url(../img/bgFamille.png) top center no-repeat;
        background-size: auto 100%;
        height: 300px;
        position: relative;
        -moz-transition: height linear .2s;
        -o-transition: height linear .2s;
        -webkit-transition: height linear .2s;
        transition: height linear .2s;
    }

        #accueil .bg > div::before, #accueil .bg > div::after {
            background-color: #87888A;
            content: '';
            display: block;
            height: 5px;
            position: absolute;
        }

        #accueil .bg > div::before {
            border-top-right-radius: 10px;
            top: -5px;
            width: calc(50% - 107px);
        }

        #accueil .bg > div::after {
            border-bottom-left-radius: 10px;
            bottom: -5px;
            right: 0;
            width: calc(50% + 419px);
        }

#accueil .bg1, #accueil .bg2 {
    background-color: #0073cf;
    height: 50%;
    position: absolute;
    width: 50%;
    z-index: -1;
}

#accueil .bg2 {
    bottom: 0;
    right: 0;
}

#accueil .outils {
    display: inline-block;
    margin: 20px 15px 35px;
    opacity: 0;
    padding-top: 115px;
    position: relative;
    text-align: center;
    vertical-align: top;
    width: 265px;
}

    #accueil .outils h2 {
        font-size: 1.2em;
        font-weight: 600;
        margin-bottom: 15px;
    }

        #accueil .outils h2::before {
            background-image: url(../img/modules.png);
            background-position: center center;
            background-repeat: no-repeat;
            background-color: #f0f0f0;
            border-radius: 50%;
            content: '';
            height: 100px;
            left: 50%;
            margin-left: -50px;
            position: absolute;
            top: 0;
            width: 100px;
        }

#accueil .agenda h2::before {
    background-position: -109px -3px;
}

#accueil .devoir h2::before {
    background-position: -321px -3px;
}

#accueil .absence h2::before {
    background-position: -3px -3px;
}

#accueil .resultat h2::before {
    background-position: -533px -3px;
}

#accueil .solde h2::before {
    background-position: -639px -3px;
}

#accueil .transport h2::before {
    background-position: -215px -3px;
}

#accueil .message h2::before {
    background-position: -427px -3px;
}

#accueil .anime > div.animate {
    -moz-transform: translateY(200px);
    -ms-transform: translateY(200px);
    -o-transform: translateY(200px);
    -webkit-transform: translateY(200px);
    transform: translateY(200px);
    -moz-animation: moveUp 0.65s ease forwards;
    -o-animation: moveUp 0.65s ease forwards;
    -webkit-animation: moveUp 0.65s ease forwards;
    animation: moveUp 0.65s ease forwards;
}

@-webkit-keyframes moveUp {
    100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes moveUp {
    100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

#accueil .mparent-en, #accueil .mparent-fr {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100%;
    content: '';
    height: 200px;
    width: 200px;
    left: 10px;
    bottom: 0;
    position: -webkit-sticky;
    position: fixed;
    z-index: 200;

    -webkit-tap-highlight-color: transparent; /* Permet d'enlever l'highlight bleu sur chrome quand on presse le lien. */
}

.mparent-en {
    background-image: url(../img/Pastille_mParent_en.png);
}

.mparent-fr {
    background-image: url(../img/Pastille_mParent_fr.png);
}

.mparent-en:hover {
    background-image: url(../img/Pastille_mParent_hover_en.png);
}

.mparent-fr:hover {
    background-image: url(../img/Pastille_mParent_hover_fr.png);
}

.mparent-en:active {
    background-image: url(../img/Pastille_mParent_pressed_en.png);
}

.mparent-fr:active {
    background-image: url(../img/Pastille_mParent_pressed_fr.png);
}

/* Pied de page */
footer {
   background-color: #37424a;
}
   #grics > div {
      display: flex;
      justify-content: space-between;
      width: 940px;
      margin: auto;
   }

      #grics > div > div {
         display: flex;
         align-items: center;
         flex-wrap: wrap;
         font-size: 0.8em;
         padding: 20px 0;
         width: 940px;
      }

    #grics p, #grics a {
        color: #fff;
        text-decoration: auto;
    }

    #grics p {
        margin-bottom: 0;
    }

   #grics .signature {
      display: inline-block;
      padding: 20px 0;
      white-space: nowrap;
   }

    #grics .logo {
        background: url(../img/logoGricsBlanc.png) no-repeat;
        display: inline-block;
        height: 40px;
        margin-left: 5px;
        position: relative;
        top: 5px;
        vertical-align: middle;
        width: 93px;
    }

        #grics .logo > img {
            left: -999em;
            position: absolute;
        }
/* Haut de page*/
#haut-page {
    background: url(../img/haut.png) no-repeat;
    bottom: 102px;
    display: inline-block;
    height: 40px;
    opacity: 0.8;
    position: fixed;
    right: 10px;
    text-decoration: none;
    width: 40px;
    z-index: 1;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

    #haut-page:hover, #haut-page:focus {
        opacity: 1;
    }

    #haut-page > span {
        display: none;
    }

    #haut-page.masque {
        opacity: 0;
        visibility: hidden;
    }
/* = Tablette - Portrait */
@media only screen and (min-width: 600px) and (max-width: 940px),only screen and (max-device-width : 1024px) and (orientation : portrait) {
   #mozaik > div, #grics > div, .contenu {
      width: 600px;
   }

    #mozaik.inverse .logo {
        background-size: 185px auto !important;
        background-position-y: 4px !important;
    }

    #mozaik .logo img {
        background-size: contain;
        width: 185px;
    }

    #accueil .bg > div {
        height: 200px;
    }

        #accueil .bg > div::before {
            width: calc(50% - 71px);
        }

        #accueil .bg > div::after {
            width: calc(50% + 279px);
        }

    #accueil .outils {
        width: 240px;
    }

    #accueil .mparent-en, #accueil .mparent-fr {
        background-size: 85%;
        left: 0;
        bottom: -15px;
    }
}
/* = Mobile - Paysage */
@media only screen and (min-width:501px) and (max-width: 599px), only screen and (max-device-width : 480px) and (orientation : landscape) {
   #mozaik > div, #grics > div, .contenu {
      width: 500px;
   }

    #accueil .bg > div {
        height: 170px;
    }

        #accueil .bg > div::before {
            width: calc(50% - 60px);
        }

        #accueil .bg > div::after {
            width: calc(50% + 238px);
        }

    #accueil .outils {
        width: 200px;
    }
}
/* = Mobile - Portrait */
@media only screen and (max-width: 500px), only screen and (max-device-width : 480px) and (orientation : portrait) {
    html, body {
        min-width: 310px;
    }

   #mozaik > div, #grics > div, .contenu {
      width: 310px;
   }

    #mozaik .option {
        margin-top: -60px;
        float: none;
    }

        #mozaik .option > div {
            display: inline-block;
            margin-top: 10px;
            float: none;
            text-align: center;
            width: 100%;
        }

    #accueil .bg > div {
        height: 100px;
    }

        #accueil .bg > div::before {
            width: calc(50% - 35px);
        }

        #accueil .bg > div::after {
            width: calc(50% + 140px);
        }

    section {
        margin-top: 20px;
    }

        section h1 {
            font-size: 2em;
        }

    #accueil .intro {
        text-align: left;
    }

    #accueil section p > br {
        display: none;
        text-align: left;
    }

    #accueil .outils {
        margin: auto 0;
    }
}
/* = Mobile - Peu importe l'orientation */
@media only screen and (max-width:599px), only screen and (max-device-width : 480px) {
    #mozaik.inverse .logo {
        background-size: 185px auto !important;
        background-position-y: 4px !important;
    }

    #mozaik .logo img {
        background-size: contain;
        width: 185px;
    }

    #accueil .bg > div::before, #accueil .bg > div::after {
        height: 3px;
    }

    #accueil .bg > div::before {
        top: -3px;
    }

    #accueil .bg > div::after {
        bottom: -3px;
    }

    #accueil .mparent-en, #accueil .mparent-fr {
        background-size: 85%;
        left: 0;
        bottom: -15px;
    }

    .mparent-en {
        background-image: url(../img/Pastille_mParent_mobile_en.png);
    }

    .mparent-fr {
        background-image: url(../img/Pastille_mParent_mobile_fr.png);
    }

    .mparent-en:hover {
        background-image: url(../img/Pastille_mParent_mobile_hover_en.png);
    }

    .mparent-fr:hover {
        background-image: url(../img/Pastille_mParent_mobile_hover_fr.png);
    }

    .mparent-en:active {
        background-image: url(../img/Pastille_mParent_mobile_pressed_en.png);
    }

    .mparent-fr:active {
        background-image: url(../img/Pastille_mParent_mobile_pressed_fr.png);
    }
}

/* = impression */
@media only print {
    .mparent-en, .mparent-fr {
        background: none;
        display: none;
    }

    #mozaik .logo {
        background: none;
    }

    #mozaik.inverse .logo > img {
        left: auto;
    }

    #mozaik .option {
        display: none;
    }

    #grics p, #grics a {
        color: #000;
    }

    #grics .logo {
        background: none;
    }

        #grics .logo > img {
            left: auto;
        }

    #accueil .intro {
        margin: 15px 5px;
    }

    #accueil .bg {
        display: none;
    }

    #accueil .anime > div.animate {
        transform: none;
        animation: none;
    }

    #accueil .outils {
        opacity: 1;
        padding-top: 0;
        text-align: left;
        margin: 0;
        width: auto;
    }
}