/* =========================================================
   1. STYLE GÉNÉRAL DE LA PAGE
   ========================================================= */

/*
   box-sizing permet de calculer plus facilement
   la largeur des éléments.
*/
* {
    box-sizing: border-box;
}


/* Style général du corps de la page. */
body {
    margin: 0;
    background-color: #10131a;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}


/*
   Les images ne dépasseront jamais
   la largeur de leur conteneur.
*/
img {
    max-width: 100%;
}


/* Style général des titres. */
h1,
h2,
h3 {
    margin-top: 0;
}


/* Style général des liens. */
a {
    color: #f4c542;
}


/* Style des liens au passage de la souris. */
a:hover {
    color: #ffe17a;
}


/* =========================================================
   2. MENU DE NAVIGATION
   =========================================================

   Bootstrap gère le fonctionnement responsive du menu.

   Le CSS ci-dessous change seulement quelques couleurs.
   ========================================================= */

.navbar-brand {
    font-weight: bold;
}


/* Couleur des liens du menu. */
.navbar .nav-link {
    color: white;
}


/* Couleur des liens au survol. */
.navbar .nav-link:hover {
    color: #f4c542;
}


/* =========================================================
   3. EN-TÊTE DU SITE
   ========================================================= */

header {
    background-color: #171d29;
    padding: 70px 20px;
}


/*
   La présentation contient le texte
   et l'image principale.
*/
.presentation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    max-width: 1100px;
    margin: auto;
}


/* Partie contenant le texte. */
.presentation-texte {
    width: 55%;
}


/* Petit texte placé au-dessus du titre. */
.sous-titre {
    color: #f4c542;
    font-weight: bold;
    text-transform: uppercase;
}


/* Titre principal. */
h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
}


/* Partie contenant la couverture principale. */
.presentation-image {
    width: 35%;
    text-align: center;
}


/* Image principale. */
.presentation-image img {
    width: 300px;
    border: 5px solid white;
    border-radius: 8px;
    box-shadow: 8px 8px 15px black;
}


/* Bouton permettant d'aller vers les couvertures. */
.bouton {
    display: inline-block;

    margin-top: 20px;
    padding: 12px 20px;

    background-color: #f4c542;
    color: black;

    text-decoration: none;
    font-weight: bold;

    border-radius: 5px;
}


/* Changement de couleur au survol du bouton. */
.bouton:hover {
    background-color: #ffe17a;
    color: black;
}


/* =========================================================
   4. STYLE GÉNÉRAL DES SECTIONS
   ========================================================= */

section {
    padding: 70px 20px;
}


/*
   Les titres et les paragraphes placés directement
   dans une section sont centrés.
*/
section > h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}


section > p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}


/* =========================================================
   5. PRÉSENTATION DES INFORMATIONS
   ========================================================= */

.informations {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    max-width: 1100px;
    margin: 40px auto 0 auto;
}


/* Chaque article devient une petite carte. */
.information {
    width: 30%;

    margin: 10px;
    padding: 25px;

    background-color: #1d2431;

    border: 1px solid #3b4351;
    border-radius: 8px;
}


/* Titre des cartes. */
.information h3 {
    color: #f4c542;
}


/* =========================================================
   6. GALERIE DES COUVERTURES
   ========================================================= */

#episodes {
    background-color: #0b0e14;
}


/*
   Le JavaScript ajoute les cartes
   à l'intérieur de cette galerie.
*/
#galerie {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    max-width: 1200px;
    margin: 40px auto 0 auto;
}


/* Carte créée par JavaScript. */
.carte {
    width: 240px;

    margin: 15px;
    padding: 15px;

    background: #373B44;  
background: -webkit-linear-gradient(to bottom, #4286f4, #373B44);  
background: linear-gradient(to bottom, #4286f4, #373B44); 
    
    color: white;

    border: 1px solid silver;
    border-radius: 8px;

    text-align: center;
}


/* Titre de la carte. */
.carte h3 {
    margin-top: 15px;
    margin-bottom: 5px;

    color: white;
}


/* Paragraphe de la carte. */
.carte p {
    margin-top: 0;
}


/*
   Le bouton contient uniquement la couverture.

   On retire son fond et sa bordure.
*/
.bouton-couverture {
    width: 100%;
    padding: 0;

    background-color: transparent;

    border: none;
    cursor: pointer;
}


/* Couverture de la bande dessinée. */
.couverture {
    width: 100%;
    height: 320px;

    object-fit: contain;

    border-radius: 5px;
}


/* Petite ombre lorsque la souris passe sur une couverture. */
.couverture:hover {
    box-shadow: 0 0 15px #f4c542;
}


/* =========================================================
   7. PRÉSENTATION DE L'AUTEUR
   ========================================================= */

#auteur {
    background-color: #171d29;
}


/* Contient l'image et le texte de l'auteur. */
.auteur-contenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    max-width: 1000px;
    margin: auto;
}


