.brand-color {
    color: #f6611a;
}


/*typography*/

@font-face {
    font-family: "Geist";
    src: url("../fonts/Geist-Regular.ttf");
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h1 {
    line-height: 1;
    margin-top: 0;
    padding-top: 0;
}

body {
    background-color: hsl(20, 100%, 99%);
}


/* Correct the display of images in columns */

.column img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* Slider */

.slider-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 540px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container input[type="radio"] {
    display: none;
}

.slider {
    display: flex;
    width: calc( 100% * {
        {
            page.media.images|length
        }
    }
    );
    /* Ajuste automatiquement la largeur en fonction du nombre d'images */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: calc( 100% / {
        {
            page.media.images|length
        }
    }
    );
    /* Ajuste la largeur de chaque slide */
    height: 100%;
}

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


/* Navigation styling */

.navigation {
    display: none;
    /* Cache tous les sets de navigation par défaut */
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}


/* Afficher la navigation du slide actif */

input[name^="slider_"]:nth-of-type(1):checked~.navigation:nth-of-type(1) {
    display: flex;
}

input[name^="slider_"]:nth-of-type(2):checked~.navigation:nth-of-type(2) {
    display: flex;
}

input[name^="slider_"]:nth-of-type(3):checked~.navigation:nth-of-type(3) {
    display: flex;
}

input[name^="slider_"]:nth-of-type(4):checked~.navigation:nth-of-type(4) {
    display: flex;
}


/* Transitions du slider */

input[name^="slider_"]:nth-of-type(1):checked~.slider {
    transform: translateX(0);
}

input[name^="slider_"]:nth-of-type(2):checked~.slider {
    transform: translateX(-25%);
}

input[name^="slider_"]:nth-of-type(3):checked~.slider {
    transform: translateX(-50%);
}

input[name^="slider_"]:nth-of-type(4):checked~.slider {
    transform: translateX(-75%);
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.7);
}

.prev-btn::before {
    content: "←";
    font-size: 20px;
}

.next-btn::before {
    content: "→";
    font-size: 20px;
}


/*Footer*/

#footer {
    background-color: #3c3836;
    text-align: start;
}

& a {
    text-decoration: solid underline 1px;
}

#footer .columns {
    justify-content: start;
    max-width: 1400px;
}

#footer .columns h5 {
    color: hsl(216, 5%, 90%);
}

#footer nav {
    padding: 0;
}

.footer-nav {
    padding: 0;
    margin: 0;
}

.footer-nav li {
    list-style: none;
}

.footer-nav a {
    color: #acb3c2;
}

.footer-logo img {
    margin-top: 2rem;
    max-width: 200px;
}

#copyright {
    font-size: 12px;
    background-color: #3c3836;
    text-align: center;
}

#copyright p {
    padding: 1rem 0;
    margin: 0;
    color: hsl(216, 5%, 80%);
    & a {
        color: hsl(216, 5%, 90%);
        text-decoration: solid underline 1px;
    }
}


/* helpers */

.is-text-centered {
    text-align: center;
}

.is-light-color {
    color: hsl(216, 5%, 90%);
}