/* =========================================
   HOME — Styles de index.html
   ========================================= */
.page-home {
  font-family: var(--font-main);
  background-color: #f5f7fa;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.page-home .home-container {
  position: relative;
  z-index: 1;
  background: #ffffff;
  max-width: 900px;
  width: 100%;
  padding: 4vh 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-home .home-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-image: url("/assets/decors1.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.page-home .home-header {
  margin-bottom: 4vh;
}

.page-home .main-title {
  color: var(--color-title);
  font-size: clamp(2.5em, 6vh, 4em);
  font-weight: 500;
  margin: 0 auto 1vh auto;
  line-height: 1.1;
  width: fit-content;
}

.page-home .main-title span {
  display: block;
  text-align: justify;
  text-align-last: justify;
}

.page-home #first-line {
  font-weight: 500;
}

.page-home #first-line::first-letter {
  color: var(--color-accent);
  font-weight: 700;
}

.page-home #second-line {
  font-weight: 700;
}

.page-home .subtitle {
  color: var(--color-accent);
  font-size: clamp(1em, 2vh, 1.3em);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1vh;
}

.page-home .welcome-section {
  margin-bottom: 4vh;
  padding: 0 5%;
}

.page-home .welcome-section h2 {
  color: var(--color-primary);
  font-size: clamp(1.4em, 3vh, 1.8em);
  margin: 0 0 1.5vh 0;
}

.page-home .welcome-text {
  color: var(--color-primary);
  font-size: clamp(0.95em, 2vh, 1.05em);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.page-home .navigation-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 5vh;
  flex-wrap: wrap;
}

.page-home .btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 2vh 30px;
  border-radius: 10px;
  transition:
    transform 0.2s,
    background-color 0.2s;
  min-width: 240px;
  box-sizing: border-box;
}

.page-home .btn:active {
  transform: scale(0.98);
}

.page-home .btn-title {
  font-size: clamp(1.1em, 2.5vh, 1.3em);
  font-weight: 700;
  margin-bottom: 4px;
}

.page-home .btn-subtitle {
  font-size: clamp(0.75em, 1.5vh, 0.85em);
  font-weight: 300;
}

.page-home .btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.page-home .btn-secondary {
  background-color: white;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.page-home .info-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(10, 82, 142, 0.15);
  padding-top: 3vh;
  text-align: left;
  flex-wrap: wrap;
}

.page-home .info-block {
  flex: 1;
  min-width: 240px;
  color: var(--color-primary);
}

.page-home .info-block h3 {
  color: var(--color-primary);
  font-size: clamp(1em, 2.2vh, 1.1em);
  margin: 0 0 1vh 0;
  text-transform: uppercase;
}

.page-home .info-block h3::first-letter {
  color: var(--color-accent);
}

.page-home .info-block p {
  font-weight: 400;
  margin: 0 0 5px 0;
}

.page-home address {
  font-style: normal;
  text-decoration: none;
}

.page-home address a {
  text-decoration: none;
  color: inherit;
}

.page-home .address {
  text-decoration: none;
  color: var(--color-primary);
}

.page-home .phone-number {
  font-weight: 700 !important;
  margin-top: 1vh !important;
  font-size: 1.1em;
}

.page-home .hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95em;
  border-bottom: 1px dotted rgba(10, 82, 142, 0.2);
}

.page-home .hours-note {
  color: var(--color-primary);
  line-height: 1.5;
  margin: 1.5vh 0 0;
}

/* --- RESPONSIVE TABLETTE ET MOBILE (Retour au scroll classique) --- */
@media (max-width: 768px) {
  .page-home {
    align-items: flex-start;
  }
  .page-home .home-container {
    padding: 40px 20px;
  }
  .page-home .home-header {
    margin-bottom: 40px;
  }
  .page-home .main-title {
    font-size: 3em;
    margin-bottom: 10px;
  }
  .page-home .subtitle {
    font-size: 1.2em;
    margin-top: 10px;
  }
  .page-home .welcome-section {
    margin-bottom: 40px;
  }
  .page-home .welcome-section h2 {
    margin-bottom: 15px;
    font-size: 1.6em;
  }
  .page-home .welcome-text {
    font-size: 1em;
  }
  .page-home .navigation-section {
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
  }
  .page-home .btn {
    width: 100%;
    max-width: 320px;
    padding: 18px 20px;
  }
  .page-home .btn-title {
    font-size: 1.3em;
  }
  .page-home .info-section {
    padding-top: 30px;
  }
}

/* OPTIMISATION JUSQU'À 400PX ET MOINS */
@media (max-width: 430px) {
  .page-home {
    padding: 10px;
  }
  .page-home .home-container {
    padding: 30px 15px;
    border-radius: 10px;
  }
  .page-home .main-title {
    font-size: 2.1em;
  }
  .page-home .subtitle {
    font-size: 1em;
    letter-spacing: 1px;
  }
  .page-home .welcome-section {
    padding: 0 2%;
    margin-bottom: 30px;
  }
  .page-home .welcome-section h2 {
    font-size: 1.4em;
  }
  .page-home .welcome-text {
    font-size: 0.95em;
  }
  .page-home .btn {
    padding: 15px;
  }
  .page-home .btn-title {
    font-size: 1.15em;
  }
  .page-home .info-section {
    flex-direction: column;
    gap: 25px;
    padding-top: 25px;
  }
  .page-home .info-block {
    min-width: 100%;
  }
  .page-home .hours-list li {
    font-size: 0.85em;
  }
}
