/* ─────────────────────────────────────────────
   NaturaCorp — Theme moderne (override Bootstrap 5)
   ───────────────────────────────────────────── */

:root {
  /* Palette : sauge profond + neutres chauds + or doux */
  --nc-bg:        #faf7f2;
  --nc-bg-soft:   #f3ede4;
  --nc-surface:   #ffffff;
  --nc-ink:       #1c2624;
  --nc-ink-soft:  #4a554f;
  --nc-muted:     #8a8a82;
  --nc-line:      #e7e1d6;

  --nc-brand:     #2f5b4a;
  --nc-brand-600: #244638;
  --nc-brand-700: #1c382c;
  --nc-brand-50:  #e7efeb;
  --nc-accent:    #c9a85c;

  --nc-radius-sm: 8px;
  --nc-radius:    14px;
  --nc-radius-lg: 22px;

  --nc-shadow-sm: 0 1px 2px rgb(28 38 36 / 0.04), 0 1px 3px rgb(28 38 36 / 0.06);
  --nc-shadow:    0 8px 24px -8px rgb(28 38 36 / 0.10), 0 2px 6px rgb(28 38 36 / 0.04);
  --nc-shadow-lg: 0 24px 60px -20px rgb(28 38 36 / 0.18);

  --nc-ease:      cubic-bezier(.2, .7, .2, 1);
}

/* ── Base ───────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--nc-bg);
  color: var(--nc-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  line-height: 1.55;
}

main { display: block; }

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: "Fraunces", "Inter", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--nc-ink);
}

h1, .display-4 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; }

p { color: var(--nc-ink-soft); }
.lead { font-size: 1.125rem; color: var(--nc-ink-soft); font-weight: 400; }
.text-muted { color: var(--nc-muted) !important; }

a { color: var(--nc-brand); text-decoration: none; transition: color .2s var(--nc-ease); }
a:hover { color: var(--nc-brand-700); }

/* ── Containers / sections ──────────────────── */
.container, .container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }
section { padding-top: clamp(3.5rem, 6vw, 6rem) !important; padding-bottom: clamp(3.5rem, 6vw, 6rem) !important; }
section.bg-light { background: var(--nc-bg-soft) !important; }

/* ── Navbar ─────────────────────────────────── */
header .navbar {
  background: rgb(250 247 242 / 0.85) !important;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--nc-line);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
header .navbar .container { padding-left: 1.5rem; padding-right: 1.5rem; }

.navbar-brand img { height: 34px !important; width: auto; }

.navbar .nav-link {
  color: var(--nc-ink-soft) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .9rem !important;
  border-radius: var(--nc-radius-sm);
  transition: color .2s var(--nc-ease), background .2s var(--nc-ease);
}
.navbar .nav-link:hover { color: var(--nc-ink) !important; background: rgba(28,38,36,.04); }
.navbar .nav-link.active { color: var(--nc-brand) !important; }

.navbar .nav-link.btn {
  border: 1px solid var(--nc-brand) !important;
  color: var(--nc-brand) !important;
  margin-left: .75rem;
  padding: .5rem 1rem !important;
}
.navbar .nav-link.btn:hover {
  background: var(--nc-brand) !important;
  color: #fff !important;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  font-weight: 500;
  font-size: .95rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  transition: transform .2s var(--nc-ease), box-shadow .2s var(--nc-ease), background .2s var(--nc-ease), color .2s var(--nc-ease);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }

.btn-success, .btn-primary {
  background: var(--nc-ink) !important;
  border-color: var(--nc-ink) !important;
  color: #fff !important;
  box-shadow: var(--nc-shadow-sm);
}
.btn-success:hover, .btn-primary:hover {
  background: var(--nc-brand-700) !important;
  border-color: var(--nc-brand-700) !important;
  box-shadow: var(--nc-shadow);
}

.btn-outline-success, .btn-outline-primary {
  background: transparent !important;
  border-color: var(--nc-ink) !important;
  color: var(--nc-ink) !important;
}
.btn-outline-success:hover, .btn-outline-primary:hover {
  background: var(--nc-ink) !important;
  color: #fff !important;
}

.btn-outline-light {
  background: rgb(255 255 255 / 0.12) !important;
  backdrop-filter: blur(8px);
  border-color: rgb(255 255 255 / 0.4) !important;
  color: #fff !important;
}
.btn-outline-light:hover {
  background: #fff !important;
  color: var(--nc-ink) !important;
}

