/* ========================
 VARIABLES
======================== */
:root {
    /* Color */
    /* Primary */
    /* Index (Header/Footer) */
    --dolpo--color--primary-violet: #2D2A36;
    --dolpo--color--primary-magenta: #E6007E;
    --dolpo--color--primary-blue: #36A9E1;
    /* secondary */
    --dolpo--color--secondary-blue-o: #2D2E83;
    --dolpo--color--secondary-blue-c: #36A9E1;
    --dolpo--color--secondary-blue-p: #29235C;
    --dolpo--color--secondary-green-f: #2FAC66;
    --dolpo--color--secondary-green-p: #DEDC00;
    --dolpo--color--secondary-green-e: #00A19A;
    --dolpo--color--secondary-green-pin: #006633;
    --dolpo--color--secondary-orange: #E94E1B;
    --dolpo--color--secondary-violet: #662483;
    --dolpo--color--secondary-purple: #A3195B;
    --dolpo--color--secondary-yellow: #F9B233;
    --dolpo--color--secondary-yellow-o: #FFED00;
    --dolpo--color--secondary-lightgrey: #EDEDED;
    --dolpo--color--secondary-brown: #A48A7B;
    /* Neutral */
    --dolpo--color--neutral-white: #ffffff;
    --dolpo--color--neutral-grey: #989898;
    --dolpo--color--neutral-grey-d: #5E5E5E;
    --dolpo--color--neutral-grey-c: #DBDBDB;
    --dolpo--color--neutral-black: #000;

    /* font-size */
    --dolpo--font-size--12px: .75rem;
    --dolpo--font-size--13px: .8125rem;
    --dolpo--font-size--14px: .875rem;
    --dolpo--font-size--18px: 1.125rem;
    --dolpo--font-size--19px: 1.1875rem;
    --dolpo--font-size--20px: 1.25rem;
    --dolpo--font-size--22px: 1.375rem;
    --dolpo--font-size--24px: 1.5rem;
    --dolpo--font-size--26px: 1.625rem;
    --dolpo--font-size--28px: 1.75rem;
    --dolpo--font-size--32px: 2rem;
    --dolpo--font-size--42px: 2.625rem;
    --dolpo--font-size--44px: 2.75rem;

    /* Mappemonde */
    --mappemonde--color--yellow: #ddba5a;
    --mappemonde--color--red: #af0e52;
    --mappemonde--color--pink: #db82a3;
    --mappemonde--color--lightblue: #a1cacf;
    --mappemonde--color--green: #009d91;
}

/* ============= reset css ============== */
input[type=checkbox] {
    display: none;
}

/* ========================
 MAP
======================== */

@media (max-width: 1000px) {
    #world-map {
        display: none;
    }   
}

#map {
    position: relative;
    width: 1200px;
    height: 608px;
    text-align: center;
    padding: 0 10px;
}

#map__image {
    display: flex;
    align-items: center;
    position: relative;
    width: 1200px;
    height: 608px;
    text-align: center;
    background-image: url(../design/images/bg-mappemonde.jpg);
    background-size: fill;
}

.map__svg {
    width: 100%;
    vertical-align: middle;
    text-align: center;
}

#map svg {
    width: 100%;
    max-height: 100%;
    text-align: center;
}

#europe {
    position: relative;
    height: 95%;
    padding-right: 150px;
}

#map__image.active-europe::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    right: 205px;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0, 0) 10px, #0051dd7b 60px, rgba(0,0,0, 0));
    z-index: 1;
}

#map__image .map-hover-zones rect, 
#map__image .map-hover-zones path:not(.bg-transparent) {
    filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.6));
}

#map__image .map-hover-zones:hover rect, 
#map__image .map-hover-zones:hover path:not(.bg-transparent) {
    fill: #40e353;
    transition: fill;
    transition: fill .3s ease;
}

#map__image .map-hover-zones.active-selection rect, 
#map__image .map-hover-zones.active-selection path:not(.bg-transparent) {
    fill: #40e353;
}

.selection-zone-toggle {
    cursor: pointer;
}

#fond-dark{
    fill: transparent;
}

.bg-transparent {
    fill:transparent!important;
}

#world-asia {
    fill:var(--mappemonde--color--green);
}

#world-mid-orient {
    fill:var(--mappemonde--color--pink);
}

