/* ============================================================
   VANITECH — style.css
   Palette : Forêt #1E2E1A | Prairie #5B9E3A | Mousse #8AAB72
             Sapin #2E5420 | Givre #F4F6F2 | Blanc #FFFFFF
   Typo    : Outfit (titres) · DM Sans (corps)
   ============================================================ */

/* --- Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-forest:  #1E2E1A;
  --c-prairie: #5B9E3A;
  --c-mousse:  #8AAB72;
  --c-sapin:   #2E5420;
  --c-givre:   #F4F6F2;
  --c-border:  #D8E4D0;
  --c-white:   #FFFFFF;

  --font-title: 'Outfit', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --radius-card: 13px;
  --radius-btn:  7px;

  --shadow-card: 0 2px 18px rgba(30,46,26,0.07), 0 1px 4px rgba(30,46,26,0.04);
  --shadow-hover: 0 8px 32px rgba(30,46,26,0.12), 0 2px 8px rgba(30,46,26,0.06);

  --container: 1160px;
  --section-py: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-forest);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container -------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.6em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-prairie);
  color: var(--c-white);
  border-color: var(--c-prairie);
}
.btn--primary:hover {
  background: #4d8830;
  border-color: #4d8830;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,158,58,0.3);
}
.btn--secondary {
  background: transparent;
  color: var(--c-mousse);
  border-color: rgba(138,171,114,0.35);
}
.btn--secondary:hover {
  border-color: var(--c-mousse);
  color: var(--c-white);
  background: rgba(138,171,114,0.12);
}
.btn--full { width: 100%; justify-content: center; }

/* --- Section shared --------------------------------------- */
.section-head { margin-bottom: 3.5rem; text-align: center; }
.section-head--light { margin-bottom: 3rem; }

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-prairie);
  margin-bottom: 0.8rem;
}
.section-label--light { color: var(--c-mousse); }

.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--c-forest);
}
.section-title--light { color: var(--c-white); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: var(--c-forest);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 0.75rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__wordmark {
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav__logo { color: var(--c-forest); transition: color 0.3s; }
.nav.scrolled .nav__logo { color: var(--c-white); }
.nav__vani { font-weight: 700; color: inherit; }
.nav__tech { font-weight: 400; color: var(--c-prairie); }
.nav.scrolled .nav__vani { color: var(--c-white); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(30,46,26,0.75);
  padding: 0.4em 0.85em;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav.scrolled .nav__link { color: rgba(255,255,255,0.7); }
.nav__link:hover,
.nav.scrolled .nav__link:hover {
  color: var(--c-white);
  background: rgba(91,158,58,0.12);
}
.nav__link--cta {
  background: var(--c-prairie) !important;
  color: var(--c-white) !important;
  font-weight: 600;
  padding: 0.45em 1.1em;
}
.nav__link--cta:hover {
  background: #4d8830 !important;
  transform: translateY(-1px);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-forest);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.nav.scrolled .nav__burger span { background: var(--c-white); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  background: var(--c-white);
}

.hero__bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg-deco svg {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--section-py);
  padding-bottom: 4rem;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-prairie);
  background: rgba(91,158,58,0.1);
  border: 1px solid rgba(91,158,58,0.22);
  border-radius: 50px;
  padding: 0.35em 1em;
  margin-bottom: 1.8rem;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-prairie);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--c-forest);
  margin-bottom: 1.2rem;
}
.hero__accent { color: var(--c-prairie); }

.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  color: rgba(30,46,26,0.6);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: rgba(30,46,26,0.55);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding-block: var(--section-py);
  background: var(--c-givre);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: default;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--c-white);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(91,158,58,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--c-forest);
  margin-bottom: 0.65rem;
}

.card__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(30,46,26,0.6);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card__list li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(30,46,26,0.55);
  padding-left: 1.1em;
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-prairie);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding-block: var(--section-py);
  background: var(--c-white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Business card */
.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about__card-wrap {
  perspective: 1000px;
}
.biz-card {
  width: 340px;
  height: 200px;
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30,46,26,0.18), 0 4px 16px rgba(30,46,26,0.12);
  transition: transform 0.4s ease;
}
.biz-card:hover {
  transform: rotate(-1deg) scale(1.02);
}
.biz-card--front {
  background: var(--c-forest);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.biz-card__deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 120px;
  pointer-events: none;
}
.biz-card__deco svg { width: 100%; height: 100%; }

