/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0px;
  background: white; /*#f8f9f9 ;*/
}
/* Entête h1 */
h1 {
  text-align: center;
  color: #00b0c9;
}
/* Conteneur de l'entête supérieur de la page - Bande bleu avec numéro de téléphone de la SIRIV
   et la date de rafraîchissement des données, le cas échéant
*/
.top-header {
  display: flex;
  flex-direction: row;
  align-items: center;      /* Pour aligner verticalement au centre */
  justify-content: space-between; /* Ou ajustez selon vos besoins */
}
#headerDynamic {
	color: #00b0c9;
}

#phoneContainer{
  display: flex;
  justify-content: flex-end; /* Positionne les boutons à droite */
  flex: 1;
  transform: translateX(-20px); /* Décalage vers la gauche de 20px */ 
}

.phone-link {
  color: white;
  text-decoration: none;
}

#jsonCreationDate{
  display: flex;
  justify-content: flex-start; /* Positionne les boutons à droite */
  flex: 1;
  transform: translateX(20px); /* Décalage vers la droite de 20px */   
}

/* Styles pour l'en-tête global (légende, mois, boutons) */
.topHeader-container {
  display: flex;
  width: 100%;
  background-color: #00b0c9;/* Bleu de la SIRIV #00b0c9 */
  color: white;
  overflow: hidden;
  padding: 2px 0;
  font-size: 1em;
  /* box-sizing: border-box; */

}
.topHeader-text {
  display: inline-block;
  white-space: nowrap;
  /* L'animation fadeIn se déclenche rapidement, puis scroll-left pour le défilement */
  /* -webkit-animation: fadeIn 0.5s ease-out, scroll-left 60s linear infinite; */
  /* animation: fadeIn 0.5s ease-out, scroll-left 60s linear infinite; */
}
/* Conteneur du calendrier */
#headerContainer {
  margin-top: 0px;
}

/* Styles pour l'en-tête global (légende, mois, boutons) */
.header-container {
  display: flex;
  align-items: right;
  justify-content: space-between;
  margin-bottom: 0px;
  border: none;

}

.legend-container {
  flex: 1;
}

.month-label-container {
  flex: 1;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  color: #00b0c9;
  background: white;
  border: none;
}



/* Tableaux de base */
/* table, th, td {
  border: none;
  vertical-align: top;
  padding: 2px;
  color: #00b0c9;

}

th {
  background: #f4f4f4;
  width: 20%;
}
table.header-table table, th, td {
  background: white !important;
} */

/* Légende des disponibilités (tableau réduit) */
.legend-table {
  border-collapse: collapse;
  font-size: 0.95em;
  margin-bottom: 0;
}

.legend-table th,
.legend-table td {
  border: none;
  padding: 2px 4px;
  text-align: center;
  font-size: 0.75em;
  height: 1.2em;
  line-height: 1.2em;
  width: 2px;
}

.legend-table th {
  background: #eee;
}

.legend-table th:first-child {
  font-size: 1em;
}

/* Spécifique à la colonne de lieu (si utilisée, ici nous utilisons le filigrane) */
.location-cell {
  width: 30px;
  text-align: center;
  font-weight: bold;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 5px;
  border-right: 1px solid #ccc;
}

/* Réduction de la hauteur de l’en-tête du calendrier */
table.calendar-table th {
  padding: 2px !important;
  font-size: 0.8em !important;
  height: 1.2em !important;
  line-height: 1.2em !important;
  width: auto !important;
  max-width: 14.28%; /* 100%/7 jours*/
  text-align: center;
  white-space; nowrap;
}


/* Assurez-vous que chaque cellule du calendrier est positionnée relativement */
.calendar-table td {
  position: relative !important;
  overflow: visible !important;
  width: auto;
  text-align: center;
  white-space; nowrap;
}

/* Réduction de la première colonne (heures) */
.calendar-table td:first-child,
.calendar-table th:first-child {
    max-width: 10%; /* Empêche la première colonne d’être trop large */
    min-width: 8%; /* Assure qu’elle ne se réduit pas trop */
}

.day-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.85em;
}

/* Style des départs */
.departure {
  font-size: 0.8em;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: none; /* ou 1px solid #ddd si désiré */
  display: flex;
  align-items: center;
  gap: 5px;
}