#world-africa rect {
    fill:var(--mappemonde--color--yellow);
}

#world-oceania rect {
    fill: var(--mappemonde--color--lightblue);
}

#world-russia rect {
    fill: var(--mappemonde--color--red);
}

#world-europe rect {
    fill:var(--mappemonde--color--lightblue);
}

#world-south-america rect:not(.bg-transparent) {
    fill:var(--mappemonde--color--green);
}

#world-north-america {
    fill:var(--mappemonde--color--yellow);
}

.map-color-pink {
    fill:var(--mappemonde--color--pink);
}

.map-color-red {
    fill: var(--mappemonde--color--red);
}

.map-color-green {
    fill:var(--mappemonde--color--green);
}

.map-color-lightblue {
    fill:var(--mappemonde--color--lightblue);
}

.map-color-yellow {
    fill:var(--mappemonde--color--yellow);
}

.map-zone-red path,
.map-zone-red path:not(.bg-transparent),
.map-zone-red rect:not(.bg-transparent){
    fill: var(--mappemonde--color--red);
}

.map-zone-pink path,
.map-zone-pink path:not(.bg-transparent),
.map-zone-pink rect:not(.bg-transparent){
    fill:var(--mappemonde--color--pink);
}

.map-zone-green path,
.map-zone-green path:not(.bg-transparent),
.map-zone-green rect:not(.bg-transparent){
    fill:var(--mappemonde--color--green);
}

.map-zone-lightblue path,
.map-zone-lightblue path:not(.bg-transparent),
.map-zone-lightblue rect:not(.bg-transparent){
    fill:var(--mappemonde--color--lightblue);
}

.map-zone-yellow path,
.map-zone-yellow path:not(.bg-transparent),
.map-zone-yellow rect:not(.bg-transparent){
    fill:var(--mappemonde--color--yellow);
}

.france-1{fill:#0066FF;}
.france-2{fill:none;stroke:#FFFFFF;}
.france-3{fill:#330099;}
.france-4{fill:#5CBFE6;}
.france-5{fill:#3300FF;}

/* ============= MAP zoom ============= */

#map__zoom {
    position: absolute;
}

#map__zoom ul li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    padding: 20px;
    font-size: 18px;
    color: #fff;
    background-color: #0a1429ac;
    border: 1px solid #fff;
    border-right: none;
    border-radius: 50%;
    z-index: 9;
}

#map__zoom ul li:before{
    content: "+";
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    font-size: 30px;
}

.map-modal-toggle, .list-modal-toggle, .cancel-selection-zoom {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 100px;
    height: 100px;
    padding-top: 50px;
}

.map-appear {
    animation: map-appear 1s linear;
}

@keyframes map-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.map-zoom {
    animation: map-zoom 3s linear;
}

@keyframes map-zoom {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    90% {
        opacity: 0;
    }

    100% {
        transform: scale(8);
    }
}

/* ============= Input ============= */

#map--input {
    display: none;
}

.zoom-modal {
    cursor: pointer;
}

/* ============= RESULTAT ============= */

#map__result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#btn--result-map {
    max-width: 320px;
    padding: 6px 20px;
    margin: 10px auto;
    text-align: center;
    border-radius: 10px;
    color: var(--dolpo--color--neutral-white);
    background-color: var(--dolpo--color--secondary-violet);
    background-color: var(--dolpo--color--primary-blue);
    background-color: var(--dolpo--color--secondary-orange);
}

.result-map--message  {
    text-transform: uppercase;
    font-weight: bold;
    font-size: var(--dolpo--font-size--22px);
}

#checked-elements-field {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
    row-gap: 8px;
    text-align: center;
    padding: 20px;
}

/* étiquettes seléctions */
#checked-elements-field > span > span {
    position: relative;
    display: block;
    padding: 10px 30px 10px 20px;
    color: #000;
    background-color: #d5e9f1;
    border-radius: 20px;
    cursor: pointer;
}

#checked-elements-field > span > span::after {
    content: "×";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    font-size: 20px;
    color: var(--dolpo--color--neutral-grey);
}

#checked-elements-field > span > span:hover {
    opacity: .8;
}

/* ============= CHRONOLOGIE ============= */
#chronologie {
    opacity: 1;
    transition: all .3s ease;
    overflow: hidden;
    z-index: 9;
}

