﻿body
{
    color: blue;
}

h1 
{
    color:red;
}

h2 
{
    color: black;
}

span 
{
    color:darkslategrey;
}

#UIE {color:blue;}

#hello {visibility:visible;}
#goodbye {visibility:hidden;}

/* CODE POUR TUILE */

div#home[role="main"] ul#tiles-panel li {
    display: inline-block;
    list-style: none outside none;
    margin: 0 8px 8px 0;
    vertical-align: top;
}

ul {
    list-style-type: none;
}

.tile {
    -moz-box-sizing: border-box;
    background: none repeat scroll 0 0 #F0F1F4;
    border-bottom: 3px solid #7B4F9D;
    display: inline-block;
    height: 370px;
    text-decoration: none;
    vertical-align: top;
    width: 370px;
}

    .tile h1 {
        color: #253340;
        display: block;
        font-family: "Segoe UI",Segoe,"Trebuchet MS",Tahoma,Geneva,sans-serif;
        font-size: 20px;
        font-weight: 500;
        line-height: 148%;
        margin: 0;
        padding: 10px;
        text-decoration: none;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        text-align: center;
    }

    .tile img {
        left: 8%;
        margin: 5px 0 10px 5px;
        position: relative;
        max-width:275px;
    }

    .tile p {
        color: #6A747E;
        font-family: "Segoe UI",Segoe,"Trebuchet MS",Tahoma,Geneva,sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 148%;
        margin: 0;
        padding: 0 10px;
        text-align: center;
    }

/* CODE POUR RESPONSIVITE */

@media only screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    div[role=main]#home ul#tiles-panel li {
        display: block; /*passage en block pour affichage les uns en dessous des autres */
        position: relative;
    }

    /*Tiles*/
    ul {
        padding: 0;
    }

    .tile {
        width: 100%;
        height: 85px;
        display: block;
        border-bottom: 0px;
        border-left: 3px solid #7B4F9D;
        margin-bottom: 5px;
    }

        .tile h1 {
            padding: 0;
            position: absolute;
            float:inline-start;
            width: 83%;
            left: 7px;
            margin-left: 80px;
            /*right: 1%;*/
        }

        .tile h1, .tile p {
            text-overflow: ellipsis;
        }

        .tile img {
            position: relative;
            z-index:1;
            float:left;
            top: 2px;
            left: 5px;
            width: 75px;
            max-height: 75px;
            margin: 0 1px;
        }
        .tile p {
            padding-top: 50px;
            margin-left: 90px;
            /*align-items: center;*/
        }
}