/*------Base------*/
.m-plus-1p-regular {
  font-family: "M PLUS 1p", sans-serif, bold;
  font-weight: 900;
  font-style: normal;
  font-size: 3vh;
}
.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2vh;

}
/* HEADER GLOBAL */
.site-header {
  width: 100%;
  text-align: center;
  margin-top: 2vh; 
}

.site-header-accueil{
  width: 100%;
  text-align: center;
  align-content: center;
  margin-top: 2vh; 
  height: 42vh;
}

/* TITRE PRINCIPAL ("BIENVENUE") */
.header-title {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 900;
  font-size: 6vh;
  margin: 0;
  padding: 0;
}

.header-title-accueil {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 900;
  font-size: 8vh;
  margin: 0;
  padding: 0;
}

/* SOUS-TITRE ("Sainte-Félicité") */
.header-subtitle {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 4vh;
  margin: 0;
  padding: 0;
}

.header-subtitle-accueil {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 6vh;
  margin: 0;
  padding: 0;
}

/* ——— PAGE CONTENEUR ——— */
.page-manger-dormir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    bottom: 0;
}

/* ——— CARTE ——— */
.carte {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.carte-wrapper {
  position: relative;
  width: 80%;
}

.carte-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}
.point {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 10;
}
.fiche-lieu {
  position: fixed;
  inset: 0;
  display: flex;
  align-content: center;
  justify-items: center;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.fiche-lieu-contenu {
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2vh 3vw;
  text-align: center;
}

.fiche-lieu-contenu img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 1.5vh;
}

#fiche-titre {
  font-size: 2.2vh;
  margin: 0.5vh 0 1vh 0;
}

#fiche-adresse,
#fiche-tel,
#fiche-proprio {
  margin: 0.3vh 0;
}

#fiche-fermer {
  margin-top: 1.5vh;
  border: none;
  border-radius: 10px;
  padding: 0.8vh 2vh;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  font-size: 2vh;
  cursor: pointer;
}

/* ——— BOUTONS MENU ——— */
.boutons {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}


.boutons button,
.btn-menu-resto,
.btn-menu-hebergement,
.btn-menu-depanneur {
  width: 55vw;
  height: 5vh;
  align-self: center;
  align-content: center;
  font-size: 5vw;
}


/* Couleurs */

.btn-menu-resto {
  display: block;
  text-align: center;
  text-decoration: none;
  color: white;
  padding: 1vh 0;
  border-radius: 10px;
  background: #B63342;
  margin-bottom: 1vh;
  border-width: 0;
}

.btn-menu-hebergement {
  padding: 1vh 0;
  border-radius: 10px;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1vh; 
  background: #7B9CD8; 
  color: white; 
  border-width: 0;

}
.btn-menu-depanneur {
  padding: 1vh 0;
  border-radius: 10px;
  display: block;
  text-align: center;
  text-decoration: none;
  background: white;
  border: 3px solid #FFFFFF;
  margin-bottom: 0;
  color: black; 
  border-width: 0;

}


/* ——— PAGE HISTOIRE ——— */

.page-histoire {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    bottom: 0;

}

.titre-histoire{
    font-family: "League Spartan";
    font-weight: 500;
    margin-top: 2vh;
    margin-bottom: 3vh;
    font-size: 5vh;
}

.bloc-histoire {
  background: rgba(255, 255, 255, 0.86); 
  border-radius: 20px;
  padding: 3vh 4vw;
  width: 85vw;

}

/* Titres */
.titre-bloc {
  font-size: 3.2vh; 
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-family: "League Spartan";
  font-weight: 500;

}

.sous-titre-bloc {
  font-size: 2.2vh;
  text-align: center;
  margin-top: 0;
  margin-bottom: 2vh;
  font-family: "League Spartan";
  font-weight: 500;
}

/* Texte */
.texte-histoire {
  font-size: 1.4vh; 
  line-height: 1;
  margin-bottom: 2.2vh;
  text-align: center;
}


/* Bouton "Voir histoires" */
.btn-voir-histoires {
  display: block;
  margin: 3vh auto 2vh;
  width: 45%;
  max-width: 350px;
  text-align: center;
  padding: 1vh 0;
  font-size: 2.2vh;
  background: white;
  border-radius: 10px;
  color: black;
  text-decoration: none;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}



/* =========================
   MINI JEU MOTS MELANGES
   ========================= */

/* Conteneur global du jeu */
.jeu-mots {
  width: 100%;
  max-width: 85vw;
  margin: 0 auto;
  padding: 2vh 0 3vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Titres */
.jeu-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
  font-size: 5vh;
  margin: 2vh 0 0.8vh 0;
  text-align: center;
}

