/* Reset */
@import url('https://fonts.googleapis.com/css?family=Cinzel+Decorative:400,700,900');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

/* Body */
body {
  background-color: #fff5e1;
  font-family: 'Poppins', sans-serif;
  color: #14375d;
  line-height: 1.6;
}

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

/* Header */
.header {
  background: #FFF5e1;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-container img {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-container img:hover {
  transform: scale(1.1);
}

.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav a {
  font-family: "Cinzel Decorative", serif;
  text-decoration: none;
  font-weight: 700;
  color: #14375D;
  transition: color 0.3s ease;
  box-shadow: inset 0 0 0 0 #13475d;
  color: #13475d;
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  border-radius: 4px;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  font-size: 0.9rem;
}

.nav a:hover {
  color: #fff;
  box-shadow: inset 200px 0 0 0 #13475d;
}

/* Menu mobile hamburger - caché par défaut */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #14375d;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Bannière héro */
.hero {
  background: #FFF5e1 url('images/pexels-rashmika-nilupul-682278056-32888482.jpg') center/cover no-repeat;
  color: #14375D;
  text-align: center;
  padding: 3rem 1rem;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  margin-bottom: 1rem;
  font-family: "Cinzel Decorative", serif;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-family: "Cinzel Decorative", serif;
  font-weight: bold;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: #f3b016;
  color: #fff;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cta-button:hover {
  background-color: #13475d;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* Sections */
.content {
  padding: 1rem 0;
}

.content-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bloc1 {
  text-align: center;
  padding: 1rem;
  max-width: 800px;
}

.bloc1 h2 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.5rem, 4vw, 1.5rem);
  margin-bottom: 1rem;
}

.bloc1 p {
  font-size: clamp(1rem, 2.5vw, 1rem);
  margin-bottom: 0.5rem;
}

.bloc1 a {
  color: #13475d;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(to right, rgba(100, 200, 200, 1), rgba(100, 200, 200, 1)), linear-gradient(to right, rgba(255, 0, 0, 1), rgba(255, 0, 180, 1), rgba(0, 100, 200, 1));
  background-size: 100% 3px, 0 3px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms, transform 0.3s ease;
}

.bloc1 a:hover {
  transform: translateY(-2px);
  background-size: 0 3px, 100% 3px;
}

/* Services */
#services {
  padding: 0rem 0;
}

.services h2 {
  text-align: center;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.content a {
  color: #13475d;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  background: linear-gradient(to right, rgba(100, 200, 200, 1), rgba(100, 200, 200, 1)), linear-gradient(to right, rgba(255, 0, 0, 1), rgba(255, 0, 180, 1), rgba(0, 100, 200, 1));
  background-size: 100% 3px, 0 3px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms;
}

.content a:hover {
  transform: translateY(-5px);
  background-size: 0 3px, 100% 3px;
}

.grid-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-family: "Cinzel Decorative", serif;
  margin-bottom: 1rem;
  color: #14375d;
}

.card-content p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-family: 'Poppins', sans-serif;
  color: #555;
  line-height: 1.6;
}

/* Styles spécifiques pour la page consultations */
.consultation-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.consultation-image {
  flex: 0 0 300px;
  min-width: 280px;
}

.consultation-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.consultation-content {
  flex: 1;
  min-width: 0;
}

.consultation-content h1 {
  font-family: "Cinzel Decorative", serif;
  color: #14375d;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #f3b016;
  padding-bottom: 0.5rem;
}

.consultation-content h2 {
  font-family: "Cinzel Decorative", serif;
  color: #13475d;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin: 1.5rem 0 1rem 0;
}

.consultation-content h3 {
  font-family: 'Poppins', sans-serif;
  color: #f3b016;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(243, 176, 22, 0.1);
  border-left: 4px solid #f3b016;
  border-radius: 4px;
}

.consultation-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.consultation-content ul li {
  margin-bottom: 0.8rem;
  padding-left: 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

.consultation-content p {
  margin: 1rem 0;
}

.consultation-content a {
  color: #13475d;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(to right, rgba(100, 200, 200, 1), rgba(100, 200, 200, 1)), linear-gradient(to right, rgba(255, 0, 0, 1), rgba(255, 0, 180, 1), rgba(0, 100, 200, 1));
  background-size: 100% 3px, 0 3px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms, transform 0.3s ease;
}

.consultation-content a:hover {
  transform: translateY(-2px);
  background-size: 0 3px, 100% 3px;
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: #fca374;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer a {
  color: #fff5e1;
  font-family: 'Poppins', sans-serif;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer img {
  height: 120px;
  width: auto;
}

.footer a:hover {
  color: #13475d;
}

/* Responsive pour tablettes */
@media (max-width: 768px) {
  .consultation-section {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .consultation-image {
    flex: none;
    min-width: auto;
    width: 100%;
  }
  
  .consultation-image img {
    height: 200px;
  }
}

/* Menu mobile uniquement sur mobile (max-width: 480px) */
@media (max-width: 480px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .header-container img {
    height: 70px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff5e1;
    border-top: 1px solid #ddd;
    display: none;
    z-index: 100;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav a {
    display: block;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin: 0;
    font-size: 0.9rem;
  }

  .nav a:hover {
    background-color: #13475d;
  }

  .hero {
    padding: 2rem 0.5rem;
  }

  .cta-button {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
  }

  .grid-sections {
    padding: 0.5rem;
  }

  .footer img {
    height: 70px;
  }

  .bloc1 {
    padding: 1rem;
  }

  .card img {
    height: 160px;
  }
  
  #prestations{
	  padding: 0 0.5 rem
  }
  
  #tarifs{
	  padding: 0 0.5 rem
  }

  /* Consultation responsive mobile */
  .consultation-section {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .consultation-image img {
    height: 180px;
  }
  
  .consultation-content h1 {
    text-align: center;
  }
  
  .consultation-content h3 {
    padding: 0.8rem;
    font-size: 1rem;
  }
}

/* Amélioration pour les très petits écrans */
@media (max-width: 320px) {
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .header-container img {
    height: 60px;
  }
  
    #prestations{
	  padding: 0 0.5 rem
  }
  
  .bloc1 {
	  
  }
  
  #tarifs{
	  padding: 0 0.5 rem
  }
  
  .card{
	  
  }

  .footer img {
    height: 60px;
  }

  /* Consultation très petits écrans */
  .consultation-section {
    padding: 0.8rem;
  }
  
  .consultation-image img {
    height: 150px;
  }
}