/* ============================================
   CH2M CONSEILS — Charte graphique
   Couleurs extraites du logo :
   - Vert foncé : #2D5A27
   - Vert moyen : #4A8C3F
   - Vert clair : #6DB65B
   - Beige/Sable : #D4C5A9
   - Beige clair : #F0EAD6
   - Noir : #1A1A1A
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --green-dark: #2D5A27;
  --green-mid: #4A8C3F;
  --green-light: #6DB65B;
  --green-accent: #8FD47A;
  --beige: #D4C5A9;
  --beige-light: #F0EAD6;
  --cream: #FAF8F2;
  --sand: #E8DFC9;
  --noir: #1A1A1A;
  --gris: #6B6B6B;
  --gris-clair: #A0A0A0;
  --blanc: #FFFFFF;
  --shadow-soft: 0 4px 24px rgba(45, 90, 39, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(45, 90, 39, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--noir);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(250, 248, 242, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.6rem 2rem;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 50px;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--noir);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-cta {
  background: var(--green-dark);
  color: var(--blanc) !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  width: 28px;
  height: 2.5px;
  background: var(--noir);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream) 0%, var(--beige-light) 40%, var(--sand) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 140, 63, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 197, 169, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--noir);
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--green-dark);
  display: block;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn-secondary:hover {
  background: var(--green-dark);
  color: var(--blanc);
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrapper {
  position: relative;
}

.hero-logo-wrapper img {
  width: 380px;
  filter: drop-shadow(0 20px 40px rgba(45, 90, 39, 0.15));
  animation: fadeInUp 1s ease-out;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--beige);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gris);
  margin-top: 0.3rem;
}

/* ============================================
   SECTION COMMUNE
   ============================================ */

.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .overline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--noir);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gris);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--blanc);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--green-light), var(--green-dark));
  transition: var(--transition);
  border-radius: 0 0 4px 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(74, 140, 63, 0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--blanc);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--noir);
}

.service-card p {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   BOUTIQUE
   ============================================ */

.boutique {
  background: var(--cream);
}

.boutique-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  background: linear-gradient(135deg, var(--beige-light), var(--sand));
  padding: 2.5rem;
  text-align: center;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--green-dark);
  color: var(--blanc);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-icon {
  font-size: 3.5rem;
  opacity: 0.9;
}

.product-info {
  padding: 1.75rem;
}

.product-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-dark);
}

.product-price span {
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--gris);
}

.btn-buy {
  background: var(--green-dark);
  color: var(--blanc);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-buy:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

/* ============================================
   POURQUOI NOUS
   ============================================ */

.why-us {
  background: var(--blanc);
}

.why-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.why-item:hover {
  background: var(--cream);
}

.why-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--beige);
  line-height: 1;
  min-width: 50px;
}

.why-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--cream);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  padding: 2.5rem;
  background: linear-gradient(160deg, var(--green-dark), #1e3d1a);
  border-radius: var(--radius-lg);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(109, 182, 91, 0.1) 0%, transparent 50%);
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.contact-info > p {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail span {
  font-size: 0.95rem;
  opacity: 0.9;
}

.contact-form {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--noir);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--sand);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--noir);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-mid);
  background: var(--blanc);
  box-shadow: 0 0 0 4px rgba(74, 140, 63, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--noir);
  color: var(--blanc);
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 40px;
  filter: brightness(1.2);
}

.footer-brand span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--green-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--green-dark);
  color: var(--blanc);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  box-shadow: var(--shadow-hover);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
  max-width: 350px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-wrapper img {
    width: 250px;
  }

  .hero-stats {
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 242, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 1.25rem;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}
