/* CSS for content in treasure hunt shortcode
*/

DIV.th_title {
  color: black;
}

.logostory {
  height: 300px !important;
  display: block;
  margin: 0 auto;
}

button.th_button_blue {
  background-color: #4285f4;
  color: white;
  padding: 0px 15px;
  margin-right: 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  height: 30px;
}

button.th_button_blue:hover {
  background-color: #0048bc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour effet 3D */
  transform: scale(1.02); /* Légère augmentation de taille */
}

button.th_button_blue:active {
  background-color: #002d77; /* Encore plus foncé au clic */
  transform: scale(0.97); /* Légère réduction pour effet de clic */
}

/* pour les boutons continuer lors d'un embranchement */
DIV.th_embranchement{
  border: 1px solid #060606;
  border-radius:3px;
  padding: 5px;
}
DIV.th_embranchement button{
  margin-bottom:5px;
  width:300px;
}

/* Pour les codes */

.code_marinepro-container {
  position: relative;
  display: inline-block;
}
.code_marinepro-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
}
.code_marinepro-grid-cell {
  border: 1px solid transparent;
  cursor: pointer;
}
.code_ponton-grid-cell:hover {
  background-color: rgba(0, 128, 255, 0.2);
}

.code_ponton-container {
  position: relative;
  display: inline-block;
}
.code_ponton-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.code_ponton-grid-cell {
  border: 1px solid transparent;
  cursor: pointer;
}
.code_ponton-grid-cell:hover {
  background-color: rgba(0, 128, 255, 0.2);
}

form:has(.code-container) {
  border-radius: 10px;
  border: 2px solid #007bff;
  padding: 10px;
  margin-bottom: 10px;
}

.code-container {
  display: flex;
  gap: 10px;
  font-family: Arial, sans-serif;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

input[type="text"].code {
  height: 40px;
  font-size: 20px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s;
  text-transform: uppercase; /* transforme visuellement en majuscule */
  letter-spacing: 2px;
}
input[type="text"].code:focus {
  border-color: #007bff;
}

DIV.payement {
  background-color: #eef6ff;
  border-color: #007bff;
  border-width: 1px;
  border-radius: 10px;
  padding: 10px;
}

/* Container du menu et du titre */
.th-menu-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Bouton hamburger */
.th-hamburger {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background-color: #dddada59;
  border-radius: 2px;
  padding:4px;
}

.th-hamburger div {
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu déroulant */
.th-dropdown-menu {
  position: absolute;
  top: 40px;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  width: 220px;
  z-index: 1000;
}

.th-dropdown-menu.open {
  max-height: 500px;
  opacity: 1;
}

.th-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.th-dropdown-menu a:hover {
  background-color: #f0f0f0;
}

/* Sponsors */



h1.sponsor {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size:20px;
  padding: 10px;
  margin: 0;
}
h2.sponsor {
  text-align: center;
  font-family: Arial, sans-serif;
  color:white;
  font-size:30px;
  padding: 10px;
  margin: 0;
  font-weight: bold;
}
h2.sponsor-type-diamant{
  background: linear-gradient(to right, #ffffff, #e0f7fa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d0eaff; /* Bleu clair inspiré du diamant */
  text-shadow: 
    0 0 5px #ffffff, 
    0 0 10px #b0dfff, 
    0 0 15px #a0e0ff;
}
h2.sponsor-type-or{
  background: linear-gradient(to right, #bfa644, #f5d76e, #d4af37, #fff1a8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d4af37; /* fallback pour anciens navigateurs */
  text-shadow: 
    1px 1px 2px #a87d0f, 
    0 0 10px rgba(255, 215, 0, 0.5);

}
h2.sponsor-type-argent{
  background: linear-gradient(90deg, #d9d9d9, #f0f0f0, #bfbfbf);
  
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #cccccc; /* fallback */
  text-shadow: 
    1px 1px 2px #aaa,
    0 0 10px rgba(200, 200, 200, 0.3);
}
h2.sponsor-type-bronze{ 
  background: linear-gradient(90deg, #cd7f32, #b87333, #aa6c39);
  
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b87333; /* fallback */
  text-shadow: 
    1px 1px 2px #5c3a1e,
    0 0 8px rgba(205, 127, 50, 0.4);
}

p.sponsor {
  text-align: center;
  margin: 20px;
  color:white;
  font-family: Arial, sans-serif;
  font-size:14px;
}

.sponsor-category {
  margin-bottom: 30px;
  background-color:#5588bb;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  background-color:#5588bb;
}

.sponsor-item{
  width: 120px;
  text-align: center;
}

div.sponsor-type-diamant{
  width: 250px;
}
div.sponsor-type-or{
  width: 200px;
}
div.sponsor-type-argent{
  width: 120px;
}
div.sponsor-type-bronze{
  width: 100px;
}


.sponsor-item img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.sponsor-item a {
  display: block;
  margin-top: 5px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.sponsor-item a:hover {
  text-decoration: underline;
}

@media (max-width: 500px) {
  .sponsor-item {
    width: 45%;
  }
}