/* --------------------------------------------------
    
    KPAFUCAZONTAL
    
-------------------------------------------------- */

html,
body.lyt-ho,
.lyt-ho #wrap {
    height: 100%;
}


/* -------------------------
    Affichage horizontal
------------------------- */

body.lyt-ho {
    /* bloquage du scroll vertical */
    overflow: auto;
    overflow-x: scroll;
    overflow-y: hidden;
}

.lyt-ho #wrap {
    /* affiche tous les enfants inline sans retour à la ligne. */
    white-space: nowrap;
    /* évite les espaces entre les éléments enfants */
    font-size: 0;
}

.lyt-ho #head,
.lyt-ho #main,
.lyt-ho .page,
.lyt-ho .section {
    /* affichage en inline dans le parent */
    height: 100%;
    display: inline-block;
    vertical-align: top;
}

.lyt-ho .page {
    position: relative;
}

.lyt-ho .section {
    position: relative;

    -webkit-box-sizing:border-box;
       -moz-box-sizing:border-box;
            box-sizing:border-box;

    /* récupération de l'affichage */
    white-space: normal;

    /* récupération de la taile du texte (penser à mettre à jour si on modifie le font-size du body) */
    font-size: 14px; /* fallback lteIE8 */
    font-size: 1rem;
}


/* -------------------------
    Taille des pages
------------------------- */

/**
 * On définit la taille du #main avec la marge à gauche pour le menu fixe.
 */
.lyt-ho #main {
    width: 100%;
    padding-left: 60px;
    margin-left: -60px;
    -webkit-box-sizing:border-box;
       -moz-box-sizing:border-box;
            box-sizing:border-box;
}

/**
 * La dernière page fait au moins la taille du #main (sans les marges),
 * ce qui permet de pouvoir scroller et l'amener à gauche de l'écran.
 */
.lyt-ho .page:last-child {
    min-width: 100%;
}


/* -------------------------
    Pages plein écran
------------------------- */

/* page prenant tout l'écran (moins la taille du menu replié) */

.lyt-ho .page-full {
    width: 100%;
}

/* ces pages ne peuvent avoir qu'une seule section */

.lyt-ho .page-full > .section {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}





/* --------------------------------------------------

    OVERLAY

-------------------------------------------------- */

/**
 * Élément affiché par dessus le main lorsqu'on navigue dans le menu.
 */
.lyt-ho #overlay {
    width: 100%;
    height: 100%;
    display: block;

    z-index: 150;
    position: fixed;
    top: 0;
    left: 0;

    background-color: #fff; /* fallback lteIE8 */
    background-color: rgba(255, 255, 255, 0.8);
}


/* Transition : enter */

.lyt-ho #overlay.oj-enter {
    background-color: transparent;
    background-color: rgba(255, 255, 255, 0);
    -webkit-transition: background-color 350ms ease-in-out;
       -moz-transition: background-color 350ms ease-in-out;
            transition: background-color 350ms ease-in-out;
}

.lyt-ho #overlay.oj-enter.oj-enter-active {
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Transition : leave */

.lyt-ho #overlay.oj-leave {
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-transition: background-color 350ms ease-in-out;
       -moz-transition: background-color 350ms ease-in-out;
            transition: background-color 350ms ease-in-out;
}

.lyt-ho #overlay.oj-leave.oj-leave-active {
    background-color: transparent;
    background-color: rgba(255, 255, 255, 0);
}





/* --------------------------------------------------

    HEAD

-------------------------------------------------- */


.lyt-ho #head {
    padding: 0 0 0 180px;

    z-index: 200;
    position: relative;
}
.lyt-ho #head.animate {
    -webkit-transition: padding-left 350ms ease-in-out;
       -moz-transition: padding-left 350ms ease-in-out;
            transition: padding-left 350ms ease-in-out;
}
.lyt-ho #head.is-collapsed {
    padding-left: 60px !important;
}

.lyt-ho #head #logo {
    margin: 15px;
    -webkit-transition: opacity 350ms ease-in-out;
       -moz-transition: opacity 350ms ease-in-out;
            transition: opacity 350ms ease-in-out;
}
.lyt-ho #head.is-collapsed #logo {
    opacity: 0;
}


/* -------------------------
    .section
------------------------- */

