:root {
    --Bouton: #4c6c84;
    --BoutonHover: lightskyblue;
    --BGColor: #ededed;
    --connect: yellow;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--BGColor);
}

main {
    width: 100%;
    font-family: calibri;
    background-color: white;
}

img {
    max-width: 100%;
    filter: none;
}

nav img {
    /*max-width: 70%;*/
    grid-column-end: span 2;
}

nav {
    text-align: center;
}

nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: 50% 50%;
}

nav a {
    text-decoration: none;
    background-color: #9EA2C5;
    color: #FFF;
    font-weight: bold;
    display: block;
    padding: 8px 0;
    border: 1px solid #DDDFD4;
}

nav a:hover {
    background-color: var(--BoutonHover);
    text-decoration: underline;
}

header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 25px 15px;
}


.MMLogo {
    max-width: 80%;
    grid-column-end: span 2;
}

.magasinImg {
    max-width: 95%;
    margin-left: 2.5%;
}

h1 {
    margin-left: 15%;
}

article {
    display: grid;
    grid-template-columns: ifr;
    margin: 25px;
}

div.connectWise {
    background-color: var(--connect);
    margin-bottom: 25px;
}

div.connectWise a {
    text-decoration: none;
}

div.connectWise p {
    margin-left: 15px;
}

#red {
    color: red;
}

#red-bg {
    background-color: red;
}

#gMap {
    margin-top: 25px;
    margin-left: 15%;
}

div.temp {
    margin-bottom: 25px;
}

div.temp h2 {
    text-align: center;
}

div.horaire_ete {
    border: 3px solid black;
}

div.horaire_ete span {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

div.horaire_ete span p {
    border-top: 2px solid black;
    border-left: 2px solid black;
}

.fermer {
    color: red;
    font-weight: bolder;
}

.horaire span {
    font-size: medium;
}

div.horaire {
    border: 3px solid black;
}

div.horaire div {
    display: grid;
    grid-template-columns: 65% 35%;
}

div.horaire div p {
    border-top: 2px solid black;
}

iframe {
    max-width: 100%;
}

.maps {
    margin-top: 20px;
}

.maps h3 {
    color: blue;
}

.magazine {
    margin-top: 30px;
}

.magazine h3 {
    color: red;
}

.groupe {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: green;
    font-size: 24px;
}

h4 {
    margin-left: 27px;
    font-size: 27px;
}

h5 {
    margin-top: 9px;
    font-size: 19px;
}

.titreServices {
    color: red;
}

div.services {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 35px;
    margin-bottom: 15px;
}

div.services li {
    margin-left: 20px;
}

div.services h3 {
    color: blueviolet;
    font-style: italic;
    font-size: 21px;
}

h2.service {
    margin: 20px 20px 20px 20px;
    font-style: italic;
}

h3.service {
    color: forestgreen;
}

div.depot {
    display: grid;
    grid-template-columns: 1fr;
}

div.depot ul {
    margin: 25px;
    font-size: 17px;
}

div.depot h3 {
    margin-bottom: 10px;
}

div.depot li {
    margin-left: 230px;
    color: forestgreen;
    font-style: italic;
}

video {
    max-width: 100%;
}

div.grid {
    display: grid;
    grid-template-columns: 1fr;
}

div.link {
    background-color: lightskyblue;
    margin: 35px 55px 25px 25px;
}

div.link a {
    text-decoration: none;
}

div.link h2 {
    font-size: 30px;
    text-wrap: nowrap;
    margin: 15px;
}

div.link h3 {
    font-size: 25px;
    text-wrap: nowrap;
    margin: 25px;
}

div.info {
    display: grid;
    grid-template-columns: 1fr;
}

div.info img {
    margin: 15px 0px 0px 0px;
    max-width: 100%;
}

div.info p {
    margin: 5px 15px 15px 45px;
    text-align: justify;
}

#credit {
    margin-top: 0px;
    margin-left: 20px;
}

div.info2 {
    display: grid;
    grid-template-columns: 1fr;
}

div.info2 img {
    margin: 15px 0px 0px 0px;
    max-width: 100%;
}

div.info2 p {
    margin: 5px 15px 15px 45px;
    text-align: justify;
}

.infoTxt {
    margin-top: 10px;
    margin-left: 45px;
    color: blue;
    font-style: italic;
}

form {
    margin-left: 15px;
}

form div {
    margin: 1% 0% 1% 1%;
}

form div>input {
    padding: 7px 0px;
}

label,
form {
    display: inline-block;
}

label {
    width: 110px;
}

textarea {
    resize: vertical;
    min-height: 50px;
    max-height: 500px;
}

.contact {
    margin-bottom: 25px;
}

.envoieCourriel {
    color: green;
    padding-left: 25px;
    margin-bottom: 15px;
    background-color: lightcyan;
}

footer {
    background-color: black;
    color: white;
    display: flex;
    margin: 20px;
    margin-bottom: 0px;
    justify-content: space-evenly;
    font-size: 17px;
    padding-top: 15px;
    padding-bottom: 15px;
}

#dark-mode-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid black;
    border-radius: 30%;
    background-color: transparent;
    cursor: pointer;
    padding: 1px;
}

#dark-mode-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30%;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

body.dark-mode main {
    background-color: #121212;
    color: #ffffff;
}

/* Dark mode */
body.dark-mode img.dMode {
    filter: invert(1) brightness(1.2);
}

body.dark-mode #dark-mode-btn {
    border: 2px solid white;
}

.light-mode-img {
    display: block;
}

.dark-mode-img {
    display: none;
}

body.dark-mode .light-mode-img {
    display: none;
}

body.dark-mode .dark-mode-img {
    display: block;
}


/* ************************** Mode tablette *********************** */
@media only screen and (min-width: 850px) {

    main {
        width: 100%;
    }

    nav ul {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    nav img {
        grid-column-end: span 1;
    }

    nav li {
        margin-top: 40px;
    }

    header {
        display: flex;
        justify-content: space-around;
        margin: 25px 0px;
    }

    .MMLogo {
        max-width: 25%;
    }

    article {
        grid-template-columns: 70% 30%;
    }

    div.connectWise {
        width: 60%;
        margin-left: 45px;
    }

    div.temp {
        width: 80%;
        margin-left: 45px;
        margin-bottom: 10px;
    }

    .maps h3 {
        margin-left: 45px;
    }

    iframe {
        margin-left: 45px;
        margin-top: 20px;
    }

    div.services {
        grid-template-columns: 50% 50%;
    }

    div.depot {
        grid-template-columns: 1fr 1fr;
    }

    div.grid {
        grid-template-columns: 1fr 1fr;
    }

    div.link {
        margin: 35px 55px 25px 55px;
        border-radius: 20px;
    }

    div.link img {
        max-width: 50%;
    }

    div.info {
        display: grid;
        grid-template-columns: 27% 67%;
    }

    div.info img {
        margin: 15px 0px 0px 25px;
    }

    div.info2 {
        display: grid;
        grid-template-columns: 67% 27%;
    }

    div.info2 img {
        margin: 15px 0px 0px 25px;
    }
}

/* ************************** Mode grand écran *********************** */

@media only screen and (min-width: 1300px) {

    main {
        width: 1300px;
        margin: auto;
    }

}