/* ========================================
   RÉGLAGES GÉNÉRAUX
   ======================================== */

   @font-face {
    font-family: "Rage Italic";
    src: url("fonts/RageItalic.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: #faf9f6;

    color: #1a1a1a;

    font-family: Cambria, Georgia, serif;

    font-size: 18px;

    line-height: 1.7;
}


/* ========================================
   NOM DE L'AUTEUR
   ======================================== */

.en-tete {
    max-width: 1000px;

    margin: 0 auto;

    padding: 100px 30px 0;

    text-align: center;
}


.en-tete h1 {
    margin: 0 0 60px 0;

    font-size: 52px;

    font-weight: normal;
}


.en-tete h1 a {
    color: #1a1a1a;

    font-family: "Rage Italic", cursive;

    font-size: 52px;

    font-weight: normal;

    text-decoration: none;

    cursor: pointer;
}


/* ========================================
   ONGLET
   ======================================== */

.onglets {

    display: flex;

    justify-content: center;

    gap: 120px;

    padding-bottom: 20px;

    border-bottom: 1px solid #d8d6d0;
}


.onglets button {

    border: none;

    background: none;

    padding: 0;

    color: #1a1a1a;

    font-family: "Courier New", Courier, monospace;

    font-size: 18px;

    cursor: pointer;

    text-decoration: none;
}


/* Onglet sélectionné */

.onglets button.active {

    text-decoration: underline;
}


/* Au passage de la souris */

.onglets button:hover {

    text-decoration: underline;
}


/* ========================================
   CONTENU
   ======================================== */

.contenu {

    max-width: 800px;

    margin: 0 auto;

    padding: 80px 30px;
}


/* ========================================
   SECTIONS
   ======================================== */

.section {

    display: none;
}


.section.active {

    display: block;
}


.section h2 {

    margin: 0 0 80px 0;

    font-family: Cambria, Georgia, serif;

    font-size: 15px;

    font-weight: normal;

    text-align: center;

    font-style: italic;
}


/* ========================================
   NOUVELLES
   ======================================== */

.nouvelle {

    padding-bottom: 70px;

    margin-bottom: 70px;

    border-bottom: 1px solid #d8d6d0;
}


.nouvelle:last-child {

    border-bottom: none;
}


.date {

    margin: 0 0 10px 0;

    color: #666;

    font-size: 15px;
}


.nouvelle h3 {

    margin: 0 0 20px 0;

    font-family: Cambria, Georgia, serif;

    font-size: 30px;

    font-weight: normal;

    font-style: italic;
}


/* Corps des nouvelles */

.nouvelle p:not(.date) {

    margin: 0;

    text-align: justify;
}


/* ========================================
   LIBRAIRIE
   ======================================== */

.livre {

    display: flex;

    align-items: flex-start;

    gap: 50px;

    padding-bottom: 80px;

    margin-bottom: 80px;

    border-bottom: 1px solid #d8d6d0;
}


.livre:last-child {

    border-bottom: none;

    margin-bottom: 0;
}


.couverture {

    flex: 0 0 230px;
}


.couverture img {

    display: block;

    width: 100%;

    height: auto;
}


.informations-livre {

    flex: 1;

    padding-top: 5px;
}


.informations-livre h3 {

    margin: 0 0 25px 0;

    font-family: Cambria, Georgia, serif;

    font-size: 30px;

    font-weight: normal;

    font-style: italic;
}


.resume {

    margin: 0;

    text-align: justify;
}


/* ========================================
   PRIX ET ACHAT
   ======================================== */

.achat {

    display: flex;

    align-items: baseline;

    gap: 25px;

    margin-top: 30px;
}


.prix {

    font-family: Cambria, Georgia, serif;

    font-size: 18px;
}


.acheter {

    color: #1a1a1a;

    font-family: "Courier New", Courier, monospace;

    font-size: 18px;

    text-decoration: underline;

    cursor: pointer;
}


.acheter:hover {

    text-decoration: none;
}


/* ========================================
   TÉLÉPHONE
   ======================================== */

@media (max-width: 600px) {


    .en-tete {

        padding-top: 60px;

    }


    .en-tete h1 {

        margin-bottom: 50px;

    }


    .en-tete h1 a {

        font-size: 40px;

    }


    .onglets {

        gap: 25px;

    }


    .onglets button {

        font-size: 16px;

    }


    .contenu {

        padding: 60px 25px;

    }


    .section h2 {

        font-size: 15px;

        margin-bottom: 60px;

    }


    .nouvelle h3 {

        font-size: 26px;

    }


    /* Librairie sur téléphone */

    .livre {

        flex-direction: column;

        gap: 30px;

        padding-bottom: 60px;

        margin-bottom: 60px;

    }


    .couverture {

        flex: none;

        width: 200px;

        margin: 0 auto;

    }


    .informations-livre {

        width: 100%;

        padding-top: 0;

    }


    .informations-livre h3 {

        font-size: 26px;

    }

}

/* ========================================
   PIED DE PAGE
   ======================================== */

.pied-de-page {

    max-width: 800px;

    margin: 80px auto 30px auto;

    padding: 25px 30px;

    border-top: 1px solid #d8d6d0;

    text-align: center;

    font-family: Cambria, Georgia, serif;

    font-size: 14px;

    color: #666;
}