:root {
    --accent-color-1: #1a5071;
    --accent-color-2: #4e9ab3;
    --accent-color-3: #4e9ab3;
    --background-color: #fff;
    --background-blocs: #e7e7e7;
    --text-light-bg: #31376c;
    --text-dark-bg: #fff;
    --container-width: 1300px;
    --small-container-width: 1100px;
    --vertical-gap: 20px;
    --horizontal-gap: 60px;
    --radius: 25px;
    --font-family: "Montserrat", sans-serif;
}


/* General */

body {
    margin: 0;
    padding: 0;
}

body * {
    color: var(--text-light-bg);
}

p,
span,
div {
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1,
h2 {
    font-weight: 600;
    margin-top: 0;
}

h1 {
    font-size: 36px;
}

body {
    background-color: var(--background-color);
    margin: 0;
    font-family: var(--font-family);
}

body>* {
    padding: 10px 60px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    padding: 0;
}

strong {
    font-weight: 600;
}


/* Header */

header {
    background-color: var(--accent-color-1);
    position: relative;
    padding-top: 20px;
}

header * {
    color: var(--text-dark-bg);
}

header p {
    font-size: 19px;
}

header .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    position: relative;
}

header .container {
    display: flex;
    margin: -50px auto -30px;
    align-items: center;
}

header .container .wrapper {
    width: 35%;
    z-index: 10;
    margin: 20px 40px 0;
}

header .container .wrapper img {
    width: 100%;
}

header .text {
    padding-bottom: 25px;
}

header:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(img/ellipse.svg);
    background-repeat: no-repeat;
    background-size: 170%;
    right: 0;
    bottom: -1px;
    background-position: 80% 100%;
}

a.logo-left img {
    width: 180px;
}

a.logo-right img {
    min-height: 60px;
    padding-top: 15px;
}

header .container .wrapper img {
    border-radius: 1000px !important;
}


/* Content */

#main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vertical-gap) var(--horizontal-gap);
}

.container {
    max-width: var(--container-width);
}

.small-container {
    max-width: var(--small-container-width);
    z-index: 1;
    position: relative;
    min-height: 40px;
}

header .container {
    padding: 40px 0;
}

.container,
.small-container {
    margin: 0 auto;
}

#main .container {
    padding: 0;
}

.info {
    background-color: var(--background-blocs);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.info .content {
    padding: 15px 50px;
    text-align: center;
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.info.simple .content {
    justify-content: center;
    gap: 10px
}

.info .description #meteo-description {
    font-weight: 600;
}

.info .description #meteo-description:first-letter,
.info .description #meteo-date:first-letter {
    text-transform: uppercase;
}

.info .description #meteo-date {
    display: inline-block;
}

.value {
    font-size: 25px;
}

.value span {
    font-size: 38px;
}

.info .value,
.info .value * {
    color: var(--accent-color-3);
    font-weight: 600;
}

.info .equivalent {
    background-color: var(--accent-color-3);
    color: var(--text-dark-bg);
    padding: 20px 30px;
    display: flex;
}

.info .equivalent * {
    color: var(--text-dark-bg);
}

.info .equivalent:before {
    content: 'i';
    padding: 1px 7px 0;
    background-color: white;
    color: var(--accent-color-3);
    flex-basis: 20px;
    height: 20px;
    text-align: center;
    font-weight: 700;
    border-radius: 50px;
    vertical-align: middle;
    margin-top: 3px;
    margin-right: 15px;
    box-sizing: border-box;
}

.icon img {
    min-height: 50px;
    max-width: 120px;
    min-width: 70px;
}

#meteo-icon {
    height: 90px;
}


/* Footer */

footer {
    background: url(img/symbole_footer_w.svg) 80% 10% / 20% var(--accent-color-2) no-repeat;
    position: relative;
}

@media screen and (max-width:921px) {
    footer {
        background: url(img/symbole_footer_w.svg) 75% center / 80% var(--accent-color-2) no-repeat;
    }
}

footer:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(img/ellipse-footer.svg);
    background-repeat: no-repeat;
    background-size: 452%;
    right: 0;
    top: -1px;
    background-position: 46% 0;
    z-index: 0;
}

footer * {
    color: var(--text-dark-bg);
    text-decoration: none;
}

footer #social ul {
    display: flex;
    gap: 20px;
}

footer #social a {
    display: flex;
    align-items: center;
    height: 100%;
}

footer #social li {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: var(--text-dark-bg);
    border-radius: 50px;
    padding: 7px;
    box-sizing: border-box;
}

footer #social a i {
    width: 25px;
    color: var(--accent-color-2);
    text-align: center;
    line-height: 25px;
}

footer>div {
    display: flex;
    justify-content: space-between;
}

footer .small-container {
    padding: 90px 0 40px;
}

#menu li {
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

@media screen and (min-width:2000px) {
    #main {
        grid-template-columns: repeat(4, 1fr);
    }
    .container {
        max-width: 1400;
    }
    .small-container {
        max-width: var(--container-width);
    }
}

@media screen and (max-width:1200px) {
    header .container {
        margin: -20px auto 0px;
    }
    header .container .wrapper {
        width: 50%;
        margin: 20px 0 0 0;
    }
}

@media screen and (max-width:921px) {
    body>* {
        padding: 10px 20px;
    }
    header .container {
        margin: -10px auto 10px;
    }
    header:before {
        background-size: 300%;
    }
    header .container .wrapper {
        width: 100%;
        margin: 0 0 0 20px;
    }
    header p {
        font-size: 16px;
    }
    h1 {
        font-size: 30px;
    }
    #main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--vertical-gap);
    }
    img.logo-left {
        max-height: 80px;
    }
    img.logo-right {
        max-height: 45px;
    }
}

@media screen and (max-width:521px) {
    body>* {
        padding: 10px 20px;
    }
    header:before {
        background-size: 550%;
    }
    header .container {
        flex-wrap: wrap;
        margin: 0;
    }
    header .container .wrapper {
        width: 50%;
        margin: 0 0 0 auto;
    }
    header p {
        font-size: 15px;
    }
    h1 {
        font-size: 25px;
    }
    #main {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--vertical-gap);
    }
    footer>div {
        display: block;
        text-align: center;
    }
    footer #social ul {
        gap: 10px;
        justify-content: center;
        margin-bottom: 20px;
    }
    footer #social li {
        height: 30px;
        width: 30px;
    }
    #menu li {
        text-align: center;
    }
    footer .small-container {
        padding: 60px 0 30px;
    }
    footer:before {
        background-size: 1000%;
        background-position: 42% 0;
    }
}

div#loom-companion-mv3 {
    display: none;
}