/* style.css – Premium design for Barbershopmania */
/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background: #0f1115;
  color: #e2e8f0;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at top right, #1a1c23, #0f1115);
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  color: #fff;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout helpers */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #111, #1a1c23);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  opacity: 0.35;
  z-index: -1;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #00bcd4;
  margin-bottom: 1rem;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ff4081;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #00bcd4;
  color: #0f1115;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.cta-button:hover {
  background: #00d8f3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: #00bcd4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Styles de base pour la galerie */
.gallery-container {
  max-width: 1200px;
  /* Largeur max de la galerie */
  margin: 20px auto;
  /* Centrer la galerie */
  padding: 0 20px;
  font-family: Arial, sans-serif;
}

.gallery-container h2 {
  text-align: center;
  color: #333;
  /* Couleur du titre */
  margin-bottom: 30px;
}

/* Grille Responsive (s'adapte aux mobiles) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Colonnes de 300px min */
  gap: 20px;
  /* Espace entre les images */
}

/* Style de chaque item de la galerie */
.gallery-item {
  position: relative;
  overflow: hidden;
  /* Pour l'effet de zoom */
  border-radius: 8px;
  /* Coins arrondis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Ombre légère */
  cursor: pointer;
  background-color: #f9f9f9;
  /* Fond si l'image charge mal */
}

/* Style de l'image elle-même */
.gallery-item img {
  width: 100%;
  height: 300px;
  /* Hauteur fixe pour uniformiser */
  object-fit: cover;
  /* Recadre l'image sans la déformer */
  display: block;
  transition: transform 0.3s ease;
  /* Animation de zoom */
}

/* Effet de survol : zoom sur l'image */
.gallery-item:hover img {
  transform: scale(1.05);
  /* Zoom de 5% */
}

/* Masque sombre au survol (Overlay) */
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  /* Fond noir semi-transparent */
  overflow: hidden;
  width: 100%;
  height: 0;
  /* Caché par défaut */
  transition: .5s ease;
  /* Animation d'apparition */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Apparition du masque au survol */
.gallery-item:hover .overlay {
  height: 100%;
  /* Remplit toute la hauteur */
}

/* Style du texte dans le masque */
.gallery-item .overlay span {
  color: white;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid white;
  padding: 10px 20px;
}
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(5px);
}

.contact-form button {
  align-self: flex-start;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #00bcd4;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  background: #0a0c10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: #94a3b8;
}

/* Scroll Reveal */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.nav-links.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(15, 17, 21, 0.98);
  padding: 2rem;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}