/* --------- STYLE GLOBAL --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #596b3b;
  --secondary-color: #8fa663;
  --accent-color: #d4a574;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* --------- MENU LATÉRAL --------- */
.sidebar {
  width: 220px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a5a33 100%);
  color: white;
  position: fixed;
  height: 100vh;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.sidebar-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-section {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image {
  margin-bottom: 1rem;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-color), #e6b886);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sidebar h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.sidebar .title {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 300;
  margin-bottom: 0;
}

.sidebar nav {
  margin: 1.5rem 0;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.sidebar nav a:hover,
.sidebar nav a.nav-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.sidebar nav a.nav-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
}

.social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.sidebar-credit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-credit p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.4;
}

.credit-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.credit-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* --------- CONTENU PRINCIPAL --------- */
.main {
  margin-left: 220px;
  flex: 1;
  min-height: 100vh;
  overflow-x: hidden;
  width: calc(100% - 220px);
}

/* --------- SECTION HERO --------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-title .highlight {
  color: var(--primary-color);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-description {
  margin-bottom: 3rem;
}

.hero-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #4a5a33;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(89, 107, 59, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-elements {
  position: relative;
  width: 300px;
  height: 300px;
}

.element-1, .element-2, .element-3 {
  position: absolute;
  border-radius: var(--border-radius);
  opacity: 0.8;
}

.element-1 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  top: 0;
  left: 0;
  animation: float 6s ease-in-out infinite;
}

.element-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-color), #e6b886);
  top: 50px;
  right: 0;
  animation: float 6s ease-in-out infinite 2s;
}

.element-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  bottom: 0;
  left: 100px;
  animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* --------- SECTION STATISTIQUES --------- */
