/* ------- Important ! Please at least keep the last part of this CSS ----------- */
/* ------- that adapts content width and height so that aspect ratio  ----------- */
/* ------- is kept between 9/16 a,d 3/4 (portait orientation)         ----------- */

/* Normalize margin and padding to ease elements positioning */

@font-face {
    font-family: Apfel;
    src: url("../data/Polices-Labeleco/Apfel/ApfelGrotezk-Regular.otf");
}

@font-face {
    font-family: ApfelMittel;
    src: url("../data/Polices-Labeleco/Apfel/ApfelGrotezk-Mittel.otf");
}

@font-face {
    font-family: ApfelSatt;
    src: url("../data/Polices-Labeleco/Apfel/ApfelGrotezk-Satt.otf");
}

#video-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* 100% de la largeur de la vue */
    height: 100vh; /* 100% de la hauteur de la vue */
    background-color: #000;
    z-index: 9999;
    overflow: hidden; /* Sécurité anti-scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#intro-player {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit l'espace comme un fond d'écran */
    object-position: center; /* Centre la vidéo si elle est rognée */
}

*{
    padding:0;
    margin:0;
}

body{
    height: 100vh;
    background-color: #17003F;
    overflow: hidden;   /* to avoid slider bugs on some browsers */
    font-family: sans-serif;
}

header{
    height: 75px;
    display: flex;
    padding: 15px;
    justify-content: space-between;
    gap: 450px;
}

#logoLink{
    display: flex;
}

#logo{
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(70deg) brightness(100%) contrast(100%);
    height: 75px;
    width: 75px;
    cursor: pointer;
}

#filters{
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    width: 100%;

}

.selector{
    border: 1px solid white;
    background-color: #17003F;
    color: white;
    font-family: ApfelMittel;
    font-size: 18px;
    border-radius: 10px;
    height: fit-content;
    padding: 10px;
    max-width: 350px;
    width: 100%;
    display: flex;
    justify-content: space-between
}

.selector:hover{
    border-color: #FFD400;
    color: #FFD400;
}

.selector:hover img{
    filter: brightness(0) saturate(100%) invert(89%) sepia(14%) saturate(6723%) hue-rotate(358deg) brightness(101%) contrast(105%);
}

.selector-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100%+1px);
    left: 0;
    width: 100%;
    background-color: #17003F;
    border: 1px solid white;
    border-radius: 10px;
    padding: 10px;
    z-index: 100;
    box-sizing: border-box;
    margin-top: 5px;
}

.dropdown label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: ApfelMittel;
    font-size: 16px;
    padding: 6px 0;
    cursor: pointer;
}

.dropdown label img{
    filter: brightness(0) saturate(100%) invert(89%) sepia(14%) saturate(6723%) hue-rotate(358deg) brightness(101%) contrast(105%);
}

.dropdown label:hover{
    color: #17003F;
    background-color: #FFD400;
}

.dropdown label:hover img{
    filter: brightness(0) saturate(100%) invert(5%) sepia(38%) saturate(7210%) hue-rotate(260deg) brightness(105%) contrast(114%);
}

.dropdown input[type="checkbox"] {
    display: none;
}

.dropdown label {
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.dropdown label:has(input:checked) {
    background-color: #FFD400;
    color: #17003F;
}

.dropdown label:has(input:checked) img{
    filter: brightness(0) saturate(100%) invert(5%) sepia(38%) saturate(7210%) hue-rotate(260deg) brightness(105%) contrast(114%);
}

.dropdown.open {
    display: flex;
    flex-direction: column;
}
main {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

#mapWrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px); 
    min-height: 400px;
    overflow: hidden;
    background: transparent;
}

#regionMap {
    height: 100%;
    object-fit: contain; 
    display: block;
    width: 100%;
}
#region_map img {
    width: 100%;
    height: auto;
}

#pinLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.Pin{
    position: absolute;
}
.entreprisePin {
    transform: translate(-50%, -100%); /* pointe du pin sur le point exact */
    pointer-events: all;
    cursor: pointer;
    font-size: 2rem;
    filter: brightness(0) saturate(100%) invert(89%) sepia(14%) saturate(6723%) hue-rotate(358deg) brightness(101%) contrast(105%);
    /* display: none; */
}

.entreprisePin {
    transform: translate(-50%, -100%); /* ne bouge jamais */
}

@keyframes popIn {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes popOut {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.15); }
    100% { transform: scale(0); }
}

.pin-anim {
    transform: scale(0);
    transform-origin: bottom center;
    display: block;
}

.pin-anim.visible {
    animation: popIn 0.4s cubic-bezier(0.34, 1.9, 0.64, 1) forwards;
}

.pin-anim.hiding {
    animation: popOut 0.3s ease-in forwards;
}
.entreprisePin:hover img{
    transform: scale(1.3);
}

.villePin{
    font-size: 14px;
    font-family: Apfel;
    color: white;
    display: flex;
    align-items: center;
    gap: 3px;
}

.villePin p{
    padding-top: 3px;
}

.villeName{
    margin-bottom: 10px;
}

#title{
    position: absolute;
    font-family: ApfelSatt;
    color: white;
    font-size: 32px;
    max-width: 365px;
    left: 5%;
    top: 53%;
    /* display: none; */
}

#title #subtitle{
    font-family:Apfel;
}

#GenZ_filters{
    position: absolute;
    display: flex;
    /* display: none; */
    flex-direction: column;
    align-items: center;
    gap: 5px;
    top: 70%;
    left: 75%;
    width: 285px;
}

#GenZ_filters button{
    background-color: #8A38F5;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    font-family: ApfelMittel;
    border-radius: 10px;
    width: fit-content;
    height: fit-content;
    border: none;
}

#GenZ_filters button.avant-chute {
    opacity: 0;
}

#GenZ_filters button:hover{
    color: #17003F;
    background-color: #FFD400;
}

#GenZ_filters button.active{
    color: #17003F;
    background-color: #FFD400;
}

.creditButton{
    /* display: none; */
    position: absolute;
    bottom: 8%;
    left: 3%;
    background-color: #8A38F5;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    font-family: ApfelMittel;
    border-radius: 10px;
    width: fit-content;
    height: fit-content;
    border: none;
}

.creditButton:hover{
    color: #17003F;
    background-color: #FFD400;
}

/*====================*/
/* ANIMATIONS
/*====================*/

