/*
  Styles pour le site SH Beauty Center version luxe
  Utilise une palette douce (marron et beige) et une typographie élégante.
*/

:root {
  /* Couleurs principales */
  --primary-color: #754b36;       /* Marron chaud */
  --secondary-color: #e4d3c7;     /* Beige clair */
  --accent-color: #9e6e65;        /* Ton intermédiaire pour les survols */
  --dark-color: #2e2e2e;
  --light-color: #ffffff;
}

/* Reset et base typographique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: capitalize;
  letter-spacing: 1px;
}

/* Liens généraux */
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Boutons réutilisables */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn.primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}
.btn.secondary {
  background-color: var(--accent-color);
  color: var(--light-color);
}
.btn.small {
  padding: 10px 20px;
  font-size: 0.85rem;
}
.btn.primary:hover {
  background-color: var(--accent-color);
}
.btn.secondary:hover {
  background-color: var(--primary-color);
}

/* Section héros */
.hero {
  position: relative;
  height: 90vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: var(--light-color);
  padding: 30px;
  z-index: 1;
  max-width: 90%;
  animation: fadeInDown 1.5s ease forwards;
}

/* Couleurs spécifiques pour le titre et le slogan dans la section héro –
   on utilise la couleur beige clair pour contraster avec la superposition sombre */
.hero-overlay h1,
.hero-overlay .tagline {
  color: var(--secondary-color);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.hero .tagline {
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 300;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Section services */
.services {
  background-color: var(--secondary-color);
  padding: 80px 20px;
  text-align: center;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s forwards;
}
/* Délai pour chaque carte pour l'effet de cascade */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }
.service-card:nth-child(4) { animation-delay: 0.7s; }
.service-card:nth-child(5) { animation-delay: 0.9s; }
.service-card:nth-child(6) { animation-delay: 1.1s; }
.service-card:nth-child(7) { animation-delay: 1.3s; }
.service-card:nth-child(8) { animation-delay: 1.5s; }

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.service-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
  text-align: left;
  backdrop-filter: blur(2px);
}
.service-content i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--secondary-color);
}
.service-content h3 {
  margin: 0;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--light-color);
}
.service-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--light-color);
}

/* À propos section */
.about {
  background-color: var(--light-color);
  padding: 80px 20px;
  text-align: center;
}
.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.about p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1rem;
  color: var(--dark-color);
}

/* Centres section */
.centers {
  background-color: var(--secondary-color);
  padding: 80px 20px;
  text-align: center;
}
.centers h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.center-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.center-card {
  background-color: var(--light-color);
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 320px;
  flex: 1 1 280px;
  text-align: center;
}
.center-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.center-card .phone {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  font-weight: 500;
}
.center-card .btn {
  display: inline-block;
  margin-top: 10px;
}

/* Section localisation */
.location-section {
  background-color: var(--light-color);
  padding: 80px 20px;
  text-align: center;
}

/* Galerie section */
.gallery {
  background-color: var(--light-color);
  padding: 80px 20px;
  text-align: center;
}
.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}
.location-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.location-section p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

/* Pied de page */
footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 30px 10px;
}
footer a {
  color: var(--secondary-color);
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .tagline {
    font-size: 1.1rem;
  }
  .services h2, .about h2, .centers h2, .location-section h2 {
    font-size: 2rem;
  }
  .service-card {
    height: 320px;
  }
  .center-card {
    max-width: 90%;
  }
}