#chronologie.inactive {
    background-color: #081639cc;
    padding: 100px 20px 10px 20px;
    z-index: 1;
    transition: all .3s ease;
}

/* Accordeon fermer */
#chronologie.open-toggle {
    padding: 20px 20px 10px 20px;
}

.accordion__title {
    cursor: pointer;
}

.categorie--chronologie {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(calc(-50% + 60px));
    text-transform: uppercase;
    padding: 20px 20px 10px 20px;
    color: #fff;
    background-color: #081639;
    border: 1px solid #fff;
    border-top: none;
    border-radius: 26px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 9;
}

.accordion__content-y {
    width: 790px;
}

.categorie--chronologie > div {
    display: flex;
    column-gap: 20px;
}

.chronologie__title {
    font-family: 'Coda', sans-serif;
    font-size: var(--dolpo--font-size--18px);
    font-weight: 600;
}

.categorie--chronologie ul {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.categorie--chronologie ul:before {
    content: "";
    position: absolute;
    top: calc(50% - 11px);
    width: 100%;
    height: 2px;
    background-color: #1f4c79;
    box-shadow: inset 0px 0px 5px rgba(0,0,0,0.5);
    z-index: 1;
}

.categorie--chronologie li {
    min-width: 90px;
    text-align: center;
    font-size: 11px;
    white-space: nowrap;
}

.chronologie-label {
    position: relative;
    padding: 20px 5px 14px 5px;
    cursor: pointer;
    z-index: 3;
}

.js-accordion-trigger-y {
    cursor: pointer;
}

/* Carres */

.categorie--chronologie label::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: #1f4c79;
    border: 0.5px solid rgba(0,0,0,0.5);
    box-shadow: inset 0px 0px 5px rgba(0,0,0,0.5);
    z-index: 2;
}

.categorie--chronologie input:checked+label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: #04F9E7;
    box-shadow: inset 0px 0px 5px rgba(0,0,0,1);
    z-index: 3;
}

/* Sub pannel */

.sub-chrono-pannel {
    display: none;
    top: -95px;
    left: 258px;
    height: 0;
    padding: 25px 20px 15px 20px;
    background-color: #081639;
    z-index: 0;
    overflow: hidden;
}

#chronologie.inactive .sub-chrono-pannel {
    background-color: #081639;
}

.sub-chrono-pannel.active {
    height: auto;
    transition: all .3s ease;
}

.sub-chrono-pannel.active-zindex {
    z-index: 9;
}

.sub-chrono-pannel.active-display {
    display: block;
    height: auto;
}

.sub-chrono-pannel .accordion__content-y {
    width: 945px;
}

.button-chrono-return {
    display: block;
    width: 100px;
    font-size: var(--dolpo--font-size--14px);
    text-align: center;
}

/* ============= CATEGORIES ============= */

#categorie--categorie {
    position: absolute;
    top: 100px;
    width: max-content;
    overflow: visible;
    z-index: 9;
}

.map__categorie--title {
    margin-bottom: 10px;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Coda', sans-serif;
    font-weight: 900;
    color: #000; 
    white-space: nowrap;
}

#categorie--categorie .menu__content {
    position: absolute;
    display: block!important;
    opacity: 1!important;
    top: 0;
    left: 0;
    transform: translateX(0)!important;
    width: max-content;
    min-width: 160px;
    max-width: 420px;
    height: fit-content;
    padding: 20px 25px 10px 20px;
    color: var(--dolpo--color--neutral-grey);
    background-color: var(--dolpo--color--neutral-white);
    border-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    transition: all .3s ease;
    z-index: 9;
    overflow: visible;
}



#categorie--categorie .menu__content a:hover {
    color: var(--dolpo--color--primary-blue);
}

#categorie--categorie .menu__content .accordion__content {
    padding-bottom: 20px;
}

#categorie--categorie .submenu__title {
    margin-bottom: 5px;
    font-family: 'Coda', sans-serif;
    font-weight: 900;
    font-size: var(--dolpo--font-size--14px);
    text-transform: uppercase;
    color: #000;
    background-image: none;
}

