/* ===== CSS RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: var(--text-primary); /* Footer color as page background */
  overflow-x: hidden;
  display: flex; /* sticky footer layout */
  flex-direction: column;
  min-height: 100vh; /* fill viewport height */
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Couleurs principales inspirées du logo */
  --primary-color: #f39c12; /* Jaune Or */
  --primary-dark: #e67e22; /* Jaune plus foncé */
  --secondary-color: #27ae60; /* Vert naturel */
  --secondary-dark: #229954; /* Vert plus foncé */
  --accent-color: #8b4513; /* Brun terre */

  /* Couleurs neutres */
  --text-primary: #2c3e50; /* Bleu-gris foncé */
  --text-secondary: #7f8c8d; /* Gris moyen */
  --text-light: #bdc3c7; /* Gris clair */
  --white: #ffffff;
  --black: #2c3e50;

  /* Couleurs de fond */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-accent: #f1f2f6;

  /* Ombres */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Espacements */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 12px;
  --border-radius-large: 20px;
}

/* ===== UTILITAIRES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform; /* Optimise les performances pour l'animation */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(44, 62, 80, 0.7),
    rgba(39, 174, 96, 0.3)
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-medium);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--text-primary);
  text-shadow: none;
  box-shadow: var(--shadow-heavy);
}

.btn-full {
  width: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ===== PRÉSENTATION SECTION ===== */
.presentation {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.presentation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.presentation-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Tailwind-like vertical timeline */
.tw-timeline {
  position: relative;
  padding-left: 28px; /* espace pour la ligne et les dots */
  margin: 10px 0 24px 0;
}

.tw-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: rgba(0, 0, 0, 0.25);
}

.tw-item {
  position: relative;
  margin-bottom: 28px;
}

.tw-dot {
  position: absolute;
  left: -2px; /* centré par rapport à la ligne */
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--bg-primary);
  border: 2px solid rgba(0, 0, 0, 0.45);
}

.tw-content {
  margin-left: 16px;
}

.tw-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.tw-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tw-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.presentation-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.presentation-image {
  position: relative;
}

.portrait-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

/* Service carousel */
.service-image.carousel {
  position: relative;
}
.service-image.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-medium);
}
.service-image.carousel img[data-state="before"] {
  opacity: 1;
}
.service-image.carousel img[data-state="now"] {
  opacity: 0;
}
.service-image.carousel .service-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* rotate button styles removed */

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 30px;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
}

.service-features li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* ===== RÉALISATIONS SECTION ===== */
.realisations {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-medium);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===== GALLERY MORE CARD ===== */
.gallery-more {
  background: var(--white);
  border: 2px solid var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.gallery-more:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.gallery-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.gallery-more-preview {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.preview-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-image {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.8;
}

.preview-1 {
  top: 0;
  left: 0;
  z-index: 3;
}

.preview-2 {
  top: 8px;
  left: 8px;
  z-index: 2;
  opacity: 0.6;
}

.preview-3 {
  top: 16px;
  left: 16px;
  z-index: 1;
  opacity: 0.4;
}

.preview-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  z-index: 4;
}

.preview-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.gallery-more-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gallery-more-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.gallery-more-arrow {
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.gallery-more:hover .gallery-more-arrow {
  transform: translateX(4px);
}

.gallery-more:hover .preview-1 {
  transform: rotate(5deg);
}

.gallery-more:hover .preview-2 {
  transform: rotate(-3deg);
}

.gallery-more:hover .preview-3 {
  transform: rotate(2deg);
}

/* ===== AVIS SECTION ===== */
.avis {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.avis-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.avis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.avis-stars {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.avis-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.avis-author strong {
  color: var(--text-primary);
  font-weight: 600;
}

.avis-author span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  margin-top: 4px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-details h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.contact-link:hover {
  color: var(--primary-dark);
}

.social-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--secondary-dark);
}

.contact-form {
  background: var(--bg-accent);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition-fast);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: auto; /* push footer to bottom when content is short */
}

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

/* Footer avec 3 colonnes pour les pages légales */
.footer-content.three-sections {
  grid-template-columns: 1fr 1fr 1.5fr;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
}

.footer-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.footer-description {
  color: #bdc3c7;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  color: #bdc3c7;
  margin-bottom: 12px; /* increased row spacing */
  display: grid; /* grid to prevent text under icon */
  grid-template-columns: 24px 1fr; /* wider icon column */
  column-gap: 10px; /* spacing between icon and text */
  align-items: center;
}

.footer-contact p svg {
  justify-self: center;
  align-self: center;
  margin-right: 0;
}

.footer-contact a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition-fast);
  word-break: break-all;
  flex: 1;
}

.footer-contact a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal p {
  color: #bdc3c7;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--primary-color);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  transition: opacity 0.3s ease;
}

/* ===== LIGHTBOX NAVIGATION ===== */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
  z-index: 2002;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive pour les boutons de navigation */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    bottom: 5px;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* ===== LEGAL PAGES ===== */
.legal-section {
  padding: 120px 0 80px;
  background: var(--bg-secondary);
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 30px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
}

.legal-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--bg-accent);
  text-align: center;
}

.legal-footer p {
  margin-bottom: 20px;
  font-weight: 500;
}

/* Responsive pour les pages légales */
@media (max-width: 768px) {
  .legal-content {
    padding: 30px 20px;
    margin: 0 20px;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-medium);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .presentation-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .avis-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

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

  .contact-form {
    padding: 30px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
  max-width: 100%;
  height: auto;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.contact-link:focus,
.social-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}
