/* ==========================================================================
   REMAKE — style.css
   Association loi 1901 — matériel bureautique reconditionné
   ========================================================================== */

:root {
  --ink: #111316;
  --muted: #5b6472;
  --muted-2: #8a919c;
  --green: #319242;
  --green-dark: #256b34;
  --green-soft: #eaf4ec;
  --green-tint: #f4faf5;
  --line: #e7e9ec;
  --rose: #e8b8c4;
  --white: #ffffff;

  --container: 1160px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(17, 19, 22, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 19, 22, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 780px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.section-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 16px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.main-nav a:hover { color: var(--green); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
/* On desktop this wrapper is transparent to layout: its children (.main-nav,
   .header-cta) act as direct flex items of .site-header__inner. On mobile it
   becomes the dropdown panel itself, so both pieces stack together as one
   block instead of being positioned independently. */
.mobile-menu { display: contents; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--green); display: inline-block;
}
.hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 920px;
  margin: 0 auto;
}
.hero__title span { color: var(--green); display: block; }
.hero__title strong { display: block; color: var(--ink); font-weight: 700; }
.hero__subtitle {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero__caption {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.hero__art { margin: 40px auto 0; max-width: 560px; }

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 20px 0 96px; }
.section--tint { background: var(--green-tint); }

/* ---------- Value / feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
}
.icon-badge {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 10px; }

.quote {
  max-width: 640px;
  margin: 44px auto 0;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* ---------- "Pour qui" grid ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 40px;
  overflow: hidden;
}
.who-grid__item {
  padding: 36px 30px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.who-grid__item:nth-child(3n) { border-right: none; }
.who-grid__item:nth-child(n+4) { border-bottom: none; }
.who-grid__item svg { margin: 0 auto; }
.who-grid__item h3 { font-size: 17px; font-weight: 700; margin-top: 16px; }
.who-grid__item p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }

/* ---------- Steps timeline ---------- */
.steps { max-width: 760px; margin: 40px auto 0; text-align: left; }
.step { display: flex; gap: 22px; }
.step__marker { display: flex; flex-direction: column; align-items: center; }
.step__number {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--green); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; background: #fff; flex-shrink: 0;
}
.step__line { width: 1.5px; flex: 1; background: var(--line); min-height: 24px; }
.step__body { padding-bottom: 36px; }
.step:last-child .step__body { padding-bottom: 0; }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 6px; }
.steps-note {
  max-width: 560px; margin: 28px auto 0; text-align: center;
  color: var(--muted-2); font-size: 13.5px; line-height: 1.6;
}

/* ---------- Opportunities 4-col ---------- */
.opps-title { text-align: center; }
.opps-title .line1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--ink); }
.opps-title .line2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--green); }
.opps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
  text-align: left;
}
.opps-grid h3 { font-size: 16.5px; font-weight: 700; margin-top: 14px; }
.opps-grid p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 28px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  background: none; border: none;
  text-align: left;
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.faq-item__icon { flex-shrink: 0; color: var(--green); transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  padding: 0 4px;
}
.faq-item[data-open="true"] .faq-item__a {
  max-height: 260px;
  padding: 0 4px 20px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 28px auto 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { margin-top: 18px; }
.form-row .field { margin-top: 0; }
.field:first-child { margin-top: 0; }
.field label {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-caption { margin-top: 14px; color: var(--muted-2); font-size: 13px; }
.form-actions { margin-top: 22px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-status[data-state="success"] { display: block; background: var(--green-soft); color: var(--green-dark); }
.form-status[data-state="error"] { display: block; background: #fbeaea; color: #a4302f; }

.coords h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.coords ul { display: flex; flex-direction: column; gap: 16px; }
.coords li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.coords li svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.coords address { font-style: normal; }
.coords .addr-label { font-weight: 600; }
.coords .addr-lines { color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  text-align: center;
}
.site-footer__mark {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.site-footer__tagline {
  max-width: 460px; margin: 16px auto 0;
  color: var(--muted); font-size: 15px; line-height: 1.6;
}
.site-footer__legal {
  margin-top: 12px; color: var(--muted-2); font-size: 13.5px;
}
.site-footer__links {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 16px; font-size: 13.5px; color: var(--muted);
  flex-wrap: wrap;
}
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--green); }
.site-footer__links .current { color: var(--ink); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { padding: 80px 0 100px; }
.legal h1 { font-size: 38px; font-weight: 700; letter-spacing: -0.01em; }
.legal .updated { margin-top: 16px; color: var(--muted-2); font-size: 13.5px; }
.legal h2 { font-size: 19px; font-weight: 700; margin-top: 34px; }
.legal p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal ul li { list-style: disc; margin-top: 4px; }
.legal .intro { margin-top: 24px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .who-grid__item:nth-child(2n) { border-right: none; }
  .who-grid__item:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .who-grid__item:nth-child(n+5) { border-bottom: none; }
  .opps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { position: relative; }

  .site-header--open .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .site-header--open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .site-header--open .header-cta {
    display: inline-flex;
  }

  .who-grid { grid-template-columns: 1fr; }
  .who-grid__item { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .who-grid__item:last-child { border-bottom: none !important; }

  .opps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
}
