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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Typographie */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  color: #1e40af;
}

h2 {
  font-size: 2.5rem;
  color: #1f2937;
}

h3 {
  font-size: 1.5rem;
  color: #1f2937;
}

p {
  margin-bottom: 1rem;
  color: #6b7280;
}

a {
  color: #1e40af;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3b82f6;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn svg {
  margin-left: 8px;
}

.btn-primary {
  background-color: #1e40af;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: #1e40af;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  color: #1e40af;
}

/* Logo styles */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: #1e40af;
  font-weight: 700;
  transition: font-size 0.3s ease;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo-img {
  height: 200px;
  width: auto;
}

.footer-logo h2 {
  color: white;
  margin-bottom: 4px;
}

.footer-logo p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Header et Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.desktop-nav li {
  margin-left: 32px;
}

.desktop-nav a {
  color: #1f2937;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.desktop-nav a:hover {
  color: #1e40af;
}

.mobile-menu-btn {
  display: block;
  z-index: 1001;
}

.mobile-menu-btn button {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn .menu-icon,
.mobile-menu-btn .close-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}

.mobile-menu-btn .menu-icon.hidden,
.mobile-menu-btn .close-icon.hidden {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav {
  position: fixed;
  top: 80px; /* Ajustez cette valeur en fonction de la hauteur de votre header */
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  display: none;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  display: block;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.mobile-nav-link {
  padding: 16px 24px;
  color: #1f2937;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1.1rem;
}

.mobile-nav-link:hover {
  background-color: #f3f4f6;
  color: #1e40af;
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/images.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections communes */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* À Propos Section */
.about {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/images.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
  background: linear-gradient(rgba(249, 250, 251, 0.97), rgba(249, 250, 251, 0.97)), url('../images/images.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon svg {
  color: #1e40af;
}

.service-card h3 {
  margin-bottom: 8px;
}

/* Rendez-vous Section */
.appointment {
  background: linear-gradient(rgba(30, 64, 175, 0.9), rgba(30, 64, 175, 0.9)), url('../images/images.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.appointment-content {
  max-width: 800px;
  margin: 0 auto;
}

.appointment h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.appointment p {
  color: #e5e7eb;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)), url('../images/images.jpg');
  background-size: cover;
  background-position: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-details {
  margin-bottom: 24px;
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-icon {
  margin-right: 12px;
  color: #1e40af;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Styles pour le message du formulaire */
.form-message {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Styles pour les notifications du formulaire */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.notification.fade-out {
  animation: slideOut 0.3s ease forwards;
}

.notification.success {
  border-left: 4px solid #22c55e;
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f3f4f6;
}

.notification.success .notification-icon {
  color: #22c55e;
}

.notification.error .notification-icon {
  color: #ef4444;
}

.notification p {
  margin: 0;
  font-size: 0.875rem;
  color: #1f2937;
}

.notification-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: #1f2937;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 48px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-social h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer .social-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
}

.footer .social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}

.footer .social-icon svg[fill="none"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(156, 163, 175, 0.1);
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

/* Media Queries */
@media (min-width: 640px) {
  .logo-img {
    height: 50px;
  }

  
  .logo h1 {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
      display: none;
  }

  .mobile-menu-btn {
      display: block;
  }
}


@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    text-align: left;
  }

  .footer .social-icons {
    justify-content: flex-start;
  }

  .logo-img {
    height: 60px;
  }
  
  .logo h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-img {
    height: 70px;
  }
  
  .logo h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .logo h1 {
    font-size: 1.5rem;
  }

  .logo-img {
    height: 32px;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero h2 {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    padding: 24px;
  }

  .service-card {
    padding: 20px;
  }

  .contact-grid {
    gap: 32px;
  }

  .mobile-nav {
    top: 70px;
  }
  
  .mobile-nav-link {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 32px;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .footer-logo-img {
    height: 40px;
  }

  .logo {
    gap: 6px;
  }

  .mobile-nav {
    top: 60px;
  }
  
  .mobile-nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

