

/*GENERAL----------------------*/

:root {
    --jaune: #ef6;
    --jaunec: #f6ffb1;
    --cyan5: #044;
    --cyan4: #066;
    --cyan3: #088;
    --cyan2: #0aa;
    --cyan1: #0cc;
    --cyan0: #0ee;
    --cl: clw, sans-serif;
    --ms: msw, sans-serif;
    --ha: hdw, serif;
    --col: (50vw - 160px);
}

@font-face {
    font-family: 'msw';
    font-weight: 100 900;
    src: url('font/montserrat-VF.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'clw';
    src: url('font/clear.woff') format('woff');
}

@font-face {
    font-family: 'hdw';
    src: url('font/hadfield.woff2') format('woff2');
}

* {
    margin: 0;
    box-sizing: border-box;
    outline: none;
}

.outline:focus {
    outline: 2px dotted var(--cyan3);
}

footer .outline:focus {
    outline: 2px dotted #fff;
}

body {
    font: 1.2em/1.4em var(--cl);
    color: var(--cyan5);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--cyan2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

::selection {
    background: var(--jaune);
    color: var(--cyan5);
}

sup {
    display: inline-block;
    margin-top: -6px;
    position: relative;
    top: 2px;
    font-size: .7em;
}

img {
    max-width: 100% !important;
    display: block;
    color: rgba(0,0,0,.2);
}

.inline {
    display: inline;
    vertical-align: middle;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,.2);
    margin: 30px 0;
}

table {
    width: 100%;
    text-align: left;
}

ul {
    padding: 0;
}

li {
    list-style: none;
}

.num {
    text-align: right;
}

#page {
    flex: 1;
}

/* .centre {
    width: 980px;
    margin: 0 auto;
} */

.flex {
    display: flex;
    flex-wrap: wrap;
}

.ancre {
    position: relative;
    top: -30px;
}

input[type=submit],
main button,
.bouton {
    border: .2em solid var(--cyan2);
    background: none;
    color: var(--cyan2);
    font: 700 1em var(--ms);
    text-transform: uppercase;
    padding: .37em 1.2em .3em;
    cursor: pointer;
    transition: background .4s, color .4s;
    display: inline-block;
    text-align: center;
}

input[type=submit]:hover,
main button:hover,
.bouton:hover {
    background: var(--cyan2);
    color: #fff;
    text-decoration: none;
}

/*INPUTS----------------------*/
/* input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
    font: 1.3em clear-web, sans-serif;
    background: #fdc;
    color: #316;
    padding: 8px 15px;
    border: 0;
    transition: background .4s;
    width: 100%
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus {
    background: #ffece3;
}

select,
label {
    cursor: pointer;
}

label {
    display: block;
}

input[type=checkbox] {
    margin-bottom: 8px;
}

select {
    background: #fdc;
    font: 1em clearweb, sans-serif;
    color: #316;
    width: 450px;
    padding: 10px 10px;
    border: none;
    transition: .3s;
    cursor: pointer;
}

select:focus,
select:hover {
    background: #fed;
}

textarea {
    width: 100% !important;
    min-height: 200px;
}

#formulaire {
    max-width: 1000px;
}

#formulaire input[type=submit] {
    width: 100%;
}

#formulaire .col {
    width: 50%;
    float: left;
}

#formulaire u {
    font: 1em loveloweb, sans-serif;
    display: block;
    margin-bottom: 3px;
    text-decoration: none;
} */

