/* ── Pitch Stäubli · Michaël Lapiam ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --teal:        #1F6F7E;
  --teal-dark:   #154E59;
  --cyan:        #3DA3B8;
  --cyan-soft:   #E8F3F6;
  --ink:         #1d1d1f;
  --sub:         #6e6e73;
  --light:       #F4F5F6;
  --border:      #e3e5e7;
  --white:       #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .2px;
}
.nav-logo span { color: var(--ink); font-weight: 400; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  text-decoration: none;
  letter-spacing: .2px;
  transition: color .2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-logout {
  font-size: 11px;
  color: var(--sub);
  background: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.nav-logout:hover { color: var(--teal); border-color: var(--teal); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1F6F7E 0%, #154E59 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 48px 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(61,163,184,0.35) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(61,163,184,0.15) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
  max-width: 900px;
}
.hero h1 strong {
  font-weight: 600;
  background: linear-gradient(90deg, #fff 0%, #3DA3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin-bottom: 44px;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.hero-meta b { color: #fff; font-weight: 500; }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

/* ── SECTIONS ── */
section.s {
  padding: 110px 48px;
  border-bottom: 1px solid var(--border);
}
section.s.grey { background: var(--light); }
.s-inner { max-width: 1100px; margin: 0 auto; }

.s-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.s-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--ink);
  max-width: 800px;
}
.s-title em {
  font-style: normal;
  color: var(--teal);
  font-weight: 600;
}
.s-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--sub);
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 56px;
}

/* ── LECTURE DU POSTE ── */
.lecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lecture-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 24px 26px;
}
.lecture-card .lc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.lecture-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.lecture-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--sub);
  line-height: 1.65;
}

/* ── PLAN 100 JOURS ── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.plan-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.3px;
  margin-bottom: 14px;
  color: var(--ink);
}
.plan-card ul {
  list-style: none;
  flex: 1;
}
.plan-card ul li {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--sub);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.plan-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

/* ── CHANTIERS 12 MOIS ── */
.chantiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chantier {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: start;
  transition: border-color .3s, box-shadow .3s;
}
.chantier:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(31,111,126,0.08);
}
.chantier-num {
  font-size: 36px;
  font-weight: 200;
  color: var(--cyan);
  letter-spacing: -1px;
  line-height: 1;
}
.chantier-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.3px;
  margin-bottom: 8px;
  color: var(--ink);
}
.chantier-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--sub);
  line-height: 1.65;
  margin-bottom: 14px;
}
.chantier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chantier-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--cyan-soft);
  color: var(--teal);
  border: 1px solid rgba(61,163,184,0.25);
}
.chantier-tag.differ {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.chantier-impact {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── KPIs VERISURE ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.kpi-card {
  background: var(--white);
  padding: 38px 22px;
  text-align: center;
}
.kpi-num {
  font-size: 42px;
  font-weight: 200;
  letter-spacing: -1.5px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}
.kpi-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
}

/* ── HONNÊTETÉ ── */
.honnete-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.honnete-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.honnete-card .h-gap {
  border-right: 1px solid var(--border);
  padding-right: 20px;
}
.h-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.h-label.gap { color: #b45309; }
.h-label.plan { color: var(--teal); }
.honnete-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.honnete-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--sub);
  line-height: 1.55;
}

/* ── QUESTIONS ── */
.questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.question {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
}
.question b { color: var(--teal); font-weight: 600; }

/* ── CONTACT ── */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-block .c-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 10px;
}
.contact-block .c-value {
  font-size: 18px;
  font-weight: 400;
  color: var(--teal);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.contact-block .c-value:hover { color: var(--cyan); }
.contact-block .c-sub {
  font-size: 12px;
  color: var(--sub);
}

/* ── FOOTER ── */
footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.5);
  padding: 30px 32px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .3px;
}

/* ── MODALE PROJETS ── */
.chantier.clickable {
  cursor: pointer;
  position: relative;
}
.chantier.clickable::after {
  content: '↗';
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 16px;
  color: var(--cyan);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.chantier.clickable:hover::after {
  opacity: 1;
  transform: translate(3px, -3px);
}

.projet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity .25s ease;
}
.projet-modal.open {
  display: flex;
  opacity: 1;
}
.projet-modal-card {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  height: calc(100vh - 64px);
  max-height: 1100px;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px);
  transition: transform .25s ease;
}
.projet-modal.open .projet-modal-card { transform: translateY(0); }
.projet-modal-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--light);
}
.projet-modal-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
}
.projet-modal-close {
  font-family: inherit;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.projet-modal-close:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.projet-modal-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--white);
}
body.projet-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .projet-modal { padding: 0; }
  .projet-modal-card { height: 100vh; max-height: 100vh; border-radius: 0; }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  nav { padding: 0 18px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  section.s { padding: 72px 24px; }
  .lecture-grid,
  .plan-grid,
  .kpi-grid,
  .honnete-grid,
  .contact-card { grid-template-columns: 1fr; }
  .plan-grid, .kpi-grid { gap: 1px; }
  .chantier { grid-template-columns: 1fr; gap: 12px; }
  .chantier-num { font-size: 28px; }
  .chantier-impact { justify-self: start; }
  .honnete-card { grid-template-columns: 1fr; }
  .honnete-card .h-gap { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 18px; }
}
