@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* RESET --------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f5f7fb;
  color: #333;
  line-height: 1.6;
}

/* LAYOUT -------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 1.5rem 0;
}

.section.bg-light {
  background: #f0f4fb;
}

.section h2 {
  color: #07426e;
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}

/* NAVBAR -------------------------------------------------- */
.navbar {
  background: #0a67a3;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.logo a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo i {
  font-size: 1.3rem;
}

/* Desktop nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.75rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.nav-links a i {
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
}

/* Burger */
.burger {
  display: none;
  font-size: 1.6rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO GÉNÉRAL ------------------------------------------- */
.hero,
#hero {
  min-height: 65vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before,
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}

.hero-overlay {
  position: relative;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  max-width: 760px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
  animation: fadeIn 0.9s ease-in-out;
}

.hero-overlay h1 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
}

/* HERO PAGES INTERNES ------------------------------------ */
#hero-apartment,
#hero-galerie,
#hero-tarifs,
#hero-contact {
  min-height: 45vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

#hero-apartment::before,
#hero-galerie::before,
#hero-tarifs::before,
#hero-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}

#hero-apartment .overlay,
#hero-galerie .overlay,
#hero-tarifs .overlay,
#hero-contact .overlay {
  position: relative;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(5px);
  padding: 2rem 1.8rem;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

#hero-apartment .overlay h1,
#hero-galerie .overlay h1,
#hero-tarifs .overlay h1,
#hero-contact .overlay h1 {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
}

/* BOUTONS ------------------------------------------------ */
.btn-primary {
  background: #fffbff;
  color: #0a67a3;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #dceeff;
}

.btn-secondary {
  background: #0a67a3;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #084d7a;
}

/* ACCUEIL – BLOCS AVANTAGES ----------------------------- */
.highlight {
  background: #eef4fb;
  padding: 3rem 0 2.5rem;
}

.features-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1;
  min-width: 260px;
  background: #fff;
  padding: 2rem 1.8rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.feature-icon {
  font-size: 2.3rem;
  color: #0a67a3;
  margin-bottom: 0.8rem;
}

.feature-box h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

/* LISTES ------------------------------------------------- */
.list-highlights,
.list-features,
.equipment-list {
  list-style: none;
  margin-top: 1rem;
}

.list-highlights li,
.list-features li,
.equipment-list li {
  margin-bottom: 0.5rem;
}

.list-highlights a {
  color: #0a67a3;
  text-decoration: none;
  font-weight: 500;
}

.list-highlights a i {
  margin-right: 0.4rem;
}

.list-highlights a:hover {
  text-decoration: underline;
}

/* APPARTEMENT – ÉQUIPEMENTS ----------------------------- */
.equipment-list {
  margin-top: 1.5rem;
}

.equipment-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.equipment-list li i {
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #0a67a3;
}

.sub-list {
  margin: 0.4rem 0 0.8rem 1.8rem;
  list-style: disc;
}

.sub-list li {
  margin-bottom: 0.3rem;
}

/* GALERIE APPARTEMENT ----------------------------------- */
.gallery-appartement {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 1.2rem !important;
}

.gallery-appartement a {
  display: block !important;
}

.gallery-appartement img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
}

.gallery-appartement img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* GALERIE – GRILLE GLOBALE ------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* TARIFS ------------------------------------------------- */
#hero-tarifs {
  background-image: url('images/chamrousse-photo-01.jpg');
}

#hero-galerie {
  background-image: url('images/chamrousse-photo-02.jpg');
}

.tarifs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 2rem;
  align-items: flex-start;
}

.tarifs-grid p {
  margin-bottom: 1rem;
}

.tarifs-grid h3 {
  color: #0a67a3;
  margin-bottom: 0.5rem;
}

.list-features li::before {
  content: "• ";
  color: #0a67a3;
  font-weight: 700;
}

/* CONTACT ------------------------------------------------ */
#hero-contact {
  background-image: url('images/chamrousse-photo-03.jpg');
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2.2rem;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccd6e4;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0a67a3;
  box-shadow: 0 0 0 3px rgba(10,103,163,0.15);
}

.form-message {
  margin-top: 1rem;
  font-style: italic;
  text-align: center;
  color: #0a67a3;
}

/* CTA BAS DE PAGE --------------------------------------- */
.cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0a67a3, #3b8dd1);
  color: white;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* FOOTER ------------------------------------------------- */
.footer {
  background: #0a67a3;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* RESPONSIVE --------------------------------------------- */

@media (max-width: 992px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .tarifs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .burger {
    display: block;
  }

  /* panneau latéral */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 1.5rem 2rem;
    gap: 1rem;
    background: rgba(3, 36, 66, 0.93);
    backdrop-filter: blur(12px);
    box-shadow: -4px 0 20px rgba(0,0,0,0.35);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    font-size: 1rem;
  }

  .hero,
  #hero {
    min-height: 70vh;
  }

  .hero-overlay {
    padding: 2rem 1.3rem;
  }

  #hero-apartment,
  #hero-galerie,
  #hero-tarifs,
  #hero-contact {
    min-height: 55vh;
  }

  #hero-apartment .overlay,
  #hero-galerie .overlay,
  #hero-tarifs .overlay,
  #hero-contact .overlay {
    padding: 1.6rem 1.2rem;
  }

  #hero-apartment .overlay h1,
  #hero-galerie .overlay h1,
  #hero-tarifs .overlay h1,
  #hero-contact .overlay h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section h2 {
    text-align: left;
    font-size: 1.7rem;
  }

  .features-row {
    flex-direction: column;
  }

  .mini-gallery {
    flex-direction: column;
  }

  .mini-gallery img {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 1.3rem;
  }
  .hero-overlay h1 {
    font-size: 1.7rem;
  }
  .hero-overlay p {
    font-size: 0.95rem;
  }
}

/* ANIMATION ---------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
