/* Variables */
:root {
  --ink: #173c36;
  --muted: #2e423b;
  --green: #cfeb7c;
  --paper: #f6f6ee;
  --line: #dce3d9;
  --bleu:#e9f2f4;
}

/* Base et accessibilité */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #557d14;
  outline-offset: 4px;
}

.container {
  max-width: 1200px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 9999;
  padding: 12px;
  background: #fff;
}

.skip:focus {
  top: 10px;
}

/* Navigation */
.navbar {
  padding: 18px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.navbar-brand {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-right: 9px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--green);
  font-size: 15px;
  letter-spacing: -1px;
}

.nav-link {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
}

/* Boutons */
.btn {
  padding: 13px 21px;
  border-radius: 8px;
  font-weight: 700;
}

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

.btn-dark:hover {
  background: #28584b;
  border-color: #28584b;
}

.btn-lime,
.btn-devis {
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--ink);
}

.btn-lime:hover,
.btn-devis:hover {
  background: #bddd5c;
  border-color: #bddd5c;
  color: var(--ink);
}
/* Contenu principal sur fond blanc */
main {
  background: #fff;
}

/* Hero : conserver le fond crème */
.hero,
.page-hero {
  background: var(--paper);
}
/* Textes communs */
.eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-lead {
  max-width: 550px;
  color: var(--muted);
  line-height: 1.8;
}

.micro {
  color: var(--muted);
  font-size: .8rem;
}

/* Hero de l’accueil */
.hero {
  padding: 55px 0 20px;
}

.hero h1 {
  margin: 24px 0;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -3px;
}

.hero h1 em {
  color: #527447;
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero .intro {
  max-width: 500px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border-radius: 160px 160px 16px 16px;
  background: #dce6d1;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.art-label {
  position: static;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-radius: 9px;
  background: var(--paper);
  font-size: .85rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
  font-size: .8rem;
}

.hero-tags span::before {
  content: "↗";
  margin-right: 7px;
}

/* Hero des pages */
.page-hero {
  color: var(--ink);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 750;
}

.page-hero :last-child {
  margin-bottom: 0;
}

.hero.hero-service {
  padding: 2.75rem 0 2rem;
}

.hero.hero-service h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* Bandeaux */
.strip {
  margin-top: 24px;
  padding: 18px 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
}

.strip p {
  margin: 0;
  font-size: .88rem;
}

.strip .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.strip .row > div {
  padding: .75rem 1.25rem;
}

.strip .row > div + div {
  border-top: 1px solid #557169;
}

.strip strong {
  color: var(--green);
}

.home-summary .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.home-summary .row > li {
  padding: .75rem 1.25rem;
}

.home-summary strong {
  margin-bottom: 4px;
  color: var(--green);
}

.home-summary span {
  color: #d0ddd3;
  font-size: .88rem;
}

.home-summary .row > li + li {
  border-top: 1px solid #557169;
}

/* Sections */
.section {
  padding: 65px 0;
}

#solutions {
  padding-top: 36px;
}

#solutions > .container > .row.mb-5 {
  margin-bottom: 30px !important;
}

.section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.dark-section {
  background: var(--ink);
  color: var(--paper);
}

.dark-section .section-lead {
  color: #d0ddd3;
}

/* Prestations */
.service {
  padding-top: 25px;
  border-top: 1px solid #9dac9e;
}

.service .number {
  font-size: .8rem;
  font-weight: 700;
}

.service h3 {
  margin: 20px 0 15px;
  font-size: 1.6rem;
  letter-spacing: -.5px;
}

.service p,
.service li {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.service ul {
  padding-left: 6px;
}

.service .icon {
  float: right;
  font-size: 2.3rem;
}

/* Cartes de l’accueil */
#solutions .service {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid #648249;
  border-radius: 16px;
  background: #fffef9;
  box-shadow: 0 8px 24px rgb(23 60 54 / 5%);
}

#solutions article:nth-child(3n + 2) .service {
  border-top-color: #bddd5c;
}

#solutions article:nth-child(3n) .service {
  border-top-color: #52958c;
}

#solutions .service .eyebrow {
  color: #527447;
}

#solutions .service h3 {
  margin-top: 14px;
  line-height: 1.25;
}

#solutions .service a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Étapes */
.steps {
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid #557169;
}

.step::before {
  counter-increment: steps;
  content: "0" counter(steps);
  padding-top: 5px;
  color: var(--green);
  font-size: .8rem;
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  margin-bottom: 0;
  color: #d0ddd3;
  font-size: .92rem;
  line-height: 1.7;
}

/* Tarifs */
.price-panel {
  padding: 38px;
  border-radius: 14px;
  background: #e6ebdf;
}

.price-panel h3 {
  font-size: 1.5rem;
}

#tarifs .price-panel {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #35594f;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgb(23 60 54 / 10%);
}

