/* ==========================================================================
   L'Harmonie du Jardin — feuille de style partagée
   ========================================================================== */

:root {
  --bg: #F7F5F0;
  --bg-alt: #EDEAE2;
  --ardoise: #3A3A38;
  --vert-clair: #4CA64C;
  --vert-fonce: #1F4D2C;
  --bois: #9C6B3E;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --container: 1140px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px -12px rgba(58, 58, 56, 0.25);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ardoise);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: var(--vert-fonce);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
.call-btn:focus-visible {
  outline: 3px solid var(--vert-clair);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bois);
  margin-bottom: var(--space-xs);
}
.eyebrow--on-dark { color: var(--vert-clair); }

/* ---------- Buttons ---------- */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--vert-fonce);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--vert-fonce);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-call:hover {
  background: var(--vert-clair);
  border-color: var(--vert-clair);
  transform: translateY(-1px);
}
.btn-call--ghost {
  background: transparent;
  color: var(--vert-fonce);
}
.btn-call--ghost:hover { color: var(--white); }
.btn-call--large {
  font-size: 1.1rem;
  padding: 1em 2em;
}
.btn-call--compact {
  padding: 0.55em 1em;
  font-size: 0.82rem;
}
.btn-call__icon { font-size: 1.1em; }

@media (max-width: 480px) {
  .btn-call--large {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

.helper-text {
  font-size: 0.85rem;
  color: var(--ardoise);
  opacity: 0.75;
  margin-top: var(--space-xs);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(58, 58, 56, 0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--vert-fonce);
  margin-left: 0.65rem;
  display: none;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ardoise);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--vert-fonce);
  border-color: var(--vert-clair);
}
.header-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(58, 58, 56, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vert-fonce);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.header-social a:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-fonce);
  color: var(--white);
}
.header-social svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ardoise);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .header-inner { padding: 0.4rem 1rem; gap: 0.5rem; flex-wrap: wrap; }
  .logo-img { width: 38px; height: 38px; }
  .header-social { order: 2; gap: 0.35rem; }
  .header-social a { width: 32px; height: 32px; }
  .btn-call--compact {
    order: 1;
    padding: 0.4em 0.8em;
    font-size: 0.78rem;
  }
  .site-nav {
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 220px; }
  .site-nav a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid rgba(58, 58, 56, 0.08);
  }
  .nav-toggle { display: flex; order: 3; width: 36px; height: 36px; margin-left: auto; }
  .btn-call--compact span.full-number { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(82svh, 660px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(31, 77, 44, 0) 0%,
    rgba(31, 77, 44, 0.18) 40%,
    rgba(31, 77, 44, 0.62) 72%,
    rgba(31, 77, 44, 0.94) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xl) 0 var(--space-lg);
}
.hero h1 {
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 42ch;
  margin-bottom: var(--space-md);
  color: #F3F1EA;
}
.hero__actions .helper-text { color: #E4E1D8; }
.guarantee-badge {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--vert-clair);
}

.hero__call-group {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--vert-fonce);
  border: 2px solid var(--vert-fonce);
  box-shadow: var(--shadow-soft);
}
.hero__call-line {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.65em 1.4em;
  transition: background 0.2s ease;
}
.hero__call-line span[aria-hidden] { font-size: 1.05em; }
.hero__call-line--secondary {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__call-line:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 480px) {
  .hero__call-line {
    font-size: 0.88rem;
    padding: 0.55em 1.1em;
  }
}

/* ==========================================================================
   Sections & layout helpers
   ========================================================================== */