.ouinon {
    margin-bottom: 20px;
    padding-left: 70px;
    font-size: 1.2em;
    line-height: 1.5em;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.ouinon input[type=checkbox] {
    opacity: 0;
    position: absolute;
}

.ouinon span {
    position: absolute;
    top: 0px;
    left: 0;
    display: inline-block;
    height: 28px;
    width: 66px;
    background: #f55;
    border-radius: 15px;
    transition: background .3s;
}

.ouinon span::before {
    content: 'NON';
    font-size: .8em;
    display: block;
    position: absolute;
    left: 27px;
}

.ouinon span::after {
    content: '';
    display: block;
    position: absolute;
    top: 3px;
    left: 3px;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #ddd;
    transition: transform .3s;
}

.ouinon input:checked~span {
    background: #4b4;
}

.ouinon input:checked~span::before {
    content: 'OUI';
    left: 7px;
}

.ouinon input:checked~span::after {
    transform: translateX(38px);
}

/*ACCORDEON-----------------*/

.ouvrir {
    margin: 15px 0;
    cursor: pointer;
    font-weight: bold;
    padding-bottom: 3px;
}

.fleche {
    background: url(img/accordeon.svg);
    display: inline-block;
    width: 22px;
    height: 22px;
    transition: .3s;
    margin-right: 2px;
}

.bloc {
    display: none;
    margin-bottom: 20px;
}

.ouvert .fleche {
    transform: rotateZ(90deg);
}

/*BOUTON DEVIS---------------*/

.demande {
    border: 0;
    background: var(--cyan2);
    padding: 15px;
    color: var(--jaune) !important;
    width: 100%;
    font-size: 1.3em;
}

.demande img {
    display: none !important;
}

.demande:hover {
    background: var(--cyan1);
}

/* HAUT----------------------*/

#message {
    background: var(--jaunec);
    padding: 5px 16px;
    font-size: 1em;
    line-height: 1.2em;
    text-align: center;
}
header {
    background: var(--cyan5);
    width: 100%;
    height: 80px;
    box-shadow: 0 5px 5px rgba(0,0,0,.2);
    display: flex;
    position: absolute;
    z-index: 1000;
    transition: .2s;
}

#logo {
    padding: 10px 15px;
    height: 80px;
    transition: .2s;
}

.pousse {
    flex: 1;
}

/*menu*/

#menu {
    display: flex;
    flex-direction: column;
}

#principal {
    display: flex;
}

#principal li a,
#principal li button {
    display: block;
    padding: 8px 15px 10px;
    cursor: pointer;
    position: relative;
    font: 650 1.2em var(--ms);
    /* text-transform: uppercase; */
    border: 0;
    background: none;
    -webkit-appearance: none;
    color: var(--jaune);
}

#principal li a:hover,
#principal li button:hover {
    color: var(--jaunec);
    text-decoration: none;
}

#principal li button,
#principal li a {
    text-transform: uppercase;
}

/* .sorti button::after {
    content: '';
    display: block;
    width: 15px;
    height: 18px;
    background: url(img/fleche-menu.svg);
    position: absolute;
    bottom: -14px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%) scaleY(1);
    transform-origin: top center;
    animation: fleche-menu .3s;
}

@keyframes fleche-menu {
    0% {
        transform: translateX(-50%) scaleY(0);
    }
} */

.opacite-menu {
    opacity: .24;
}

/*sous-menu*/

#principal ul {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--jaune);
    box-shadow: 0 5px 5px rgba(0,0,0,.1);
    display: none;
    /* display: grid; */
    grid-template-columns: repeat(4, 1fr);
}

#principal ul li {
    border-right: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
    display: flex;
}

#principal ul a {
    color: var(--cyan4) !important;
    text-transform: none;
    display: block;
    padding: 40px;
    flex: 1;
}

#principal ul a:hover {
    background: #f1ff85;

}


/*menu fixe*/

.fixe {
    height: 40px;
    position: fixed !important;
    top: 0;
}

.fixe #logo {
    padding: 5px 10px;
    height: 40px !important;
}

.fixe #principal ul {
    top: 40px;
}

/*PAGE NORMALE----------*/

main {
    padding-top: 80px;
}

#article {
    text-align: justify;
    display: flex;
    flex-wrap: wrap;
}

#article .bouton {
    margin-top: 10px;
}

#article h1 {
    font: 5em/1.0em var(--ha);
    text-align: center;
    padding-bottom: 70px;
    transform: skewY(-4deg);
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff;
}

#article h1::after {
    content: '';
    display: block;
    width: 63px;
    height: 19px;
    background: url(img/trait.svg);
    margin: 5px 0 0 calc(50% - 30px);
}