#tarifs .price-panel .eyebrow {
  color: var(--green);
}

#tarifs .price-panel .check-list > li {
  border-bottom-color: #557169;
}

#tarifs .price-panel .check-list > li::before {
  color: var(--green);
}

#tarifs .price-panel .btn-dark {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

#tarifs .price-panel .btn-dark:hover,
#tarifs .price-panel .btn-dark:active {
  background: #bddd5c;
  border-color: #bddd5c;
  color: var(--ink);
}

#tarifs .price-panel :focus-visible {
  outline-color: var(--green);
}

/* Listes à coches */
.check-list,
.service .check-list {
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list > li {
  position: relative;
  display: block;
  padding: 11px 0 11px 1.5em;
  border-bottom: 1px solid #ccd5c6;
}

.check-list > li::before {
  content: "✓";
  position: absolute;
  top: 11px;
  left: 0;
  font-weight: 800;
}

/* Zones de livraison */
.zone {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.zone b {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5ebda;
  font-size: .8rem;
}

#zones .zone {
  padding: 18px 0;
}

#zones .zone b {
  background: var(--ink);
  color: var(--green);
}

/* FAQ */
.faq details {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding-right: 25px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

/* Formulaire */
.contact-wrap {
  padding: 48px;
  border-radius: 20px;
  background: #e5ebd9;
}

#devis .contact-wrap {
  border: 1px solid #c8d5bb;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgb(23 60 54 / 7%);
}

.form-label {
  font-size: .82rem;
  font-weight: 700;
}

.form-control,
.form-select {
  padding: 12px;
  border: 1px solid #c2ceba;
  border-radius: 7px;
  background: #fffef9;
}

.form-control:focus,
.form-select:focus {
  border-color: #527447;
  box-shadow: 0 0 0 .2rem #52744725;
}

.status {
  margin-top: 15px;
  font-size: .88rem;
}

.status:empty {
  display: none;
}

/* Contenu des pages */
.page-body,
.page-side {
  overflow-wrap: anywhere;
}

.page-body img,
.page-side img {
  max-width: 100%;
  height: auto;
}

.page-side {
  border: 1px solid var(--line);
  background: #e9f2f4;
}

.page-body a,
.page-side a,
.dark-section a,
.page-hero a {
  color: inherit;
}

/* Texte des boutons dans les zones de contenu */
.page-body .btn-dark,
.page-side .btn-dark,
.dark-section .btn-dark {
  color: #fff;
}

.page-body .btn-lime,
.page-side .btn-lime,
.dark-section .btn-lime,
.page-body .btn-devis,
.page-side .btn-devis,
.dark-section .btn-devis {
  color: var(--ink);
}

/* Pied de page */
footer {
  padding: 35px 0 85px;
  border-top: 1px solid var(--line);
  font-size: .83rem;
}

footer.dark-section a,
footer.dark-section button {
  color: inherit;
}

footer.dark-section .btn-lime,
footer.dark-section .btn-devis {
  color: var(--ink);
}

footer.dark-section .btn-dark {
  color: #fff;
}

footer.dark-section :focus-visible {
  outline-color: var(--green);
}

/* Confidentialité */
.legal {
  max-width: 680px;
}

dialog {
  max-width: 90vw;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
}

dialog::backdrop {
  background: #173c36aa;
}

/* Bouton mobile */
.mobile-cta {
  display: none;
}

/* Tablettes et écrans larges */
@media (min-width: 768px) {
  .home-summary .row > li + li,
  .strip .row > div + div {
    border-top: 0;
    border-left: 1px solid #557169;
  }
}

/* Gouttières adaptées aux petits écrans */
@media (max-width: 991px) {
  main .row.g-4,
  main .row.g-5,
  footer .row.g-4,
  footer .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .navbar .dropdown-menu {
    min-width: 0;
    max-width: 100%;
  }

  .navbar .dropdown-item {
    white-space: normal;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero {
    padding-top: 35px;
    padding-bottom: 0;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-art {
    margin-top: 15px;
  }

  .hero .home-summary.mt-4 {
    margin-top: 20px !important;
  }

  .home-summary .row > li,
  .strip .row > div {
    padding: .75rem 1rem;
  }

  .hero .strip {
    margin-top: 20px;
  }

  .navbar-brand {
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
  }

  .section {
    padding: 55px 0;
  }

  #solutions {
    padding-top: 30px;
  }

  #solutions > .container > .row.mb-5 {
    margin-bottom: 24px !important;
  }

  #solutions .service {
    padding: 23px;
  }

  .contact-wrap,
  .price-panel {
    padding: 25px;
  }

  .art-label {
    font-size: .75rem;
  }

  .mobile-cta {
    position: fixed;
    right: 15px;
    bottom: 12px;
    left: 15px;
    z-index: 100;
    display: block;
    box-shadow: 0 8px 28px #173c3640;
  }
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}