/* applique un model de rendu naturel à tous les éléments, tout en permettant aux composants de changer */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
 
.clearfix:after {
    clear: both;
}

/*  $Couleurs principales  */

.home h1,
.home h2,
.main-nav > li > a:not(.pw-link):link,
.main-nav > li > a:not(.pw-link):visited,
.btn.games-link {
    color: #ffffff;
	text-decoration:none;
	font-size: 17px;
}

.main-footer a:link,
.main-footer a:visited,
.main-footer a {
    color: #ffffff;
}

.main-footer .facebook path,
.main-footer .twitter path,
.main-footer .youtube path,
.main-footer .youtube polygon,
.main-footer .fdj-mobile path,
.main-footer .help path,
.main-footer .newsletter path {
    fill: #ffffff;
}

.home h3,
.main-header .user-logo,
.btn.games-link:hover,
.btn.games-link:focus,
.btn.games-link:active,
.main-nav > li a:not(.pw-link):hover,
.main-nav > li a:not(.pw-link):focus,
.main-nav > li a:not(.pw-link):active,
.game-highlight,
.links a:link,
.online-games,
.draw-games-list a,
.instant-games-list a,
.main-footer a:hover,
.main-content-footer,
.main-content-footer a:link,
.main-content-footer a:visited {
    color: #034997;
}

.links a:visited {
    color: #63237f;
}

