
@font-face {
    font-family: 'Space Grotesk';
    src: url('webfont/Space_Grotesk/static/SpaceGrotesk-Regular.woff2') format('woff2'),
         url('webfont/Space_Grotesk/static/SpaceGrotesk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('webfont/Manrope/static/Manrope-Regular.woff2') format('woff2'),
         url('webfont/Manrope/static/Manrope-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
@keyframes fade-in-normal {0% { opacity: 0; } 100% { opacity: 1;} }

.fade-in-normal { 
    animation: fade-in-normal 1s ease-out 0s 1 normal none; 
}
@keyframes slide-top-normal {0% { transform: translateY(0); } 100% { transform: translateY(-100px);} }

.slide-top-normal { 
    animation: slide-top-normal 1s ease-out 0s 1 normal none; 
}
@keyframes fade-in-bottom-normal {0% { transform: translateY(50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1;} }

.fade-in-bottom-normal { 
    animation: fade-in-bottom-normal 1s ease-out 1s 1 normal none; 
}
@keyframes slide-bottom-normal {0% { transform: translateY(0); } 100% { transform: translateY(100px);} }

.slide-bottom-normal { 
    animation: slide-bottom-normal 1s ease 0s 1 normal none; 
}
@keyframes slide-right-normal {0% { transform: translateX(0); } 100% { transform: translateX(100px);} }

.slide-right-normal { 
    animation: slide-right-normal 1s ease 0s 1 normal backwards; 
}
@keyframes slide-left-reverse {0% { transform: translateX(0); } 100% { transform: translateX(-50px);} }

.slide-left-reverse { 
    animation: slide-left-reverse 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 0s 1 reverse none; 
}
@keyframes flip-vertical-left {0% { transform: rotateY(0); } 100% { transform: rotateY(-180deg);} }

.flip-vertical-left-normal { 
    animation: flip-vertical-left-normal 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) 0s 1 normal both; 
}
/* ----------------------------------------------------------------------------------------------------------------------------*/
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
* {font-family: 'Manrope', sans-serif;}
a {
    text-decoration: none;
}
a:hover{
    text-decoration: none;
}
a:focus{
    text-decoration: none;
}
a:visited{
    text-decoration: none;
}
body {
    background: linear-gradient(to bottom, #053b50, #5cd0fd, #ffffff);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
  }
  
  .cloud {
    position: absolute;
    width: 400px;
    height: 200px;
    background: url('../img/nuage.png') no-repeat center/contain;
    opacity: 0;
    animation: moveClouds linear infinite, fadeClouds 8s ease-in-out infinite alternate;
    z-index: -1;
  }
  
  /* Nuage proche (bouge vite) */
  .cloud:nth-child(1) {
    top: 5%;
    left: -400px;
    width: 450px;
    height: 220px;
    animation-duration: 80s;
  }
  
  /* Nuage intermédiaire (vitesse normale) */
  .cloud:nth-child(2) {
    top: 30%;
    left: -500px;
    width: 400px;
    height: 200px;
    animation-duration: 95s;
  }
  
  /* Nuage lointain (bouge lentement) */
  .cloud:nth-child(3) {
    top: 50%;
    left: -600px;
    width: 350px;
    height: 180px;
    animation-duration: 90s;
  }
  
  /* Animation de déplacement */
  @keyframes moveClouds {
    from {
      transform: translateX(-200px);
    }
    to {
      transform: translateX(120vw);
    }
  }
  
  /* Animation de fondu pour opacité dynamique */
  @keyframes fadeClouds {
    from {
      opacity: 0.3;
    }
    50% {
      opacity: 0.7;
    }
    to {
      opacity: 0.5;
    }
  }
  
  
#container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout */
}
#homemain {
    width: 1300px;
    max-width: 100%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap; /* Permet aux divs de passer à la ligne si besoin */
    align-items: flex-start; /* Garde l'alignement en haut */
    gap: 10px; /* Espacement entre les divs */
}

.carre {
    min-height: 150px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0e0e0, #ffffff, #cfcfcf);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Ajustement pour que la deuxième div colle bien à droite */
.carre:nth-child(2) {
    margin-left: auto;
}
.carrejob {
    width: 300px; /* Largeur de la galerie */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    grid-template-rows: repeat(2, 120px); /* Fixe la hauteur des lignes */
    gap: 3px; /* Supprime l'espace entre les colonnes et les lignes */
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0e0e0, #ffffff, #cfcfcf);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.carre img {
    max-width: 100%; /* L’image ne dépasse pas la largeur de la div */
    max-height: 100%; /* L’image ne dépasse pas la hauteur de la div */
    object-fit: cover; /* Recadre l’image pour remplir l’espace sans déformation */
    border-radius: 8px; /* Arrondi pour mieux s’intégrer au design */
}

.ban {
    width: 1300px;
    max-width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #e0e0e0, #ffffff, #cfcfcf);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Ajout pour bien centrer */
}
.mainbloc {
    display: block !important;
    height: auto; /* Enlève le 100vh qui causait le problème */
    width: fit-content;
    height: fit-content;
    width: 400px;
}
.region_class {
    background: -webkit-linear-gradient(#0592f0, #0364a5);
    color: #f0f0f0;
    border: 3px solid #f0f0f0;
    padding: 5px;
    border-radius: 10px;
    font-size: 18px;
    font-variant: small-caps;
}
.depart_class {
    background: -webkit-linear-gradient(#139441, #05702b);
    color: #f0f0f0;
    border: 3px solid #f0f0f0;
    padding: 5px;
    border-radius: 10px;
    font-size: 18px;
    font-variant: small-caps;
}
table { 
    width: 100%; 
    height: 60%;
}
    th, td { 
    text-align: left; 
}
td {
    padding: 0; /* Supprime les espaces internes */
    overflow: hidden; /* Coupe l'image si elle dépasse */
    position: relative; /* Nécessaire pour positionner l’image */
}

td img {
    width: 100%; /* Remplit toute la largeur */
    height: 100%; /* Remplit toute la hauteur */
    object-fit: cover; /* Coupe l’image pour qu’elle s’adapte sans être déformée */
    display: block; /* Évite les espaces blancs autour de l’image */
}

    th { 
    background-color: transparent; 
}
    tr:nth-child(even) { 
    background-color: transparent;

}
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    background: -webkit-linear-gradient(#0364a5, #0592f0);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.right-box {
    position: fixed; /* Fixe la boîte en haut à droite */
    top: 120px;
    right: 20px;
    width: 80px; /* Taille du cercle */
    height: 80px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b); /* Dégradé */
    border-radius: 50%; /* Rend la div totalement ronde */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Priorité pour éviter qu'elle soit bloquée */
    pointer-events: auto; /* Permet les interactions */
    transition: transform 0.3s ease-in-out;
}
.offrejob {
    background-color: #ffffff;
    color: #3498db;
    display: flex;
    flex-direction: column; /* Aligner le texte verticalement */
    align-items: center; /* Centrer le contenu */
    justify-content: center;
    width: 100px;  /* Carré */
    height: 100px;
    border-radius: 4px;
    text-align: center;
    margin: 0;
    padding: 8px;
    line-height: 1.2;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
  .offrejob:hover {
    box-shadow: 0 1px 3px rgb(209, 16, 129, 0.7);
  }
  .offrejob h2 {
    margin-top: 0;
    font-size: 90%;
    background: -webkit-linear-gradient(#580535, #aa0766);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .offrejob p {
    font-size: 11px;
    margin: 5px 0 0;
    padding: 0;
}
  

svg {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}
path {
    fill:inherit;
    opacity: 0.5;
    stroke-width: 1px;
    cursor: pointer;
}
path:hover {
    fill: rgb(94, 200, 250);
    stroke:rgb(94, 200, 250);
    stroke-width: 1px;
}
path:focus {
    outline: none;
}
#info-panel {
    width: 750px;
    padding: 15px;
    font-size: 14px;
}
#info-panel region {
    margin-top: 0;
    font-size: 100%;
    background: -webkit-linear-gradient(#0592f0, #0364a5);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#info-panel population {
    margin-top: 0;
    font-size: 100%;
    background: -webkit-linear-gradient(#a5038f, #e069d1);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#info-panel superficie {
    margin-top: 0;
    font-size: 100%;
    background: -webkit-linear-gradient(#9aa503, #585e07);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#info-panel img {
    border-radius: 10px;
}
.tooltip {
    position: absolute;
    background: -webkit-linear-gradient(#139441, #05702b);
    color: #f0f0f0;
    border: 3px solid #f0f0f0;
    font-weight: bolder;
    padding: 5px;
    border-radius: 10px;
    font-size: 18px;
    pointer-events: none;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-variant: small-caps;
}
/* Bouton Retour en haut */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Caché par défaut */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s;
}

/* Apparition fluide */
.scroll-top-btn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Effet au survol */
.scroll-top-btn:hover {
    background: #ff4500;
}
 /* Style de la pop-up */
 .popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    background: -webkit-linear-gradient(#555555, #2b2b2b);
    border: 1px solid rgb(105, 105, 105);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
    cursor: grab;
    overflow: hidden; /* 🔥 Supprime le scroll */
}
.popup iframe {
    background: transparent;
    width: 100%;
    height: calc(100% - 20px);
    border: none;
    overflow: hidden; /* 🔥 Supprime le scroll */
}
.popup-header {
    background:transparent;
    color: white;
    padding: 5px;
    cursor: move;
    text-align: center;
    font-size: 12px;
}
.close-btn {
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    background: #ff7300;
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 12px;
}
.blur-bg {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('image.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden; /* Évite les débordements */
}

.blur-bg::before {
    content: "";
    position: absolute;
    top: -10px; /* Ajuste pour éviter les bords nets du flou */
    left: -10px;
    width: calc(100% + 20px); /* Élargit légèrement pour couvrir tout */
    height: calc(100% + 20px);
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 1;
}

.blur-bg * {
    position: relative;
    z-index: 2; /* Assure que le texte reste net */
}
#language-selector {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* S'assure qu'il reste au-dessus */
}

#language-selector form {
    margin: 0;
    display: flex;
    align-items: center;
}

#language-selector label {
    font-size: 0.9rem;
    margin-right: 5px;
    font-weight: bold;
}

#language-selector select {
    padding: 0px;
    font-size: 0.9rem;
    border:transparent;
    background:transparent;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s;
}

#language-selector select:hover {
    background: #e0e0e0;
}
