:root {
    /* Bonduelle specific vars */
    --bonduelle-green: #003d21;
    --bonduelle-greenLight: #165929;
    --bonduelle-VeryLightGreen: #d4c73e;
    --bonduelle-mediumGreen: #1d5b2d;
    --bonduelle-darkGreen: #004703;
    --bonduelle-greenBox: #1d5b2d;
    --bonduelle-gold: #b3a512;
    --bonduelle-yellow: #ffe32e;
    --bonduelle-yellowGreen: #8d872b;
    --bonduelle-orange: #ed812f;
    --bonduelle-orangeText: #ee9f53;
    --bonduelle-blue: #004e59;
    --bonduelle-red: #8a2124;
    --bonduelle-brown: #b36512;
    --bonduelle-grey: #d9d9d9;
    --bonduelle-greyLight: #e3e3e3;
    --bonduelle-darkGrey: #535353;
    --bonduelle-veryDarkGrey: #242323;

    /* Explicit vars */
    --white: #ffffff;
    --black: #000000;

    /* Main vars */
    --primary-text: var(--bonduelle-darkGrey);
    --light-text: #777777;
    --contrast-text: #9e9e9e;
    --body-color: var(--bonduelle-greyLight);
    --body-text: var(--bonduelle-darkGrey);
    --sidebar-color: var(--bonduelle-greenLight);
    --sidebar-text: var(--bonduelle-grey);
    --sidebar-shadow: var(--bonduelle-green);
    --primary-color: var(--bonduelle-orange);
    --link-color: var(--bonduelle-orange);
    --divider-color: #e0e0e0;
    --shadow-color: #999999;
    --root-font-size: 16px;
    --print-font-size: 12pt;
    --gutter: 20px;
    --gutter-reset: -20px;
    --valid-color: #009900;
}

@media screen and (max-width: 479px) {
}

@media screen and (min-width: 480px) and (max-width: 767px) {
}

@media screen and (min-width: 768px) and (max-width: 991px) {
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
}

@media screen and (min-width: 1200px) {
}

/* ************************** */
/* ********** Body ********** */
/* ************************** */
html {
    color: var(--primary-text);
    font-size: var(--root-font-size);
    font-family: sans-serif;
    background: var(--body-color);
}