@keyframes tombe1 {
    0%   { transform: translateY(-15vh) translateX(-10px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    80%  { transform: translateY(0) translateX(-10px) rotate(0deg)}
    100% { transform: rotate(-7deg) translateX(-30px) translateY(0px); opacity: 1}
}
@keyframes tombe2 {
    0%   { transform: translateY(-15vh) translateX(25px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    80%  { transform: translateY(0) translateX(25px) rotate(0deg)}
    100% { transform: rotate(20deg) translateX(45px) translateY(10px); opacity: 1}
}
@keyframes tombe3 {
    0%   { transform: translateY(-15vh) translateX(-25px) rotate(0deg); opacity: 0}
    10%  { opacity: 1; }
    80%  { transform: translateY(0) translateX(-25px) rotate(0deg) }
    100% { transform: rotate(-30deg) translateX(-55px) translateY(-3px);opacity: 1}
}
@keyframes tombe4 {
    0%   { transform: translateY(-15vh) translateX(50px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    80%  { transform: translateY(0) translateX(50px) rotate(0deg)}
    100% { transform: translateX(50px); opacity: 1}
}
@keyframes tombe5 {
    0%   { transform: translateY(-15vh); opacity: 0}
    10%  { opacity: 1; }
    80%  { transform: translateY(0)}
    100% { transform: translateY(0); opacity: 1}
}

#GenZ_filters button:nth-child(1) { transform: rotate(-7deg) translateX(-30px) translateY(0px); }
#GenZ_filters button:nth-child(2) { transform: rotate(20deg) translateX(45px) translateY(10px); }
#GenZ_filters button:nth-child(3) { transform: rotate(-30deg) translateX(-55px) translateY(-3px); }
#GenZ_filters button:nth-child(4) { transform: translateX(50px);}
#GenZ_filters button:nth-child(5) { transform: translateY(0)}


#GenZ_filters button:nth-child(1).visible { animation: tombe1 0.6s cubic-bezier(0.4, 0, 1, 1) 2.3s both; }
#GenZ_filters button:nth-child(2).visible { animation: tombe2 0.6s cubic-bezier(0.4, 0, 1, 1) 2.3s both; }
#GenZ_filters button:nth-child(3).visible { animation: tombe3 0.6s cubic-bezier(0.4, 0, 1, 1) 2.3s both; }
#GenZ_filters button:nth-child(4).visible { animation: tombe4 0.6s cubic-bezier(0.4, 0, 1, 1) 2.3s both; }
#GenZ_filters button:nth-child(5).visible { animation: tombe5 0.6s cubic-bezier(0.4, 0, 1, 1) 2.3s both; }

/*====================*/
/* BUZZ OUT
/*====================*/

@keyframes buzz-out {
  10% {
    -webkit-transform: translateX(53px) rotate(2deg);
    transform: translateX(53px) rotate(2deg);
  }
  20% {
    -webkit-transform: translateX(47px) rotate(-2deg);
    transform: translateX(47px) rotate(-2deg);
  }
  30% {
    -webkit-transform: translateX(53px) rotate(2deg);
    transform: translateX(53px) rotate(2deg);
  }
  40% {
    -webkit-transform: translateX(47px) rotate(-2deg);
    transform: translateX(47px) rotate(-2deg);
  }
  50% {
    -webkit-transform: translateX(52px) rotate(1deg);
    transform: translateX(52px) rotate(1deg);
  }
  60% {
    -webkit-transform: translateX(48px) rotate(-1deg);
    transform: translateX(48px) rotate(-1deg);
  }
  70% {
    -webkit-transform: translateX(52px) rotate(1deg);
    transform: translateX(52px) rotate(1deg);
  }
  80% {
    -webkit-transform: translateX(48px) rotate(-1deg);
    transform: translateX(48px) rotate(-1deg);
  }
  90% {
    -webkit-transform: translateX(51px) rotate(0);
    transform: translateX(51px) rotate(0);
  }
  100% {
    -webkit-transform: translateX(49px) rotate(0);
    transform: translateX(49px) rotate(0);
  }
}
#GenZ_filters button#B4:hover, #GenZ_filters button#B4:focus, #GenZ_filters button#B4:active {
  animation-name: buzz-out;
  animation-duration: 0.75s;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

/*====================*/
/* BUZZ OUT
/*====================*/
/*====================*/
/* FAMILY
/*====================*/
#GenZ_filters button .family1 {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.2em;
    transform: scale(0) rotate(150deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.9, 0.64, 1);
    pointer-events: none;
}

#GenZ_filters button .family2 {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.2em;
    transform: scale(0) rotate(150deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.9, 0.64, 1);
    pointer-events: none;
}

#GenZ_filters button#B3:hover .family1 {
    transform: scale(1.5);
}
#GenZ_filters button#B3:hover .family2 {
    transform: scale(1.5);
}
/*====================*/
/* FAMILY
/*====================*/
/*====================*/
/* RUBAN
/*====================*/
#GenZ_filters button .ruban {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.2em;
    transform: scale(0) rotate(150deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.9, 0.64, 1);
    pointer-events: none;
}

#GenZ_filters button#B3:hover .ruban {
    transform: scale(1.5);
}
/*====================*/
/* RUBAN
/*====================*/

