/*============= Variables =============*/
:root {
  --color-bg: #F9F9F9;
  --color-text: #2B2B2B;
  --color-heading: #1E5631;
  --color-link: #1E5631;
  --color-link-h: #A3D9A5;
  --color-btn-bg: #1E5631;
  --color-btn-txt: #FFFFFF;
  --color-btn-h: #A3D9A5;
  --color-footer: #2B2B2B;
  --color-sec-bg1: #E8E8E8;
  --color-sec-bg2: #DFF2E1;
  --color-card-bg: #DFF2E1;
  --radius: .75rem;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 10px 24px rgba(0,0,0,.12);
  --header-h: 76px;
  --hero-content-top: 18vh;
  --hero-overlay: rgba(0,0,0,.55);
}

/*============= Reset & Base =============*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body {
  padding-top: var(--header-h);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  color: var(--color-heading);
  line-height: 1.2;
}
p { margin-bottom: 1rem; }
a { color: var(--color-link); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--color-link-h); }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; }

.container { width: 90%; max-width: 1240px; margin: 0 auto; }
.container--narrow { max-width: 800px; }
.text-center { text-align: center; }
.lead { max-width: 42rem; margin: 0 auto 2rem; }
.text-muted { color: #000; opacity: .9; }
.section { padding: 5rem 0; }
.section-header { margin-bottom: 3rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; margin-bottom: .75rem; }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-heading);
  background: var(--color-sec-bg2);
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/*============= Header =============*/
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.header-inner {
  width: 100%; display: grid; align-items: center; gap: 1rem;
  grid-template-columns: auto 1fr auto;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--color-text); }
.brand__logo { height: 40px; width: auto; }
.brand__text { font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; }
.brand__accent { color: var(--color-heading); }

.main-nav { display: none; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.main-nav__link { font-weight: 600; color: #3A3A3A; padding: .5rem .25rem; position: relative; }
.main-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: transparent; transition: background-color .25s ease;
}
.main-nav__link:hover { color: var(--color-link); }
.main-nav__link:hover::after { background: var(--color-link-h); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.btn-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; border-radius: 999px; font-weight: 800;
  background: var(--color-btn-bg); color: var(--color-btn-txt);
  border: 2px solid transparent; box-shadow: var(--shadow-sm);
  transition: background .25s ease, color .25s ease;
}
.btn-cta:hover { background: var(--color-btn-h); color: var(--color-text); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: .6rem; font-size: 1.25rem;
  color: #333; background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: var(--shadow-sm);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.site-header.is-scrolled { box-shadow: 0 8px 20px rgba(0,0,0,.12); }

/*============= Mobile menu =============*/
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 9998;
  background: #fff; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__link {
  padding: 1rem; border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--color-text); font-weight: 600;
}
.mobile-menu__link:hover { background: var(--color-sec-bg1); color: var(--color-link); }
.mobile-menu__cta { background: var(--color-btn-bg); color: var(--color-btn-txt); text-align: center; font-weight: 800; }
.mobile-menu__cta:hover { background: var(--color-btn-h); color: var(--color-text); }

/*============= Hero =============*/
.hero-fixed {
  position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('assets/images/interieur.jpeg');
  background-size: cover; background-position: center;
  pointer-events: none;
}
.hero-fixed__content {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: calc(var(--header-h) + var(--hero-content-top));
  padding-bottom: 6vh; text-align: center;
}
.hero-title { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; margin-bottom: 1rem; }
.hero-subtitle { color: #fff; font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: .95; max-width: 48rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (max-width: 640px) { :root { --hero-content-top: 12vh; } }

/*============= Buttons =============*/
.btn-primary {
  background: var(--color-btn-bg); color: var(--color-btn-txt);
  padding: .85rem 1.4rem; border-radius: .65rem; font-weight: 800;
  letter-spacing: .2px; box-shadow: var(--shadow-sm); border: 2px solid transparent;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .25s ease, color .25s ease;
}
.btn-primary:hover { background: var(--color-btn-h); color: var(--color-text); }
.btn-primary.btn-block { width: 100%; justify-content: center; }
.btn-secondary {
  background: transparent; color: #fff; border: 2px solid #fff;
  padding: .85rem 1.4rem; border-radius: .65rem; font-weight: 800;
  transition: background .25s ease, color .25s ease;
}
.btn-secondary:hover { background: #fff; color: var(--color-text); }
.btn-tertiaire {
  background: transparent; color: rgba(255,255,255,.7); border: 2px solid rgba(255,255,255,.4);
  padding: .85rem 1.4rem; border-radius: .65rem; font-weight: 800;
  transition: background .25s ease, color .25s ease;
}
.btn-tertiaire:hover { background: #fff; color: var(--color-text); }

/*============= Section backgrounds =============*/
.section--base { background: var(--color-bg); }
.section--light { background: var(--color-sec-bg1); }
.section--soft { background: var(--color-sec-bg2); }

/*============= Service cards =============*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--color-sec-bg2); color: var(--color-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: .25rem;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--color-heading); margin: 0; }
.card-desc { font-size: .9rem; color: #555; margin: 0; flex: 1; }
.card-link { font-size: .85rem; font-weight: 700; color: var(--color-heading); margin-top: auto; }
.card-link:hover { color: var(--color-link-h); }
.badge-ico {
  background: var(--color-link-h); color: var(--color-link);
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/*============= Method cards =============*/
.method-card { text-align: left; }
.method-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; font-weight: 800;
  background: var(--color-link-h); color: var(--color-link);
  box-shadow: 0 0 0 6px rgba(30,86,49,.06); margin-bottom: .35rem;
}

/*============= Gallery =============*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--color-sec-bg1);
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; padding: 2rem 1rem .9rem;
  display: flex; flex-direction: column; gap: .2rem;
  font-size: .85rem; opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption strong { font-size: .95rem; }
.empty-gallery { text-align: center; padding: 4rem 0; color: #999; }
.empty-gallery i { font-size: 3rem; color: #ccc; display: block; margin-bottom: 1rem; }

/*============= FAQ =============*/
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff; border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-question {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem;
  font-weight: 700; color: var(--color-heading);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 1.3rem; font-weight: 400; flex-shrink: 0; transition: transform .25s ease; }
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.1rem; }
.faq-answer p { margin: 0; }

/*============= Contact =============*/
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info__item { display: flex; align-items: flex-start; gap: .9rem; }
.contact-info__item strong { display: block; font-weight: 700; color: var(--color-heading); margin-bottom: .2rem; }
.contact-info__item p { margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; }
.form-group label span { color: var(--color-heading); }
.form-group input,
.form-group textarea {
  padding: .75rem 1rem; border: 1.5px solid rgba(0,0,0,.12);
  border-radius: .5rem; background: #fff; font-family: inherit;
  font-size: 1rem; color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--color-heading);
  box-shadow: 0 0 0 3px rgba(30,86,49,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-notice { font-size: .8rem; color: #888; margin: 0; }

/*============= Sep hairline =============*/
.sep-hairline {
  border: 0; height: 1px; width: clamp(220px,40%,560px);
  margin: 10px auto 30px; background: rgba(0,0,0,.14); border-radius: 1px;
}

/*============= Footer =============*/
.site-footer { background: var(--color-footer); color: #fff; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.footer-brand p { opacity: .7; font-size: .9rem; margin-top: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--color-link-h); }
.footer-copy { font-size: .8rem; opacity: .5; margin: 0; }

/*============= Reveal animation =============*/
.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; transition: none; }
}


/*============= Back link =============*/
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--color-heading); font-weight: 600; font-size: .9rem;
  margin-bottom: 2rem; margin-top: 1rem;
  transition: gap .2s ease;
}
.back-link:hover { gap: .75rem; color: var(--color-heading); }

