/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Neue Haas Grotesk Display Pro', sans-serif;
  background: #faf8f4;
  color: #1c1917;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================
   TOKENS
   ============================ */
:root {
  --ink:      #1c1917;
  --ink-soft: #57534e;
  --paper:    #faf8f4;
  --paper-2:  #f0ece3;
  --green:    #16a34a;
  --green-lt: #dcfce7;
  --border:   #e7e2d9;
  --radius:   6px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --container: 1120px;
  --gap: clamp(32px, 5vw, 64px);
}

/* ============================
   CONTAINER
   ============================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: #333; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--nav {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
}
.btn--nav:hover { background: #15803d; }

.btn--full { width: 100%; justify-content: center; }

/* ============================
   TYPOGRAPHY HELPERS
   ============================ */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.75;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-header--light .section-title { color: var(--paper); }
.section-header--light .section-intro { color: rgba(250,248,244,0.7); }

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: rgba(250,248,244,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 14px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav__logo em {
  font-style: normal;
  color: var(--green);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--ink); }

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gap);
  padding: 120px clamp(20px, 4vw, 48px) 80px;
  max-width: var(--container);
  margin-inline: auto;
}

.hero__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero__title--italic {
  font-style: italic;
  font-weight: 300;
  color: var(--green);
}

.hero__sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* SERP illustration */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.serp {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

.serp__bar {
  height: 36px;
  background: var(--paper-2);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
}
.serp__bar::before {
  content: '';
  position: absolute;
  inset: 6px 12px;
  background: #e0dbd2;
  border-radius: 4px;
}

.serp__result {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  animation: fadeSlide 0.5s forwards;
}
.serp__result:last-child { border-bottom: none; }
.serp__result--1 { animation-delay: 0.3s; }
.serp__result--2 { animation-delay: 0.6s; }
.serp__result--3 { animation-delay: 0.9s; }

.serp__result--1 .serp__title { color: var(--green); font-weight: 600; }
.serp__result--1 .serp__url { color: var(--green); }

.serp__url {
  font-size: 11px;
  color: var(--ink-soft);
}
.serp__title {
  font-size: 14px;
  color: #1a0dab;
  font-weight: 400;
}
.serp__desc {
  font-size: 12px;
  color: var(--ink-soft);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================
   SERVICES
   ============================ */
.services {
  background: #fff;
  padding-block: clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s, background 0.2s;
}
.service-card.is-visible { opacity: 1; transform: none; }
.service-card:hover { background: var(--paper); }

.service-card__icon {
  width: 40px; height: 40px;
  color: var(--green);
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ============================
   METHODE
   ============================ */
.methode {
  background: var(--ink);
  padding-block: clamp(64px, 10vw, 120px);
}

.methode .section-label { color: #6ee7b7; }
.methode .section-title { color: var(--paper); }

.methode__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}

.methode__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding-block: 36px;
  border-top: 1px solid rgba(250,248,244,0.1);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s, transform 0.5s;
}
.methode__step.is-visible { opacity: 1; transform: none; }
.methode__step:last-child { border-bottom: 1px solid rgba(250,248,244,0.1); }

.methode__num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: rgba(250,248,244,0.15);
  line-height: 1;
  padding-top: 4px;
}

.methode__content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 10px;
}
.methode__content p {
  font-size: 15px;
  color: rgba(250,248,244,0.6);
  line-height: 1.8;
  max-width: 56ch;
}

/* ============================
   STATS
   ============================ */
.stats {
  background: var(--paper-2);
  padding-block: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats__item {
  background: var(--paper-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}
.stats__item.is-visible { opacity: 1; transform: none; }

.stats__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.stats__label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ============================
   TEMOIGNAGES
   ============================ */
.temoignages {
  background: #fff;
  padding-block: clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--border);
}

.temoignages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.temoignage {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}
.temoignage.is-visible { opacity: 1; transform: none; }

.temoignage p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
}

.temoignage footer { border-top: 1px solid var(--border); padding-top: 20px; }

.temoignage cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.temoignage cite strong {
  font-size: 14px;
  font-weight: 600;
}
.temoignage cite span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================
   EQUIPE
   ============================ */
.equipe {
  background: var(--paper);
  padding-block: clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.equipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.membre {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.membre:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.membre__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.membre__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.membre__nom {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.membre__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}

.membre__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .equipe__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .equipe__grid { grid-template-columns: 1fr; }
}

/* ============================
   CONTACT
   ============================ */
.contact {
  background: var(--paper);
  padding-block: clamp(64px, 10vw, 120px);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__text .section-title { margin-bottom: 16px; }

.contact__text p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact__reassurance {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__reassurance li {
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.contact__form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--ink);
  color: rgba(250,248,244,0.6);
  padding-block: 56px 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,248,244,0.1);
  margin-bottom: 24px;
}

.footer__brand .nav__logo { color: var(--paper); }
.footer__brand p {
  font-size: 13px;
  color: rgba(250,248,244,0.4);
  margin-top: 8px;
}

.footer__nav {
  display: flex;
  gap: 48px;
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav a {
  font-size: 13px;
  color: rgba(250,248,244,0.5);
  transition: color 0.15s;
}
.footer__nav a:hover { color: var(--paper); }

.footer__copy {
  font-size: 12px;
  color: rgba(250,248,244,0.3);
  text-align: center;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .nav__links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 48px;
  }
  .hero__visual { display: none; }

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

  .methode__step { grid-template-columns: 1fr; gap: 8px; }
  .methode__num  { font-size: 28px; }

  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__nav   { flex-direction: column; gap: 24px; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid    { grid-template-columns: 1fr; }
  .hero__actions  { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