.section {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--ardoise);
  color: #EDEAE2;
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head {
  max-width: 62ch;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section-head p { color: var(--ardoise); opacity: 0.85; }
.section--dark .section-head p { color: #D9D6CC; opacity: 1; }
.section--dark .eyebrow { color: var(--vert-clair); }

/* ---------- Notre histoire (with yin-yang backdrop) ---------- */
.histoire {
  position: relative;
  padding-bottom: var(--space-md);
}
.histoire__text-wrap {
  position: relative;
}
.histoire__yinyang {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(600px, 92vw);
  height: min(600px, 92vw);
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.histoire__inner {
  position: relative;
  z-index: 1;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.histoire__inner p {
  font-size: 1.08rem;
}
.histoire__signature {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bois);
}

.histoire__people {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: 640px;
  margin: var(--space-xl) auto 0;
}
.histoire__people figure { margin: 0; }
.histoire__people__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.histoire__people__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback for browsers/webviews without aspect-ratio support (e.g. some
   in-app mobile browsers): without this, the frame collapses to 0 height
   and the image becomes invisible. */
@supports not (aspect-ratio: 1 / 1) {
  .histoire__people__frame { height: 0; padding-top: 125%; }
  .histoire__people__frame img { position: absolute; inset: 0; }
}
.histoire__people figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--ardoise);
  opacity: 0.75;
}

/* ---------- Specialite ---------- */
.specialite {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.specialite__text { max-width: 56ch; margin: 0 auto; text-align: center; }
.specialite__subhead {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto var(--space-lg);
}
.specialite .services { margin-bottom: var(--space-lg); }
.specialite__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
}
.specialite__photos figure { margin: 0; }
.specialite__photos__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
}
.specialite__photos__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@supports not (aspect-ratio: 1 / 1) {
  .specialite__photos__frame { height: 0; padding-top: 133.333%; }
  .specialite__photos__frame img { position: absolute; inset: 0; }
}

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.gallery figure { margin: 0; }
.gallery__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@supports not (aspect-ratio: 1 / 1) {
  .gallery__frame { height: 0; padding-top: 75%; }
  .gallery__frame img { position: absolute; inset: 0; }
}
.gallery figure:hover .gallery__frame img { transform: scale(1.04); }
.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ardoise);
  opacity: 0.8;
}
.gallery--teaser { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.gallery-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ---------- Proposal cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
}
.proposal-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
}
.proposal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,77,44,0.05) 40%, rgba(20,26,21,0.85) 100%);
}
.proposal-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  color: var(--white);
}
.proposal-card__body h3 { color: var(--white); }
.proposal-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--vert-clair);
  padding-bottom: 2px;
}

/* ---------- Services list ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.service-item {
  background: var(--white);
  border: 1px solid rgba(58,58,56,0.08);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}
.section--alt .service-item { background: var(--bg); }
.service-item__mark {
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--vert-clair);
  margin-bottom: 0.9rem;
  border-radius: 2px;
}
.service-item h3 { margin-bottom: 0.4rem; }
.service-item p { font-size: 0.95rem; opacity: 0.85; margin: 0; }

/* ---------- Numbered steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; max-width: 480px; }
}
.step {
  text-align: center;
  padding: 0 var(--space-sm);
}
.step__num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  border: 2px solid var(--vert-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--vert-fonce);
}
.step__num::before { content: counter(step); }
.step p { font-size: 0.95rem; opacity: 0.85; }

/* ---------- Page intro (creation / entretien) ---------- */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  background: var(--bg-alt);
}
.page-hero__inner { max-width: 60ch; margin: 0 auto; }
.page-hero p { font-size: 1.08rem; opacity: 0.85; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D9D6CC; max-width: 46ch; margin: 0 auto var(--space-md); }
.cta-band .helper-text { color: #B9B6AC; }

/* ==========================================================================
   Curved dividers (S-shape motif)
   ========================================================================== */
.divider {
  display: block;
  line-height: 0;
  margin: 0;
}
.divider svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--vert-fonce);
  color: #DCE7DE;
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
.footer-contact { font-size: 0.92rem; line-height: 1.9; }
.footer-contact a:hover { color: var(--vert-clair); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
  background: var(--vert-clair);
  border-color: var(--vert-clair);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.7;
}
.footer-credit {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  text-align: center;
  opacity: 0.5;
}
.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}
.footer-credit a:hover { opacity: 0.8; }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