.btn-danger {
  background: #b94c4c !important;
  border-color: #b94c4c !important;
  color: #fff !important;
}

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  height: auto;
  margin-top: 0 !important;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background: var(--nc-ink);
  color: #fff;
}
.hero--home { min-height: clamp(620px, 92vh, 880px); }

.hero .hero-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -2;
  line-height: 0;
}
.hero .hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  vertical-align: middle;
  transform: scale(1.02);
  animation: hero-zoom 18s ease-out both;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,28,26,0) 0%,
      rgba(20,28,26,0.20) 35%,
      rgba(20,28,26,0.65) 70%,
      rgba(20,28,26,0.88) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(47,91,74,0.40), transparent 60%),
    radial-gradient(80% 60% at 10% 100%, rgba(28,38,36,0.55), transparent 70%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

/* Decorative leaf (top-right, hidden on mobile) */
.hero-leaf {
  position: absolute;
  top: 6vh; right: -2vw;
  width: clamp(180px, 26vw, 320px);
  height: auto;
  color: rgba(201, 168, 92, 0.55);
  z-index: 0;
  pointer-events: none;
  animation: hero-leaf-drift 14s ease-in-out infinite alternate;
}
@keyframes hero-leaf-drift {
  from { transform: translateY(-6px) rotate(-2deg); }
  to   { transform: translateY(8px) rotate(2deg);  }
}
@media (max-width: 768px) { .hero-leaf { display: none; } }

/* Hero inner content */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 5rem) clamp(4.5rem, 10vh, 7rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgb(255 255 255 / 0.92);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nc-accent);
  box-shadow: 0 0 0 4px rgba(201, 168, 92, 0.18);
}

.hero-title {
  font-family: "Fraunces", Georgia, serif !important;
  color: #fff !important;
  font-size: clamp(2.6rem, 6vw, 5.2rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
  font-weight: 400 !important;
  margin: 0 0 1.25rem !important;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--nc-accent);
  background: linear-gradient(120deg, var(--nc-accent) 0%, #e2c780 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: rgb(255 255 255 / 0.82) !important;
  font-size: clamp(1rem, 1.3vw, 1.18rem) !important;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 2.25rem !important;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 3rem;
}

/* Hero buttons */
.btn-hero-primary {
  display: inline-flex !important;
  align-items: center;
  gap: .55rem;
  background: #fff !important;
  color: var(--nc-ink) !important;
  border: none !important;
  padding: .9rem 1.6rem !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  font-size: .98rem !important;
  box-shadow: 0 8px 28px -10px rgb(0 0 0 / 0.45);
  transition: transform .25s var(--nc-ease), box-shadow .25s var(--nc-ease);
}
.btn-hero-primary svg { width: 16px; height: 16px; transition: transform .25s var(--nc-ease); }
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -12px rgb(0 0 0 / 0.55);
  color: var(--nc-ink) !important;
}
.btn-hero-primary:hover svg { transform: translateX(3px); }

.btn-hero-ghost {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  background: rgb(255 255 255 / 0.08) !important;
  color: #fff !important;
  border: 1px solid rgb(255 255 255 / 0.30) !important;
  padding: .9rem 1.6rem !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  font-size: .98rem !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s var(--nc-ease), border-color .25s var(--nc-ease);
}
.btn-hero-ghost:hover {
  background: rgb(255 255 255 / 0.16) !important;
  border-color: rgb(255 255 255 / 0.55) !important;
  color: #fff !important;
}

