@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Bright, modern, ecological palette */
  --primary-color: #2F4D3C;     /* Deep Forest Green */
  --secondary-color: #E6EFE9;   /* Light Sage */
  --accent-color: #D2A860;      /* Warm Wood / Oak */
  --text-dark: #1F2937;         /* Very dark gray, almost black */
  --text-light: #6B7280;        /* Gray for secondary text */
  --bg-color: #FAFAFA;          /* Extremely light gray/white */
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(47, 77, 60, 0.3);
}

.btn-primary:hover {
  background-color: #233b2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 77, 60, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header & Glassmorphism Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary-color);
}

.logo-icon {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  box-shadow: -20px 0 50px rgba(0,0,0,0.1);
  animation: scaleIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes scaleIn {
  from { transform: scale(1.05); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hero-content {
  position: relative;
  width: 50%;
  z-index: 2;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Sections Global */
section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Philosophie / Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.expertise-card:hover::before {
  opacity: 1;
}

.expertise-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.8rem;
  background: var(--secondary-color);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.expertise-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.expertise-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Portfolio / Réalisations Dynamiques */
.portfolio {
  background-color: var(--white);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 2rem 1rem 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.gallery-overlay span {
  font-size: 0.85rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100%;
}

.lightbox-img-container img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: white;
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-desc {
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-close {
  top: -2rem;
  right: 0;
}

.lightbox-prev {
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    top: auto;
    bottom: -4rem;
    transform: none;
  }
  .lightbox-prev { left: 30%; }
  .lightbox-next { right: 30%; }
  .lightbox-close { right: 10px; top: -3rem; }
}

/* Équipe */
.team {
  background-color: var(--secondary-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.team-member {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-role {
  color: var(--accent-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-name {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.member-contact {
  color: var(--text-light);
  font-size: 0.95rem;
}

.member-contact a {
  display: block;
  margin-bottom: 0.5rem;
}

.member-contact a:hover {
  color: var(--primary-color);
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem;
  position: relative;
}

.contact-info h3 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1.5rem;
  margin-top: 0.2rem;
}

.info-text p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.3rem;
}

.info-text strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-form {
  padding: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #F9FAFB;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(210, 168, 96, 0.1);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* Animations CSS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-bg {
    width: 100%;
    clip-path: none;
    border-radius: 0;
  }
  
  .hero-content {
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .portfolio-item.large, .portfolio-item.small {
    grid-column: span 12;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--primary-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* ---- Bouton Espace Client (navbar) ---- */
.btn-client-access {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), #406b53);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(47, 77, 60, 0.3);
  transition: var(--transition);
  white-space: nowrap;
  margin-left: 1rem;
}

.btn-client-access i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.btn-client-access:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 77, 60, 0.45);
  color: var(--white);
  background: linear-gradient(135deg, #233b2e, var(--primary-color));
}

.btn-client-access:hover i {
  transform: rotate(-10deg) scale(1.1);
}

@media (max-width: 768px) {
  .btn-client-access span {
    display: none;
  }
  .btn-client-access {
    padding: 0.55rem 0.9rem;
    margin-left: 0.5rem;
  }
}