.departure img {
  width: 20px;
  height: 20px;
}

/* Style de la légende générale */
.legend {
  font-size: 0.9em;
}

/* Boutons stylisés */
button {
  background-color: white;  /* blanc */
  border: none;
  border-radius: 4px;
  /* color: grey; */
  padding: 4px 8px;
  /* text-transform: uppercase; */
  font-size: 0.8em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  
}
.button-container {
  display: flex;
  justify-content: flex-end; /* Positionne les boutons à droite */
  gap: 0.5px; /* Espace entre les boutons, optionnel */
  flex: 1;
  transform: translateX(-20px); /* Décalage vers la gauche de 20px */   
}

button:hover {
  background-color: #00b0c9;
  transform: scale(1.05);
}

button:active {
  transform: scale(0.98);
}

/* Pseudo-éléments pour le filigrane sur les lignes du calendrier */
/* tr.row-island {
  position: relative;
  z-index: 1;
} 
tr.row-village {
  position: relative;
  z-index: 1;
}*/

/* Appliquer la position relative au premier <td> du <tr> */
tr.row-island > td:first-child,
tr.row-village > td:first-child {
  position: relative;
  z-index: 1;
  /* Permet d'occuper toute la largeur du tableau */
  width: 100%;
 /* Centre le contenu s'il y a du texte */    
  text-align: center; 
}


//* S'assurer que la ligne de filigrane n'affecte pas la mise en page */
.watermark-row {
    display: block; /* Retire la ligne du modèle de tableau */
    position: relative; /* Le laisse dans le flux normal du tableau */
    /* position: absolute; /* Retire son influence sur le tableau */ */
    height: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 0 !important; /* Assure qu'il est derrière les cellules */
	/* visibility: hidden; */ /* Empêche tout espace visible */
}

/* Assurer le bon positionnement du texte */
.watermark-cell {
    position: absolute;
    top: 50%;
    left: 50%;
    /* right: 0; */
    width: 100%;
	max-width: none; 
	transform: translate(-50%, -90%);
    text-align: center;
    font-size: 4.5vw;
    z-index: 1 !important; /* Place le texte sous les cellules */	
    opacity: 0.2;
    pointer-events: none;
    white-space: nowrap;
    visibility: visible !important; /* On garde le texte visible */
}




/* Modifier le sélecteur pour attacher le pseudo-élément au <td> */
tr.row-island > td:first-child::before {
  /* content: "Départ de l'île"; */
  position: absolute;
  left: 50%;
  /* top: 20%;  */
  transform: translate(-50%, -50%);
  opacity: 0.2;
  font-size: 5vw;
  color: #68ff33;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

tr.row-village > td:first-child::before {
  /* content: "Départ du village"; */
  position: absolute;
  left: 50%;
  /* top: 90%; */
  transform: translate(-50%, -50%);
  opacity: 0.1;
  font-size: 5vw;
  color: #00b0c9;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}


@supports (-webkit-touch-callout: none) {
  body::after {
    /* content: "Safari detected"; */
    position: fixed;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px;
    z-index: 1000;
  }
}
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    tr.row-island::before, tr.row-village::before {
      /* content: "Filigrane 2"; */
      font-size: 5vw;
      top: 40%;
    }
  }
}

/* @supports (-webkit-touch-callout: none) {
  tr.row-island::before, tr.row-village::before {
    top: 40%;
    font-size: 5vw;
  }
} */


/* Responsive : sur mobile, le tableau s'ajuste */
@media (max-width: 600px) {
  table, th, td {
    font-size: 0.8em;
    height: auto;
  }
}
.legend-gif-container {
  display: flex;
  flex-direction: row; /* Aligner les éléments horizontalement */
  gap: 0px;           /* Espace entre les images, optionnel */
  height: 1.5em;
}
/* Définition de l'animation de glissement entrant */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Définition de l'animation de glissement sortant */
@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* Appliquer une transition de base au conteneur (facultatif) */
#calendarContainer {
  transition: opacity 0.2s ease, transform 0.5s ease;
}

/* Classe pour l'animation d'entrée */
#calendarContainer.anim-slide-in {
  animation: slideIn 0.2s alternate both; /* ease forwards;*/
}

