/* variables du site */
:root {
    --past_rouge: red;
    --past_orange: orange;
    --past_jaune: yellow;
    --past_verte: lime;

    --taille_titre: 2.3;
    --couleur_logo: #FFFDFA;
    --couleur_fond: #FFFDFA;
    --couleur_ph_titre: rgb(240, 0, 0);
    --couleur_barres: rgb(40, 0, 0);
}

nav a,
nav a:visited,
nav a:active,
.menuNav a,
.menuNav a:visited,
.menuNav a:active {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: red;
}

* {
    box-sizing: border-box;
}

html,
body {
    background-color: var(--couleur_fond);
    margin: 0;
    font-family: Open Sans, sans-serif;
    font-size: 16px;
    overflow-x: auto;
    z-index: -2;

    display: grid;
    justify-items: stretch;
    justify-content: stretch;
}

/* classe appliquée à tous les conteneurs principaux de la page */
.dimensions {
    width: clamp(410px, 98vw, 1020px);
}

/* CSS pour les différents header */
header {
    background: linear-gradient(#333, #333 83.2%, var(--couleur_barres) 83.2%, rgb(40, 0, 0));
    margin-bottom: 15px;
    display: grid;
    justify-items: center;
}

.header_long {
    display: grid;
    grid-template-rows: 135px 27px;
}

.header_court {
    position: relative;
    display: none;
    grid-template-rows: 135px 27px;
}

.ban_conteneur {
    position: relative;
    background-image: url('../images/ban1.jpg');
    background-position: center 0px;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS pour la banniere du header long */
.ban_titre_ph_long {
    width: 800px;
    font-family: Fredericka the great, sans-serif;
    font-size: 5em;
    fill: var(--couleur_ph_titre);
    text-anchor: middle;
    dominant-baseline: middle;
    transform: translate(0px, 7px);
    filter: drop-shadow(4px 4px 1px rgba(0, 0, 0, .8));
}

.ban_logo_crane_long {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-36%);
    width: 140px;
    fill: var(--couleur_logo);
    stroke: black;
    stroke-width: 1;
    stroke-opacity: .8;
    stroke-linejoin: round;
    pointer-events: none;
    z-index: 1;
}

.crane_long {
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, .8)) url(#ombre_interne_long);
}

.ban_logo_crane_court {
    width: 87px;
    fill: var(--couleur_logo);
    stroke: black;
    stroke-width: 1;
    stroke-opacity: .8;
    stroke-linejoin: round;
    pointer-events: none;
    transform: translate(0px, 24px);
    z-index: 1;
}

.crane_court {
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, .8)) url(#ombre_interne_court);
}

.ban_titre_ph_court {
    font-family: Fredericka the great, sans-serif;
    font-size: 3.0em;
    height: 150px;
    width: 270px;
    stroke: transparent;
    fill: var(--couleur_ph_titre);
    text-anchor: middle;
    dominant-baseline: middle;
    filter: drop-shadow(4px 4px 1px rgba(0, 0, 0, .8));
    transform: translate(-10px, 10px);
}

.ban_titre_ph_court text {
    transform: translate(51px, 30px);
}

.ban_titre_ph_court .horreur {
    transform: translate(51px, 75px);
}

.oeil_gauche {
    fill: transparent;
    stroke: black;
    stroke-width: 1;
}

.oeil_droit {
    fill: transparent;
    stroke: black;
    stroke-width: 1;
}

.menuNav {
    background-color: var(--couleur_barres);
    outline: 2px solid black;
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, .8));
    padding: 10px;
    position: absolute;
    transform: translate(180px, 130px);

    display: grid;
    gap: 5px;
    opacity: 100%;
    transition: opacity .5s;
    z-index: 1;
}

.invisible {
    opacity: 0%;
    pointer-events: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav>.nav_bt_accueil {
    margin-left: auto;
}

nav>.nav_bt_contact {
    margin-right: 1em;
}

.nav_troisLignes {
    width: 40px;
    fill: red;
    transform: translate(0px, 26px);
    z-index: 0;
}

.nav_troisLignes circle {
    filter: drop-shadow(5px 5px 1px rgba(0, 0, 0, .8));
}

.nav_troisLignes path {
    stroke: white;
    stroke-width: 10px;
    stroke-linecap: round;
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, .8));
}

