/* ===== style.css ===== */

/* 1) RESET & FONTS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* 2) PAGE LAYOUT */
body {
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
main {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: calc(100vh - 2rem);
  position: relative;
  overflow: hidden;
}

/* 2.a) CONTENU SCROLLABLE */
.content {
  height: calc(100% - 140px); /* Ajuster 140px à la hauteur de la suggestion-section */
  overflow-y: auto;
}

/* 3) HEADER / LOGO */
header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
#logo {
  max-width: 200px;
  height: auto;
}

/* 4) FORM SECTION */
.form-section {
  background-color: #f5f9ff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.form-section label {
  display: block;
  font-size: 0.65rem;
  color: #666;
  margin-bottom: 0.25rem;
}

/* 4.a) From ⇄ To */
.input-row.fields-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 0.6rem;
  align-items: end;
  margin-bottom: 1rem;
}
.input-row.fields-row .input-group {
  display: flex;
  flex-direction: column;
}
.input-row.fields-row input,
.input-row.fields-row select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 2.5rem;
  line-height: 1.2;
}

/* 4.b) Date & Heure */
.input-row.date-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.6rem;
  margin-bottom: 1rem;
}
.input-row.date-time-row .input-group {
  display: flex;
  flex-direction: column;
}
.input-row.date-time-row input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 2.5rem;
  line-height: 1.2;
}

/* 5) BOUTON ⇄ */
#switch {
  justify-self: center;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  background-color: #006ff9;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* 6) RESULT SECTION */
.result-section {
  text-align: right;
  margin: 1rem 0;
}
#result-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  display: inline-block;
  position: relative;
}
.schedule-note {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}
#full-schedule-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #006ff9;
  text-decoration: none;
  margin-bottom: 1rem;
}

/* 7) SUGGESTIONS (fixée en bas) */
.suggestion-section {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #fff;
  /* on supprime le border-top ici */
  padding: 1rem;
  /* box-shadow: 0 -2px 5px rgba(0,0,0,0.05); */
  z-index: 10;
}

.suggestion-section h2 {
  font-size: 1rem;
  color: #333;

  /* on ajoute le liseré sous le titre */
  border-bottom: 1px solid #dbeeff;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.suggestion-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* 8) FANCY UNDERLINE (border-bottom + animation) */
.fancy-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 0.1em;       /* espace sous le texte */
  white-space: nowrap;         /* empêche le mot-casse */
  border-bottom: 4px solid transparent;
}
.fancy-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background-color: #006ff9;
  width: 0%;
  animation: reveal-underline 0.8s ease-out forwards;
}
@keyframes reveal-underline {
  to { width: 100%; }
}