.intro-stats {
  padding: 4rem 3rem;
  background: var(--bg-white);
  border-top: 1px solid #eee;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.stat-item p {
  color: var(--text-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* --------- SECTION SPÉCIALITÉS --------- */
.specialties {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9f6 100%);
  position: relative;
}

.specialties::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.specialties-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.specialty-item {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(89, 107, 59, 0.1);
  position: relative;
  overflow: hidden;
}

.specialty-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.specialty-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.specialty-item:hover::before {
  transform: scaleX(1);
}

.specialty-visual {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.specialty-shape {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  position: relative;
  transition: var(--transition);
}

.shape-1 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shape-2 {
  background: linear-gradient(135deg, var(--accent-color), #e6b886);
}

.shape-3 {
  background: linear-gradient(135deg, var(--secondary-color), #a4b96f);
}

.shape-4 {
  background: linear-gradient(135deg, #8fa663, var(--primary-color));
}

.specialty-shape::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 4px;
  opacity: 0.9;
}

.shape-1::after { 
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center;
}

.shape-2::after { 
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center;
}

.shape-3::after { 
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
}

.shape-4::after { 
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 11H7v9a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9h1a1 1 0 0 0 0-2h-3V6a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v1H4a1 1 0 0 0 0 2h5zm0-5h6v1H9V6z'/%3E%3C/svg%3E") no-repeat center;
}

.specialty-item:hover .specialty-shape {
  transform: rotate(5deg) scale(1.1);
}

.specialty-content {
  flex: 1;
}

.specialty-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.specialty-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.specialty-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specialty-features span {
  background: rgba(89, 107, 59, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.specialty-item:hover .specialty-features span {
  background: var(--primary-color);
  color: white;
}

/* --------- SECTION PHILOSOPHIE --------- */
.philosophy {
  padding: 5rem 3rem;
  background: var(--bg-white);
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 400;
}

.philosophy-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.philosophy-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-color);
  padding: 2rem;
  border-left: 4px solid var(--accent-color);
  background: var(--bg-light);
  border-radius: var(--border-radius);
  margin: 0;
  position: relative;
}

.philosophy-text blockquote::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
}

/* --------- GALERIE --------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  filter: grayscale(100%);
  transition: all 0.5s ease;
  border-radius: var(--border-radius);
}

.gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* --------- ABOUT --------- */
.about {
  max-width: 700px;
  margin: 50px auto;
  line-height: 1.8;
}

/* --------- CONTACT --------- */
.contact {
  max-width: 600px;
  margin: 80px auto;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input, .contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact button {
  background-color: #596b3b;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.contact button:hover {
  background-color: #44542d;
}

/* --------- RESPONSIVE DESIGN --------- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  
  .hero-visual {
    margin-top: 2rem;
    height: 300px;
  }
  
  .design-elements {
    width: 250px;
    height: 250px;
  }
}

/* --------- NAVIGATION MOBILE --------- */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: var(--primary-color);
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  color: white;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  display: block;
}

/* Empêcher le défilement quand le menu mobile est ouvert */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  }

  .sidebar.active {
    left: 0;
  }
  
  .main {
    margin-left: 0;
    padding-top: 0;
    width: 100%;
    overflow-x: hidden;
  }
  
  .sidebar-content {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .profile-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .profile-image {
    margin-bottom: 1rem;
  }
  
  .avatar-placeholder,
  .profile-photo {
    width: 100px;
    height: 100px;
    font-size: 2rem;
    margin: 0 auto;
  }
  
  .sidebar h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  
  .sidebar .title {
    font-size: 0.95rem;
  }
  
  .sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
  }
  
  .sidebar nav a {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
    border-radius: 12px;
    background: transparent;
    transition: var(--transition);
    text-align: left;
  }

  .sidebar nav a:hover,
  .sidebar nav a.nav-active {
    background: rgba(89, 107, 59, 0.3);
    color: white;
    font-weight: 600;
  }

  .sidebar nav a.nav-active::before {
    background: var(--accent-color);
    width: 4px;
    height: 25px;
  }
  
  .sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(89, 107, 59, 0.1);
  }

  .social-links {
    justify-content: center;
  }

  .sidebar-credit {
    margin-top: 1rem;
    padding-top: 0.8rem;
  }

  .sidebar-credit p {
    font-size: 0.7rem;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 100vh;
    padding: 4rem 1.5rem 2rem;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    width: 100%;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: white;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Stats section mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  /* Specialties section mobile */
  .specialties {
    padding: 4rem 1.5rem;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .specialty-card {
    padding: 2rem;
  }

  /* Philosophy section mobile */
  .philosophy {
    padding: 4rem 1.5rem;
  }

  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .philosophy-text h2 {
    font-size: 2rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .intro-stats,
  .specialties,
  .philosophy {
    padding: 3rem 1.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .specialties-container {
    padding: 0 1.5rem;
  }
  
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .specialty-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .specialty-visual {
    align-self: center;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .philosophy-text h2 {
    font-size: 2rem;
  }
  
  .philosophy-text blockquote {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sidebar-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .sidebar nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar nav a.nav-active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .sidebar nav a.nav-active::before {
    width: 5px;
    height: 100%;
    border-radius: 0 8px 8px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    color: white;
  }
  
  .hero-description p {
    font-size: 1rem;
    color: white;
  }
  
  .stat-item h3 {
    font-size: 2.5rem;
  }
  
  .specialty-card {
    padding: 2rem 1.5rem;
  }
  
  .philosophy-text blockquote {
    font-size: 1.1rem;
    padding: 1rem;
  }
}

/* --------- ANIMATIONS ET AMÉLIORATIONS --------- */
.specialty-item,
.stat-item,
.hero-content > * {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.specialty-item:nth-child(1) { animation-delay: 0.1s; }
.specialty-item:nth-child(2) { animation-delay: 0.2s; }
.specialty-item:nth-child(3) { animation-delay: 0.3s; }
.specialty-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------- PAGE GALERIE --------- */
.gallery-hero {
  padding: 4rem 3rem 2rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  text-align: center;
}

.gallery-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.gallery-hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-filters {
  padding: 2rem 3rem;
  background: var(--bg-white);
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filters-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.gallery-grid-section {
  padding: 3rem;
  background: var(--bg-light);
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9f6, #e8ede0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-content {
  text-align: center;
  color: var(--text-light);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.placeholder-content p {
  font-size: 1rem;
  font-weight: 500;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-quote {
  padding: 4rem 3rem;
  background: var(--bg-white);
  text-align: center;
}

.quote-content {
  max-width: 800px;
  margin: 0 auto;
}

.quote-content blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--primary-color);
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
}

.quote-content blockquote::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: -2rem;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
}

.quote-content cite {
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: normal;
  font-weight: 500;
}

/* --------- RESPONSIVE GALERIE --------- */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 2rem 1.5rem;
  }
  
  .gallery-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .gallery-filters {
    padding: 1.5rem;
  }
  
  .filters-container {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .gallery-grid-section {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 1rem;
  }
  
  .gallery-item.wide {
    grid-column: span 1;
  }
  
  .gallery-quote {
    padding: 3rem 1.5rem;
  }
  
  .quote-content blockquote {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  
  .gallery-item.large,
  .gallery-item.tall {
    grid-row: span 1;
  }
  
  .placeholder-icon {
    font-size: 2rem;
  }
  
  .placeholder-content p {
    font-size: 0.9rem;
  }
}

/* --------- PAGE PROJETS --------- */
.projects-hero {
  padding: 4rem 3rem 2rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  text-align: center;
}

.projects-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.projects-hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.projects-stats {
  padding: 3rem;
  background: var(--bg-white);
  border-bottom: 1px solid #f0f0f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.stat-card p {
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.projects-grid-section {
  padding: 4rem 3rem;
  background: var(--bg-light);
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
  grid-column: span 2;
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-card.featured .project-image {
  height: 350px;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9f6, #e8ede0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-content {
  padding: 2rem;
}

.project-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.project-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-card.featured .project-content h3 {
  font-size: 1.8rem;
}

.project-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  background: rgba(89, 107, 59, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(89, 107, 59, 0.3);
  min-width: 180px;
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  transition: left 0.5s ease;
}

.project-link:hover::before {
  left: 100%;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 107, 59, 0.4);
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.project-link:active {
  transform: translateY(0);
}

.projects-cta {
  padding: 5rem 3rem;
  background: var(--bg-white);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Styles pour les images de preview des projets */
.project-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-preview-image {
  transform: scale(1.05);
}

/* --------- MODAL PROJET --------- */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--bg-light);
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--text-light);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-body {
  padding: 2rem;
}

.modal-description {
  margin-bottom: 3rem;
}

.project-detail-info p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-light);
}

.project-detail-info strong {
  color: var(--primary-color);
  font-weight: 600;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.modal-image-item {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.modal-image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modal-image-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.modal-image-item:hover img {
  transform: scale(1.05);
}

/* --------- LIGHTBOX IMAGE --------- */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --------- RESPONSIVE PROJETS --------- */
@media (max-width: 1024px) {
  .project-card.featured {
    grid-column: span 1;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-hero {
    padding: 2rem 1.5rem;
  }
  
  .projects-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .projects-stats {
    padding: 2rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .projects-grid-section {
    padding: 3rem 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-image,
  .project-card.featured .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .projects-cta {
    padding: 3rem 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  /* Modal responsive */
  .project-modal {
    padding: 1rem;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.6rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-image-item img {
    height: 200px;
  }
}

/* --------- PAGE CONTACT --------- */
.contact-hero {
  padding: 4rem 3rem 2rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  text-align: center;
}

.contact-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.contact-hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-content {
  padding: 4rem 3rem;
  background: var(--bg-light);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* --------- INFORMATIONS DE CONTACT --------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.contact-details small {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* --------- SECTION CV DOWNLOAD --------- */
.cv-download-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-light), rgba(89, 107, 59, 0.05));
  border-radius: var(--border-radius);
  border: 2px dashed rgba(89, 107, 59, 0.2);
  text-align: center;
  transition: var(--transition);
}

.cv-download-section:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(89, 107, 59, 0.05), rgba(89, 107, 59, 0.1));
}

.cv-download-section h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.cv-download-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cv-download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(89, 107, 59, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.cv-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  transition: left 0.5s ease;
}

.cv-download-btn:hover::before {
  left: 100%;
}

.cv-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(89, 107, 59, 0.4);
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.cv-download-btn:active {
  transform: translateY(-1px);
}

.cv-download-btn svg {
  margin-bottom: 0.5rem;
}

.file-format {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 400;
}

.contact-availability {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.contact-availability h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.availability-grid {
  display: grid;
  gap: 1rem;
}

.availability-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: var(--transition);
}

.availability-item:hover:not(.unavailable) {
  background: rgba(89, 107, 59, 0.1);
}

.availability-item.unavailable {
  opacity: 0.6;
}

.availability-item .day {
  font-weight: 500;
  color: var(--text-dark);
}

.availability-item .time {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
}

/* --------- FORMULAIRE DE CONTACT --------- */
.contact-form-section {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 400;
}

.form-header p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  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(89, 107, 59, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 107, 59, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.contact-quote {
  padding: 4rem 3rem;
  background: var(--bg-white);
  text-align: center;
}

.contact-quote .quote-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--primary-color);
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
}

.contact-quote blockquote::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: -2rem;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
}

.contact-quote cite {
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: normal;
  font-weight: 500;
}

/* --------- RESPONSIVE CONTACT --------- */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form-section {
    order: 1;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 2rem 1.5rem;
  }
  
  .contact-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .contact-content {
    padding: 3rem 1.5rem;
  }
  
  .contact-form-section {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cv-download-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
  }

  .cv-download-btn {
    padding: 1.2rem 1.5rem;
    min-width: 180px;
  }
  
  .contact-quote {
    padding: 3rem 1.5rem;
  }
  
  .contact-quote blockquote {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .form-header h2 {
    font-size: 1.6rem;
  }
  
  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .availability-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* --------- PAGE ABOUT --------- */
.about-hero {
  padding: 4rem 3rem 2rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  text-align: center;
}

.about-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-intro {
  padding: 5rem 3rem;
  background: var(--bg-white);
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 400;
}

.intro-text .lead {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.intro-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 300px;
  height: 400px;
  background: linear-gradient(135deg, #f8f9f6, #e8ede0);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.about-photo {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-journey {
  padding: 5rem 3rem;
  background: var(--bg-light);
}

.journey-container {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border: 4px solid var(--bg-white);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.timeline-date {
  position: absolute;
  left: -120px;
  top: -5px;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.timeline-content {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content > p {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.5;
}

.timeline-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.about-skills {
  padding: 5rem 3rem;
  background: var(--bg-white);
}

.skills-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --------- SKILLS MODERNES --------- */
.skills-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.skill-modern-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(89, 107, 59, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.skill-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.skill-modern-card:hover::before {
  transform: scaleX(1);
}

.skill-modern-card.featured {
  grid-row: span 2;
  background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
}

.skill-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-icon-modern {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  color: white;
}

.skill-icon-modern svg {
  width: 28px;
  height: 28px;
}

.skill-info h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.skill-items-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-modern-item {
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  transition: var(--transition);
}

.skill-modern-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.skill-badge-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.skill-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.skill-badge.advanced {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.skill-badge.intermediate {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.skill-badge.beginner {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.skill-level {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.skill-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --------- COMPÉTENCES CRÉATIVES --------- */
.creative-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.creative-skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
}

.creative-skill-item:hover {
  background: rgba(89, 107, 59, 0.05);
  transform: scale(1.02);
}

.creative-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.creative-skill-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* --------- SOFT SKILLS MODERNES --------- */
.soft-skills-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.soft-skill-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.soft-skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-white);
  border-radius: 10px;
  transition: var(--transition);
}

.soft-skill-item:hover {
  transform: translateX(3px);
}

.soft-skill-name {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.soft-skill-dots {
  display: flex;
  gap: 0.3rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8e8e8;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary-color);
}

.soft-skill-item.excellent:hover .dot.active {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.soft-skill-item.good:hover .dot.active {
  background: var(--accent-color);
  transform: scale(1.2);
}

/* --------- CERTIFICATIONS --------- */
.certifications-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-light);
  border-radius: 20px;
  border: 2px dashed rgba(89, 107, 59, 0.2);
}

.certifications-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 400;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  transition: var(--transition);
}

.certification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.cert-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), #e6b886);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.about-passions {
  padding: 5rem 3rem;
  background: var(--bg-light);
}

.passions-container {
  max-width: 1200px;
  margin: 0 auto;
}

.passions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.passion-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.passion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.passion-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.passion-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.passion-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.about-goals {
  padding: 5rem 3rem;
  background: var(--bg-white);
}

.goals-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.goals-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 400;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.goal-item {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.goal-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.goal-item h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.goal-item p {
  color: var(--text-light);
  line-height: 1.5;
}

.about-cta {
  padding: 5rem 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-text {
  color: white;
}

.cta-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: white;
}

.cta-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  justify-content: center;
  font-size: 1rem;
}

.cta-actions .btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-actions .btn-primary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-actions .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.cta-actions .btn-primary svg,
.cta-actions .btn-secondary svg {
  transition: var(--transition);
}

.cta-actions .btn-primary:hover svg,
.cta-actions .btn-secondary:hover svg {
  transform: translateX(3px);
}

/* --------- RESPONSIVE ABOUT --------- */
@media (max-width: 1024px) {
  .intro-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .timeline-date {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item::before {
    left: 11px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 2rem 1.5rem;
  }
  
  .about-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .about-intro,
  .about-journey,
  .about-skills,
  .about-passions,
  .about-goals,
  .about-cta {
    padding: 4rem 1.5rem;
  }
  
  .cta-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .cta-text h2 {
    font-size: 2.2rem;
  }
  
  .cta-actions {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .intro-text h2 {
    font-size: 2rem;
  }
  
  .intro-text .lead {
    font-size: 1.1rem;
  }
  
  .image-placeholder {
    width: 250px;
    height: 300px;
  }

  .about-photo {
    width: 250px;
    height: 300px;
    margin: 0 auto;
    display: block;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Skills modernes responsives */
  .skills-modern-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-modern-card {
    padding: 2rem;
  }

  .skill-modern-card.featured {
    grid-row: span 1;
  }

  .skill-card-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .skill-icon-modern {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    align-self: center;
  }

  .creative-skills {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .soft-skill-item {
    padding: 1rem;
  }
  
  .cta-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .timeline {
    margin-left: -1rem;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item::before {
    left: 1px;
  }
  
  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-text h2 {
    font-size: 1.8rem;
  }
}

/* --------- RESPONSIVE MOBILE COMPLET --------- */
@media (max-width: 768px) {
  /* Gallery mobile */
  .page-hero {
    padding: 6rem 1.5rem 4rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .filter-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .filter-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    margin: 0.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .gallery-item img {
    border-radius: 1rem;
  }

  /* Projects mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-card h3 {
    font-size: 1.5rem;
  }

  /* Modal mobile */
  .modal-content {
    width: 95vw;
    max-width: none;
    margin: 2rem auto;
    border-radius: 1rem;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .modal-header h2 {
    font-size: 1.5rem;
    flex: 1;
    margin-right: 1rem;
  }

  .modal-close {
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    right: 0;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact page mobile */
  .contact-intro {
    padding: 6rem 1.5rem 4rem;
  }

  .contact-content {
    padding: 4rem 1.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }

  .contact-form {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  input,
  textarea {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .contact-info {
    text-align: center;
  }

  .download-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Footer mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }

  /* General mobile improvements */
  .section {
    padding: 4rem 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Stats section mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  /* Specialties section mobile */
  .specialties {
    padding: 4rem 1.5rem;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .specialty-card {
    padding: 2rem;
  }

  /* Philosophy section mobile */
  .philosophy {
    padding: 4rem 1.5rem;
  }

  .philosophy-content {
    text-align: center;
  }

  .philosophy-text h2 {
    font-size: 2rem;
  }
}

/* --------- SCROLLBAR PERSONNALISÉE --------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5a33;
}

/* --------- AMÉLIORATIONS TACTILES MOBILES --------- */
@media (max-width: 768px) {
  /* Zones de touch plus grandes */
  .btn-primary,
  .btn-secondary,
  .filter-btn,
  .mobile-nav-toggle {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  /* Navigation mobile */
  .mobile-nav-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(89, 107, 59, 0.3);
  }

  /* Amélioration des liens sociaux */
  .social-link {
    padding: 1rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Cards plus tactiles */
  .project-card,
  .specialty-card,
  .gallery-item {
    transition: transform 0.2s ease;
    cursor: pointer;
  }

  .project-card:active,
  .specialty-card:active,
  .gallery-item:active {
    transform: scale(0.98);
  }

  /* Modal mobile amélioré */
  .modal-close {
    min-height: 44px;
    min-width: 44px;
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  /* Lightbox mobile */
  .lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    min-height: 44px;
    min-width: 44px;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    z-index: 1001;
  }

  .lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
  }

  /* Formulaire tactile */
  input,
  textarea,
  .download-btn {
    min-height: 44px;
  }

  /* Optimisation des images */
  img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Suppression du zoom sur double tap */
  * {
    touch-action: manipulation;
  }

  /* Animation d'entrée pour mobile */
  .hero-content,
  .stat-card,
  .specialty-card,
  .project-card {
    animation: slideInUp 0.6s ease-out;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --------- OPTIMISATIONS PERFORMANCE MOBILE --------- */
@media (max-width: 768px) {
  /* Réduction des ombres complexes */
  .project-card,
  .specialty-card,
  .stat-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* Simplification des transitions */
  * {
    transition-duration: 0.2s !important;
  }

  /* Optimisation des dégradés */
  .hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  }
}

/* --------- STYLES MODALES TRÈS PETITS ÉCRANS --------- */
@media (max-width: 480px) {
  .modal-header {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .modal-header h2 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-right: 0.5rem;
    flex: 1;
  }

  .modal-close {
    flex-shrink: 0;
    min-height: 40px;
    min-width: 40px;
    font-size: 1.3rem;
    padding: 0.4rem;
    position: static;
    margin-left: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    min-height: 40px;
    min-width: 40px;
    font-size: 1.3rem;
    padding: 0.4rem;
  }

  .modal-content {
    margin: 1rem;
    max-height: 95vh;
  }
}