html,
body {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

@media print {
    html {
        font-size: var(--print-font-size);
        background: none;
    }

    body {
        position: relative;
        z-index: 1;
    }
}

/* ****************************** */
/* ********** Elements ********** */
/* ****************************** */
h1,
h2,
h3,
h4 {
    margin-top: 1rem;
    margin-bottom: .4rem;
}

h1 {
    color: var(--primary-color);
    font-size: 1.5em;
    text-transform: uppercase;
}

h2 {
    color: var(--primary-color);
    font-size: 1.3em;
    text-transform: uppercase;
}

h3 {
    color: var(--light-text);
    font-size: 1.1em;
}

h4 {
    color: var(--light-text);
    font-size: 1em;
}

@media screen and (max-width: 479px) {
    h1 {
        color: var(--primary-color);
        font-size: 1.3em;
        text-transform: uppercase;
    }

    h2 {
        color: var(--primary-color);
        font-size: 1.2em;
        text-transform: uppercase;
    }

    h3 {
        color: var(--light-text);
        font-size: 1.1em;
    }
}

a {
    color: var(--link-color);
    cursor: pointer;
}

a:hover {
    text-decoration-color: var(--primary-text);
}

a.--external[target="_blank"]::after {
    display: inline;
    content: ' [🡕]';
    color: var(--light-text);
    font-size: .8em;
}

hr {
    margin: 1.5em 0;
    width: 100%;
    height: 0;
    border: 0;
    border-bottom: 2px solid var(--divider-color);
}

strong {
    color: var(--light-text);
}

pre {
    font-size: .9em;
    white-space: normal;
}

blockquote {
    margin-left: .6em;
    padding: .2em 0 .2em .6em;
    color: var(--light-text);
    border-left: 4px solid var(--divider-color);
}

ul {
    margin: 0;
}

@media print {
    h1,
    h2,
    h3,
    caption {
        page-break-after: avoid;
    }

    a[href].print-href:after {
        content: " (" attr(href) ")";
    }

    blockquote,
    ul,
    ol {
        page-break-inside: avoid;
    }
}

/* ******************************* */
/* ********** Container ********** */
/* ******************************* */
.container {
    display: flex;
    justify-content: stretch;
    margin: calc(3.8rem + 3px + var(--gutter)) auto var(--gutter) auto;
    width: 100%;
    max-width: 1024px;
    min-height: calc(100vh - 3.8rem - 3px - var(--gutter) - var(--gutter) - 3.1rem);
    box-shadow: 2px 2px 6px var(--shadow-color);
}

@media screen and (max-width: 479px) {
    .container {
        flex-direction: column;
    }
}

@media print {
    .container {
        margin: 0;
        width: 100%;
        max-width: 210mm;
        box-shadow: none;
    }
}

/* ***************************** */
/* ********** Sidebar ********** */
/* ***************************** */
.sidebar {
    flex-shrink: 0;
    width: 290px;
    padding: var(--gutter);
    color: var(--sidebar-text);
    background: var(--sidebar-color);
}

.sidebar .tag-box__tag {
    box-shadow: 1px 1px 2px var(--sidebar-shadow);
}

.sidebar .sidebar__menu {
    margin: 1.4em 0;
    padding: 0;
    list-style-type: none;
    list-style-position: outside;
}

.sidebar .sidebar__menu li {
    display: flex;
    margin: .2em 0;
    align-items: center;
}

.sidebar .sidebar__menu a {
    color: var(--sidebar-text);
    text-transform: uppercase;
    text-decoration: none;
}

.sidebar .sidebar__menu a:hover {
    text-decoration: underline;
    text-decoration-color: var(--link-color);
}

.sidebar .sidebar__menu svg {
    height: 1em;
    margin-right: .4em;
    fill: var(--link-color);
}

@media screen and (min-width: 480px) and (max-width: 767px) {
    .sidebar .sidebar__menu {
        margin-top: 0;
    }
}

.logo-box {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

.logo-box img {
    margin: 0 auto;
    padding: .8em;
    width: 100%;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 0 4px var(--shadow-color);
}

@media screen and (min-width: 480px) and (max-width: 767px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        display: flex;
        flex-direction: row;
        width: 100%;
        background: var(--white);
    }

    .logo-box img {
        width: 160px;
    }

    .tag-box {
        flex: 0;
        margin-top: 0;
    }
}

@media screen and (max-width: 479px) {
    .container {
        margin-bottom: 0;
        box-shadow: none;
    }

    .section--intro,
    .section--main-content,
    .section--formations,
    .section--leisures {
        margin-bottom: var(--gutter);
        background: var(--white);
        box-shadow: 1px 1px 4px var(--shadow-color);
        margin-right: var(--gutter-reset);
        margin-left: var(--gutter-reset);
        padding: 0 var(--gutter) var(--gutter) var(--gutter);
    }

    div.content {
        background: none;
        padding-bottom: 0;
    }
}

@media screen and (max-width: 767px) {
    .sidebar {
        margin-bottom: var(--gutter);
        background: var(--white);
        box-shadow: 1px 1px 4px var(--shadow-color);
    }

    .logo-box {
        grid-template-columns: 4.8em 1fr;
    }

    .logo-box .logo {
        grid-row: 1 / 3;
        grid-column: 1;
    }

    .logo-box img {
        margin: 0;
        width: auto;
        height: 4em;
        border-width: 2px;
    }
}

@media screen and (max-width: 479px) {
    .sidebar {
        width: 100%;
    }
}

@media print {
    .sidebar {
        width: 60mm;
        font-size: .8em;
    }
}

/* ***************************** */
/* ********** Content ********** */
/* ***************************** */
.content {
    flex-grow: 1;
    padding: 0 var(--gutter) var(--gutter) var(--gutter);
    background: var(--white);
}

@media print {
    .content {
        background: none;
    }
}

/* ***************************** */
/* ********** Tag box ********** */
/* ***************************** */
.tag-box {
    display: block;
    margin: 1em auto;
}

.tag-box__tag {
    padding: .2em .6em;
    color: var(--white);
    line-height: 1.8em;
    white-space: nowrap;
    background: var(--bonduelle-orange);
    border-radius: 2px;
    box-shadow: 1px 1px 2px var(--shadow-color);
}

@media screen and (min-width: 480px) and (max-width: 767px) {
    .tag-box {
        flex: 0;
        margin-top: 0;
    }
}

/* **************************** */
/* ********** Header ********** */
/* **************************** */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: stretch;
    align-items: center;
    margin: 0;
    padding: .8em 1.6em;
    color: var(--bonduelle-grey);
    background: var(--bonduelle-green);
    box-shadow: 0 0 6px var(--shadow-color);
    z-index: 10;
}

.header--fixed {
    position: fixed;
}

.header__title {
    color: var(--bonduelle-yellow);
    font-size: 1.2em;
    font-weight: bold;
}

.header__subtitle {
    padding-left: .8em;
}

@media screen and (max-width: 479px) {
    .header__subtitle {
        display: none;
    }
}

@media print {
    .header {
        display: none;
    }
}

/* **************************** */
/* ********** Footer ********** */
/* **************************** */
.footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: .8em 1.6em;
    color: var(--bonduelle-grey);
    background: var(--bonduelle-green);
    box-shadow: 0 0 6px var(--shadow-color);
    z-index: 10;
}

.footer__title {
    color: var(--bonduelle-grey);
    font-size: 1.2em;
}

@media print {
    .footer {
        display: none;
    }
}

/* ***************************** */
/* ********** Section ********** */
/* ***************************** */
.section {
    margin-bottom: var(--gutter);
}

.section__title {
    margin: 1em var(--gutter-reset) 1em var(--gutter-reset);
    padding: .4em;
    color: var(--bonduelle-orange);
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.section h3 {
    text-transform: uppercase;
    color: var(--bonduelle-greenLight);
}