.lyt-ho #head .section {
    width: 180px;
    
    z-index: 151;

    background-color: #000;
    border-left: 1px solid #4d4d4d;
}
.lyt-ho #head .section.is-closed {
    width: 0;
}
.lyt-ho #head .section.is-overflow {
    z-index: 101;
    border-color: #000;
    cursor: pointer;
}

.lyt-ho #head .section:after {
    content: '.';
    display: block;

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    font-size: 0;

    border-color: 2px solid #f00;

    -webkit-transition: background-color 350ms ease-in-out;
       -moz-transition: background-color 350ms ease-in-out;
            transition: background-color 350ms ease-in-out;

    pointer-events: none;
}
.lyt-ho .no-pointerevents #head .section:after {
    width: 0;
    height: 0;
}
.lyt-ho #head .section.is-overflow:after {
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}
.lyt-ho #head .section.is-half-overflow:after, #head.is-collapsed .section#root:after {
    background-color: rgba(0,0,0, 1);
}

.lyt-ho #head.is-collapsed .section#root:after {
    background-color: #000;
    background-color: rgba(0, 0, 0, 1);
    pointer-events: auto;
}
.lyt-ho .no-pointerevents #head .section.is-overflow .menu,
.lyt-ho .no-pointerevents #head.is-collapsed .section#root .menu {
    display: none;
}


/* -------------------------
    .section#root
------------------------- */

.lyt-ho #head .section#root {
    overflow: hidden;
    
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    border-left: none;
}
.lyt-ho #head.animate .section#root {
    -webkit-transition: width 350ms ease-in-out;
       -moz-transition: width 350ms ease-in-out;
            transition: width 350ms ease-in-out;
}

.lyt-ho #head .section#root {
    overflow-x: hidden;
    overflow-y: hidden;
}

.lyt-ho #head .section#root:hover {
	overflow-y: auto;	
}

.lyt-ho #head .section#root .menu {
    width: 180px; /* utile lorsque le header est collapsé */
}

.lyt-ho #head.is-collapsed .section#root {
    width: 60px;
    cursor: pointer;
}


/* --------------------------------------------------
    #left
-------------------------------------------------- */

/* -------------------------
    -logo
------------------------- */

.lyt-ho #left-logo {
    display: block;
    width: 60px;
    height: 60px;

    z-index: 200;
    position: fixed;
    top: 0;
    left: 0;
}
.lyt-ho #left-logo:after {
    content: ' ';
    width: 30px;
    height: 30px;
    display: block;

    position: absolute;
    top: 15px;
    left: 15px;

    background-image: url(img/logo.png);
    background-repeat: no-repeat;
    background-position: 0 0;
}

/* -------------------------
    -toggle
------------------------- */

.lyt-ho #left-toggle {
    display: block;
    width: 60px;
    height: 26px;
    
    z-index: 150;
    position: fixed;
    top: 60px;
    left: 0;
}
.lyt-ho #left-toggle:before,
.lyt-ho #left-toggle:after {
    content: ' ';
    display: block;
    width: 18px;
    margin-top: -7px;

    position: absolute;
    left: 15px;
    top: 50%;

    border-style: solid;
    border-color: #f2f2f2;
}
.lyt-ho #left-toggle:before {
    height: 10px;
    border-width: 2px 0;
}
.lyt-ho #left-toggle:after {
    height: 6px;
    border-width: 0 0 2px;
}
.lyt-ho #head.is-collapsed #left-toggle {
    z-index: 199;
}

/* -------------------------
    -arrow
------------------------- */

.lyt-ho #left-arrow {
    display: block;
    width: 16px;
    height: 28px;
    margin: -14px -8px;
    
    z-index: 102;
    position: fixed;
    top: 50%;
    left: 30px;

    background-image: url(img/arrows.png);
    background-repeat: no-repeat;
    background-position: 0 0;
}
.lyt-ho #head.is-collapsed #left-arrow {
    z-index: 199;
}

/* -------------------------
    backgd
------------------------- */

.lyt-ho #left-backgd {
    display: block;
    width: 60px;

    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    background-color: #000;
    background-color: rgba(0, 0, 0, 1);
}
.lyt-ho #head.is-collapsed #left-backgd {
    /*z-index: 198;*/
}


