/* -------------------------------------------- */
/* STYLES PRINCIPAUX                            */
/* -------------------------------------------- */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #FFFFFF;
  color: #2E1F27;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  padding: 30px 30px;
  font-size: 2.5rem;
  color: #4D7ABD;
}
.titres {
	border-left: 6px solid #4D7ABD;
	padding-left: 10px;
	margin: 2em 10em;
}
	
.titres h2 {
  margin: 0;
  font-size: 2rem;
  color: #4D7ABD;
}

.titres h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #4D7ABD;
}

#main-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1; /* prend tout l’espace restant */
}


/* -------------------------------------------- */
/* HEADER                                       */
/* -------------------------------------------- */

header {
  background-color: #FFFFFF;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* petite ombre subtile */
}

.header-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 3 colonnes : logo gauche / titre / logo droit */
  align-items: center;
  padding: 15px 20px;
}

.header-container h1 {
  text-align: center;
  margin: 0;
}

.logo_cmb {
  justify-self: start;
  height: 70px;
}

.logo_hp {
  justify-self: end;
  height: 70px;
}

/* -------------------------------------------- */
/* FOOTER                                       */
/* -------------------------------------------- */

footer {
  background-color: #3A88FF;   
  color: #F8F6E6;              
  text-align: center;
  padding: 15px 0;             
  font-size: 14px;
  width: 100%;                 
  border-radius: 0;            
}

/* -------------------------------------------- */
/* TABLEAU                                      */
/* -------------------------------------------- */

#table_principale {
  display: none; /* caché par défaut */
}

#table_principale {
  margin: 40px auto;
  border-collapse: collapse;
  width: 95%;
  max-width: 1200px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#table_principale th {
  background: #4D7ABD;
  color: #FFFFFF;
  padding: 12px;
  text-align: center;
  font-size: 1.1rem;
  border-right: 1px solid #FFF;
  border-bottom: 1px solid #FFF;
}

#table_principale td {
  padding: 10px;
  text-align: center;
  border-right: 1px solid #EEE;
  border-bottom: 1px solid #EEE;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fond alterné pour marée haute / basse */
#table_principale td.high {
    background-color: #F0FBFF;
}

#table_principale td.low {
    background-color: #F3FFF3;
}

#table_principale tr:hover td {
  background: #FFF6B1;
}

.coef {
  font-weight: bold;
  border-radius: 6px;
  color: #2E1F27;
}
.coef2040 {
	background-color:#CADCE0;
	color: #333333;
}
.coef4060 {
	background-color:#B0D3D8;
	color: #333333;
}
.coef6080 {
	background-color:#8EC9D8;
	color: #333333;
}
.coef80100 {
	background-color:#63A0D7;
	color: #EEEEEE;
}
.coef100120 {
	background-color:#4D7ABD;
	color: #EEEEEE;
}


.date {
	font-weight: bold;
}


/* -------------------------------------------- */
/* BOUTONS MOIS                                 */
/* -------------------------------------------- */

#mois-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

#mois-container button {
  padding: 50px 0;
  border-radius: 16px;
  border: none;
  background: linear-gradient(145deg, #4D7ABD, #63A0D7);
  color: #F8F6E6;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#mois-container button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#mois-container button.active {
  background: #8EC9D8;
  color: #2E1F27;
  transform: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

.photo-section {
  background: url('Links/phare.jpeg')top/cover no-repeat;
  padding: 60px 20px;
  clip-path: ellipse(100% 80% at 50% 20%);
  text-align: center;
  position: relative;
  color: #fff; /* texte blanc par défaut pour contraster */
}