.btn.main-btn,
.user-block .avatar { background-color: #034997; }

.btn,
a.btn,
.big-game h1,
.big-game h2,
.big-game .date,
.draw-games,
.game h1,
.game h2,
.btn.main-btn,
.games-list > li > a,
.main-nav .games-list > li > a:hover { color: #fff; }

.cookie a { color: #000; }

.pw-link { color: #62882e; }

.btn.interest-btn {
    background-color: #e25812;
}

.btn.interest-btn:hover { background-color: #f0651e; }

.btn.attractive-btn { background-color: #d30000; }

/* SVG */

.facebook:hover path {
    fill: #344C8A
}

.twitter:hover path {
    fill: #469AE9
}

.youtube:hover path,
.youtube:hover polygon {
    fill: #B30017
}

.fdj-mobile:hover path {
    fill: #124B97
}

.help:hover path,
.newsletter:hover path {
    fill: #034997
}

.responsible-game #responsible {
    opacity: 0;
}

.responsible-game:hover #responsible {
    opacity: 1;
}

/* Tailles de polices */

.btn { font-size: 18px; }

.home h1,
.main-nav { font-size: 16px; }

.home h2,
.home h3 { font-size: 14px; }

.main-header .user-logo { font-size: 13px; }

.play-scan .duration,
.main-content-footer,
.main-footer { font-size: 12px; }

.cookie { font-size: 10px; }

/*  Règles typographiques
    la page et la barre navigation utilise trois variations
    d'une même police Ubuntu :
        regular - font-weight: 400;
        medium - font-weight: 500;
        bold - font-weight: 700;
  */

.home { font-family: 'Ubuntu', sans-serif; }

.home h4,
.draw-games-list a,
.instant-games-list a { font-weight: 400; }

.btn,
.home h1,
.home h2,
.home h3,
.main-nav,
.main-footer { font-weight: 500; }

.main-header nav a,
a.btn,
.main-content-footer a,
.main-footer a { text-decoration: none; }

.btn {
    background-color: transparent;
    border:1px solid transparent;
    padding: 4px 5px;
}

.btn,
.user-block .avatar,
.big-game,
.draw-games .game,
.online-games .carousel img,
.scratch-games img { border-radius: 5px; }

.next-btn { position: relative; }

.next-btn:after {
    content:'';
    background: url(../img/picto/right-arrow.png) 0 50% no-repeat;
    position: absolute;
    bottom: 0;
    right: 10px;
    top: 0;
    width: 7px;
}

/* Layout */

.home {
    width: 980px;
}

.home,
.main-nav {
    margin-left: auto;
    margin-right: auto;
}

.cookie,
.arjel,
.main-nav { text-align: center; }

.user-logo .user-since-bet { text-align: right; }

.games-link + ul { text-align: left; }

.cookie img { display: block; }

.games-list,
.draw-games-list,
.instant-games-list { display:none; }

.main-nav > li,
.btn,
.logo-welcome > a,
.logo-welcome p,
.main-nav .instant-games-list a,
.draw-games .game,
.online-games .carousel,
.online-games .gain-info {
    display: inline-block;
    vertical-align: top;
}

.user-block,
.user-logo .user-btn,
.user-logo .attractive-btn,
.user-logo .main-btn,
.user-logo .user-since-bet,
.user-logo .user-balance { float: right; }

.user-logo .logo-welcome,
.user-block .avatar { float: left; }

.scratch-games .carousel img,
.avatar img {
    height: auto;
    max-width: 100%;
}

/*** $Main Header ***/

.cookie {
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 5px;
    padding-top: 5px;
}

.main-header > nav {
    padding-top: 17px;
    padding-left: 20px;
    padding-right: 20px;
}

.main-header { margin-bottom: 7px; }

.logo-welcome > a {
    margin-top: -7px;
    margin-right: 20px;
}

.user-logo p {
    margin-top: 0;
    margin-bottom: 0;
}

.user-logo .user-since-bet,
.user-logo .user-balance { padding-right: 10px; }

.user-logo .user-since-bet { border-right:1px solid #7b7b7b; }

.user-logo .user-balance { padding-left: 10px; }

.user-block { margin-left: 20px; }

.user-block .avatar {
    margin-right: 10px;
    width: 35px;
}

.user-block .play-scan {
    position: relative;
    width: 180px;
}

.play-scan:after {
    background-color: #7b7b7b;
    border-radius:50%;
    content: '';
    position: absolute;
    right: 9px;
    top: 0;
    height: 13px;
    width: 13px;
}

.play-scan.valid:after { background-color: #0da00d; }

.play-scan.invalid:after { background-color: #a00d0d; }

.main-nav {
    margin-top: 12px;
    margin-bottom: 0;
    position: relative;
	float:left;
	right: 165px;
    top: 20px;
}

.main-nav > li {
    margin-left: 12px;
    margin-right: 12px;
}

.user-logo .attractive-btn { margin-right: 20px; }

.main-nav .games-link {
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 6px;
    padding-left: 0;
    padding-right: 15px;
    position: relative;
}

.main-nav > li,
.main-nav .games-link { vertical-align: baseline; }

.main-nav > li:first-child { position: relative; }

.main-nav:before,
.main-nav:after,
.main-nav .games-link:before,
.main-nav .games-link:after {
    content: '';
    position: absolute;
}

.main-nav:before,
.main-nav:after {
    top: 0;
    width: 45px;
    bottom: -2px;
}

.ie-9 .main-nav:before,
.ie-9 .main-nav:after { filter: none; }

.main-nav > li > a,
.main-nav .games-link:before,
.main-nav .games-link:after,
.btn.interest-btn,
.scratch-games .tagline,
.main-footer a,
.main-footer a path,
.main-footer a polygon { transition: all .3s; }

.main-nav .games-link:before {
    bottom: -1px;
    height: 4px;
    width: 100%;
}

.main-nav .games-link:after {
    top: 8px;
    right: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 7px solid transparent;
}

.main-nav .games-link:hover:before,
.main-nav .games-link:focus:before,
.main-nav .games-link:active:before { background-color: #034997; }

.main-nav .games-link:hover:after,
.main-nav .games-link:focus:after,
.main-nav .games-link:active:after { border-top-color: #034997; }

.main-nav .games-link:hover + .games-list,
.main-nav .games-link:hover + .games-list { display: block; }

.main-nav .games-list,
.main-nav .draw-games-list,
.main-nav .instant-games-list {
    position: absolute;
    z-index: 10;
}

.main-nav .games-list {
    left: -25px;
    top:calc(100% + 2px);
}

.main-nav .games-list > li {
    background-color: #184896;
    width: 205px;
}

.main-nav .games-list > li:hover { background-color: #1265c1; }

.main-nav .games-list > li + li { border-top: 1px solid #fff; }

.main-nav .games-list a {
    display: block;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 25px;
}

.main-nav .games-list > li:first-child {
    border-top-left-radius: 10px;
    position: relative;
}

.main-nav .draw-games-list { width: 240px; }

.main-nav .instant-games-list { width: 315px; }

.main-nav .draw-games-list,
.main-nav .instant-games-list {
    background-color: #f8f8f8;
    border: 1px solid #034997;
    border-bottom-right-radius: 10px;
    height: 144px;
    left: 100%;
    top: 0;
}

/*.games-list .next-btn:hover + ul { display: block; }*/

.main-nav .draw-games-list li:nth-child(even),
.main-nav .instant-games-list li:nth-child(even) { background-color: #e5e4e4; }

.main-nav .instant-games-list li:nth-child(even) a { padding-top: 6px; }

.main-nav .instant-games-list a {
    display: inline-block;
    width: 50%;
}

.main-nav .instant-games-list a + a { border-left: 1px solid #034997; }

/*** $Fin Main Header ***/

/*** $Main Content ***/

.main-content {
    padding-bottom: 47px;
    padding-left: 27px;
    padding-right: 27px;
}

.big-game {
    background: url(../img/temp/em-big.jpg) 0 0 no-repeat;
    background-size: cover;
    position: relative;
    padding: 21px 19px;
    height: 264px;
    width: 926px;
}

.big-game h1,
.big-game h2,
.big-game .date { margin-top: 0; }

.big-game h1 {
    font-size: 31px;
    margin-bottom: 4px;
}

.big-game h2 {
    font-size: 38px;
    margin-top: 0;
    margin-bottom: 0px;
}

.big-game h2 small {
    margin-left: 8px;
    font-size: 13px;
    display: inline-block;
    font-weight: 700;
    width: 158px;
}

.big-game .date {
    font-size: 24px;
    font-weight: 500;
}

.big-game .interest-btn {
    position: absolute;
    bottom: 21px;
    right: 29px;
    font-size: 23px;
}

.big-game .mandatory,
.draw-games .mandatory {
    bottom: 5px;
    color: #fff;
    font-size: 11px;
    margin-bottom: 0;
    margin-top: 0;
    overflow: hidden;
    position: absolute;
}

.big-game .mandatory,
.draw-games .mandatory,
.big-game .mandatory small,
.draw-games .mandatory small {
    white-space: nowrap;

}

.big-game .mandatory {
    left: 19px;
    right: 19px;
}

.draw-games .mandatory {
    left: 16px;
    right: 16px;
}

.home h2,
.home h3 {
    margin-bottom: 10px;
    margin-top: 10px;
}

/* $Online games */

.online-games .carousel { margin-right: 15px; }

.carousel .list-unstyled,
.online-games .gain-info {
    margin-bottom: 0;
    margin-top: 0;
}

.online-games .gain-info {
    border: 2px solid rgba(158, 158, 158, .45);
    border-radius: 5px;
    padding-top: 14px;
    position: relative;
    height: 87px;
    width: 298px;
}

.online-games .gain-info:before,
.online-games .gain-info:after,
.online-games .bx-wrapper:before {
    content: '';
    position: absolute;
}

.online-games .gain-info:before,
.online-games .gain-info:after {
    background-color: #fff;
    left: 14px;
    right: 14px;
    height: 14px;
}

.online-games .gain-info:before { top: -2px; }

.online-games .gain-info:after { bottom: -2px; }

.online-games .gain-info ul {
    margin-top: 0;
}

.online-games .bx-wrapper:before {
    border-top:8px solid transparent;
    border-bottom:7px solid transparent;
    border-left: 12px solid #034997;
    left: 16px;
    top: calc(50% - 7px);
    height: 0;
    width: 0;
}

.online-games .gain-info .bx-wrapper {
    background: white;
    margin: 0px -2px!important;
    padding-left: 40px;
    padding-right: 30px;
}

/* $Draw games */

.draw-games .game {
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 18px 16px;
    position: relative;
    height: 160px;
    width: 442px;
}

.draw-games .em-game {
    background-image: url(../img/temp/em-pub.jpg);
    margin-right: 41px;
}

.draw-games .loto-game {
    background-image: url(../img/temp/loto-pub.jpg);
    text-align: right;
}

.draw-games .game h1,
.draw-games .game h2,
.draw-games .game .date { margin-top: 0; }

.draw-games .game h1 {
    font-size: 24px;
    margin-bottom: 3px;
}

.draw-games .game h2 {
    font-size: 29px;
    margin-bottom: 0px;
}

.draw-games .em-game h2 small {
    margin-left: 8px;
    font-size: 10px;
    display: inline-block;
    font-weight: 700;
    vertical-align: middle;
    width: 119px;
}

.draw-games .game .date {
    font-size: 19px;
    font-weight: 500;
}

.draw-games .game .interest-btn {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-size: 17px;
}

/* $Scratch games */

.scratch-games ul { margin-top: 0; }

.scratch-games .carousel a,
.scratch-games .carousel img { display: block; }

.scratch-games .carousel a {
    position: relative;
}

.scratch-games .tagline {
    background-color: rgba(0,0,0,.5);
    color: #fff;
    opacity: 0;
    display: table;
    font-size: 12px;
    position: absolute;
    text-align: center;
    height: 118px;
    width: 100%;
}

.scratch-games .tagline,
.tagline .text {
    vertical-align: middle;
}

.tagline .text {
    display: table-cell;
}

.scratch-games .tagline strong {
    display: block;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.scratch-games .carousel a:hover .tagline {
    opacity: 1;
}

.game-highlight {
    display: table;
    font-size: 11px;
}

.game-highlight > li {
    display: table-cell;
}

.cross-links > li {
    display: inline-block;
    margin-right: 10px;
}

.game-highlight > li { width: 30%; }

.game-highlight h3 {
    font-size: 16px;
    font-weight: 700;
}

.game-highlight .links {
    font-size: 13px;
    font-weight: 700;

}

.game-highlight .links {
    text-align: center;
}

.game-highlight .links > li {
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
}

.main-content-footer .fast-access,
.main-content-footer .restrict,
.main-content-footer .mention {
    display: inline-block;
    vertical-align: top;
}

.restrict {
    border-right: 2px solid gray;
    width: 50%;
    margin-right: 10px;
    padding-right: 10px;
}

.restrict p {
    margin-bottom: 0;
}

.mention {
    width: 48%;
    margin-top: 0;
}

h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.cards {
    text-align: right;
}

.cards > img + img {
    margin-left: 5px;
}

.main-content-footer .fast-access { clear: both; }

.main-content-footer .fast-access + .fast-access { margin-left: 20px; }

.main-content-footer .fast-access li:first-child { margin-bottom: 5px; }

.main-content-footer .fast-access li:first-child > a {
    text-decoration: underline;
}

.main-content-footer .fast-access li + li {
    font-size: 11px;
}

/*** $Fin Main Content ***/

/*** $Main Footer ***/

.main-footer {
    background-color: #fff;
    border-top: 2px solid #c1c1c1;
    left:0;
    right: 0;
    bottom: 0;
    padding-bottom: 10px;
    padding-top: 10px;
    position: fixed;
    z-index: 10
}

.main-footer .footer-links {
    display: block;
    font-size: 0;
    margin: 0 auto;
    width: 926px;
}

.main-footer .footer-links > li { font-size: 12px; }

.main-footer .footer-links > li,
.main-footer a,
.main-footer svg {
    display: inline-block;
    vertical-align: middle;
}

.main-footer .footer-links > li:nth-child(-n+7):not(:first-child) { margin-left: 5px; }

.main-footer .footer-links .rules,
.main-footer .footer-links .restricted { margin-left: 20px; }

.main-footer .newsletter svg { margin-right: -4px; }

.main-footer .fdj-mobile svg,
.main-footer .responsible-game svg,
.main-footer .help svg { margin-right: 9px; }

.main-footer svg {
    width: 25px;
}





/*** $Fin Main Footer ***/