/*
    Recréation originale inspirée du Design #51 de Support du Web.
    Le code et les éléments graphiques sont recréés en CSS.
*/

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

body {
    background: #9DB4CF;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

#page {
    width: 780px;
    margin: 18px auto;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

#header {
    position: relative;
    height: 145px;
    overflow: hidden;

    border-radius: 10px;

    background:
        linear-gradient(
            to bottom,
            #8db8e3 0%,
            #4f8ec7 42%,
            #2d6fae 70%,
            #235b93 100%
        );

    border: 1px solid #8aa9c5;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 1px 3px rgba(0,0,0,.30);
}

#header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.10),
            rgba(0,40,80,.18)
        );
}

.header-title {
    position: relative;
    z-index: 2;

    padding: 18px 22px;

    color: white;
    font-size: 30px;
    font-weight: normal;

    text-shadow: 1px 1px 2px #315b7e;
}

/* Les 3 mots dans le bas du header */

#header-nav {
    position: absolute;
    z-index: 3;

    left: 0;
    right: 0;
    bottom: 0;

    height: 43px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

#header-nav a {
    display: block;

    min-width: 105px;
    padding: 8px 16px 9px;

    color: #163c5d;
    text-align: center;
    text-decoration: none;

    font-weight: bold;
    font-size: 13px;

    background:
        linear-gradient(
            to bottom,
            #eaf5fd,
            #b8d9ef
        );

    border: 1px solid #7da8c9;
    border-bottom: 0;

    border-radius: 7px 7px 0 0;

    box-shadow:
        inset 0 1px 0 #ffffff,
        0 -1px 2px rgba(0,0,0,.15);
}

#header-nav a:hover {
    background: #ffffff;
}

/* ---------------------------------------------------------
   STRUCTURE
   --------------------------------------------------------- */

#main {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 10px;
}

/* ---------------------------------------------------------
   COLONNE GAUCHE
   --------------------------------------------------------- */

#sidebar {
    width: 145px;
    flex: 0 0 145px;
}

.side-block {
    margin-bottom: 10px;

    overflow: hidden;

    background: #f0f0f0;

    border: 1px solid #c6c6c6;
    border-radius: 6px;

    box-shadow:
        inset 0 1px 0 #ffffff,
        0 1px 2px rgba(0,0,0,.15);
}

.side-title {
    padding: 5px 8px;

    color: #244e70;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: bold;
    font-size: 14px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #d8e7f2
        );

    border-bottom: 1px solid #a7bfd1;
}

.side-block ul {
    list-style: none;
    margin: 0;
    padding: 6px 9px 8px;
}

.side-block li {
    margin: 0;
    padding: 2px 0;
}

.side-block a {
    color: #222222;
    text-decoration: none;
}

.side-block a:hover {
    color: #2e6d9f;
    text-decoration: underline;
}

/* ---------------------------------------------------------
   CONTENU
   --------------------------------------------------------- */

#content {
    flex: 1;
    min-width: 0;

    padding: 4px 12px 20px;

    background: #ffffff;
}

#content h1,
#content h2 {
    margin-left: 0;
    margin-right: 0;

    color: #4d86aa;

    font-family: Georgia, "Times New Roman", serif;
    font-weight: bold;
}

#content h1 {
    margin-top: 2px;
    margin-bottom: 4px;

    font-size: 23px;

    padding-bottom: 3px;

    border-bottom: 2px solid #b9d8e8;
}

#content h2 {
    margin-top: 7px;
    margin-bottom: 3px;

    font-size: 17px;

    padding: 0 0 3px;

    border-bottom: 2px solid #c7dfe9;
}

#content p {
    margin: 5px 0 8px;
    line-height: 1.25;
}

#content ul,
#content ol {
    margin-top: 4px;
    margin-bottom: 10px;
}

#content li {
    margin: 2px 0;
}

/* ---------------------------------------------------------
   FORMULAIRES
   --------------------------------------------------------- */

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;

    margin: 5px 0 9px;
}

input,
select,
button,
textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

input[type="submit"],
button {
    padding: 2px 8px;

    color: #234b69;

    background: linear-gradient(
        to bottom,
        #ffffff,
        #d7e6f0
    );

    border: 1px solid #9bb4c6;
    border-radius: 3px;
}

input[type="text"],
select,
textarea {
    border: 1px solid #9bb4c6;
}

textarea {
    padding: 4px;
    max-width: 100%;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
    margin-top: 12px;

    padding: 9px 10px;

    text-align: center;

    color: #666666;
    font-size: 11px;

    border-top: 1px solid #c8c8c8;
}

/* ---------------------------------------------------------
   PETITS ECRANS
   --------------------------------------------------------- */

@media (max-width: 820px) {
    #page {
        width: calc(100% - 20px);
    }
}

@media (max-width: 600px) {
    #main {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        flex-basis: auto;
    }

    #header-nav {
        gap: 2px;
    }

    #header-nav a {
        min-width: 0;
        flex: 1;
        padding-left: 4px;
        padding-right: 4px;
    }
}

