:root {
    --opie-green: #109877;
    --opie-fg: #111111;

    --opie-beige: #e7dbc1;
    --opie-red: #ba2451;
    --opie-blue: #395ca3;
    --opie-green-light: #49e3bd;
    --opie-beige-light: #faf1de;
    --opie-red-light: #ed5e89;
    --opie-blue-light: #7ea0e6;
    --opie-green-dark: #05634c;
    --opie-beige-dark: #baa067;
    --opie-red-dark: #6b0625;
    --opie-blue-dark: #0b255a;
    --opie-rouge-revue: #ce1e25;
    --opie-redranj: #ff7f02;
    --opie-jocre: #ffd302;
    --opie-verpom: #78be21;
    --opie-ciel: #00a3e0;
    --opie-green-bg: rgb(from var(--opie-green) r g b / 80%);
    --opie-redranj-bg: rgb(from var(--opie-redranj) r g b / 80%);
    --opie-jocre-bg: rgb(from var(--opie-jocre) r g b / 80%);
    --opie-verpom-bg: rgb(from var(--opie-verpom) r g b / 80%);
    --opie-ciel-bg: rgb(from var(--opie-ciel) r g b / 80%);
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/* 10. Create a root stacking context */
#root,
#__next {
    isolation: isolate;
}

body {
    background: #5cbcb0;
    background: linear-gradient(100deg, var(--opie-beige-light) 0%, var(--opie-beige-light) 50%, #ffffff 50%);
    background-repeat: no-repeat;
    font-family: Carlito, sans-serif;
}

a {
    color: var(--opie-fg);
}

li {
    margin-bottom: 0.5em;
}

.btn {
    color: white;
    background-color: var(--opie-blue);
    border-color: var(--opie-blue);
}
.btn:hover {
    color: white;
    background-color: var(--opie-blue-dark);
    border-color: var(--opie-blue-dark);
}

.opie-logo {
    width: 150px;
}

.title-blob {
    border-radius: 0.5rem;
    padding: 1rem 3rem;
    text-align: center;
    font-size: 1.3em;
}

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

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

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

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

.text-white {
    color: white;
}

header {
    background-color: var(--opie-beige);
    padding: 2rem;
}

iframe {
    max-width: 100%;
}

section {
    padding: 2rem 0;
    position: relative;
    font-size: 1.3em;

    .title-bar {
        color: white;
    }

    .title-bar.title-bar-from-left {
        background: linear-gradient(90deg, var(--opie-green) 0%, var(--opie-green) 50%, #ffffff00 50%);
    }

    .title-bar.title-bar-from-right {
        background: linear-gradient(270deg, var(--opie-green) 0%, var(--opie-green) 50%, #ffffff00 50%);
    }

    h2 {
        background-color: var(--opie-green);
        padding: 1rem 3rem !important;
        border-radius: 2rem;
        margin-bottom: 2rem;
    }

    h2.from-right {
        border-radius: 2rem;
    }

    h2.from-left {
        border-radius: 2rem;
    }
}

.funny-radius-1 {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 3rem 0;
    padding: 3rem;
}

.funny-radius-2 {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 0 3rem;
    padding: 3rem;
}

.funny-radius-1 img.icon, .funny-radius-2 img.icon {
    position: absolute;
    max-width: 7rem;
}

.notice-covers {
    min-height: 30rem;

    > div {
        padding: 0.5rem;
    }

    img {
        display: block;
        max-width: 14rem;
        max-height: 20rem;
        width: auto;
        height: auto;
        border-radius: 0.5rem;
    }
}

.continuite {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.2em;

    div {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
    }
}

.liste-fiches {
    text-transform: uppercase;

    p {
        padding: 0.2em 1em;
        margin-bottom: unset;
        border-radius: 1rem;
        transition: box-shadow 0.2s;

        .id-fiche {
            display: inline-block;
            width: 2em;
        }

        a {
            color: unset;
            text-decoration: none;
        }
    }

    p:hover {
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;
    }
}

.options-box {
    margin-bottom: 1rem;
    background-color: var(--opie-beige-light);
    border: 1px solid var(--opie-beige-dark);
    border-radius: 1rem;
    padding: 1rem;

    .options-title {
        margin-bottom: 1em;
        background-color: var(--opie-redranj-bg);
        border-radius: 1rem;
        padding: 1rem;
        text-align: center;
        color: white;

        &.options-title--jocre {
            background-color: var(--opie-jocre-bg);
            color: black;
        }
    }

    .options-sub-box {
        background-color: white;
        border: 1px solid var(--opie-beige-dark);
        border-radius: 1rem;
        padding: 1rem;

        i {
            font-size: 1.8em;
            color: var(--opie-redranj);
        }
    }
}

.external-site-banner {
    transition: 0.2s ease-in-out;
}
.external-site-banner:hover {
    scale: 110%;
}

@media (min-width: 992px) {
    .media-lg-and-more {
        visibility: visible;
    }

    .media-md-and-less {
        visibility: hidden;
        display: none;
    }
}

@media (max-width: 991.98px /* less than lg */) {
    .icon {
        visibility: hidden;
    }

    .media-lg-and-more {
        visibility: hidden;
        display: none;
    }

    .media-md-and-less {
        visibility: visible;
    }
}

.mobile-images img {
    max-height: 200px;
    max-width: 100%;
}