:root{
    --police-cinzel-gras:Cinzel-Gras;
    --police-garogier:Garogier;
    --couleur-livre-primaire:#2E1F0E;
    --couleur-livre-secondaire:#52471E;
    --couleur-livre-accuentuation:#BEAC5B;
    --couleur-livre-boutons:#F0EFF4;
}

@font-face {
    font-family:Cinzel-Gras;
    src: url(media/Cinzel-Bold.ttf);
}

@font-face {
    font-family:Garogier;
    src: url(media/Garogier.ttf);
}

body{
    font-family: var(--police-cinzel-gras);
}

h1{
    font-family: var(--police-garogier);
}

h2{
    font-family: var(--police-garogier);
}

a{
    color: var(--couleur-livre-accuentuation);
    text-decoration: none;
    font-weight: 1000;
}

.en-tete{
    background-color: var(--couleur-livre-primaire);
    color: var(--couleur-livre-boutons);
}

.pied-de-page{
    background-color: var(--couleur-livre-primaire);
    color: var(--couleur-livre-boutons);
}

.section-heros{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 0 200px;
    overflow: hidden;
}

.section-heros-video{
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-heros-filtre{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.section-heros-contenu {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 100px;
    text-align: center;
    width: 100%;
    padding: 10%;
    z-index: 3;
}

.section-livre{
    background-color: var(--couleur-livre-secondaire);
    color: var(--couleur-livre-boutons);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 10%;
}

.section-livre-couverture{
    display: flex;
    width: 30%;
}

.section-livre-couverture img{
    width: 100%;
}

.section-livre-description{
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 70%;
}

.livre-texte{
    font-size: 30px;
}

.section-livre-personnage{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 10%;
}

.personnages-organisation{
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
}

.personnages-image {
    display: flex;
    width: 35%;
    flex-shrink: 0;
    border: 5px solid var(--couleur-livre-accuentuation);
    border-radius: var(--arrondi);
}

.personnages-image img{
    border-radius: var(--arrondi-serre);
    width: 100%;
    display: block;
}

.personnages-texte{
    font-size: 35px;
}

.livre-texte-organisation{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-livre-lieu{
    background-color: var(--couleur-livre-secondaire);
    color: var(--couleur-livre-boutons);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 10%;
}

.lieu-organisation{
    display: flex;
    flex-direction: row;
    gap: 5%;
    align-items: center;
}

.lieu-image{
    display: flex;
    width: 35%;
    flex-shrink: 0;
    border: 5px solid var(--couleur-livre-primaire);
    border-radius: var(--arrondi);
}

.lieu-image img{
    border-radius: var(--arrondi-serre);
    width: 100%;
    display: block;
}

.paragraphe{
    text-align: justify;
}

.contenu-promotionnel{
    font-style: italic;
}

.heros-contenu{
    color: var(--couleur-livre-boutons);
}

.heros-titre{
    font-size: 64px;
}

.heros-synopsis{
    font-size: 32px;
    text-align: center;
}

.heros-lien{
    color: var(--couleur-livre-accuentuation);
    text-decoration: none;
    font-size: 40px;
}

.titres-section{
    font-size: 50px;
}

.sous-titres-section{
    font-size: 40px;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s;
    visibility: hidden;
    opacity: 0;
}
  
.overlay:target {
    visibility: visible;
    opacity: 1;
}
  
.modal {
    width: 600px;
    margin: 75px auto;
    padding: 20px;
    background: var(--couleur-livre-boutons);
    position: relative;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 20px;
    height: 20px;
    transition: all 200ms;
    font-size: 48px;
    text-decoration: none;
    color: #ff0000;
}
  
.modal .content {
    overflow: auto;
}

.content img{
    height: 600px;
    max-width: 100%;
}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */

.habillage-nav a {
    transition: color 0.2s ease;
}

.habillage-nav a:hover {
    color: var(--couleur-livre-boutons);
}

.habillage-nav-alt a {
    transition: color 0.2s ease;
}

.habillage-nav-alt a:hover {
    color: var(--couleur-livre-boutons);
}

.heros-lien {
    transition: filter 0.2s ease;
}
.heros-lien:hover {
    filter: brightness(1.8);
}

.section-livre-couverture, .personnages-image, .lieu-image {
    transition: transform 0.2s ease;
}
.section-livre-couverture:hover, .personnages-image:hover, .lieu-image:hover {
    transform: translateY(4px);
}


@media only screen and (min-width: 320px) and (max-width: 425px){

    .section-heros {
        width: 100%;
        padding: 40px 2%;
        gap: 20px;
    }

    .section-heros-contenu{
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 40px;
    }

    .heros-lien{
        font-size: 28px;
    }

    .section-livre{
        display: flex;
        flex-direction: column;
        padding: 40px 2%;
        gap: 40px;
    }

    .section-livre-description{
        width: 100%;
    }

    .paragraphe{
        text-align: justify;
        font-size: 24px;
    }

    .section-livre-personnage{
        display: flex;
        flex-direction: column;
        padding: 40px 2%;
        gap: 40px;
    }

    .section-livre-lieu{
        display: flex;
        flex-direction: column;
        padding: 40px 2%;
        gap: 80px;
    }

    .section-livre-couverture {
        width: 100%;
    }

    .personnages-organisation{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .personnages-image {
        width: 100%;
    }


    .lieu-organisation{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .lieu-image {
        width: 100%;
    }

    .titres-section{
        font-size: 35px;
        text-align: center;
    }

    .sous-titres-section{
        font-size: 30px;
        text-align: center;
    }

    .heros-synopsis{
        text-align: justify;
        font-size: 21px;
    }

    .modal {
        width: 90%;
        max-width: 90%;
        margin: 40px auto;
        padding: 10px;
    }

    .modal .close {
        top: 10px;
        right: 20px;
        font-size: 36px;
    }
}