* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #ffffff;
    color: #1d241f;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding: 22px 30px 18px;

    background: #ffffff;

    border-bottom: 1px solid #e2e5e2;
}


.brand h1 {
    margin: 0;

    font-size: clamp(
        24px,
        3vw,
        38px
    );

    letter-spacing: 1px;
}


.brand p {
    margin: 7px 0 0;

    font-size: 14px;

    letter-spacing: 3px;

    color: #6d746f;
}


/* =========================================================
   LÉGENDE
   ========================================================= */

.legend {
    display: flex;
    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}


.legend-item {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 14px;

    white-space: nowrap;
}


.legend-color {
    width: 20px;
    height: 20px;

    border-radius: 4px;

    border:
        1px solid
        rgba(0, 0, 0, 0.15);
}


.legend-color.visited {
    background: #3f8f5a;
}


.legend-color.upcoming {
    background: #d59a3a;
}


.legend-color.other {
    background: #d9ddd9;
}


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

#world-map {
    width: 100%;

    height:
        min(72vh, 760px);

    min-height: 420px;

    background: #dceaf0;
}


/* =========================================================
   POPUP
   ========================================================= */

.tes-country-popup
.leaflet-popup-content-wrapper {
    border-radius: 12px;
}


.tes-country-popup
.leaflet-popup-content {
    margin: 15px 17px;
}


.country-popup {
    min-width: 180px;
}


.popup-title {
    font-size: 20px;

    font-weight: 700;

    margin-bottom: 8px;
}


.popup-status {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 12px;
}


.popup-visited {
    background: #e1f0e5;
    color: #28643d;
}


.popup-upcoming {
    background: #f8ead2;
    color: #80531a;
}


.popup-cities strong {
    display: block;

    margin-bottom: 5px;
}


.popup-cities ul {
    margin: 5px 0 0;

    padding-left: 20px;
}


.popup-cities li {
    margin-bottom: 4px;
}


/* =========================================================
   BLOCS DES PAYS
   ========================================================= */

.country-lists {

    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;

    padding:
        30px;

    background:
        #f7f8f7;
}


/* =========================================================
   BLOC VISITED / UPCOMING
   ========================================================= */

.country-list {

    background:
        #ffffff;

    border:
        1px solid #e0e4e0;

    border-radius:
        14px;

    padding:
        22px;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.04);
}


.country-list h2 {

    display: flex;

    align-items: center;

    margin:
        0 0 18px;

    font-size: 21px;

    letter-spacing:
        0.3px;
}


.country-list h2::before {

    content: "";

    display: inline-block;

    width: 16px;

    height: 16px;

    margin-right: 9px;

    border-radius: 4px;
}


.visited-list h2::before {
    background: #3f8f5a;
}


.upcoming-list h2::before {
    background: #d59a3a;
}


/* =========================================================
   LISTE DES PAYS
   ========================================================= */

#visited-countries,
#upcoming-countries {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    align-items: center;
}


/* =========================================================
   BOUTONS PAYS
   ========================================================= */

.country-list-item {

    border: none;

    border-radius: 20px;

    padding:
        8px 13px;

    cursor: pointer;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}


.country-list-item:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 3px 7px
        rgba(0, 0, 0, 0.12);
}


.country-list-item:active {

    transform:
        translateY(0);
}


/* =========================================================
   PAYS VISITÉS
   ========================================================= */

.visited-item {

    background:
        #e5f1e8;

    color:
        #285e3b;

    border:
        1px solid
        #c8dfce;
}


/* =========================================================
   PAYS À VENIR
   ========================================================= */

.upcoming-item {

    background:
        #f8ecd9;

    color:
        #80531a;

    border:
        1px solid
        #ead4ad;
}


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

.map-error {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    font-size: 16px;

    color: #8a3028;
}


/* =========================================================
   LEAFLET
   ========================================================= */

.leaflet-container {

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.leaflet-control-zoom a {

    font-size: 22px;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .site-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 15px;
    }


    #world-map {

        height:
            65vh;

        min-height:
            400px;
    }


    .country-lists {

        padding:
            22px;
    }


    .country-list {

        padding:
            18px;
    }

}


/* =========================================================
   GSM
   ========================================================= */

@media (max-width: 600px) {

    .site-header {

        padding:
            17px 16px 14px;
    }


    .brand h1 {

        font-size:
            25px;
    }


    .brand p {

        font-size:
            12px;

        letter-spacing:
            2px;
    }


    .legend {

        gap:
            10px;
    }


    .legend-item {

        font-size:
            12px;
    }


    .legend-color {

        width:
            17px;

        height:
            17px;
    }


    #world-map {

        height:
            58vh;

        min-height:
            390px;
    }


    /* Les deux blocs passent l'un sous l'autre */

    .country-lists {

        grid-template-columns:
            1fr;

        padding:
            18px 14px;

        gap:
            15px;
    }


    .country-list {

        padding:
            16px;
    }


    .country-list h2 {

        font-size:
            19px;

        margin-bottom:
            15px;
    }


    .country-list-item {

        font-size:
            12px;

        padding:
            7px 10px;
    }

}