/* BORDER */
#categorie--categorie .menu__item--link, 
#categorie--categorie .submenu__item--link, 
#categorie--categorie .sub-submenu__item--link {
    position: relative;
    display: block;
    font-weight: normal;
    padding: 8px 10px 4px 0;
    margin-bottom: 2px;
    background-image: none;
}

#categorie--categorie .menu__item:has(ul) .menu__item--link, 
#categorie--categorie .submenu__item:has(ul) .submenu__item--link {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2016.3%2011.5%22%20style%3D%22enable-background%3Anew%200%200%2016.3%2011.5%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%20.st0%7Bfill%3A%23B3B3B3%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M16.2%2C5.5l-5.4-5.4c-0.3-0.3-0.7-0.1-0.7%2C0.3v4.5H0.5C0.2%2C4.9%2C0%2C5.1%2C0%2C5.4v0.7c0%2C0.3%2C0.2%2C0.5%2C0.5%2C0.5h9.6v4.5%20c0%2C0.4%2C0.4%2C0.5%2C0.7%2C0.3l5.4-5.4C16.3%2C5.9%2C16.3%2C5.6%2C16.2%2C5.5z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: bottom 7px right;
    background-size: 10px;
}

#categorie--categorie .sub-submenu__item--link {
    background-image: none;
}

#categorie--categorie .menu__item--link::after, 
#categorie--categorie .submenu__item--link::after, 
#categorie--categorie .sub-submenu__item--link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #b3b3b3;
}

#categorie--categorie .menu__item, 
#categorie--categorie .submenu__item, 
#categorie--categorie .sub-submenu__item {
    background-image: none;
    border: none;
    height: auto;
    text-align: left;
    font-weight: lighter;
}

#categorie--categorie .menu__item .icon-arrow-down {
    display: none;
}

#categorie--categorie .submenu__icon--back {
    display: block;
    margin-bottom: 18.5px;
    color: var(--dolpo--color--neutral-grey);
} 

#categorie--categorie .submenu__icon--back .icon-arrow-right-fat {
    display: inline-block;
    font-size: 0.75rem;
    transform: rotate(180deg);
}

/* SUB-SUBMENU */
#categorie--categorie .ss-menu-panel {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dolpo--color--neutral-white);
}

#categorie--categorie .sub-submenu__columns {
    display: flex;
    flex-direction: column;
}

/* ========== JS CONTROL SUB-MENU ===========*/

/* SUBMENU PANEL APPEARANCE */
#categorie--categorie .menu__content {
    box-shadow: 5px 15px 10px rgba(0, 0, 0, 0.3);
}

#categorie--categorie .s-menu-panel, 
#categorie--categorie .ss-menu-panel {
    position: absolute;
    display: none;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: max-content;
    padding: 20px;
    color: var(--dolpo--color--neutral-grey);
    background-color: var(--dolpo--color--neutral-white);
    transform: translateX(-90%);
    border-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: 5px 15px 10px rgba(0, 0, 0, 0.3);
    transition: all .3s ease-in-out;
    overflow: visible;
    z-index: 9;
}

#categorie--categorie .s-menu-panel.active {
    opacity: 1;
    animation: ca-MenuSlide .3s;	
    transform: translateX(0);
    transition: all .3s ease-in-out;
}

#categorie--categorie .s-menu-panel.active-display {
    display: block;
}

/* SUB-SUBMENU APPEARANCE */
#categorie--categorie .ss-menu-panel {
    display: none;
    opacity: 0;
    transform: translateX(-90%);
    transition: all .3s ease-in-out;
}

#categorie--categorie .ss-menu-panel.active {
    position: absolute;
    opacity: 1;
    animation: ca-MenuSlide .3s;
    transform: translateX(0);
    transition: all .3s ease-in-out;
}

#categorie--categorie .ss-menu-panel.active-display {
    display: flex;
    flex-direction: column;
}

@keyframes ca-MenuSlide {

    0% {
        opacity: 0;
        transform: translateX(-90%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }

}

/* ============= Tags ============= */

#categorie--tags {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 8;
}

#categorie--tags ul {
    position: relative;
    left: 72px;
    display: flex;
    align-items: center;
    width: 100%;
}

#categorie--tags .selection-tag {
    position: relative;
}