/*============= Legal page =============*/
.legal-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--color-heading);
  margin-bottom: .4rem;
}
.legal-updated { font-size: .85rem; color: #999; margin-bottom: 2.5rem; }
.legal-body { display: flex; flex-direction: column; gap: 0; }
.legal-section {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--color-heading);
  margin-bottom: .75rem;
}
.legal-section p { margin-bottom: .75rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: .35rem;
}
.legal-section ul li { padding-left: 1.25rem; position: relative; font-size: .95rem; }
.legal-section ul li::before {
  content: "–"; position: absolute; left: 0;
  color: var(--color-heading); font-weight: 700;
}
.legal-section a { color: var(--color-heading); font-weight: 600; }
.legal-section a:hover { text-decoration: underline; }

/*============= Footer social =============*/
.footer-social { display: flex; gap: .75rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s ease, color .2s ease;
}
.social-btn:hover { background: var(--color-link-h); color: var(--color-text); }

/*============= Cookie banner =============*/
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  background: #1c1c1e; color: #f5f5f7;
  border-radius: 1rem; padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  z-index: 10000;
  display: flex; flex-direction: column; gap: 1rem;
  animation: cookieSlideUp .35s cubic-bezier(.16,1,.3,1);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner__top { display: flex; align-items: flex-start; gap: 1rem; }
.cookie-banner__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--color-sec-bg2); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-heading); font-size: 1rem;
}
.cookie-banner__text { flex: 1; }
.cookie-banner__text strong { display: block; margin-bottom: .25rem; font-size: .95rem; color: #fff; }
.cookie-banner__text p { font-size: .82rem; color: rgba(255,255,255,.6); margin: 0; max-width: 100%; }
.cookie-banner__actions {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.cookie-btn {
  padding: .55rem 1.1rem; border-radius: .5rem; font-weight: 700;
  font-size: .85rem; cursor: pointer; border: none; font-family: inherit;
  transition: background .2s ease, color .2s ease;
}
.cookie-btn--accept { background: var(--color-btn-bg); color: #fff; }
.cookie-btn--accept:hover { background: #163f25; }
.cookie-btn--reject { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.cookie-btn--reject:hover { background: rgba(255,255,255,.15); color: #fff; }
.cookie-btn--customize {
  background: none; color: rgba(255,255,255,.45); font-size: .8rem;
  padding: .4rem .5rem; text-decoration: underline;
}
.cookie-btn--customize:hover { color: rgba(255,255,255,.8); }

/* Panneau personnalisation */
.cookie-panel {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.cookie-panel[hidden] { display: none; }
.cookie-opt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .875rem;
}
.cookie-opt span { color: rgba(255,255,255,.7); }
.cookie-opt small { color: rgba(255,255,255,.4); font-size: .75rem; display: block; }
/* Toggle switch */
.cookie-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.15); transition: background .2s ease; cursor: pointer;
}
.cookie-toggle input:checked + .cookie-toggle__track { background: var(--color-btn-bg); }
.cookie-toggle__track::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border-radius: 999px; background: #fff; top: 3px; left: 3px;
  transition: transform .2s ease;
}
.cookie-toggle input:checked + .cookie-toggle__track::after { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle__track { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
  .cookie-banner { bottom: 0; left: 0; right: 0; transform: none; width: 100%; border-radius: 1rem 1rem 0 0; }
  @keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/*============= Footer grid (4 colonnes) =============*/
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-links-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.container--narrow { max-width: 780px; }
