/* FONT */
@font-face {
    font-family: 'Iceberg';
    src: url('../assets/fonts/Iceberg-Regular.woff') format('woff'), url('../assets/fonts/Iceberg-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Iceberg", sans-serif;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
    line-height: 1.5;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    width: 100%;
}

h1 {
    text-align: center;
    font-size: 2rem;
}


.logo {
    width: auto;
    max-width: 200px;
    height: auto;
    margin: 10px 0 10px 20px;
    padding: 5px;
}

/* NAVBAR */
.barre {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 700px;
    min-height: 70px;
    background-color: #980000;
    padding-right: 20px;
}

.barre a {
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    padding: 8px 15px;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    border-radius: 5px;
}

.barre a:hover,
.barre a:focus {
    background-color: #fff;
    color: #980000;
    outline: none;
}

.barre::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-right: 35px solid #980000;
    border-bottom: 35px solid transparent;
}

/* FOOTER */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    gap: 15px;
}

.mentions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 100%;
    text-align: center;
    font-size: clamp(14px, 2vw, 16px);
}

.liens {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 200px;
    gap: 10px;
}

.liens a {
    text-decoration: none;
    color: #980000;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    padding: 5px 0;
}

.liens a:hover,
.liens a:focus {
    color: #966f6f;
}

.reseaux-sociaux {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 200px;
    gap: 15px;
}

.reseaux-sociaux svg {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    fill: #980000;
}

.reseaux-sociaux svg:hover,
.reseaux-sociaux svg:focus {
    transform: scale(1.2);
    outline: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .barre {
        justify-content: center;
        padding-right: 0;
    }

    .barre::before {
        display: none;
    }

    footer {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "liens reseaux"
            "mentions mentions";
        align-items: center;
        gap: 20px;
        margin: 15px;
    }

    .mentions {
        grid-area: mentions;
    }

    .liens {
        grid-area: liens;
    }

    footer p {
        font-size: 17px;
    }

    .reseaux-sociaux {
        display: flex;
        flex-direction: column;
        gap: 10px;
        grid-area: reseaux;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        position: relative;
    }

    .logo {
        margin: 10px auto;
    }

    .barre {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-height: auto;
    }

    .barre a {
        margin: 5px;
        font-size: 16px;
        padding: 6px 12px;
        white-space: normal;
    }

    .reseaux-sociaux {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .barre a {
        font-size: 14px;
        padding: 5px 8px;
    }

    .liens a {
        font-size: 20px;
    }

    .reseaux-sociaux svg {
        width: 35px;
        height: 35px;
    }
}