/*====================*/
/* TWIST
/*====================*/
#GenZ_filters button#B1 {
    perspective: 400px;
}

#GenZ_filters button#B1:hover {
    animation: flip-text 1.25s ease-in-out forwards;
}

@keyframes flip-text {
    0%   { transform: rotate(-7deg) translateX(-30px) translateY(0px) rotateX(0deg); }
    100% { transform: rotate(-7deg) translateX(-30px) translateY(0px) rotateX(1080deg); }

}
/*====================*/
/* TWIST
/*====================*/

/*====================*/
/* FAMILY
/*====================*/


#GenZ_filters button#B2 {
    position: relative;
    overflow: visible;
}

#GenZ_filters button#B2 .famille-emoji {
    position: absolute;
    font-size: 1em;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.9, 0.64, 1);
    pointer-events: none;
}

#GenZ_filters button#B2 .famille-emoji:nth-child(1) { top: -15px; left: -7px; transition-delay: 0s; rotate: -30deg;}
#GenZ_filters button#B2 .famille-emoji:nth-child(2) { top: -15px; right: -7px; transition-delay: 0.05s; rotate: 30deg;}
#GenZ_filters button#B2 .famille-emoji:nth-child(3) { bottom: -15px; left: 35px; transition-delay: 0.1s; }
#GenZ_filters button#B2 .famille-emoji:nth-child(4) { bottom: -15px; right: 35px; transition-delay: 0.15s; }

#GenZ_filters button#B2:hover .famille-emoji {
    transform: scale(1.3);
}
/*====================*/
/* FAMILY
/*====================*/

/*====================*/
/* TYPEWRITER
/*====================*/

#GenZ_filters button#B5 {
    min-width: max-content;
    white-space: nowrap;
}

#GenZ_filters button#B5 .typewriter-text {
    display: inline;
}

/*====================*/
/* TYPEWRITER
/*====================*/

/* ---------- Important media queries for easy responsive content :-) ----------------- */
/* Whatever the device used, the content will be displayed full width and height if      */
/* the aspect ratio is between 3/4 and 9/16. If not it is locked to either 3/4 or 9/16  */

/* When the aspect ratio is smaller that 3/4, display a 3/4 content */
#container{
    position: fixed; /* To set the size of the container to 100% of the visible viewport height AND for absolute positioning of child elements*/ 
    height: 100%;   /* even on mobile devices with url or navigation bars */
    margin-left: calc((100vw - 100 * 3vh / 4) / 2); /* Add black bands on left and right */
    width: calc(100 * 3vh / 4); /* Force 3/4 aspect ratio */
}

/* We set a default font size here. It will be the base for all other font sizes */
/* Here the font size is proportional to content width */
body{
    font-size: calc(15vh * 3 / 4);
}

/* Fill the whole viewport when its aspect ratio is between 9/16 and 3/4 */
@media screen and (max-aspect-ratio: 3/4) {
    #container{
        margin-left: 0; /* reset margin-left */
        width: 100vw; /* content is full width (and full height because of the default rule for container height */
    }

    /* We set a default font size here. It will be the base for all other font sizes */
    /* Here the font size is proportional to content width */
    body{
        font-size: 15vw;
    }
}

/* The content is displayed at 9/16 If the aspect ratio is higher that 9/16  */ 
@media screen and (max-aspect-ratio: 9/16) {
    #container{
        margin-left: 0; /* reset left margin */
        width: 100vw;   /* content is full width */
        margin-top: calc(-50 * 16vw / 9); /* move the content half the height to the top */
        top:50%; /* then center it ! */
        height: calc(100 * 16vw / 9); /* adjust height so that aspect ratio is 9/16 */
    }

    /* We set a default font size here. It will be the base for all other font sizes */
    /* Here the font size is proportional to content width */
    body{
        font-size: 15vw;
    }
}

