/* ---------------------------------------------------------- */
/* Distribution Pokémon                                      */
/* ---------------------------------------------------------- */


/* Bloc principal */

.distribution {
    display: grid;
    grid-template-columns: 25% minmax(0, 1fr);
    gap: 25px;

    width: 100%;

    align-items: start;
}


/* ---------------------------------------------------------- */
/* Image du Pokémon                                           */
/* ---------------------------------------------------------- */

.distribution-image {
    display: flex;

    justify-content: center;
    align-items: flex-start;

    width: 100%;
}

.distribution-image img {
    display: block;

    width: 100%;
    max-width: 300px;
    height: auto;

    object-fit: contain;
}


/* ---------------------------------------------------------- */
/* Partie droite                                              */
/* ---------------------------------------------------------- */

.distribution-contenu {
    min-width: 0;
    width: 100%;
}


/* ---------------------------------------------------------- */
/* Description                                                */
/* ---------------------------------------------------------- */

.distribution-description {
    width: 100%;

    margin: 0 0 20px 0;

    line-height: 1.5;
}

.distribution-lien {
    margin-top: 8px;
}


/* ---------------------------------------------------------- */
/* Tableau                                                    */
/* ---------------------------------------------------------- */

.distribution-table {
    width: 100%;

    border-collapse: collapse;

    margin: 0;
}

.distribution-table th,
.distribution-table td {
    padding: 8px 12px;

    vertical-align: top;
}

.distribution-table thead th {
    text-align: center;
}

.distribution-table tbody th {
    width: 120px;

    text-align: left;

    white-space: nowrap;
}


/* ---------------------------------------------------------- */
/* Attaques                                                   */
/* ---------------------------------------------------------- */

.distribution-attaques {
    list-style: none;

    margin: 0;
    padding: 0;
}

.distribution-attaques li {
    list-style: none;

    margin: 0 0 3px 0;
    padding: 0;
}

.distribution-attaques li:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------- */
/* Responsive                                                 */
/* ---------------------------------------------------------- */

@media screen and (max-width: 700px) {

    .distribution {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .distribution-image img {
        width: auto;
        max-width: min(250px, 80%);
    }

    .distribution-description {
        margin-bottom: 15px;
    }

    .distribution-table tbody th {
        width: auto;

        white-space: normal;
    }

}


/* ---------------------------------------------------------- */
/* Très petits écrans                                         */
/* ---------------------------------------------------------- */

@media screen and (max-width: 450px) {

    .distribution-table th,
    .distribution-table td {
        padding: 6px 8px;
    }

}