.chapeau {
    font-size: 1.3em;
    line-height: 1.4em;
    font-weight: bold;
    border-left: 5px solid var(--jaune);
    padding-left: 15px;
}

#article h2 {
    font: 750 2em/1em var(--ms);
    text-transform: uppercase;
    padding-top: 20px;
    margin-bottom: -10px;
    text-align: left;
}

#texte {
    flex: 1 700px;
    padding: 80px 80px;
}

#texte h2 {
    padding-left: 35px;
    background: url(img/eclair2.svg) no-repeat 0 20px;
}

#presta {
    flex: 1 300px;
    background: var(--jaunec);
    padding: 70px 60px;
    text-align: left;
}

#presta td {
    border-bottom: 1px solid #cd9;
    padding: 9px 0 12px;
}

main ul {
    padding-left: 18px;
    margin-bottom: -15px;
}

main ol {
    padding-left: 40px;
    margin-bottom: -15px;
    counter-reset: num;
}

main ul li {
    list-style: url(img/puce2.svg);
    line-height: 1.15em;
    padding-bottom: 18px;
}

ol li {
    list-style-type: none;
    counter-increment: num;
    padding-bottom: 15px;
}

ol li::before {
    box-sizing: border-box;
    content: counter(num);
    background: var(--jaunec);
    width: 1.8em;
    height: 1.8em;
    padding: .2em 0 0 .6em;
    border-radius: 50%;
    font-weight: bold;
    position: absolute;
    margin-left: -40px;
    margin-top: -5px;
}

.box {
    background: var(--jaunec);
    padding: 27px 32px 27px;
    max-width: 1000px;
}

#bloc {
    display: none;
}

.video {
    background: #111;
    width: 100%;
}

/*étude de cas*/

.cas {
    display: block;
    height: auto;
    max-width: 400px;
    margin-bottom: 15px;
    background: var(--cyan3);
    position: relative;
}

.cas img {
    opacity: .25;
    filter: saturate(0);
    transition: .6s;
    width: 100%;
}

.cas:hover img {
    filter: saturate(1);
    opacity: 1;
}

.reali {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: var(--jaune);
    text-align: left;
    opacity: 1;
    transition: opacity .4s;
}

.cas:hover .reali {
    opacity: 0 !important;
}

.reali h3 {
    font: 700 1.6em/1em var(--ms);
    text-transform: uppercase;
}

/*explications par étapes*/

.pave {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    background: var(--jaunec);
    padding: 30px 45px 45px 0;
    color: var(--cyan5);
}

.icone {
    width: 300px;
    min-height: 170px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(img/design1.svg);
}

#ico2 {
    background-image: url(img/design2.svg);
}

#ico3 {
    background-image: url(img/design3.svg);
}

#ico4 {
    background-image: url(img/design4.svg);
}

#ico5 {
    background-image: url(img/design5.svg);
}

#ico6 {
    background-image: url(img/design6.svg);
}

#ico7 {
    background-image: url(img/web1.svg);
}

#ico8 {
    background-image: url(img/web2.svg);
}

#ico9 {
    background-image: url(img/web3.svg);
}

#ico10 {
    background-image: url(img/web4.svg);
}

#ico11 {
    background-image: url(img/web5.svg);
}

#ico12 {
    background-image: url(img/web6.svg);
}

#ico13 {
    background-image: url(img/web7.svg);
}

#ico14 {
    background-image: url(img/web8.svg);
}

#ico15 {
    background-image: url(img/web9.svg);
}

#ico16 {
    background-image: url(img/web10.svg);
}

.pave .txt {
    flex: 1;
}

.pave .titre {
    font: 700 1.6em var(--ms);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.triangle {
    background: url(img/fleche-pave.svg) no-repeat center bottom;
    width: 100%;
    height: 45px;
    margin-bottom: 30px;
}

/*tableau web*/

#tarif-web {
    overflow-x: auto;
}

#tarif-web table {
    min-width: 850px;
    border-collapse: collapse;
}