/* Classe pour l'animation de sortie */
#calendarContainer.anim-slide-out {
  animation: slideOut 0.2s ease forwards;
}
@-webkit-keyframes scroll-left {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

@keyframes scroll-left {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

.scroll-banner {
  width: 100%;
  background-color: #00b0c9;
  color: white;
  overflow: hidden;
  padding: 5px 0;
  font-size: 1em;
  box-sizing: border-box;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  /* L'animation fadeIn se déclenche rapidement, puis scroll-left pour le défilement */
  -webkit-animation: fadeIn 0.5s ease-out, scroll-left 60s linear infinite;
  animation: fadeIn 0.5s ease-out, scroll-left 60s linear infinite;
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

    /* La cellule doit être positionnée en relative pour que le tooltip en absolu se positionne par rapport à elle */
    .cell {
      position: relative;
      width: 150px;
      height: 150px;
      border: 1px solid #ccc;
      margin: 20px;
      padding: 10px;
	  font-size: 2em
    }

/* Style du tooltip qui apparaîtra en surplomb de la cellule */
/*.tooltip-overlay {
  position: absolute; 
  top: 0; /* ou ajustez selon vos besoins 
  left: 0;
  width: 400px; *//* Largeur du tooltip, à ajuster */
/*  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 40px;
  display: none;
  white-space: normal;
}*/
.tooltip-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
	width: 4em;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999 !important; /* Assure qu'il est TOUJOURS au-dessus */
    pointer-events: auto !important; /* Permet l'interaction avec la souris */
    display: none; /* Cache par défaut */
    white-space: nowrap;
}



   /* Bannière supérieure aux couleurs de la SIRIV */
    .top-header {
      background-color: #00b0c9; /* Couleur de la SIRIV */
      color: white;
      /* text-align: right; */
      padding: 0px;
      font-size: 1em;
      /* margin-right: 100px; */

    }
    
    /* Conteneur du header : logo et menu sur une même ligne */
    #headerContainer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1px 0;
    }

    #subHeaderContainer {
      display: flex;
      align-items: right;
      justify-content: space-between;
      padding: 0px 0;
    }
    
    .logo-container {
      flex: 0 0 auto;
    }
    .logo-container img {
	  transform: translateX(10px);
	}

	.logoSTQ-Container{
		display: flex;
		align-items: center;
		gap: 20px; /* Espace entre le logo et le message */
		padding: 10px;
		/* background-color: #f0f0f0; /* Exemple de couleur de fond, à adapter */    
    }

    .logoSTQ-Container img {
	  transform: translateX(100px);
	}

	.STQ-logo {
	max-width: 150px;
	height: auto;
	}

	.accueil-message {
	/* Permet de respecter les retours à la ligne (notamment si vous insérez \n dans votre texte) */
	white-space: pre-line;
	font-size: 1em;
   /* Utilisez une largeur relative pour occuper la place disponible */
	width: 100%;
	max-width: 95%; /* Limite la largeur sur grand écran */
	margin-left: 10%; /* Décalage relatif */
	word-wrap: break-word; /* Pour que les mots trop longs se cassent */
	box-sizing: border-box;
	padding: 10px;   
	color: grey;
	}


    
	.accueil-message{
	flex: 0 0 auto;
	}
    /* Bouton Accueil aux couleurs de la SIRIV (et boutons généraux) */
    button {
      background-color: white;  /* Couleur par défaut */
      border: none;
      border-radius: 4px;
      color: grey;
      padding: 8px 16px;
      /* text-transform: uppercase; */
      font-size: 0.9em;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
 
    
    button:hover {
      background-color: #00b0c9;
      transform: scale(1.05);
    }
    
    button:active {
      transform: scale(0.98);
    }
    
 .carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  height: auto;
  display: none; /* Les images sont cachées par défaut */
}

.carousel-container img.active {
  display: block;
}

/* Overlay couvrant toute la surface du carrousel */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Utilisation de Flexbox pour centrer verticalement et horizontalement */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centre verticalement */
  align-items: center;
  padding-top: 50px; /* Décalage vers le bas */
  /* Optionnel : une couleur de fond semi-transparente pour améliorer la lisibilité */
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none; /* Permet de cliquer sur les boutons qui se trouvent dans l'overlay */
}

