/* Variables CSS personnalisées pour les couleurs */
:root {
  /* Couleurs principales */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  
  /* Couleurs grises */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Autres couleurs */
  --white: #ffffff;
  --black: #000000;
  --rose-500: #f43f5e;
  --yellow-500: #eab308;
  --blue-500: #3b82f6;
  --purple-500: #a855f7;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  overflow-x: hidden;
}

.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* Animation keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInFromTop {
  from { transform: translateY(-100px); }
  to { transform: translateY(0); }
}

@keyframes slideInFromBottom {
  from { transform: translateY(100px); }
  to { transform: translateY(0); }
}

/* Classes d'animation */
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease-out forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease-out forwards; }
.animate-slide-down { animation: slideInFromTop 0.4s ease-out forwards; }
.animate-slide-up { animation: slideInFromBottom 0.4s ease-out forwards; }

/* Classes de délai */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Masquer initialement les éléments à animer */
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.in-view { opacity: 1; }
.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }

/* Container général */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  animation: slideInFromTop 0.6s ease-out;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.logo:hover { transform: scale(1.05); }

.logo h1 {
  font-size: 1.5rem;
  color: var(--emerald-800);
  letter-spacing: 0.025em;
  margin-bottom: -0.25rem;
}

.logo p {
  font-size: 0.875rem;
  color: var(--emerald-600);
  font-style: italic;
  font-weight: 300;
}

/* Navigation */
.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all var(--transition-normal);
}

.nav-desktop a:hover {
  color: var(--emerald-600);
  transform: translateY(-2px);
}

.nav-desktop a.active {
  color: var(--emerald-700);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--emerald-700);
  border-radius: 1px;
}

/* Menu mobile */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
  font-size: 1.5rem;
}

.mobile-menu-btn:hover {
  background: var(--gray-50);
  color: var(--emerald-600);
  transform: scale(1.1);
}

.mobile-nav {
  display: block;
  border-top: 1px solid var(--gray-100);
  padding: 1rem 0;
  animation: fadeInDown 0.3s ease-out;
}

.mobile-nav.hidden { display: none; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
}

.mobile-nav a:hover {
  color: var(--emerald-600);
  background: var(--gray-50);
  transform: translateX(5px);
}

.mobile-nav a.active {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn:hover { transform: scale(1.05) translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--white);
  color: var(--emerald-800);
}

.btn-primary:hover { background: var(--emerald-50); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--emerald-800);
}

.btn-emerald {
  background: var(--emerald-700);
  color: var(--white);
}

.btn-emerald:hover { background: var(--emerald-800); }

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: scaleIn 1.5s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 64rem;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

/* Sections */
.section { padding: 5rem 0; }

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.125rem);
  text-align: center;
  color: var(--gray-600);
  max-width: 32rem;
  margin: 0 auto 4rem;
}

/* Grilles */
.grid { display: grid; gap: 2rem; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Service components */
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-row-reverse .service-content { order: 2; }
.service-row-reverse .service-image { order: 1; }

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-icon-large {
  font-size: 3rem;
  margin-right: 1rem;
  background: var(--gray-50);
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-size: 3rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.service-price {
  color: var(--emerald-600);
  font-weight: 500;
}

.service-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}

.service-features li::before {
  content: '⭐';
  margin-right: 0.75rem;
  color: var(--emerald-600);
}

.service-image {
  border-radius: 1rem;
  overflow: hidden;
  height: 20rem;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-image:hover img { transform: scale(1.05); }

/* Process steps */
.process-step {
  text-align: center;
}

.process-number {
  background: var(--emerald-600);
  color: var(--white);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.process-step h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.process-step p { color: var(--gray-600); }

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  background: var(--gray-100);
  color: var(--gray-700);
}

.filter-btn:hover {
  background: var(--emerald-50);
  color: var(--emerald-600);
  transform: scale(1.05) translateY(-2px);
}

.filter-btn.active {
  background: var(--emerald-600);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.gallery-item img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: var(--white);
  padding: 1.5rem;
  transform: translateY(1rem);
  opacity: 0;
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p { font-size: 0.875rem; opacity: 0.9; }

/* Stats */
.stat-item {
  text-align: center;
}

.counter {
  font-size: 4rem;
  color: var(--emerald-600);
  margin-bottom: 0.5rem;
}

.stat-item p { color: var(--gray-600); }

/* Contact */
.contact-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--gray-50);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  background: var(--emerald-50);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.contact-card p { color: var(--gray-600); }

/* Contact Form */
.contact-form-container {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.contact-form-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-form-header .contact-icon {
  font-size: 2rem;
  margin-right: 0.75rem;
}

.contact-form-header h2 {
  font-size: 2rem;
  color: var(--gray-900);
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; }

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-textarea { resize: vertical; }

/* Info components */
.info-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 20rem;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: var(--white);
  padding: 1.5rem;
}

.info-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.info-card h3 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.info-features { display: flex; flex-direction: column; gap: 1rem; }

.info-feature {
  display: flex;
  align-items: flex-start;
}

.info-feature-icon {
  background: var(--emerald-100);
  border-radius: 50%;
  padding: 0.5rem;
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.info-feature h4 {
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.info-feature p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Map */
.map-placeholder {
  background: var(--gray-100);
  border-radius: 1rem;
  height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content { text-align: center; }

.map-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.map-content h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.map-content p {
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

/* CTA */
.cta-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--emerald-100);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Footer */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 3rem 0 1.5rem;
  animation: slideInFromBottom 0.6s ease-out 0.2s both;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin-bottom: 1rem;
  max-width: 24rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--emerald-600);
  font-style: italic;
}

.footer-contact h4, .footer-hours h4 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.contact-item {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Classes d'arrière-plan */
.bg-emerald-50 { background-color: var(--emerald-50); }
.bg-emerald-100 { background-color: var(--emerald-100); }
.bg-emerald-800 { background-color: var(--emerald-800); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-white { background-color: var(--white); }
.bg-gradient-emerald {
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
}

/* Classes de couleur de texte */
.text-emerald-600 { color: var(--emerald-600); }
.text-emerald-700 { color: var(--emerald-700); }
.text-emerald-800 { color: var(--emerald-800); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-white { color: var(--white); }

/* Responsive */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .hero-buttons { flex-direction: row; }
  .cta-buttons { flex-direction: row; }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .service-row { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .lg\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  max-width: 64rem;
  max-height: 90vh;
  width: 100%;
  transform: scale(0.8);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  color: var(--gray-300);
  transform: scale(1.1);
}