/* --- STYLE GLOBAL (identique au premier essai) --- */

:root {
  --bg: #f7f3ee;
  --bg-alt: #ffffff;
  --accent: #8a9b6e;
  --accent-dark: #5f6b49;
  --text: #333333;
  --muted: #777777;
  --border: #e0d7cc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

nav ul li a.active {
  font-weight: bold;
  color: var(--accent-dark);
}

/* HERO */
.hero {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* CAROUSEL */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.carousel img {
  width: 100%;
  display: none;
  object-fit: cover;
}

.carousel img.active {
  display: block;
}

/* CONTENT */
.content {
  max-width: 900px;
  margin: 3.5rem auto; /* + d’espace vertical */
  padding: 0 1.5rem;
  font-size: 1.05rem;
}

.content h1 {
  margin-bottom: 1.8rem;
}

.content h2 {
  margin-top: 3rem;      /* espace entre sections */
  margin-bottom: 1.2rem;
}

.content p {
  margin-bottom: 1.3rem; /* espace entre paragraphes */
  text-align: justify;
  line-height: 1.8;
}

.content img.fullwidth {
  width: 100%;
  border-radius: 12px;
  margin-top: 2rem; /* espace avant image */
}

.docs li {
  margin: 0.7rem 0;
}

/* FOOTER */
footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .content {
    margin: 2.5rem auto;
  }
}