/* Styles spécifiques à la page "Le relais de soin" */

/* Header dynamique */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Logo styles */
.logo {
  height: 60px;
  transition: all 0.3s ease;
}

/* Header réduit après scroll */
.header-scrolled {
  padding: 8px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Logo réduit après scroll */
.logo-scrolled {
  height: 45px;
}

/* Navigation menu */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 5px;
}

nav ul li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

nav ul li a:hover {
  color: #3AC1C4;
  background-color: rgba(58, 193, 196, 0.05);
}

nav ul li a.active {
  color: #3AC1C4;
  border-bottom: 2px solid #3AC1C4;
}

/* Adaptation du menu lors du scroll */
.header-scrolled nav ul li a {
  font-size: 0.95rem;
  padding: 8px 12px;
}

/* Menu hamburger (mobile) */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Section hero avec image et overlay */
.hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  padding: 150px 0 80px;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/relais-de-soins.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  max-width: 750px;
  margin: 0 auto 30px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sections générales */
section {
  padding: 80px 0;
}

section:nth-child(odd) {
  background-color: var(--light-color);
}

section h2 {
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 2rem;
  text-align: center;
}

section h2 i {
  margin-right: 10px;
}

/* Mise en page contenu avec image */
.section-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-with-image {
  display: flex;
  gap: 50px;
  align-items: center;
}

.content-with-image.reversed {
  flex-direction: row-reverse;
}

.text-content, .image-placeholder {
  flex: 1;
}

.text-content ul {
  list-style: none;
  margin-top: 20px;
}

.text-content ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

.text-content ul li:before {
  content: "•";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.image-placeholder {
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: #e9e9e9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-style: italic;
}

/* Section impact - avantages du relais */
.impact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.impact-item {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: flex-start;
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.impact-item:hover {
  transform: translateY(-5px);
}

.impact-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  margin-right: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.impact-icon i {
  color: white;
  font-size: 24px;
}

.impact-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Section CTA spécifique au relais de soin */
.cta {
  text-align: center;
  background-color: #3AC1C4 !important;
  color: white;
}

.cta h2, .cta p {
  color: white;
}

.cta .btn {
  background-color: white;
  color: #3AC1C4;
  font-size: 1.1rem;
  padding: 15px 30px;
  margin-top: 20px;
}

.cta .btn:hover {
  background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 992px) {
  .content-with-image, .content-with-image.reversed {
    flex-direction: column;
  }
  
  .image-placeholder {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Header responsive */
  .menu-toggle {
    display: block;
  }
  
  header {
    padding: 10px 0;
  }
  
  .header-scrolled {
    padding: 5px 0;
  }
  
  .logo {
    height: 50px;
  }
  
  .logo-scrolled {
    height: 40px;
  }
  
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav.active ul {
    max-height: 300px;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav ul li a {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
  }
  
  .hero {
    min-height: 250px;
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .impact-item {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  /* Header pour très petits écrans */
  .header-container {
    padding: 0 15px;
  }
  
  .logo {
    height: 45px;
  }
  
  .logo-scrolled {
    height: 35px;
  }
  
  .hero {
    min-height: 200px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}