.lyt-ho #right {
    width: 0;
    right: 0;
    display: block;
    overflow: hidden;

    position: fixed;
    top: 0;
    bottom: 0;

    background-color: #000;
    background-color: rgba(0, 0, 0, 0.70);

    -webkit-transition: width 350ms ease-in-out;
       -moz-transition: width 350ms ease-in-out;
            transition: width 350ms ease-in-out;

    cursor: pointer;
}
.lyt-ho #right:after {
    content: ' ';
    display: none;
    width: 16px;
    height: 28px;
    margin: -14px -8px;

    position: fixed; /* POUR IE8 mettre absolute */
    top: 50%;
    right: 20px;
    
    background-image: url(img/arrows.png);
    background-repeat: no-repeat;
    background-position: -18px 0;
}

.lyt-ho #right.is-visible {
    width: 40px;
}
.lyt-ho #right.is-visible:after {
    display: block;
}




/* --------------------------------------------------

    MAIN

-------------------------------------------------- */

/* -------------------------
    .dgt-submenu
------------------------- */

.lyt-ho .dgt-submenu {
    width: 180px;
    padding: 0;
    overflow-y: hidden;
    overflow-x: hidden;
}

.lyt-ho .dgt-submenu:hover {
	overflow-y: auto;	
}


.lyt-ho .page .dgt-submenu,
.lyt-ho #head.animate .dgt-submenu {
    -webkit-transition: width 400ms ease-in-out;
       -moz-transition: width 400ms ease-in-out;
            transition: width 400ms ease-in-out;
}

.lyt-ho .dgt-submenu.is-closed {
    width: 0;
}

.lyt-ho .page .dgt-submenu.is-closed,
.lyt-ho #head.animate .dgt-submenu.is-closed {
    -webkit-transition: width 250ms ease-in-out;
       -moz-transition: width 250ms ease-in-out;
            transition: width 250ms ease-in-out;
}

.lyt-ho .dgt-submenu li {
    width: 180px; /* Impotant durant la transition */
    /*padding: 65px 15px 15px;*/

    /*position: absolute;
    top: 0;
    right: 0;
    bottom: 0;*/
}
.lyt-ho .dgt-submenu {
    padding-top: 65px;
}

/* --------------------------------------------------
    PAGES
-------------------------------------------------- */

/* Transition : enter * /

.lyt-ho .page.oj-enter {
    opacity: 0;
    -webkit-transition: opacity 600ms ease-out;
}

.lyt-ho .page.oj-enter.oj-enter-active {
    opacity: 1;
}

/* Transition : leave * /

.lyt-ho .page.oj-leave {
    opacity: 1;
    -webkit-transition: opacity 400ms ease-in;
}

.lyt-ho .page.oj-leave.oj-leave-active {
    opacity: 0;
}


/* --------------------------------------------------
    SCROLL OVERLAY
-------------------------------------------------- */

.lyt-ho #scroll-overlay {
    height: 100%;
    display: block;

    pointer-events: none;

    position: absolute;
    top: 0;
    left: 0;

    background-color: #eee;
    background-color: rgba(0,0,0,0.2);
}
.lyt-ho #scroll-overlay.oj-leave {
    -webkit-transition: background-color 400ms ease-in-out;
       -moz-transition: background-color 400ms ease-in-out;
            transition: background-color 400ms ease-in-out;
}
.lyt-ho #scroll-overlay.oj-leave-active {
    background-color: transparent;
}











/* --------------------------------------------------
    
    CONTENT
    
-------------------------------------------------- */

.lyt-ho h1,
.lyt-ho li {
    -webkit-column-break-inside: avoid;
       -moz-column-break-inside: avoid;
            column-break-inside: avoid;
}



.lyt-ho .ending {
    height: 100%;
    display: block;
    position: relative;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;

    -webkit-column-break-before: always;
       -moz-column-break-before: always;
            column-break-before: always;

    background-repeat: no-repeat;
    background-position: right bottom;
    margin-right: -30px;
}

/* --------------------------------------------------
    
    LISTS SCROLL BARS
    
-------------------------------------------------- */

/*.lyt-ho .dgt-list ul {
	overflow-y:hidden;
}

.lyt-ho .dgt-list:hover ul {
	overflow-y:auto;
}*/