.nav_troisLignes:hover {
    cursor: pointer;
}

.aMasquer_long {
    mask: url('#masque_crane_long');
}

.aMasquer_court {
    mask: url('#masque_crane_court');
}

.titre {
    font-weight: bold;
    color: var(--couleur_barres);
}

/* css pour l'affichage des pastilles dans blog et dans films */
.pastilles {
    min-width: 65px;
    max-width: 65px;
    width: 65px;
}

.past_rouge,
.past_orange,
.past_jaune,
.past_verte {
    stroke: var(--couleur_barres);
    opacity: 15%;
}

.past_rouge {
    fill: var(--past_rouge);
}

.past_orange {
    fill: var(--past_orange);
}

.past_jaune {
    fill: var(--past_jaune);
}

.past_verte {
    fill: var(--past_verte);
}

.active {
    opacity: 100%;
}


footer {
    background-color: var(--couleur_barres);
    padding: 0 10px 0 10px;
    margin-bottom: 15px;
    height: 25px;
    font-size: 0.8em;
    color: white;
    border-radius: 5px;

    display: grid;
    grid-template-columns: minmax(auto, 1000px) minmax(auto, 1000px);
    align-items: center;
    justify-self: center;
}

footer>.gauche {
    margin-left: 0.5em;
    white-space: nowrap;
}

footer>.droite {
    margin-left: auto;
    margin-right: 0.5em;
    white-space: nowrap;
}

footer a {
    text-decoration: none;
    cursor: text;
    color: white;
}

.aCacher {
    display: none;
}

/* code pour l'overlay */
#overlay {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;

    opacity: 0;
    visibility: hidden;

    transition: all .3s;
}

#overlay.active {
    visibility: visible;
    opacity: 1;
}

#afficheBA {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s;

    display: flex;
    justify-content: center;
    align-items: center;
}

#afficheBA.active {
    visibility: visible;
    opacity: 1;
    pointer-events: initial;
}

.bt_closeArticle {
    width: 40px;
    display: block;
    stroke: black;
    fill-opacity: .8;
    margin: 5px;
    float: right;
}

.bt_closeArticle:hover {
    cursor: pointer;
    stroke: red;
}

.bt_closeAfficheBA {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 40px;
    display: block;
    stroke: black;
    fill-opacity: .8;
    margin: 5px;
}

.bt_closeAfficheBA:hover {
    cursor: pointer;
    stroke: red;
}

.afficheMin {
    /* border-radius: 5px 5px 0 0; */
    width: 100%;
    vertical-align: bottom;
    cursor: pointer;
}

.conteneurAfficheMax {
    position: relative;
}

#conteneurBAMax {
    position: relative;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
}

#conteneurBAMax.active {
    visibility: visible;
    opacity: 1;
}

.afficheMax {
    outline: 1px solid white;
    border-radius: 15px;
    max-height: 95vh;
    max-width: 95vw;
}

/* css de l'iframe affichant la bande-annonce */
#iframe_ba {
    width: clamp(250px, 97vw, 650px);
    aspect-ratio: 16/9;
}

/* css du bouton bande annonce */
.bt_bande_annonce {
    cursor: pointer;
}

.ba_rect {
    fill: var(--couleur_barres);
    stroke: white;
    stroke-width: 2px;
    stroke-dasharray: 160, 25, 0, 160, 0, 25;
}

.ba_text {
    fill: white;
}

.article_contenu .article {
    text-align: justify;
    padding: 1em;
}

/* les liens s'affichent en "flex" dans certains endroits pour la mise en page. ds l'article on veut inline */
.article_contenu a {
    color: #0CF;
    display: inline;
    text-decoration: underline;
}

.signature {
    float: right;
    padding-right: 4em;
    padding-bottom: 1em;
}

@media (width <=840px) {
    .header_long {
        display: none;
    }

    .header_court {
        display: grid;
    }
}