/* ==========================================================================
   ONATURO — feuille de style partagée (accueil, à propos, contact)
   ========================================================================== */
:root {
  --green-900: #22352a;
  --green-800: #2e4636;
  --green-700: #3a5843;
  --green-600: #4c6b54;
  --ink: #2b3a2f;
  --muted: #6a7568;
  --cream: #f4efe4;
  --paper: #fbfaf4;
  --amber: #e0902d;
  --amber-dark: #c67d1f;
  --line: rgba(46, 70, 54, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button:not(:disabled), [role="button"], summary, label[for] { cursor: pointer; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* ---------- HEADER ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(250, 248, 242, 0.82), rgba(250, 248, 242, 0));
}
.site-header.header-solid {
  position: sticky; background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(34, 53, 42, 0.05);
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 50px; height: 50px; flex: none;
  background: var(--green-800); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.brand-mark .icon { width: 25px; height: 25px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.85rem; letter-spacing: 0.2em; color: var(--green-800);
}
.brand-tagline {
  font-size: 0.73rem; letter-spacing: 0.04em; color: var(--green-700);
  margin-top: 0.3rem; font-weight: 600; padding-left: 0.18rem; font-style: italic;
}

/* Halo blanc pour lisibilité du texte d'en-tête au-dessus de la photo (accueil seulement) */
.site-header:not(.header-solid) .brand-name,
.site-header:not(.header-solid) .brand-tagline,
.site-header:not(.header-solid) .nav a {
  text-shadow: 0 1px 8px rgba(250, 248, 242, 0.9), 0 0 2px rgba(250, 248, 242, 0.8);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--green-900); white-space: nowrap;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a.active { border-color: var(--amber); }
.nav a.disabled, .btn.is-disabled {
  color: var(--muted); opacity: 0.5; cursor: default; pointer-events: none;
  border-color: transparent;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.78rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--green-800); color: var(--green-800); background: rgba(255,255,255,.45); }
.btn-ghost:hover { background: var(--green-800); color: #fff; }
.btn.is-disabled { background: rgba(46,70,54,0.14); color: var(--muted); border-color: transparent; }

.menu-toggle { display: none; background: none; border: none; color: var(--green-800); padding: 0.4rem; }
.menu-toggle .icon { width: 30px; height: 30px; }

/* ---------- HERO (accueil) ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-image: url("assets/hero.webp");
  background-size: cover; background-position: center;
  padding: 8rem clamp(1.2rem, 5vw, 3rem) 5rem; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 57% 44%, rgba(250,248,242,0.80), rgba(250,248,242,0) 72%),
    linear-gradient(to bottom, rgba(250,248,242,0.30), rgba(250,248,242,0) 22%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.hero-content > * { text-shadow: 0 1px 16px rgba(250, 248, 242, 0.7); }
.hero-mark {
  width: 84px; height: 84px; margin: 0 auto 1.1rem;
  background: var(--green-800); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 20px rgba(34, 53, 42, 0.25); text-shadow: none;
}
.hero-mark .icon { width: 42px; height: 42px; }
.hero-title {
  font-family: var(--serif); font-weight: 600; color: var(--green-800);
  font-size: clamp(3.2rem, 9vw, 6rem); line-height: 0.95;
  letter-spacing: 0.14em; margin: 0 0 1rem; padding-left: 0.14em;
}
.hero-steps {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.9rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-900); font-size: clamp(0.9rem, 2.4vw, 1.15rem);
}
.hero-steps .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: inline-block; }
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin: 1.6rem auto; max-width: 340px; color: var(--green-700);
}
.hero-divider::before, .hero-divider::after { content: ""; height: 1px; flex: 1; background: var(--green-700); opacity: 0.4; }
.hero-divider .icon { width: 20px; height: 20px; }
.hero-sub {
  font-family: var(--serif); font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  color: var(--green-900); line-height: 1.45; margin: 0 auto 2rem; max-width: 42ch; font-weight: 500;
}
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-cta > * { text-shadow: none; }

/* ---------- FEATURES (accueil) ---------- */
.features { background: var(--cream); padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 5vw, 3rem); }
.features-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { text-align: center; padding: 0.5rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.feature:first-child { border-left: none; }
.feature-icon { color: var(--green-700); margin-bottom: 1rem; }
.feature-icon .icon { width: 40px; height: 40px; }
.feature h3 {
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.95rem; color: var(--green-900); margin: 0 0 0.7rem;
}
.feature p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- PAGES INTÉRIEURES (à propos, contact) ---------- */
.page { min-height: 60vh; }
.page-hero {
  background: var(--cream); text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .leaf-badge {
  width: 60px; height: 60px; margin: 0 auto 1.1rem;
  background: var(--green-800); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.page-hero .leaf-badge .icon { width: 30px; height: 30px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 600; color: var(--green-800);
  font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: 0.06em; margin: 0 0 0.6rem;
}
.page-hero p { color: var(--muted); font-size: 1.05rem; margin: 0 auto; max-width: 52ch; }

.page-body { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem); }
.prose p { color: var(--ink); font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.3rem; text-align: justify; }
.prose p:first-of-type { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--green-800); text-align: left; font-weight: 500; }
.prose strong { color: var(--green-700); font-weight: 700; }
.prose .signoff { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--green-700); text-align: left; margin-top: 1.8rem; }

/* ---------- FORMULAIRE CONTACT (peau du site, pas l'émeraude de l'outil) ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 10px 34px rgba(34, 53, 42, 0.07);
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.seg button {
  padding: 0.55rem 1.1rem; font-size: 0.82rem; font-weight: 500; font-family: var(--sans);
  background: #fff; color: var(--muted); border: none; border-left: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.seg button:first-child { border-left: none; }
.seg button.active { background: var(--green-800); color: #fff; }
.field-label { display: block; font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0.35rem; letter-spacing: 0.02em; }
.contact-card textarea, .contact-card input[type="email"] {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem;
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.contact-card textarea { resize: vertical; min-height: 120px; }
.contact-card textarea:focus, .contact-card input[type="email"]:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(76, 107, 84, 0.15);
}
.contact-card .hp { position: absolute; left: -9999px; }
.contact-submit {
  margin-top: 1.4rem; width: 100%; background: var(--green-800); color: #fff;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.06em; font-size: 0.95rem;
  border: none; border-radius: 10px; padding: 0.85rem; transition: background .2s;
}
.contact-submit:hover { background: var(--green-700); }
.contact-submit:disabled { opacity: 0.6; cursor: default; }
.form-msg { margin-top: 0.9rem; font-size: 0.9rem; border-radius: 10px; padding: 0.8rem 1rem; }
.form-msg.ok { background: #eaf3ec; color: var(--green-700); border: 1px solid #cfe3d4; }
.form-msg.err { background: #fbe9e7; color: #b3402f; border: 1px solid #f3ccc5; }
.form-msg.warn { background: #fbf1e0; color: var(--amber-dark); border: 1px solid #f0dcba; }

/* ---------- FOOTER ---------- */
.footer-band {
  background: var(--green-800); color: #f4efe4;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  padding: 1.6rem 1.5rem; text-align: center;
}
.footer-band .icon { width: 20px; height: 20px; color: #9db98a; flex: none; }
.footer-band p { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.4rem); margin: 0; }
.site-footer {
  background: var(--green-900); color: rgba(244, 239, 228, 0.72);
  padding: 1.6rem clamp(1.2rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.82rem;
}
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; right: clamp(1rem, 4vw, 3.5rem);
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    background: var(--paper); padding: 1.4rem 1.8rem; border-radius: 14px;
    box-shadow: 0 18px 40px rgba(34, 53, 42, 0.16); min-width: 210px; display: none;
  }
  .nav.open { display: flex; }
  .header-cta { display: none; }
  .nav .btn { display: inline-flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .feature:nth-child(odd) { border-left: none; }
  .feature:nth-child(2) { border-left: 1px solid var(--line); }
}
@media (min-width: 1001px) { .nav .btn { display: none; } }
@media (max-width: 520px) {
  .brand-name { font-size: 1.5rem; letter-spacing: 0.14em; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .features-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .feature { border-left: none !important; }
  .footer-band { flex-direction: column; gap: 0.6rem; }
  .footer-band .icon:last-child { display: none; }
  .site-footer { justify-content: center; text-align: center; }
}
