/* ====== FOND GLOBAL ====== */
html {
  background-color: var(--color-background-color); 
}

/* ====== BODY GLOBAL ====== */
body {
  width: 90%;
  max-width: 1400px;  
  margin: 0 auto;      /* centre le body */
  background-color : var(--color-background-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  border-radius: 8px;  
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ====== HEADER / TITRE PRINCIPAL ====== */
.site-header {
  background: linear-gradient(135deg, var(--color-siteHeaderBackgroundGradient1), var(--color-siteHeaderBackgroundGradient2));
  color: var(--color-siteHeader); 
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between; /* titre à gauche, logo à droite */
}
.site-header h1 {
  margin: 0;
  font-family: 'Playfair Display', 'Georgia', serif; 
  font-size: 2.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}
/* ====== LOGO ====== */
.site-logo {
  max-height: 100px;   
  width: auto;
}

/* ======= PAGE TITLE ====== */
.page-title {
  text-align: center;
  margin: 10px;
}

/* ====== FOOTER ====== */
.site-footer {
  background: linear-gradient(135deg,var(--color-siteFooterBackgroundGradient1),var(--color-siteFooterBackgroundGradient1));
  color: var(--color-siteFooter);  
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 3px solid #1b5e20; 
}
.site-footer p {
  margin: 0;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1rem;
}

/* Responsive pour petits écrans */
@media (max-width: 760px) {
  .site-header h1 {
    font-size: 1.2rem;
  }
  .site-header .site-logo{
    width: 20%;
  }
  .poi-modal-content {
    width: 95% !important;
    font-size: 1.4rem !important; /* taille globale texte modal */
    padding: 1rem !important;
    max-height: 90%;       /* limite si contenu trop grand */
    overflow-y: auto;      /* permet de scroller si dépassement */
    margin: 15% auto 5% auto; /* décale la modal vers le bas */
  }

}

/* ====== MODAL EXTRA POI : Jouer - decouvrir ====== */
/* Masquer la modale par défaut */
.extra-poi-modal {
    display: none;              /* cachée par défaut */
    position: fixed;            /* positionnée par rapport à la fenêtre */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);  /* overlay semi-transparent */
    justify-content: center;    /* centrage horizontal */
    align-items: center;        /* centrage vertical */
    z-index: 1050;              /* au-dessus de poi-modal (par exemple si poi-modal est 1000) */
}
/* Contenu de la modale */
.extra-poi-modal .modal-content {
    background-color: #fff;        /* fond blanc */
    padding: 20px;
    border-radius: 8px;
    border: 5px solid black;       /* bord noir épais */
    max-width: 600px;              /* largeur maximale */
    width: 90%;                    /* largeur responsive */
    box-sizing: border-box;
    position: relative;
}
/* Bouton fermer */
.extra-poi-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    z-index: 2100;
}
.extra-poi-modal .modal-close:hover {
    color: #f00;
}

/* ====== MODAL POI CENTRÉE ====== */
/* Conteneur de la modale */
.poi-modal {
  display: none;             /* cachée par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-POIModalBackgroung);
  justify-content: center;
  align-items: center;
}

/* Contenu de la modale */
.poi-modal-content {
  background-color: var(--color-modalBackground);
  border-radius: 12px;
  padding: 20px;
  max-width: 80%;
  max-height: 90%;       /* limite si contenu trop grand */
  overflow-y: auto;      /* permet de scroller si dépassement */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  height: auto;          /* 🔑 s’ajuste à la taille du contenu */
}

/* Bouton fermeture */
.poi-modal-close {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* Contenu de la modal */
.popup-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-modalTitle);
}

.popup-text {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color:var(--color-modalText);
}

.popup-link a {
  color: var(--color-modalLink);
  text-decoration: underline;
  word-break: break-word;
  font-size: 1rem;
}

.popup-content img,
.popup-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem auto;
  border-radius: 6px;
}

/* ==== MARKERS ==== */
.custom-marker {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-marker i {
  pointer-events: none; /* icône n’empêche pas le clic */
}

/* ====Modal LOGIN ==== */
.login-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.login-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
}
.login-modal-close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}

/* ====== Modal Modification de POI  ===== */
.large-textarea {
  width: 95%;
  min-width: 500px;
  min-height: 200px;
  font-family: monospace; /* pratique pour écrire du HTML */
  font-size: 14px;
  padding: 8px;
}

/* =======Boutons Jouer et Découvrir==========*/
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;   /* espace entre les boutons */
  margin-top: 20px;
  margin-bottom: 10px;
}
/* Style bouton 3D générique */
.btn-3d {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  box-shadow: 0 5px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}
.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px rgba(0,0,0,0.4);
}
.btn-3d:active {
  transform: translateY(2px);
  box-shadow: 0 2px rgba(0,0,0,0.2);
}
/* Couleurs spécifiques */
.btn-3d.jouer {
  background: linear-gradient( var(--color-btnJouer1), var(--color-btnJouer2)); 
}
.btn-3d.decouvrir {
  background: linear-gradient( var(--color-btnDecouvrir1) , var(--color-btnDecouvrir2) ); 
}
.btn-3d.modifier {
  background: linear-gradient( var(--color-btnModifier1) ,  var(--color-btnModifier2)); 
  float: right;
  margin-top: 15px;
}