.carousel-title {
  color: white;
  padding: 10px 15px;
  font-size: 4em;
  margin: 4;
  pointer-events: auto; /* Permet d'interagir avec le titre si nécessaire */
}

.carousel-buttons {
  margin-top: 10px;
  pointer-events: auto; /* Pour que les boutons captent bien les clics */
}

.carousel-buttons button {
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}
    /* Style de la section des compteurs */
    .stats-section {
      text-align: center;
      padding: 20px;
      background: #00b0c9;
      margin: 20px;
    }
    .stats-section h2 {
      font-size: 2em;
      margin-bottom: 20px;
      color: white;
    }
    .counters {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }
    .counter {
      background: white;
      padding: 20px;
      border-radius: 8px;
      width: 200px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .counter .value {
      font-size: 2.5em;
      color: #00b0c9;
      margin-bottom: 10px;
    }
    .counter .description {
      font-size: 1.2em;
      color: #afafaf;
    }
	.tablepress thead th{
		background-color:#fff;
		font-weight:700;
		font-size:1.3em;
		vertical-align:middle;
		border:0
	}
	.entry-content tr th,
	.entry-content thead th,body
	.et-pb-preview 
	#main-content 
	.container tr th,body
	.et-pb-preview 
	#main-content 
	
	.container thead th{
		color:#00b0c9;
		font-weight:400
	}
	#tablepress-1 > thead > tr > th
	.column-1{
		font-weight:700
	}
	#tablepress-2 > thead > tr > th
	.column-1{
		font-weight:700
	}
	#tablepress-3 > thead > tr > th
	.column-1{
	font-weight:700
	}
	#tablepress-4 > thead > tr > th
	.column-1{
		font-weight:700
	}
	#tablepress-5 > thead > tr > th
	.column-1{
		font-weight:700
	}
	#tablepress-6 > thead > tr > th
	.column-1{
		font-weight:700
	}
	.tablepress tbody td{
		font-family:'Open Sans',Helvetica,Arial,Lucida,sans-serif!important;
		font-size:14px;
		color:#666;
		line-height:1em
	}
	.tablepress 
	.row-hover tr
	:hover td{
		background-color:#f1fcfe
	}
	.entry-content table,body
	.et-pb-preview 
	#main-content 
	.container table{
	border:0
	}
	.tablepress,
	.tablepress tr,
	.tablepress tbody td,
	.tablepress thead th,
	.tablepress tfoot th{
		border:none
	}
	.tablepress 
	.row td{
		padding:2px 8px
	}
	.tablepress 
	.column-2{
		width:280px
	}
	.tablepress 
	.column-3{
		width:280px
	}
	.tablepress tfoot th{
		background-color:#fff
	}
.tarifs-section {
  max-width: 60%;    /* La section occupe 80% de la largeur de la page */
  margin: 0 auto;    /* Centre horizontalement la section */
  text-align: left;  /* Force l'alignement du contenu à gauche */
  padding: 20px;     /* Optionnel, pour ajouter de l'espace intérieur */
}

.tarifs-section table {
  width: 100%;
  border-collapse: collapse;
}

.tarifs-section th,
.tarifs-section td {
  text-align: left;  /* Aligne le texte à gauche */
  padding: 8px;      /* Espace intérieur dans les cellules */
}

/* Si besoin, on peut aussi définir un style spécifique pour les entêtes */
.tarifs-section th {
  font-weight: bold;
  background-color: #f4f4f4;
}

#tableContainer,
#passagersTableContainer,
#vehiculesTableContainer {
  order: 1;
}

	.tarif-message {
	/* Permet de respecter les retours à la ligne (notamment si vous insérez \n dans votre texte) */
	white-space: pre-line;
	font-size: 1em;
   /* Utilisez une largeur relative pour occuper la place disponible */
	width: 60%;
	max-width: 80%; /* Limite la largeur sur grand écran */
	margin-left: 10%; /* Décalage relatif */
	word-wrap: break-word; /* Pour que les mots trop longs se cassent */
	box-sizing: border-box;
	padding: 1px;   
	color: grey;
	order:2
	}

	.header-dynamic-container {
	flex: 1;
	text-align: center;
}
.maree-chart {
  border: 2px solid #00b0c9;
  padding: 10px;
  border-radius: 5px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}