.selection-tag label {
    position: relative;
    white-space: nowrap;
    background-color: #f2f2f2;
    padding: 6px 36px;
    margin: 0;
    font-size: var(--dolpo--font-size--18px);
    color: #808080;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid #b3b3b3;
    border-bottom: none;
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 0;
}

.selection-tag:nth-child(1) label {
    left: 0;
}

.selection-tag:nth-child(2) label {
    left: -36px;
}

.selection-tag:nth-child(3) label {
    left: -72px;
}

.selection-tag:nth-child(4) label {
    left: -108px;
}

.selection-tag:nth-child(5) label {
    left: -144px;
} 

#categorie--tags .check-tag:checked+label {
    background-color: #00ffff;
    color: #4d4d4d;
    z-index: 9;
}

#button--return-map {
    position: absolute;
    bottom: 50px;
    right: 30px;
    padding: 10px 15px 10px 35px;
    color: #fff;
    background-color: #091c40;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2023.5%2026.5%22%20style%3D%22enable-background%3Anew%200%200%2023.5%2026.5%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%20.st0%7Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Crect%20x%3D%2212.6%22%20y%3D%224.2%22%20transform%3D%22matrix(0.7071%20-0.7071%200.7071%200.7071%202.1737%2014.6652)%22%20class%3D%22st0%22%20width%3D%2212.3%22%20height%3D%221%22%2F%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M14.1%2C17.8c-1.2-1.2-1.9-2.8-1.9-4.5s0.7-3.3%2C1.9-4.5l0.7%2C0.7c-1%2C1-1.6%2C2.4-1.6%2C3.8c0%2C1.4%2C0.6%2C2.8%2C1.6%2C3.8%20L14.1%2C17.8z%22%2F%3E%3Crect%20x%3D%2218.3%22%20y%3D%2215.6%22%20transform%3D%22matrix(0.7071%20-0.7071%200.7071%200.7071%20-9.9123%2019.6722)%22%20class%3D%22st0%22%20width%3D%221%22%20height%3D%2212.3%22%2F%3E%3Crect%20x%3D%220.4%22%20y%3D%224.2%22%20transform%3D%22matrix(0.7071%20-0.7071%200.7071%200.7071%20-1.399%206.0399)%22%20class%3D%22st0%22%20width%3D%2212.3%22%20height%3D%221%22%2F%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M1.9%2C17.8C0.7%2C16.6%2C0%2C15%2C0%2C13.3s0.7-3.3%2C1.9-4.5l0.7%2C0.7c-1%2C1-1.6%2C2.4-1.6%2C3.8c0%2C1.4%2C0.6%2C2.8%2C1.6%2C3.8L1.9%2C17.8z%20%22%2F%3E%3Crect%20x%3D%226.1%22%20y%3D%2215.6%22%20transform%3D%22matrix(0.7071%20-0.7071%200.7071%200.7071%20-13.4849%2011.0461)%22%20class%3D%22st0%22%20width%3D%221%22%20height%3D%2212.3%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: left 13px top 50%;
    border: 1px solid #fff;
    border-radius: 12px;
}

/* ============= List des pays ============= */

#map--list {
    position: absolute;
    right: -10px;
    top: 150px;
    z-index: 8;
}

#map--list .list-modal {
    max-width: 260px;
    padding: 18px 20px 10px 20px;
    text-align: left;
    background-color: #081639e2;
    color: #fff;
    border: 1px solid #fff;
    border-right: none;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    overflow-y: scroll;
}

#map--list .accordion__content {
    max-height: 300px;
    padding: 5px 0 10px 0;
}

#map--list .accordion__content > li {
    margin: 5px;
}

#map--list .accordion__title {
    text-align: left;
    text-transform: uppercase;
    font-family: 'Coda', sans-serif;
    font-weight: bold;
    padding-bottom: 5px;
    color: #545c6b;
}

#map--list .icon-arrow-down {
    font-size: 6px;
}

.list-color-toggle {
    cursor: pointer;
}

.list-color-toggle.active-list {
    color: #04F9E7;
}

/* ============= Initialiser ============== */
#button--initialize {
    position: absolute;
    top: 18px;
    left: 34px;
    width: 100px;
    padding: 10px 12px;
    color: #fff;
    background-color: #081639;
    border: 1px solid #fff;
    border-radius: 12px;
}

#button--initialize:hover {
    opacity: 0.9;
}