#tarif-web td {
    text-align: center;
    background: #f2ff88;
    padding: 12px 5px;
}

#tarif-web tr:nth-child(2n) td {
    background: var(--jaunec);
}

#tarif-web th {
    text-align: center;
    background: #077;
    color: #fff;
    font-weight: normal;
    padding: 8px 10px;
    width: 16.66%;
}

#tarif-web tr:nth-child(2n) th {
    background: var(--cyan3);
}

.tab {
    color: #fff;
    background: var(--cyan3) !important;
    font-weight: normal;
    padding: 20px 10px !important;
    vertical-align: top;
}

#t3 {
    background: var(--cyan4) !important;
}

#t5 {
    background: var(--cyan5) !important;
}

.tab .titre {
    color: var(--jaune);
    font: 750 1em var(--ms);
    text-transform: uppercase;
}

.tab .prix {
    color: var(--jaune);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.ht {
    font-size: .7em;
}

.rouge {
    color: #f57;
}

.vide {
    background: none !important;
}

td img {
    display: inline !important;
}


/*3D*/
#rendu {
    width: 100%;
    height: 600px;
    background: var(--jaunec);
    cursor: grab;
}

/*Blog*/

#blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 64px 32px;
}

#blog a {
    display: block;
    font: 700 1.2em var(--ms);
    text-align: left;
}

#blog a:hover {
    text-decoration: none;
    opacity: .8;
}

#blog img {
    width: 100%;
    margin-bottom: 10px;
}

#blog .boite {

}

time {
    display: block;
    margin-bottom: 40px;
    opacity: .8;
    font-style: italic;
    text-align: center;
}

#galerie {
    width: 100%;
    columns: 3;
    column-gap: 0px;
    margin: -64px 0 32px;
}

#galerie img,
#galerie video {
    width: 100% !important;
    margin-bottom: 0px;
    break-inside: avoid;
    box-shadow: 0 0 30px #d0e0e0;
}


/*FOOTER---------------------------*/

#footer {
    display: flex;
    flex-wrap: wrap;
    background: var(--cyan5) url(img/dynamo.jpg) center;
    background-size: cover;
    color: var(--cyan0);
    text-shadow: 0 0 6px #011;
    text-align: center;
    position: relative;
    z-index: 2;
}

#footer a {
    color: var(--jaune);
    border-color: var(--jaune);
}

#contact,
#visite {
    flex: 1 700px;
    padding: 60px 15px;
}

#footer h2 {
    font: 3em var(--ha);
    margin-bottom: 20px;
    transform: skewY(-4deg);

}

#tel,
#email {
    font: 700 2.2em var(--ms);
}

.social {
    margin: 8px 5px 0;
    text-align: center;
}

.social:hover {
    opacity: .85;
}

.ouverture {
    font-style: italic;

}

#mention {
    text-align: center;
    background: rgba(0,0,0,.3);
    width: 100%;
    padding: 25px 15px 70px;
    font-size: .85em;
}

#mention a {
    padding: 5px 10px;
    white-space: nowrap;
}


/*FOOTER FIXE--------------------------*/

#appel {
    background: var(--jaune);
    color: var(--cyan5);
    width: 100%;
    padding: 10px 0;
    font: 750 1.1em var(--ms);
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    position: fixed;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 -7px 7px rgba(0, 0, 0, .05);
    transition: .3s;
    animation: respire 4s infinite;
}

@keyframes respire {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.15);
        transform: scale(1.15);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

#appel::before {
    content: 'Un devis ? Une question ? ';
}

#appel:hover {
    font-size: 1.2em;
    -webkit-animation: none;
    animation: none;
}


/*retour haut*/

#retour-haut {
    background: rgba(0,60,60,.5) url(img/haut.svg) no-repeat center;
    width: 38px;
    height: 40px;
    position: fixed;
    bottom: 60px;
    right: 0;
    z-index: 2000;
    border-radius: 20px 0 0 20px;
    opacity: 0;
    transition: opacity .4s;
}

.opacite {
    opacity: 1 !important;
}
