body{
  height: 100%;
  margin:0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

/* Compensate browsers specificities */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
textarea {
  overflow: auto;
}

/* || GENERAL STYLES */

body {
  /* … */
}

h1,
h2,
h3,
h4 {
  /* … */
}

ul {
  margin-top:0;
}

blockquote {
  /* … */
}

/* || SITEWIDE */

/* HEADER */
.nav-bar{
  position : fixed;
  top : 0;
  height : 56px;
  width: 100vw;
  background-color: white;
  display : flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #cdcdcd;
  z-index:20000;
}

.nav-logo{
  margin-left: 10vw;
  display: flex;
}

.nav-menu {
  margin-right: 10vw;
}

.nav-menu a{
  color: black;
    padding: 14px 16px;
    text-decoration: none;
}

.nav-bar .icon {
  display: none;
  margin-right: 5vw;
  padding: 14px 16px;
  color : black;
}

@media screen and (max-width: 800px) {
    .nav-bar .nav-menu {display: none;}
  .nav-bar a.icon {display: block;}

  .nav-bar.responsive .nav-menu {
      display:block;
      position: absolute;
      top : 56px;
      width: 100vw;
      background-color: white;
      border-bottom: 1px solid #cdcdcd;
  }

  .nav-bar.responsive .nav-menu a{
      display: block;
      text-align: right;
      margin-right : 5vw;
  }
}


/* || TRACKING PAGE */
main{
  padding:56px 0 0 0;
}

.flex-container{
  display: flex;
}

#full-wrapper{
  height: 100%;
}

#map{
  flex: 1;
}

#windy{
  height: 100%;
  width: 100%;
}

/* COMMUNICATION MODULE */
/* Styles du bouton flottant */
/* Styles du bouton flottant */
#message-btn {
    position: fixed;
    top: 76px;
    left: 20px;
    background-color: #003366; /* Bleu profond de JC Skipper */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}
#message-btn i {
    font-size: 20px;
}
#message-btn:hover {
    background-color: #002244; /* Bleu encore plus profond pour effet hover */
}

/* Styles de la modale */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.modal-content input, .modal-content textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.modal-content button {
  background: #003366;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}
.modal-content button:hover {
  background: #002244;
}
.close {
  color: red;
  font-size: 20px;
  cursor: pointer;
  float: right;
}
.char-counter {
  font-size: 12px;
  text-align: right;
  color: gray;
}
.info-text {
  font-size: 12px;
  text-align: left;
  color: gray;
  margin-bottom: 5px;
}

/* LEGEND */

/* Bouton Info */
#info-btn {
    position: fixed;
    top: 130px;
    left: 20px;
    background: none;
    border: none;
    color: #003366;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}
#info-btn:hover {
    color: #001933;
}


/* Légende masquée par défaut */
#legend-container {
    display: none;
    position: fixed;
    top: 160px;
    left: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    font-size: 14px;
    z-index: 999;
    line-height: 1.6;
}
#legend-container h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}
