/* ===== KEOJE — charte graphique =====
   Noir & blanc élégants, accents issus du logo :
   vert #8CC63F · magenta #E6007E · bleu #29ABE2       */

:root {
  --black: #14161a;
  --ink: #2b2e34;
  --grey: #5c6066;
  --light: #f5f5f6;
  --white: #ffffff;
  --green: #8CC63F;
  --pink: #E6007E;
  --blue: #29ABE2;
  --header-h: 72px;
  --radius: 6px;
  --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 40px; width: 40px; }
.brand-name {
  font-weight: 600;
  letter-spacing: 0.42em;
  font-size: 1.05rem;
  padding-left: 0.42em; /* compense le tracking sur la dernière lettre */
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 2px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--black);
  transition: right var(--transition);
}
.site-nav a:hover::after { right: 0; }
.site-nav .nav-cta {
  border: 1.5px solid var(--black);
  border-radius: 100px;
  padding: 8px 22px;
  transition: background var(--transition), color var(--transition);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--black); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  margin: 5px auto;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: transparent; border-color: var(--black); color: var(--black); }
.btn-light { background: rgba(255,255,255,0.75); color: var(--black); backdrop-filter: blur(4px); }
.btn-light:hover { background: var(--white); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-full { width: 100%; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 60%);
  overflow: hidden;
  text-align: center;
  padding: calc(var(--header-h) + 24px) 6% 80px;
}

.hero-bars {
  position: absolute;
  right: clamp(4%, 8vw, 12%);
  top: 0;
  bottom: 0;
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
  opacity: 0.9;
  pointer-events: none;
}
.hero-bars .bar {
  width: 6px;
  border-radius: 6px;
  animation: barGrow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top;
}
.bar-green { background: var(--green); margin-top: 8vh; height: 62vh; }
.bar-pink  { background: var(--pink);  margin-top: 22vh; height: 48vh; animation-delay: 0.15s; }
.bar-blue  { background: var(--blue);  margin-top: 34vh; height: 36vh; animation-delay: 0.3s; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero-content { max-width: 860px; position: relative; }
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 22px;
  animation: fadeUp 0.9s 0.1s both;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  animation: fadeUp 0.9s 0.25s both;
}
.hero-sub {
  margin: 26px auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--ink);
  animation: fadeUp 0.9s 0.4s both;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.55s both;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--grey);
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section { padding: clamp(90px, 12vh, 140px) 0; }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}
.tick {
  display: inline-block;
  width: 4px; height: 26px;
  border-radius: 4px;
}
.tick-green { background: var(--green); }
.tick-pink { background: var(--pink); }
.tick-blue { background: var(--blue); }

.section h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-lead {
  margin-top: 24px;
  max-width: 700px;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--grey);
}

.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-kicker { color: rgba(255,255,255,0.55); }
.section-dark .section-lead { color: rgba(255,255,255,0.65); }

/* ===== Étapes (approche) ===== */
.steps {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.step { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 26px; }
.step-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.45);
}
.step h3 { margin: 14px 0 10px; font-size: 1.15rem; font-weight: 600; }
.step p { font-size: 0.95rem; font-weight: 300; color: rgba(255,255,255,0.65); }

/* ===== Cartes engagements ===== */
.cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.card {
  background: var(--light);
  border-radius: 14px;
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.1);
}
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--white);
  margin-bottom: 22px;
}
.tag-green { background: var(--green); }
.tag-blue { background: var(--blue); }
.tag-pink { background: var(--pink); }
.card h3 { font-size: 1.8rem; font-weight: 600; letter-spacing: 0.02em; }
.card-desc { margin-top: 14px; font-weight: 300; color: var(--grey); }
.card ul { margin: 26px 0 34px; list-style: none; flex: 1; }
.card li {
  padding: 10px 0 10px 26px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(20, 22, 26, 0.07);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 2px;
  background: var(--black);
}

/* ===== Expertises ===== */
.roles {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}
.role {
  background: var(--black);
  padding: clamp(28px, 3.5vw, 46px);
  transition: background var(--transition);
}
.role:hover { background: #1d2026; }
.role h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.role p { font-size: 0.92rem; font-weight: 300; color: rgba(255,255,255,0.6); }

/* ===== Citation dans l'approche ===== */
.approche-quote {
  margin-top: 70px;
  max-width: 620px;
  padding-left: 26px;
  border-left: 3px solid var(--green);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Slogan ===== */
.section-quote { background: var(--light); text-align: center; }
.section-quote blockquote {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto;
}
.section-quote em { font-style: italic; font-weight: 500; }
.quote-bars {
  display: inline-flex;
  gap: 14px;
  margin-top: 38px;
}
.quote-bars .tick { height: 34px; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-info { margin-top: 36px; }
.contact-info a {
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 2px solid var(--green);
  padding-bottom: 3px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--black);
  background: var(--light);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--black);
  background: var(--white);
}
.contact-form textarea { resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 34px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 20px; align-items: flex-start; max-width: 480px; }
.footer-mark {
  height: 64px; width: 64px;
  border-radius: 10px;
}
.footer-brand p { font-size: 0.92rem; font-weight: 300; }
.footer-slogan { color: rgba(255, 255, 255, 0.45); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bars { display: flex; gap: 6px; }
.footer-bars .tick { height: 18px; }

/* ===== Reveal au scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .only-desktop { display: none; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-130%);
    transition: transform var(--transition);
  }
  .site-nav.open { transform: translateY(0); }
  .site-header { background: rgba(255,255,255,0.95); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .hero-bars { right: 5%; gap: 8px; opacity: 0.28; }
  .hero-bars .bar { width: 4px; }
  .hero h1 br { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
