/* ==========================================================
   B612 — MES FAVORIS
   DESKTOP

   STRUCTURE CSS
   .b612-account--favorites
     └── .b612-account__section
          ├── .b612-account__section-title
          └── .b612-account__favorite
========================================================== */


/* ==========================================================
   CONTENEUR DE PAGE
========================================================== */

.b612-account--favorites {

    width: 100%;

    max-width: 1180px;

    margin: 0 auto;

    padding: 80px 40px 100px;

    box-sizing: border-box;

}


/* ==========================================================
   GRILLE DES FAVORIS
   Le PHP actuel ne possède pas de .b612-account__favorites.
   On applique donc la grille directement à la section.
========================================================== */

.b612-account--favorites .b612-account__section {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

}


/* Le titre occupe toute la largeur */

.b612-account--favorites .b612-account__section-title {

    grid-column: 1 / -1;

    margin-bottom: 0;

}


/* ==========================================================
   CARTE
========================================================== */

.b612-account--favorites .b612-account__favorite {

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 26px;

    border:
        1px solid
        #ECE8E3;

    border-radius: 18px;

    background-color:
        #F7F3EA;

    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(120, 105, 85, .045) 0px,
            rgba(120, 105, 85, .045) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, .28) 0px,
            rgba(255, 255, 255, .28) 1px,
            transparent 1px,
            transparent 9px
        );

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


/* ==========================================================
   COUVERTURE
========================================================== */

.b612-account--favorites .b612-account__favorite-cover {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-bottom: 22px;

}


.b612-account--favorites .b612-account__favorite-cover img {

    display: block;

    width: auto;

    max-width: 100%;

    height: 280px;

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


/* ==========================================================
   CONTENU
========================================================== */

.b612-account--favorites .b612-account__favorite-content {

    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;

}


/* ==========================================================
   TITRE
========================================================== */

.b612-account--favorites .b612-account__favorite-title {

    margin: 0 0 10px;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 22px;

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -.01em;

}


.b612-account--favorites .b612-account__favorite-title a {

    color:
        #1A1A1A;

    text-decoration: none;

}


/* ==========================================================
   AUTEUR
========================================================== */

.b612-account--favorites .b612-account__favorite-author {

    margin: 0 0 18px;

    font-family:
        'Inter',
        sans-serif;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.3;

    color:
        #68645F;

}


/* ==========================================================
   VOIR LA FICHE
========================================================== */

.b612-account--favorites .b612-account__favorite-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    width: fit-content;

    margin: 0 0 14px;

    font-family:
        'Inter',
        sans-serif;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.2;

    color:
        #1A1A1A;

    text-decoration: none;

}


.b612-account--favorites .b612-account__favorite-link span {

    font-size: 17px;

    line-height: 1;

    transition:
        transform .2s ease;

}


/* ==========================================================
   RETIRER DES FAVORIS
========================================================== */

.b612-account--favorites .b612-account__favorite-remove {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    width: fit-content;

    margin: 0 0 20px;

    padding: 0;

    border: 0;

    background: transparent;

    font-family:
        'Inter',
        sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.2;

    color:
        #8A8580;

    cursor: pointer;

}


.b612-account--favorites .b612-account__favorite-remove::before {

    content:
        "\f2ed";

    font-family:
        "Font Awesome 6 Free";

    font-size: 13px;

    font-weight: 900;

}


/* ==========================================================
   RÉSERVER
========================================================== */

.b612-account--favorites .b612-account__favorite-reserve {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: fit-content;

    min-height: 38px;

    margin: 0 0 18px;

    padding:
        0 17px;

    border: 0;

    border-radius: 999px;

    background:
        #F4C45F;

    font-family:
        'Inter',
        sans-serif;

    font-size: 12px;

    font-weight: 500;

    line-height: 1;

    color:
        #1A1A1A;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.b612-account--favorites .b612-account__favorite-reserve-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


.b612-account--favorites .b612-account__favorite-reserve i {

    font-size: 12px;

}


/* ==========================================================
   DISPONIBILITÉ
========================================================== */

.b612-account--favorites .b612-account__favorite-availability {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: auto;

    padding-top: 2px;

    font-family:
        'Inter',
        sans-serif;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.3;

    color:
        #1A1A1A;

}


.b612-account--favorites .b612-account__favorite-availability-dot {

    display: block;

    width: 9px;

    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;

    background:
        #A8A2A0;

}


/* ==========================================================
   DATE DE RETOUR
========================================================== */

.b612-account--favorites .b612-account__favorite-return {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 8px;

    font-family:
        'Inter',
        sans-serif;

    font-size: 11px;

    font-weight: 400;

    line-height: 1.3;

    color:
        #77736E;

}


.b612-account--favorites .b612-account__favorite-return-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


.b612-account--favorites .b612-account__favorite-return-icon i {

    font-size: 11px;

}


/* ==========================================================
   ACTION DE FIN DE PAGE
========================================================== */

.b612-account--favorites .b612-account__action {

    margin-top: 32px;

}


/* ==========================================================
   HOVER
========================================================== */

@media (hover: hover) and (pointer: fine) {

  .b612-account__favorite:hover {

      border-color:
          rgba(255, 213, 0, 0.55);

      box-shadow:
          0 14px 34px
          rgba(6, 26, 51, 0.08);

  }

    .b612-account--favorites .b612-account__favorite:hover
    .b612-account__favorite-cover img {

        transform:
            scale(1.02);

        box-shadow:
            0 8px 18px
            rgba(0, 0, 0, .11);

    }


    .b612-account--favorites .b612-account__favorite-link:hover span {

        transform:
            translateX(3px);

    }


    .b612-account--favorites .b612-account__favorite-remove:hover {

        color:
            #1A1A1A;

    }


    .b612-account--favorites .b612-account__favorite-reserve:hover {

        transform:
            translateY(-1px);

        box-shadow:
            0 5px 12px
            rgba(0, 0, 0, .10);

    }

}