/* Trust badges row */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  max-width: 640px;
}
.hero-trust-item { display: flex; flex-direction: column; gap: .2rem; }
.hero-trust-item strong {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero-trust-item span {
  font-size: .8rem;
  color: rgb(255 255 255 / 0.62);
  letter-spacing: .01em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  right: clamp(1.5rem, 6vw, 5rem);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: rgb(255 255 255 / 0.6) !important;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s var(--nc-ease);
}
.hero-scroll:hover { color: #fff !important; }
.hero-scroll svg {
  width: 12px; height: 18px;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(5px); opacity: 1; }
}
@media (max-width: 600px) { .hero-scroll span { display: none; } }

/* Backward-compat: legacy .hero-content (entreprise page) */
.hero .hero-content {
  position: relative !important;
  z-index: 1;
  top: auto !important; left: auto !important; right: auto !important;
  bottom: auto !important;
  transform: none !important;
  text-align: left !important;
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.5rem, 6vw, 5rem) !important;
  max-width: 1200px;
  margin: 0 auto !important;
  width: 100%;
  align-self: flex-end;
}
.hero .hero-content,
.hero .hero-content h1,
.hero .hero-content h2,
.hero .hero-content p,
.hero .hero-content .lead {
  color: #fff !important;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}
.hero .hero-content h1 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2.4rem, 5vw, 4.4rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  margin: 0 0 1rem !important;
  max-width: 18ch;
}
.hero .hero-content .lead {
  max-width: 52ch;
  font-weight: 400;
  opacity: .9;
}

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--nc-surface);
  border: 1px solid var(--nc-line) !important;
  border-radius: var(--nc-radius) !important;
  box-shadow: var(--nc-shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--nc-ease), box-shadow .25s var(--nc-ease), border-color .25s var(--nc-ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nc-shadow);
  border-color: rgb(28 38 36 / .15) !important;
}
.card-img-top { border-radius: 0 !important; transition: transform .6s var(--nc-ease); }
.card:hover .card-img-top { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-title { font-family: "Fraunces", serif; font-weight: 500; margin-bottom: .65rem; }
.card-text { color: var(--nc-ink-soft); font-size: .95rem; }

/* Section titles */
section h2.text-center {
  text-align: left !important;
  margin-bottom: 2.5rem !important;
  position: relative;
  display: inline-block;
}
section h2.text-center::after {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: var(--nc-accent);
  margin-top: .85rem;
}
section .text-center { text-align: left !important; }
section .text-center.mt-4 { text-align: center !important; }

/* ── Badges ────────────────────────────────── */
.badge {
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .35em .7em;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge.bg-success { background: var(--nc-brand-50) !important; color: var(--nc-brand-700) !important; }

/* ── Forms ─────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--nc-line) !important;
  border-radius: var(--nc-radius-sm) !important;
  padding: .7rem 1rem;
  background: var(--nc-surface);
  font-size: .95rem;
  transition: border-color .2s var(--nc-ease), box-shadow .2s var(--nc-ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--nc-brand) !important;
  box-shadow: 0 0 0 3px var(--nc-brand-50) !important;
  outline: none;
}
.input-group .btn { border-radius: 999px !important; margin-left: .5rem; }

/* ── Footer ────────────────────────────────── */
footer.bg-light {
  background: var(--nc-ink) !important;
  color: rgb(255 255 255 / 0.78);
  padding: 4rem 0 2rem !important;
  margin-top: 6rem !important;
  border-top: none;
}
footer.bg-light h5 {
  color: #fff;
  font-family: "Inter", sans-serif !important;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.25rem;
}
footer.bg-light p,
footer.bg-light li { color: rgb(255 255 255 / 0.65); font-size: .92rem; line-height: 1.8; }
footer.bg-light a { color: rgb(255 255 255 / 0.78); }
footer.bg-light a:hover { color: #fff; }
footer.bg-light .form-control {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18) !important;
  color: #fff;
}
footer.bg-light .form-control::placeholder { color: rgb(255 255 255 / 0.45); }
footer.bg-light .form-control:focus {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.4) !important;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.06) !important;
}

footer .footer-credit {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  text-align: center;
  font-size: .82rem;
  color: rgb(255 255 255 / 0.5);
  letter-spacing: .02em;
}
footer .footer-credit a {
  color: rgb(255 255 255 / 0.78);
  font-weight: 500;
  border-bottom: 1px dashed rgb(255 255 255 / 0.25);
  padding-bottom: 1px;
  transition: color .2s var(--nc-ease), border-color .2s var(--nc-ease);
}
footer .footer-credit a:hover { color: var(--nc-accent); border-color: var(--nc-accent); }
footer .footer-credit-sep { margin: 0 .55rem; opacity: .5; }

/* ── Reveal on scroll (CSS only) ────────────── */
@media (prefers-reduced-motion: no-preference) {
  section > .container > * {
    animation: nc-rise .9s var(--nc-ease) both;
  }
  @keyframes nc-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ── Misc ──────────────────────────────────── */
.alert-info {
  background: var(--nc-brand-50) !important;
  color: var(--nc-brand-700) !important;
  border: 1px solid var(--nc-brand-50) !important;
  border-radius: var(--nc-radius);
  padding: 1rem 1.25rem;
}

img.img-fluid { border-radius: var(--nc-radius); }

::selection { background: var(--nc-brand); color: #fff; }
