@gris: #666666; @bleu: #1d9bd7; @vert: #94c121; @red: #d4145a; @font-face { font-family: 'FuturaBook'; src: url('../font/futura_book-webfont.eot'); src: url('../font/futura_book-webfont.eot?#iefix') format('embedded-opentype'), url('../font/futura_book-webfont.woff') format('woff'), url('../font/futura_book-webfont.ttf') format('truetype'), url('../font/futura_book-webfont.svg#FuturaBook') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'FuturaLight'; src: url('../font/futura_light-webfont.eot'); src: url('../font/futura_light-webfont.eot?#iefix') format('embedded-opentype'), url('../font/futura_light-webfont.woff') format('woff'), url('../font/futura_light-webfont.ttf') format('truetype'), url('../font/futura_light-webfont.svg#FuturaLight') format('svg'); font-weight: normal; font-style: normal; } /*--- functions ---*/ .radius(@tl:5px,@tr:5px,@br:5px,@bl:5px){ border-radius: @tl @tr @br @bl; -moz-border-radius: @tl @tr @br @bl; -webkit-border-radius: @tl @tr @br @bl; -o-border-radius: @tl @tr @br @bl; } .shadow(@x:0, @y: 2px, @s: 2px, @c:#d4d4d4){ text-shadow: @x @y @s @c; } .box_shadow(@x:0, @y:0, @s:5px, @c:#517f95){ box-shadow: @x @y @s @c; -moz-box-shadow: @x @y @s @c; -webkit-box-shadow: @x @y @s @c; } .rotate(@rad:5deg){ -moz-transform: rotate(@rad); -webkit-transform: rotate(@rad); } .gradient(@top: #a5a29b , @end: #4b4944){ background-image: -moz-linear-gradient(top, @top, @end); background-image: -webkit-gradient(linear, center top, center bottom, from(@top), to(@end)); background-image: -o-linear-gradient(top, @top, @end); background-image: linear-gradient(top, @top, @end); } /*--- global ---*/ .font { font-family: "FuturaBook", "Helvetica Nueue", Arial, sans-serif; } .fontbold { font-family: "FuturaBold", "Helvetica Nueue", Arial, sans-serif; } .clearfix { &:after { clear: both; content: ' '; display: block; font-size: 0; line-height: 0; visibility: hidden; width: 0; height: 0; } } .fleft { display: block; float: left; } .fright { display: block; float: right !important; } a { color: @gris; &:hover { color: @bleu; } } .big { color: @vert; text-shadow: 0 1px 1px lighten(@gris,45%); font-size: 4em; font-family: "FuturaLight", 'Helvetica Neue', Arial, sans-serif; line-height: 50px; margin: 30px 0; } h1 { .font; font-weight: normal; font-size: 2em; text-transform: uppercase; color: @bleu; text-shadow: 0 1px 1px lighten(@gris,40%); margin-bottom: 35px; } h2 { font-size: 1.2em; color: @vert; margin-bottom: 15px; .font; text-transform: uppercase; font-weight: normal; } .red { color: @red; } .red2 { color: red; } .bleu { color: @bleu; } p { margin-bottom: 15px; &.nomargin { margin: 0;} } .vert { color: @vert; } strong { font-weight: normal; .fontbold; } sup { font-size: .7em; vertical-align: super; } .button { background: @bleu; .fleft; .radius(3px,3px,3px,3px); .box_shadow(1px,1px,2px,lighten(@gris,10%)); .gradient(lighten(@bleu,20%), @bleu); color: #fff; padding: 5px 10px; text-decoration: none; &:hover { color: @gris; } } .button_vert { background: @vert; .gradient(lighten(@vert,20%), @vert); } .liste { padding-left: 20px; margin-bottom: 15px; li { margin: 0 0 5px 0; &:before { content: '• '; color: @vert; } ul { padding: 10px 0 10px 50px; li { &:before { content: '+ '; color: @bleu; } } } } } /*--- FORM ---*/ form { position: relative; z-index: 1; fieldset { position: relative; z-index: 1; .main_contener_form { .fleft; width: 400px; .clearfix { margin-bottom: 10px; label { width: 105px; text-align: right; .fleft; padding: 0 10px 0 0; line-height: 27px; .obligatoire { color: red; } } input, textarea { width: 270px; .fleft; .radius(3px, 3px ,3px, 3px); background: lighten(@gris, 60%); border: none; height: 15px; padding: 5px; .font; font-size: 1em; color: #000; border: 1px solid lighten(@gris, 45%); &:hover { border: 1px solid lighten(@gris, 30%); } &:focus { border: 1px solid @bleu; } } textarea { height: 236px; } button { border: none; cursor: pointer; .font; font-size: 17px; .fright; position: relative; z-index: 1; } &.contener_captcha { position: relative; float: right; z-index: 2; label { width: inherit; cursor: help; border-bottom: 1px dotted lighten(@gris,50%); padding: 3px 0 0 0; margin: 0 10px 0 0; line-height: inherit; } .explain_content { position: fixed; z-index: 999; .radius; padding: 10px; width: 250px; background: lighten(@gris, 60%); border: 1px solid lighten(@gris,40%); display: none; p { margin: 0;} } input { width: 50px; } } .message_error { display: block; color: red; text-align: right; clear: both; } } } } } .notify { .radius; margin-bottom: 20px; img { .fleft; width: 50px; margin: 0 20px; } p { padding: 10px 0 0 0; margin: 0; } &.valide { width: 400px; border: 1px solid @vert; background: lighten(@vert,40%); color: darken(@vert,10%); } } /*--- GLOBAL ---*/ body { background: url('../images/bg/bg_body.png'); .font; font-size: 13px; line-height: 1.3em; color: @gris; } #wrapper { width: 960px; margin: 10px auto; } #contener { .radius; background: #fff; .box_shadow; background: #fff url('../images/bg/bg_contener.png') repeat-x bottom; #content { padding: 20px; } } header { .clearfix; padding-top: 20px; position: relative; z-index: 2; h1 { .fright; margin: 0 40px 0 0; a { display: block; text-indent: -9999px; width: 148px; height: 109px; background: url('../images/logo/logo.png') no-repeat; } } nav { .fleft; margin: 20px 0 0 0; position: relative; #decroche { display: block; height: 62px; width: 12px; position: absolute; top: 0; left: -12px; background: url('../images/bg/bg_nav.png') 0 0; } ul { .clearfix; li { .fleft; margin: 0; a { display: block; height: 62px; background: url('../images/bg/bg_nav.png') 0 0; text-indent: -9999px; } &#nav_0 { a { width: 108px; background-position: -11px 0; &:hover, &.active { background-position: -11px -66px; } } } &#nav_1 { a { width: 154px; background-position: -118px 0; &:hover, &.active { background-position: -118px -66px; } } } &#nav_2 { a { width: 178px; background-position: -272px 0; &:hover, &.active { background-position: -272px -66px; } } } &#nav_3 { a { width: 110px; background-position: -450px 0; &:hover, &.active { background-position: -450px -66px; } } } &#nav_4 { a { width: 170px; background-position: -560px 0; &:hover, &.active { background-position: -560px -66px; } } } } } } } #box { margin-top: 20px; ul { .clearfix; li { height: 192px; width: 225px; .fleft; .radius; .box_shadow; background: #fff url('../images/bg/bg_box.png') repeat-x; margin-left: 20px; position: relative; &:first-child { margin: 0; } h2 { font-size: 1.6em; text-transform: uppercase; line-height: 1em; background: url('../images/bg/bg_box_titre.png') no-repeat; height: 63px; margin-left: -14px; margin-top: 15px; padding-left: 100px; span { display: block; .fleft; margin-top: 8px; } } p { padding: 0 15px; } .button { position: absolute; right: 10px; bottom: 10px; } &#box_0 { h2 { color: @bleu; } } &#box_1 { h2 { background-position: 0 -67px; } a { .button_vert; } } &#box_2 { h2 { background-position: 0 -133px; color: @bleu; span { margin-top: 17px; } } } &#box_3 { h2 { background-position: 0 -200px; } a { .button_vert; } } } } } footer { p#legal { color: #fff; text-align: center; margin: 25px 0; font-size: 0.9em; a { color: #fff; text-decoration: none; &:hover { color: @gris; } } } } /*--- CONTACT ---*/ #contact_form { .fleft; margin-top: 10px; } #contact_corrd { margin: 10px 0 0 40px; width: 450px; .fleft; #contact_adrr { background: lighten(@gris,50%); width: 430px; padding: 10px 20px; color: darken(@gris,10%); .radius; margin-bottom: 20px; p { margin: 0; } } #contact_equipe { .clearfix; p { .fleft; width: 225px; } } #mymap { width: 450px; height: 317px; border: 10px solid lighten(@gris,50%); } } /*--- ABOUT ---*/ #about { background: url('../images/bg/bg_society.png') no-repeat 650px center; width: 100%; } /*--- SERVICE ---*/ #service { background: url('../images/bg/bg_service.png') no-repeat 600px 650px; .big { .fright; margin: 0; } img { display: block; margin: 20px auto 50px auto; border: 1px solid lighten(@gris, 50%); .radius(10px,10px,10px,10px); .box_shadow(0,0,5px,lighten(@gris, 40%)); background: #fff; } } /*--- ACTU ---*/ #actu { article { border-bottom: 1px dotted lighten(@gris,50%); padding: 20px 0; .clearfix; .actu_content { position: relative; padding: 15px 0 0 0; .fleft; width: 590px; h2 { background: @vert; .radius; color: #fff; .fleft; padding: 10px 20px; } p { .fleft; } .date { display: block; clear: both; font-size: 0.8em; color: @vert; margin: 10px 0; } } .contener_img { .fright; position: relative; z-index: 2; background: lighten(@gris,50%); padding: 10px; .radius; .box_shadow(1px,1px, 2px, fadeOut(#000,60%)); img { display: block; } } } } /*--- pagination ---*/ .paginate { .fright; margin-top: 20px; li { float: left; } a, span { display: block; float: left; margin: 3px; height: 20px; min-width: 20px; text-decoration: none; text-align: center; line-height: 21px; padding: 3px; } a { .button; padding: 3px; &.active, &:hover { .button_vert; } } span { color: lighten(@gris,25%); .radius; &.active { border: none; .button; .button_vert; padding: 3px; } } }