@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@font-face {
    font-family: CreamCake;
    src: url("/CreamCake.otf") format("opentype");
}

:root {
    --text-color: #444444;
    --title-color: #111111;
    --primary-color: #9b0202;
    --background-color: #f0f0f0;
    --alt-background-color: #ece8e8;
}

* {
    margin: 0;
    padding: 0;
    font-style: normal;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

body {
    font-weight: 400;
    font-size: 1.125rem;
    background-color: var(--background-color);
}



/* Header, Footer */

header {
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    position: sticky;
    background-color: var(--background-color);
}

header h1 {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 2.5rem;
    text-transform: none;
    color: var(--title-color);
    font-family: "CreamCake", sans-serif;
}

header img.logo {
    height: 1.65rem;
    margin-right: 10px;
    transition: filter .15s ease-in-out;
}

header nav a {
    padding: 7px 0;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    color: var(--text-color);
}

header nav a::after {
    left: 0;
    opacity: 0;
    width: 100%;
    height: 2px;
    bottom: -5px;
    content: "";
    position: absolute;
    background-color: var(--primary-color);
    transition: transform .15s ease-in-out, opacity .15s ease-in-out;
}

header nav a:hover,
header nav a.active {
    color: var(--primary-color) !important;
}

header nav a:hover::after,
header nav a.active::after {
    opacity: 1;
    transform: translateY(-5px);
}

header nav .link {
    margin: 0;
    text-decoration: none;
}

header .content {
    margin: 0;
}

header,
header h1,
header nav a,
header .content {
    transition: .2s ease-in-out;
}

header.mobile nav {
    right: 0;
    top: -100vh;
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    transition: top .3s ease-in-out;
    background-color: var(--background-color);
}

header.mobile .hamburger.is-active~nav {
    top: 0;
    overflow: auto;
}

header.mobile ul {
    gap: 0;
    height: 100%;
    padding: 30px 60px;
    align-items: inherit;
    justify-content: flex-start;
    flex-direction: column;
}

header.mobile ul li {
    padding: 20px 0;
    border-bottom: 1px solid var(--text-color);
}

header.mobile ul li:last-of-type {
    border-bottom: none;
}

header.mobile nav a::after {
    display: none;
}

footer {
    z-index: 100;
    position: relative;
    background-color: var(--title-color);
}

footer p,
footer .contact a,
footer .rights a {
    color: white;
    font-weight: 400;
    font-size: 0.875rem;
}

footer a {
    width: max-content;
}

footer h3 {
    color: white;
}

footer>.content>.row {
    align-items: flex-start;
}

footer .contact {
    align-items: flex-end;
}

footer .link {
    color: white;
}

footer .link svg {
    fill: white;
}

footer .row.rights {
    padding-bottom: 10px;
    align-items: flex-end;
}



/* Hamburger menu */

.hamburger {
    width: 1em;
    height: 1em;
    z-index: 1000000;
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
    position: relative;
    transition: .3s ease;
}

.hamburger-line {
    right: 0;
    width: 100%;
    height: 0.125em;
    border-radius: 0.125em;
    position: absolute;
    transition: inherit;
    background-color: var(--title-color);
}

header.mobile .hamburger {
    display: block;
}

.hamburger-line:nth-child(1) {
    top: 0.125em;
}

.hamburger.is-active .hamburger-line {
    background-color: var(--title-color);
}

.hamburger.is-active .hamburger-line:nth-child(1),
.w-nav-button.w--open .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotateZ(-135deg);
}

.hamburger-line:nth-child(2) {
    top: 0.438em;
}

.hamburger.is-active .hamburger-line:nth-child(2),
.w-nav-button.w--open .hamburger-line:nth-child(2) {
    right: 50%;
    width: 0;
}

.hamburger-line:nth-child(3) {
    top: 0.75em;
}

.hamburger.is-active .hamburger-line:nth-child(3),
.w-nav-button.w--open .hamburger-line:nth-child(3) {
    top: 50%;
    width: 100%;
    transform: translateY(-50%) rotateZ(135deg);
}