.jeu-sous-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
  font-size: 2.4vh;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 2vh 0;
  width: 85vw;
}

/* Carte (fond blanc arrondi) */
.jeu-carte {
  width: 85vw;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 20px 20px 20px 20px;
  padding: 2vh 3vw;
  box-sizing: border-box;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
}

.jeu-carte-explication {
  display: none;
}

/* Lettres mélangées en haut */
.jeu-lettres-melangees {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6vh, 1fr));
  gap: 1vh;
  justify-items: center;
  margin-bottom: 2vh;
}

/* Cases (lettres + réponse) */
.jeu-case-lettre,
.jeu-case-reponse {
  width: 100%;
  max-width: 6vh;
  height: 7vh;
  border-radius: 15px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 700;
  font-size: 3.2vh;
  box-sizing: border-box;
}

/* Lettres disponibles */
.jeu-case-lettre {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* lettre déjà utilisée */
.jeu-case-lettre.utilisee {
  opacity: 0.35;
  box-shadow: none;
  cursor: default;
}

/* Emplacements du mot */
.jeu-label-mot {
  text-align: center;
  font-size: 2.3vh;
  margin: 0 0 1vh 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
}

.jeu-reponse {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1vh;
  flex-wrap: wrap;
  margin-bottom: 2vh;
}

.jeu-case-reponse {
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* message d’erreur / succès */
.jeu-message {
  min-height: 3vh;
  text-align: center;
  font-size: 2.2vh;
  line-height: 1.1;
  margin: 0 0 1.5vh 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
}

/* Bouton */
.jeu-bouton-principal {
  display: block;
  width: 70vw;
  max-width: 70vw;
  margin: 0 auto;
  padding: 1.6vh 0;
  border-radius: 15px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #000;
  font-size: 2.6vh;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* Carte explication */
.jeu-explication-titre {
  font-size: 3vh;
  text-align: center;
  margin: 0 0 1.2vh 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 600;
}

.jeu-explication-texte {
  font-size: 2.3vh;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 2vh 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
}

/* Responsive: très petits écrans */
@media (max-width: 360px) {
  .jeu-mots { max-width: 90vw; }
  .jeu-carte { width: 90vw; }
  .jeu-titre { font-size: 4.2vh; }
  .jeu-sous-titre { font-size: 2.1vh; width: 90vw; }

  .jeu-lettres-melangees {
    grid-template-columns: repeat(auto-fit, minmax(8vh, 1fr));
  }

  .jeu-case-lettre,
  .jeu-case-reponse {
    max-width: 8vh;
    height: 8vh;
    font-size: 3vh;
  }

  .jeu-bouton-principal {
    width: 80vw;
    font-size: 2.3vh;
  }
}

/* =========================
   MINI JEU CARTE AUX TRESORS
   ========================= */

.page-carte-tresor {
  width: 100%;
  display: flex;
  justify-content: center;
}

.jeu-tresor {
  width: 100%;
  max-width: 85vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Titres */
.tresor-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
  font-size: 5vh;
  margin: 2vh 0 0.8vh 0;
  text-align: center;
}

.tresor-sous-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.4vh;
  line-height: 1.1;
  text-align: center;
  margin: 0;
  width: 85vw;
}

/* Carte blanche des panneaux */
.tresor-panel {
  width: 85vw;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  padding: 2vh 3vw;
  box-sizing: border-box;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
}

.tresor-panel + .tresor-panel {
  margin-top: 2vh;
}

/* Panels cachés */
.tresor-panel-cache {
  display: none;
}

/* Coffres sur la carte */
.tresor-coffres {
  position: relative;
  width: 100%;
  padding-top: 80%;
}

/* Boutons coffres */
.coffre-btn {
  position: absolute;
  width: 18%;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}

/* Positions des coffres */
.coffre-1 { left: 15%; top: 20%; background-image: url("../images/coffre-rouge.png"); }
.coffre-2 { left: 60%; top: 18%; background-image: url("../images/coffre-vert.png"); }
.coffre-3 { left: 30%; top: 45%; background-image: url("../images/coffre-bleu.png"); }
.coffre-4 { left: 75%; top: 45%; background-image: url("../images/coffre-brun.png"); }
.coffre-5 { left: 20%; top: 70%; background-image: url("../images/coffre-jaune.png"); }
.coffre-6 { left: 65%; top: 72%; background-image: url("../images/coffre-mauve.png"); }

/* Coffre résolu */
.coffre-btn.resolu {
  filter: saturate(0.2) brightness(0.95);
  opacity: 0.7;
}

/* compteur coffres */
.tresor-compteur {
  margin-top: 1.5vh;
  text-align: center;
  font-size: 2.2vh;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
}

/* Panel question */
.tresor-question {
  font-size: 2.6vh;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 2vh 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 600;
}

/* bloc image */
.tresor-image-wrapper {
  max-width: 100%;
  max-height: 22vh;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 2vh;
}

.tresor-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* boutons Vrai/Faux */
.tresor-choix {
  display: flex;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 1.5vh;
}

.tresor-btn-choix {
  flex: 1;
  max-width: 34vw;
  padding: 1.4vh 0;
  border-radius: 15px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
  font-size: 2.5vh;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* feedback */
.tresor-feedback {
  min-height: 3vh;
  text-align: center;
  font-size: 2.2vh;
  line-height: 1.1;
  margin: 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
}

/* Panel résultat */
.tresor-resultat-ligne {
  font-size: 2.3vh;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 1.4vh 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
}

.tresor-btn-principal {
  display: block;
  width: 70vw;
  max-width: 70vw;
  margin: 1vh auto 0;
  padding: 1.6vh 0;
  border-radius: 15px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #000;
  font-size: 2.6vh;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* Panel final */
.tresor-final-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.6vh;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 1.8vh 0;
  font-weight: 600;
}

.tresor-final-sous-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.3vh;
  text-align: center;
  margin: 1.5vh 0 1vh 0;
  font-weight: 500;
}

.tresor-final-phrases {
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  margin-bottom: 1.5vh;
}

.tresor-ligne-phrase {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.2vh;
  line-height: 1.15;
  text-align: center;
  font-weight: 500;
}

/* case vide */
.tresor-case-vide {
  display: inline-flex;
  min-width: 22vw;
  padding: 0.9vh 2vw;
  margin: 0 1vw;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.2vh;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

/* mots mystères */
.tresor-mots-disponibles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1vh;
  margin-bottom: 1.2vh;
}

.tresor-mot-btn {
  padding: 0.9vh 3vw;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.1vh;
  font-weight: 700;
  cursor: pointer;
}

.tresor-mot-btn.selected {
  border-color: #000;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

/* message validation */
.tresor-final-message {
  min-height: 3vh;
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2.2vh;
  text-align: center;
  margin: 0 0 1.2vh 0;
  font-weight: 500;
}

/* bouton secondaire (rejouer) */
.tresor-btn-secondaire {
  margin-top: 1vh;
  background: rgba(255, 255, 255, 0.86);
  color: #000;
  border: 2px solid rgba(0, 0, 0, 0.12);
}

/* Responsive très petit */
@media (max-width: 360px) {
  .jeu-mots,
  .jeu-tresor { max-width: 90vw; }

  .jeu-carte,
  .tresor-panel { width: 90vw; }

  .jeu-titre,
  .tresor-titre { font-size: 4.2vh; }

  .jeu-sous-titre,
  .tresor-sous-titre { font-size: 2.1vh; width: 90vw; }

  .tresor-btn-choix {
    max-width: 40vw;
    font-size: 2.2vh;
  }

  .tresor-btn-principal {
    width: 80vw;
    font-size: 2.3vh;
  }
}


/* =========================
   MAREES 
   ========================= */

.page-marees {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Conteneur principal */
.bloc-marees {
  width: 85vw;
  max-width: 420px;
  padding: 2vh 3vw 3vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Titres */
.marees-titre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 500;
  font-size: 4vh;
  text-align: center;
  margin: 1vh 0 0.5vh 0;
}

.marees-soustitre {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 2vh;
  text-align: center;
  margin: 0 0 2vh 0;
}

/* Carte graphique */
.carte-marees {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2vh 2vw;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

/* Graphique Apex */
#marees-chart {
  width: 100%;
  min-height: 28vh;
}

/* Navigation jours */
.marees-nav {
  width: 50%;
  display: flex;
  justify-content: space-between;
  margin-top: 2vh;
  padding: 0 5vw;
  box-sizing: border-box;
}

.marees-btn-nav {
  width: 7vh;
  height: 7vh;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  font-size: 3vh;
  font-weight: 600;
  cursor: pointer;
}

/* Très petits écrans */
@media (max-width: 360px) {
  .marees-titre {
    font-size: 3.5vh;
  }

  .marees-soustitre {
    font-size: 1.8vh;
  }

  #marees-chart {
    min-height: 24vh;
  }

  .marees-btn-nav {
    width: 6vh;
    height: 6vh;
    font-size: 2.5vh;
  }
}

.screensaver{
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background-color: #00000071;
}
.screensaver.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.screensaver-inner{
  width: 100%;
}
.screensaver-obj{
  width: 100%;
  display: block;
  position: fixed;
  border: 0;
  pointer-events: none;
}










