/* ==========================================================================
   VARIABLES ET BASES DE STYLE - L'INSTITUT
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

:root {
  --color-accent: #c49d79; /* Sable / Doré */
  --color-pink: #b82b70; /* Rose Mahana */
  --bg-light: #fdfbf7; /* Beige très clair */
  --text-dark: #1a1614;
  --text-muted: #666666;
  --border-light: rgba(0, 0, 0, 0.06);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-pink {
  color: var(--color-pink);
  font-style: italic;
  font-weight: normal;
}

.section-surtitle {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

/* ==========================================================================
   1. HERO SECTION (Bannière Visuelle)
   ========================================================================== */
.inst-hero {
  position: relative;
  padding: 220px 0 120px 0; /* Laisse de l'espace pour la navbar blanche */
  background-image: url("../images/galerie4.jpg"); /* Image de cabine/soin */
  background-size: cover;
  background-position: center 30%;
  text-align: center;
}

/* Calque sombre pour rendre le texte lisible */
.inst-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 22, 20, 0.5); /* Filtre noir transparent */
  z-index: 1;
}

.inst-hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: #ffffff; /* Texte en blanc */
  line-height: 1.2;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* On change le rose en doré/sable pour contraster avec le fond sombre */
.hero-title .text-pink {
  color: var(--color-accent);
}

.scroll-down {
  animation: bounce 2s infinite;
}

.scroll-down svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
  opacity: 0.8;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ==========================================================================
   2. SECTION EDITORIALE
   ========================================================================== */
.inst-editorial {
  padding: 140px 0;
  background-color: #ffffff;
}

.edito-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
}

.edito-left h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.lead-text {
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.dropcap {
  float: left;
  font-family: "Playfair Display", serif;
  font-size: 75px;
  line-height: 0.8;
  padding-right: 15px;
  padding-top: 4px;
  color: var(--color-accent);
}

.edito-right {
  padding-top: 40px;
}

.edito-right p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.edito-quote {
  margin-top: 50px;
  padding-left: 30px;
  border-left: 1px solid var(--color-accent);
}

.edito-quote p {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

.btn-elegant {
  display: inline-block;
  padding: 16px 45px;
  background-color: var(--text-dark);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-elegant:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* ==========================================================================
   3. INFORMATIONS PRATIQUES & CARTE
   ========================================================================== */
.inst-location {
  padding: 0 0 140px 0;
  background-color: #ffffff;
}

.location-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 0;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  max-width: 1400px;
  margin: 0 auto;
}

.schedule-block {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.schedule-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.address-text {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.address-text strong {
  color: var(--text-dark);
  font-size: 16px;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  width: 100%;
  max-width: 340px;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list .closed {
  color: var(--color-accent);
  font-weight: 500;
}

.schedule-note-block {
  margin-bottom: 30px;
}

.schedule-note {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin: 4px 0;
}

.phone-link {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 5px;
}

.phone-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.map-block {
  width: 100%;
  min-height: 500px;
  background-color: #eee;
}

.map-block iframe {
  display: block;
}

/* ==========================================================================
   4. PARTENAIRES (Épuré)
   ========================================================================== */
.inst-partners {
  padding: 80px 0 140px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
}

.logos-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
}

.logos-grid img {
  height: auto;
  max-height: 85px;
  max-width: 250px;
  transition: all 0.3s ease;
}

.logos-grid img:hover {
  filter: none !important; 
  opacity: 1 !important;
}
/* ==========================================================================
   5. SCROLL TOP BUTTON
   ========================================================================== */
#myBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 45px;
  height: 45px;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#myBtn:hover {
  background-color: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .edito-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .edito-right {
    padding-top: 0;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .map-block {
    height: 400px;
    min-height: 400px;
  }
  .inst-editorial,
  .inst-location,
  .inst-partners {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .schedule-block {
    padding: 60px 30px;
  }
  .logos-grid {
    gap: 40px;
  }
  .logo-mask {
    height: 50px;
    width: 120px;
  }
}