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

:root {
  --green-dark: #4a6b4d;
  --green: #7c9a72;
  --green-light: #e8efe1;
  --beige: #f5f0e6;
  --beige-dark: #e8dfc9;
  --text: #3a3a32;
  --white: #ffffff;
}

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

html, body { min-height: 100%; }

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-image: url('images/fond.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif; color: var(--green-dark); }

#presentation h2 { color: var(--green); }

h2 { font-size: 2rem; margin-bottom: 1.5rem; }

.btn {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--green); }

/* Header */
.site-header {
  background: rgba(245, 240, 230, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 12px;
  position: relative;
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-size: 2.6rem;
  color: var(--green-dark);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--green);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav a:hover { color: var(--green-dark); }

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav a {
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--green-dark); }

/* Hero */
.hero {
  padding: 100px 24px;
  text-align: center;
}

.hero-inner {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 56px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-inner h1 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

.hero-inner p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

/* Sections */
.section { padding: 60px 24px; }

.section > .container {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.section-alt > .container {
  background: rgba(245, 240, 230, 0.55);
}

#contact > .container,
.section:has(.apropos-inner) > .container {
  background: rgba(58, 86, 61, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
}

/* About */
.apropos-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.apropos-text { flex: 1 1 400px; }

.apropos-text p,
.apropos-text strong {
  color: var(--white);
}

.apropos-image {
  flex: 1 1 300px;
  border-radius: 16px;
  overflow: visible;
}

.apropos-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  display: block;
}

/* Blocs avec image latérale */
.service-with-image {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: nowrap;
}

.service-with-image > .service-block {
  flex: 1;
  min-width: 0;
}

.service-side-img {
  width: 280px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
  height: 320px;
}

.service-side-img--left { order: -1; }
.service-side-img--right { order: 2; }

@media (max-width: 768px) {
  .service-with-image { flex-direction: column; }
  .service-side-img { width: 100%; height: auto; }
  .service-side-img--left { order: -1; width: 70%; margin: 0 auto; display: block; }
  .service-side-img--right { order: 2; }
}

/* Services */
.service-block {
  margin-bottom: 2.5rem;
}

.service-block h3 {
  margin-bottom: 0.8rem;
}

.service-block p {
  margin-bottom: 0.8rem;
}

.needs-list {
  list-style: disc;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.service-card h3 { margin-bottom: 0.8rem; }

/* Contact */
.contact-inner { text-align: center; }

.contact-inner h2,
.contact-inner p,
.contact-info p {
  color: var(--white);
}

.contact-form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button { align-self: center; margin-top: 8px; }

.contact-info { margin-top: 2rem; }

/* Footer */
.site-footer {
  background: rgba(74, 107, 77, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

/* Menu hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 20;
  position: absolute;
  right: 24px;
  top: 22px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 240, 230, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 15;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .hero-inner h1 { font-size: 2rem; }
  .hero { padding: 70px 16px; }
  .hero-inner { padding: 36px 20px; }
  .section { padding: 40px 12px; }
  .section > .container { padding: 28px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .apropos-inner { flex-direction: column; }
  .apropos-image { min-height: unset; width: 100%; }
  .apropos-image img { min-height: unset; }
}
