/* ===== Early RH — feuille de style globale ===== */

:root {
  --cream: #f9f3ec;
  --cream-card: #fffdf9;
  --dark: #192b3b;
  --green: #87c7b0;
  --orange: #fe6c3c;
  --orange-light: #ffa44a;
  --yellow: #f4bf56;
  --text: #192b3b;
  --muted: #5c6b78;
  --maxw: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
/* Fonds de section (alternance) */
.section--card { background: var(--cream-card); }
.section--green-soft { background: rgba(135,199,176,.16); }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { font-size: 1.05rem; }
.lead { font-size: 1.2rem; color: #38505f; max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(254,108,60,.28);
}
.btn-primary:hover { background: #ed5b2b; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(25,43,59,.2);
}
.btn-ghost:hover { border-color: var(--dark); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

.reassure { font-size: .9rem; color: #5c6b78; margin-top: 14px; }

.hero-proof {
  display: block;
  width: fit-content;
  margin: 26px auto 30px;
  text-align: center;
  background: rgba(135,199,176,.14);
  border: 1px solid rgba(135,199,176,.34);
  color: #d7efe6;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
}
.hero-proof strong { color: #fff; font-weight: 800; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249,243,236,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25,43,59,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.logo .rh { color: var(--green); }
.logo-img { height: 32px; width: auto; display: block; }
.portrait-img { width: 100%; border-radius: var(--radius); display: block; }
.partner-logo { height: 40px; width: auto; opacity: .9; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; color: #38505f; transition: color .15s; }
.nav a:hover { color: var(--dark); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--dark); }

/* ===== Hero ===== */
.hero {
  background: var(--dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero .eyebrow { color: var(--green); }
.hero h1 { color: #fff; max-width: 880px; }
.hero p { color: #c7d2da; max-width: 640px; margin-top: 22px; }
.hero .btn-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-rings {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  opacity: .18;
  pointer-events: none;
}

/* ===== Sections génériques ===== */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.card {
  background: var(--cream-card);
  border: 1px solid rgba(25,43,59,.07);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(25,43,59,.04);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1rem; color: #415866; }
.card .num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  display: inline-block;
}

/* liste "pour qui" */
.checklist { list-style: none; display: grid; gap: 16px; }
.checklist li {
  display: flex;
  gap: 14px;
  font-size: 1.1rem;
  background: var(--cream-card);
  border: 1px solid rgba(25,43,59,.07);
  border-radius: 14px;
  padding: 18px 20px;
}
.checklist li::before { content: "✓"; color: var(--green); font-weight: 800; font-size: 1.2rem; }

.callout {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 34px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}
.callout .hl { color: var(--green); }

.banner-soft {
  background: rgba(135,199,176,.16);
  border-radius: 14px;
  padding: 18px 22px;
  font-weight: 600;
  text-align: center;
  color: #1f3a44;
}

/* stats */
.stat { text-align: center; padding: 34px 20px; border-radius: var(--radius); color: var(--dark); }
.stat .num { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-weight: 500; }
.stat--orange { background: var(--orange-light); }
.stat--green { background: var(--green); }
.stat--dark { background: var(--dark); color: #fff; }

.logos {
  display: flex; flex-wrap: wrap; gap: 16px 34px;
  align-items: center; justify-content: center;
  margin-top: 36px;
}
.logos span { font-weight: 600; color: #6b7884; font-size: 1.05rem; }

/* Mur de logos "Références clients" */
.logos-label { text-align: center; margin-top: 48px; font-weight: 600; color: #6b7884; }
.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.client-logo {
  background: #fff;
  border: 1px solid rgba(25,43,59,.08);
  border-radius: 12px;
  height: 78px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 18px;
}
.client-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* offre block */
.offer { scroll-margin-top: 90px; padding: 40px; border-radius: var(--radius); background: var(--cream-card); border: 1px solid rgba(25,43,59,.08); }
.offer + .offer { margin-top: 28px; }
.offer .tag {
  display: inline-block; font-size: .8rem; font-weight: 600;
  background: rgba(254,108,60,.12); color: var(--orange);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.offer h2 { margin-bottom: 8px; }
.offer .accroche { font-size: 1.2rem; font-weight: 600; color: #1f3a44; margin-bottom: 20px; }
.offer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7884; margin: 20px 0 8px; }
.offer ul { padding-left: 20px; }
.offer ul li { margin-bottom: 6px; }
.offer .pec { background: rgba(244,191,86,.18); border-radius: 12px; padding: 14px 18px; margin-top: 18px; font-weight: 600; }
.offer .usecase { border-left: 3px solid var(--green); padding-left: 18px; margin-top: 18px; font-style: italic; color: #41586a; }
.offer .btn { margin-top: 24px; }

/* about */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.portrait {
  background: var(--green); border-radius: var(--radius);
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  color: #19452f; font-weight: 600; text-align: center; padding: 20px;
}

/* FAQ */
.faq details {
  background: var(--cream-card);
  border: 1px solid rgba(25,43,59,.08);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.1rem;
  padding: 18px 0; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { padding-bottom: 8px; }
.faq p { color: #41586a; padding-bottom: 20px; }

/* ===== Article ===== */
.article { max-width: 760px; margin: 0 auto; }
.article .article-meta { color: #6b7884; font-size: .92rem; margin-bottom: 28px; }
.article h1 { margin-bottom: 24px; }
.article h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: #2b3f4d; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; color: #2b3f4d; }
.article a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article strong { color: var(--dark); }
.article hr { border: none; border-top: 1px solid rgba(25,43,59,.12); margin: 36px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .98rem; }
.article table td { border: 1px solid rgba(25,43,59,.14); padding: 10px 14px; text-align: left; }
.article table tr:first-child td { background: var(--dark); color: #fff; font-weight: 600; }
.article-cta { background: rgba(135,199,176,.16); border-radius: 16px; padding: 28px 30px; margin: 36px 0; text-align: center; }
.article-cta p { margin-bottom: 16px; font-weight: 600; font-size: 1.1rem; color: var(--dark); }
.article-faq { margin-top: 8px; }
.article-back { display: inline-block; margin-bottom: 24px; color: #6b7884; font-weight: 600; }

/* cartes ressources */
.res-card { display: block; background: #fff; border: 1px solid rgba(25,43,59,.12); border-radius: var(--radius); padding: 30px; box-shadow: 0 2px 14px rgba(25,43,59,.06); transition: transform .15s, box-shadow .15s, border-color .15s; }
.res-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(25,43,59,.12); border-color: rgba(254,108,60,.4); }
.res-card .kw { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--orange); }
.res-card h3 { margin: 8px 0 10px; }
.res-card p { font-size: .98rem; color: #415866; }
.res-card .more { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 600; }

/* CTA final */
.cta-final {
  background: var(--dark);
  color: #fff;
  border-radius: 26px;
  text-align: center;
  padding: 64px 32px;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #c7d2da; max-width: 560px; margin: 16px auto 30px; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #c7d2da; padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr auto; gap: 48px; align-items: start; }
.site-footer .logo { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8497a3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ===== Comment ça se passe (étapes) ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: var(--cream-card);
  border: 1px solid rgba(25,43,59,.07);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(25,43,59,.04);
}
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--green); color: var(--dark);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .98rem; color: #415866; }
.step .ref-link { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--orange); }

/* ===== Témoignages clients ===== */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tcard {
  background: var(--cream-card);
  border: 1px solid rgba(25,43,59,.07);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(25,43,59,.04);
  display: flex; flex-direction: column;
}
.tcard .logo-ref { height: auto; width: auto; max-height: 38px; max-width: 150px; margin-bottom: 20px; opacity: .95; object-fit: contain; }
.tcard .quote { font-size: 1.02rem; color: #2c3f4d; margin-bottom: 20px; }
.tcard .quote strong { color: var(--dark); font-weight: 700; }
.tcard .who { margin-top: auto; font-weight: 700; color: #2f8268; }
.tcard .who span { color: #6b7884; font-weight: 400; }
.tcard--cta { background: var(--dark); justify-content: center; align-items: flex-start; }
.tcard--cta p { color: #d7e0e6; font-size: 1.18rem; font-weight: 600; margin-bottom: 22px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .steps, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); padding: 24px;
    border-bottom: 1px solid rgba(25,43,59,.1);
  }
  .menu-toggle { display: block; }
  .offer { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
}
