@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700;800;900&display=swap');

:root {
    --font-body-family: 'Roboto', sans-serif;

    --font-body-color: #5e5e5e;

    --Hn-style: 'Roboto Slab', serif;

    --h1-color: #16296E;
    --h1-size: 3.1rem;
    --h1-subtitle-size: 60%;
    --h1-subtitle-color: gray;

    --h2-color: black;
    --h2-background-color: #48C0C1;
    --h2-size: 1.5rem;
    --h2-border-radius: 2px;

    --h3-color: #00b7ff;
    --h3-size: 1.25rem;

    --h4-color: rgb(116, 116, 116)02, 98, 98);
    --h4-size: 1.15rem;
    
    --h5-color: black;
    --h5-size: 1rem;

    --nav-background-color: #003D69;
    --nav-font-color: white;
    --nav-font-size: 0.96em;

    --link-color: #1a73e8;
    --link-color-hover: #174ea6;


    --font-logo-family: 'Roboto Slab', serif;
    --font-logo-color: black;
    --font-logo-background-color: white;
    --font-logo-size: 2rem;

    --font-logo-subtitle-family: 'Roboto Slab', serif;
    --font-logo-subtitle-color: white;
    --font-logo-subtitle-size: 1.5rem;
}

/* ------------------------------------------------------------STRUCTURE */
body {
    font-family: var(--font-body-family);
    color :var(--font-body-color);
}

.container {
    box-shadow: 0px 0px 0px 0px #8d8d8d;
}

header, footer  {
    margin-left : -15px;
    margin-right : -15px;
}

article {
    margin-bottom: 80px;
}

/* ------------------------------------------------------------BANNER */
.logo-banner {
    font-family: var(--font-logo-family);
    color: var(--font-logo-color);
    font-size: var(--font-logo-size);
    font-weight: 700;
    background-color: var(--font-logo-background-color);
    padding: 5px 10px;
    border-radius: 5px;
}

.logo-subtitle-banner {
    font-family: var(--font-logo-subtitle-family);
    color: var(--font-logo-subtitle-color);
    font-size: var(--font-logo-subtitle-size);
    background-color: transparent;
    padding: 0px;
    border-radius: 0px;
}

.banner-top .alert {
    margin-top : 0.75rem;
    margin-bottom : 0.75rem;
    padding: 0rem 1.25rem;
    border-radius: 5px;
}
.banner-top ul { 
    margin-top: 1rem;
    padding-left: 1rem;
    font-size: 85%;
}

/* ------------------------------------------------------------NAVIGATION */
nav {
    color: var(--nav-font-color);
    background-color: var(--nav-background-color);
    font-size: var(--nav-font-size);
    font-weight: bold;
    margin-bottom: 1rem;
}

.nav-link {
    display: block;
    text-decoration: none;
    padding: 0.2rem 0.8rem;
}

nav li,
nav li.first-nav-item {
    padding-right: 5px;
    padding-left: 5px;
}

nav li {
    border-left: 1px dotted rgb(185, 185, 185);
}

nav li.first-nav-item {
    border-left: none;
}

nav li a:link,
nav li a:visited {
    text-decoration: none;
    color: var(--nav-font-color);
}

nav li a:hover,
nav li a:active {
    text-decoration: none;
    color: var(--nav-background-color);
    background-color: var(--nav-font-color);
    border-radius: 2px;
}

nav li a:link.dropdown-item,
nav li a:visited.dropdown-item {
    color: var(--nav-background-color);
}

nav li a:hover.dropdown-item,
nav li a:active.dropdown-item {
    color: var(--nav-font-color);
    background-color: var(--nav-background-color);
}

.dropdown-menu {
    font-size: 1em;
    border-radius: 2px;
}