.biz-card__logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}
.biz-card__wordmark {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--c-white);
}

.biz-card__name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--c-white);
  position: relative;
  z-index: 1;
}
.biz-card__role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--c-mousse);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}
.biz-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  z-index: 1;
}
.biz-card__contacts span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--c-prairie);
}

/* About text */
.about__content .section-label { margin-bottom: 0.5rem; }
.about__content .section-title { margin-bottom: 1.5rem; }

.about__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(30,46,26,0.65);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about__anecdote {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(91,158,58,0.06);
  border: 1px solid rgba(91,158,58,0.15);
  border-left: 3px solid var(--c-prairie);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-block: 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: rgba(30,46,26,0.65);
  line-height: 1.6;
}
.about__anecdote-icon { flex-shrink: 0; margin-top: 0.1rem; }
.about__anecdote strong { color: var(--c-forest); font-weight: 500; }
.about__anecdote em { color: var(--c-sapin); font-style: italic; }

.about__values {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.about__value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(30,46,26,0.65);
}
.about__value-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-prairie);
  flex-shrink: 0;
}

/* ============================================================
   ZONE D'INTERVENTION
   ============================================================ */
.zone {
  padding-block: var(--section-py) calc(var(--section-py) + 60px);
  background: var(--c-forest);
  position: relative;
  overflow: hidden;
}

.zone__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.zone__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-white);
  margin-bottom: 0.6rem;
}

.zone__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.1rem;
}

.zone__towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.zone__towns span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--c-mousse);
  background: rgba(138,171,114,0.1);
  border: 1px solid rgba(138,171,114,0.2);
  border-radius: 50px;
  padding: 0.25em 0.85em;
}

.zone__remote .zone__text {
  max-width: 280px;
  line-height: 1.65;
}

.zone__deco {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}
.zone__deco svg { width: 100%; height: 100%; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-block: var(--section-py);
  background: var(--c-white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact__info .section-label { margin-bottom: 0.5rem; }
.contact__info .section-title { margin-bottom: 1rem; }

.contact__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(30,46,26,0.55);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--c-forest);
  text-decoration: none;
  transition: color 0.2s;
}
.contact__detail:hover { color: var(--c-prairie); }
.contact__detail--text { cursor: default; }
.contact__detail--text:hover { color: var(--c-forest); }

/* Form */
.contact__form {
  background: var(--c-forest);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-mousse);
}

.form-input {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--c-white);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(138,171,114,0.2);
  border-radius: 8px;
  padding: 0.7em 1em;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus {
  border-color: var(--c-prairie);
  background: rgba(91,158,58,0.07);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238AAB72' stroke-width='1.5' stroke-linecap='round'%3E%3Cpolyline points='1 1 6 7 11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}
.form-select option { background: var(--c-forest); color: var(--c-white); }

.form-textarea { resize: vertical; min-height: 120px; }

/* Honeypot — caché visuellement mais pas via display:none (les bots le voient) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(138,171,114,0.5);
  text-align: center;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.visible { display: block; }
.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(91,158,58,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.form-success h3 {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.form-success p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--c-mousse);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #141f11;
  padding-block: 2.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer__logo { color: var(--c-white); }
.footer__wordmark {
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}
.footer__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--c-mousse);
  opacity: 0.7;
  margin-left: 2px;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__nav a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--c-mousse); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}
.footer__legal span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-py: 64px; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 80vw);
    background: var(--c-forest);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
  }
  .nav__links.open { right: 0; }
  .nav__link {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    padding: 0.6em 0.85em;
    width: 100%;
  }
  .nav__link:hover { color: var(--c-white); }
  .nav__link--cta { margin-top: 0.5rem; }
  .nav__burger { display: flex; }

  .about__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }

  .about__visual { order: -1; }
  .biz-card { width: 300px; height: 178px; }

  .zone__grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
}

@media (max-width: 600px) {
  :root { --section-py: 52px; }

  .hero__inner { padding-block: 64px 48px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.5rem); }

  .services__grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .contact__form { padding: 1.5rem; }

  .footer__nav { gap: 1rem; }
}