/* Partie contenant l'image. */
.auteur-image {
    width: 35%;
    text-align: center;
}


/* Portrait de Tito Faraci. */
.auteur-image img {
    width: 300px;

    border: 5px solid white;
    border-radius: 8px;

    box-shadow: 8px 8px 15px black;
}


/* Partie contenant le texte. */
.auteur-texte {
    width: 55%;
}


/* Titre de la partie auteur. */
.auteur-texte h2 {
    font-size: 36px;
}


/* =========================================================
   8. PIED DE PAGE
   ========================================================= */

footer {
    padding: 50px 20px 20px 20px;

    background-color: #05070a;
    color: white;
}


/* Contient le logo et les coordonnées. */
.footer-contenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    max-width: 1000px;
    margin: auto;
}


/* Partie contenant le logo. */
.footer-logo {
    width: 30%;
    text-align: center;
}


/* Logo Disney. */
.footer-logo img {
    width: 180px;

    padding: 10px;

    background-color: white;
    border-radius: 5px;
}


/* Partie contenant les coordonnées. */
.footer-texte {
    width: 60%;
}


/* Adresse. */
address {
    margin-bottom: 20px;
    font-style: normal;
}


/* Mention placée en bas du footer. */
.mention {
    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid #444;

    text-align: center;
    font-size: 14px;
}


/* =========================================================
   9. FENÊTRE D'AGRANDISSEMENT
   ========================================================= */

#fenetre-image {
    width: 600px;
    max-width: 90%;

    padding: 20px;

    background-color: #171d29;
    color: white;

    border: 2px solid #f4c542;
    border-radius: 8px;

    text-align: center;
}


/*
   Couleur sombre placée derrière le dialog.
*/
#fenetre-image::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}


/* Image agrandie. */
#image-agrandie {
    display: block;

    max-width: 100%;
    max-height: 70vh;

    margin: 20px auto;
}


/* Bouton de fermeture. */
#fermer-image {
    padding: 10px 20px;

    background-color: #f4c542;
    color: black;

    border: none;
    border-radius: 5px;

    font-weight: bold;
    cursor: pointer;
}


/* Bouton de fermeture au survol. */
#fermer-image:hover {
    background-color: #ffe17a;
}


/* =========================================================
   10. AFFICHAGE SUR LES PETITS ÉCRANS
   =========================================================

   Cette partie adapte les éléments du site
   aux téléphones et aux tablettes.
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Le texte et l'image passent l'un sous l'autre. */
    .presentation-texte,
    .presentation-image {
        width: 100%;
        text-align: center;
    }


    /* Espace au-dessus de l'image principale. */
    .presentation-image {
        margin-top: 40px;
    }


    /* Le titre principal devient plus petit. */
    h1 {
        font-size: 34px;
    }


    /* Les cartes d'information occupent plus de largeur. */
    .information {
        width: 100%;
    }


    /* Les cartes de la galerie deviennent moins larges. */
    .carte {
        width: 200px;
        margin: 10px;
    }


    /* L'image et le texte de l'auteur passent l'un sous l'autre. */
    .auteur-image,
    .auteur-texte {
        width: 100%;
        text-align: center;
    }


    /* Ajout d'un espace après le portrait. */
    .auteur-image {
        margin-bottom: 35px;
    }


    /* Le logo et les coordonnées passent l'un sous l'autre. */
    .footer-logo,
    .footer-texte {
        width: 100%;
        text-align: center;
    }


    /* Ajout d'un espace sous le logo. */
    .footer-logo {
        margin-bottom: 30px;
    }

}