/* Media Query pour que le menu se transforme en blocs les uns en-dessous des autres à partir du breakpoint bootstrap MD (>=768px) */
@media (max-width: 768px) {
    .navbar {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    nav li,
    nav li.first-nav-item {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-left: none;
        padding-right: 0px;
        padding-left: 0px;
    }
}

/* --------------------------------------------------- NAVIGATION Interne */
.internal-nav {
    font-size: 90%;
    color: gray;
    text-align: right;
    margin: 10px 0px 20px 10px;
}

.internal-nav a:link,
.internal-nav a:visited {
    color: gray;
    text-decoration: none;
}

.internal-nav a:hover,
.internal-nav a:active {
    color: gray;
    text-decoration: underline;
    background-color: transparent;
}

/* ---------------------------------------------------------- TITRES */
h1, h2, h3, h4, h5 {
    font-family: var(--Hn-style);
}

h1 {
    color: var(--h1-color);
    font-size: var(--h1-size);
    text-align: center;
    font-weight: 700;
    overflow-wrap: break-word;
    margin: 1.2rem 0.4em 1.2rem 0.4em;
}

.h1-subtitle {
    font-size: var(--h1-subtitle-size);
    color: var(--h1-subtitle-color);
}

h2 {
    background-color: var(--h2-background-color);
    color: var(--h2-color);
    font-size: var(--h2-size);
    margin: 2.1rem 0rem 0.625rem 0rem;
    padding: 8px 8px;
    border-radius: var(--h2-border-radius);
}

h3 {
    color: var(--h3-color);
    font-size: var(--h3-size);
    font-weight: 700;
    text-align: left;
    margin: 1.5em -9px 0.3125rem -9px;
    padding: 0.35em 0.5em;
    overflow: hidden;
}

.h3-first {
    margin-top: 0px;
}

h3:after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    margin-right: -100%;
    margin-left: 0.5em;
    border-bottom: 2px solid var(--h3-color);;
    position: relative;
    vertical-align: middle;
}

h4 {
    color: var(--h4-color);
    font-size: var(--h4-size);
    font-weight: 700;
    margin-top: 1.3em;
    margin-bottom: 0px;
}

h5 {
    color: var(--h5-color);
    font-size: var(--h5-size);
    font-weight: 700;
}

/* ------------------------------------------------------ STYLES ECRITURE */
p {
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    margin-left: 0.6rem;
    margin-right: 0.6rem;
}

.lead {
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    margin-top: 45px;
    margin-left: 3rem;
    margin-right: 3rem;
}

blockquote {
    border-left: 4px solid rgb(175, 175, 175);
    padding: 0 0 0 7px;
    margin-left: 13px;
    margin-bottom: 0px;
}

blockquote p {
    font-size: 1.05rem;
    font-style: italic;
}

.media {
    padding: 10px;
    width: 90%;
    background-color: #f0f4ff;
    margin: 0.3rem auto 1.3rem auto;
    border-radius: 10px;
    border: 1px dashed rgb(202, 202, 202);
}

/* ------------------------------------------------------------------ LINKS  */

a:link,
a:visited {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:active {
    color: var(--link-color-hover);
    background-color: transparent;
    text-decoration: underline;
}

caption a:link,
caption a:visited {
    color: var(--link-color);
    text-decoration: none;
}

/* ------------------------------------------------------ ALERT */
.alert-light {
    border-color: #c6c8ca;
    }

/* ------------------------------------------------------ CARDS */
.card-img {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* ------------------------------------------------------ BADGES */
a:link.badge {
    text-decoration: none;
}

/* ---------------------------------------------------------- JUMBOTRON  */
.jumbotron {
    padding: 0.1rem 0.1rem;
}

/* ---------------------------------------------------------- IMAGES  */
figcaption {
    font-size: 75%;
    margin-bottom: 20px;
}

header img {
    margin-top: 0px;
    margin-bottom: 0px;
}

.img-border {
    border: 1px solid #dadada;
}


/* ---------------------------------------------------------- TABLES  */
table {
    font-size: 100%;
}

caption {
    text-align: right;
    caption-side: top;
    font-size: 90%;
    padding-top: 0.25rem;
    padding-bottom: 0rem;
}


/* ------------------------------------------------------ PUB RESPONSIVE */

/* ------ PUB RESPONSIVE - Contenu*/

.pub-mobile,
.pub-desktop {
    text-align: center;
    margin: 15px auto 25px auto;
    color: white;
}

@media (min-width: 992px) {
    /*device width is greater than or equal to*/
    .pub-mobile {
        display: none;
    }
}

@media (max-width: 991px) {
    /*device width is less than or equal to */
    .pub-desktop {
        display: none;
    }
}


/* ------ PUB RESPONSIVE - Bannière Top*/

.banniere-pub-top {
    padding-top: 0.2rem;
    background-color: white;
}

.banniere-pub-top:after {
    background-color: white;
}

.pub-mobile-top,
.pub-desktop-top {
    text-align: center;
    margin: 0px auto 0px auto;
}

@media (min-width: 992px) {
    /*device width is greater than or equal to*/
    .pub-mobile-top {
        display: none;
    }
}

@media (max-width: 991px) {
    /*device width is less than or equal to */
    .pub-desktop-top {
        display: none;
    }
}

/* ----------------------------------------------------------- FOOTER */
footer {
    color: #a0a0a0;
    background-color: #eaeaea;
    text-align: center;
    font-size: 0.85em;
    margin-top: 35px;
    padding: 5px;
}

footer a:link,
footer a:hover,
footer a:active,
footer a:visited {
    color: #a0a0a0;
    text-decoration: none;
    background-color: transparent;
}

