:root {
  --bg: #f5f8f6;
  --white: #ffffff;
  --text: #0d2a1f;
  --muted: #5f7069;
  --brand: #2c8f6e;
  --brand-dark: #1f6a51;
  --line: #d6e4dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #e9efe9;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--brand);
}

.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
}

.hero {
  padding: 4.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  background: #d5f0e6;
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  font-size: 0.86rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.1rem 0;
}

.hero-points {
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(27, 84, 61, 0.08);
}

.section {
  padding: 3rem 0;
}

.alt {
  background: #edf4f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-text {
  color: var(--muted);
  max-width: 72ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.banner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.banner-card div {
  padding: 1rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.cta {
  padding-top: 1rem;
}

.cta-box {
  background: linear-gradient(90deg, #1f6a51, #2c8f6e);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-box .btn {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
  color: var(--muted);
  background: #eef4f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.footer-brand .logo {
  font-size: 1.15rem;
}

.footer-brand p {
  max-width: 36ch;
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 0.98rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--brand-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--brand-dark);
}

/* ===== Pages internes (legal / contact) ===== */
.page-hero {
  background: #edf4f0;
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.4rem;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.page-hero .breadcrumb a {
  color: var(--brand-dark);
  text-decoration: none;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}

.legal {
  padding: 2.6rem 0 3.4rem;
}

.legal .container {
  width: min(820px, 92%);
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.7rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal a {
  color: var(--brand-dark);
}

.legal .updated {
  display: inline-block;
  background: #d5f0e6;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.cookie-table th {
  background: #e7f1ec;
  color: var(--text);
}

.cookie-table td {
  color: var(--muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info .info-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.contact-info .info-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.contact-info .info-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-info a {
  color: var(--brand-dark);
  text-decoration: none;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 14px 34px rgba(27, 84, 61, 0.06);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(44, 143, 110, 0.15);
}

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

.form-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.form-consent input {
  margin-top: 0.2rem;
}

.contact-form .btn {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.form-success {
  display: none;
  background: #d5f0e6;
  color: var(--brand-dark);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: min(960px, 92%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(27, 84, 61, 0.18);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--brand-dark);
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-banner .btn-ghost {
  border: 1px solid var(--line);
}

.cookie-banner[hidden] {
  display: none;
}

/* ===== Carte d'achat dans le hero ===== */
.hero-card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.hero-card-name {
  margin: 0;
  font-weight: 700;
}

.hero-card-price {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.hero-card-buy .btn {
  cursor: pointer;
}

/* ===== Modale de commande ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 42, 31, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  background: var(--white);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 24px 60px rgba(13, 42, 31, 0.28);
  margin: auto;
}

.modal h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: #eef4f1;
  color: var(--text);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #dde9e3;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #edf4f0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
}

.order-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex: none;
}

.order-product-name {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.order-product-price {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.order-product-price span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

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

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  margin: 0.4rem 0 0.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.order-total strong {
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.order-form .btn {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 0.4rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .grid-5,
  .banner-grid,
  .models-grid,
  .articles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .cards,
  .grid-5,
  .banner-grid,
  .models-grid,
  .articles {
    grid-template-columns: 1fr;
  }
}