/* Balises générales */

a {
    display: block;
    cursor: pointer;
    width: max-content;
    text-decoration: none;
    color: var(--text-color);
}

p,
li {
    color: var(--text-color);
}

button {
    font-size: 1rem;
    font-weight: 600;
    border: none;
    display: block;
    cursor: pointer;
    background-color: transparent;
}

h1 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

h2,
h3 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--title-color);
}

ul {
    list-style: none;
}

section {
    gap: 30px;
    z-index: 100;
    position: relative;
    background-color: var(--background-color);
}

article {
    padding: 70px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* Classes */

.alt-bg {
    background-color: var(--alt-background-color);
}

.shadow {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
}

.content {
    margin: 0 auto;
    width: calc(100% - 80px);
    max-width: min(70vw, 1400px);
}

.row,
.column {
    display: flex;
    align-items: center;
}

.row {
    flex-direction: row;
    justify-content: space-between;
}

.column {
    flex-direction: column;
    justify-content: center;
}

.row.reversed {
    flex-direction: row-reverse;
}

.gap-20 {
    gap: 20px;
}

.gap-70 {
    gap: 70px;
}

.margin-top {
    margin-top: 30px;
}

.button {
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    width: fit-content;
    text-align: center;
    text-transform: uppercase;
    background-color: var(--primary-color);
    transition: background-color .15s ease-in-out;
}

.button:hover {
    background-color: color-mix(in srgb, var(--primary-color) 70%, black);
}

.button:disabled {
    cursor: default;
    background-color: color-mix(in srgb, var(--primary-color) 70%, white);
}

.link {
    margin: 10px 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    text-decoration: underline;
    transition: color .15s ease-in-out;
    color: var(--text-color);
}

.link svg {
    width: 20px;
    margin-left: 3px;
    transition: fill .15s ease-in-out;
    fill: var(--text-color);
}

.link:hover {
    color: var(--primary-color);
}

.link:hover svg {
    fill: var(--primary-color) !important;
}

.box {
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--background-color);
}

.box img {
    width: 100%;
}

.box>div {
    padding: 20px;
}

.grid {
    display: grid;
    gap: 50px;
    margin-top: 50px;
    grid-template-columns: 1fr 1fr 1fr;
}

img.image {
    max-width: 40%;
    border-radius: 10px;
    max-height: calc(100vh - 150px);
}

ul.list {
    list-style: disc;
    padding-left: 30px;
}



/* Section galerie */

.gallery {
    display: grid;
    position: relative;
    grid-auto-flow: dense;
    grid-auto-rows: 200px;
    grid-template-rows: 200px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gallery.one-child {
    grid-template-columns: repeat(2, 1fr);
}

.gallery .item {
    border-radius: 10px;
    overflow: hidden;
}

.gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Section équipements */

ul.equipments img.icon {
    width: 70px;
}



/* Reveal */

.reveal>* {
    opacity: 0;
    transform: translateY(50px);
    transition: .3s ease-in-out;
}

.reveal>*.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* Responsive */

@media (max-width: 1200px) {
    .content {
        max-width: calc(100% - 80px);
    }

    header .content {
        width: 100%;
    }
}

@media (max-width: 1160px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    footer .row {
        gap: 0;
        flex-direction: column;
    }

    footer .row,
    footer .contact,
    footer p.rights {
        text-align: center;
    }

    footer>.content>.row {
        align-items: inherit;
    }

    footer .link {
        margin: 0 auto;
    }

    footer .contact {
        align-items: center;
    }

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

    .button {
        margin: 0 auto;
    }

    .button.margin-top {
        margin: 30px auto 0 auto;
    }

    .content {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }

    section .content.row {
        flex-direction: column;
    }

    img.image {
        max-width: 100%;
        max-height: 400px;
    }

    .gallery, .gallery.one-child {
        grid-template-columns: none;
    }
}



/* Animations */

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-2.5px);
    }

    50% {
        transform: translateX(2.5px);
    }
}