/* Caldeo — site vitrine | 2026-06-30 */

/* ===== VARIABLES ===== */
:root {
  --bleu-nuit:         #16243D;
  --bleu-acier:        #355C9A;
  --vert-profond:      #2F6B4F;
  --vert-profond-fonce:#275a43;
  --vert-pale:         #E8F0EB;
  --ivoire:            #F7F5F0;
  --blanc:             #FFFFFF;
  --encre:             #1E232A;
  --gris:              #5B626C;
  --gris-clair:        #E3E1DA;
  --laiton:            #B08D57;
  --vert-clair:        #6fae8d;
  --vert-clair-echo:   #9fd3b6;

  --content:  1120px;
  --r:        10px;
  --header-h: 76px;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== BASE ===== */
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--bleu-nuit);
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(52px, 8vw, 80px); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(27px, 4.4vw, 34px); letter-spacing: -0.005em; }
h3 { font-size: clamp(21px, 2.6vw, 24px); font-weight: 500; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--bleu-acier); text-decoration: none; }
a:hover { color: var(--bleu-nuit); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--bleu-acier);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ===== LAYOUT ===== */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: clamp(56px, 9vw, 104px); }

/* Scroll anchor offset for sticky header */
section[id] { scroll-margin-top: 88px; }

/* ===== UTILITIES ===== */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-profond);
  margin: 0 0 18px;
}
.eyebrow.steel { color: var(--bleu-acier); }

.lead { color: var(--gris); font-size: clamp(17px, 2vw, 19px); max-width: 60ch; }

.section-head { max-width: 64ch; }
.section-head h2 { margin-top: 4px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--bleu-nuit);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

/* ===== BRAND MOTIF (filet vert + point) ===== */
.motif {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 8px;
}
.motif::before, .motif::after {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--vert-profond);
  border-radius: 2px;
}
.motif i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vert-profond);
  margin-inline: 6px;
  display: block;
}

/* ===== LOGO ===== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--bleu-nuit);
}
.logo:hover { text-decoration: none; color: var(--bleu-nuit); }
.logo-img { height: 34px; width: auto; display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary   { background: var(--vert-profond); color: #fff; border-color: var(--vert-profond); }
.btn-primary:hover { background: var(--vert-profond-fonce); border-color: var(--vert-profond-fonce); color: #fff; }

.btn-secondary { background: transparent; color: var(--bleu-nuit); border-color: var(--gris-clair); }
.btn-secondary:hover { color: var(--bleu-nuit); border-color: var(--gris); background: var(--blanc); }

.btn-ink       { background: var(--bleu-nuit); color: #fff; border-color: var(--bleu-nuit); }
.btn-ink:hover { background: #0f1a2e; border-color: #0f1a2e; color: #fff; }

.btn-ghost-white { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.45); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); color: var(--blanc); border-color: rgba(255,255,255,.75); }

.btn-sm { padding: 11px 18px; font-size: 15px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--blanc) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--gris-clair);
  background: color-mix(in srgb, var(--blanc) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a { color: var(--bleu-nuit); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--bleu-acier); text-decoration: none; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  margin-right: 20px;
}
.lang-switch a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gris);
  padding: 4px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.lang-switch a:hover { color: var(--bleu-nuit); background: var(--blanc); }
.lang-switch a[aria-current="page"] { color: var(--bleu-nuit); background: var(--blanc); }
.lang-switch .sep { color: var(--gris-clair); font-size: 11px; user-select: none; }

.menu-toggle { display: none; }

/* ===== HERO ===== */
.hero {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
  background: linear-gradient(155deg, var(--bleu-nuit) 0%, #1c3150 100%);
}

.hero-headline { margin-top: 6px; max-width: 20ch; }
.hero-headline span { display: block; }
.hero-headline em { font-style: normal; color: var(--vert-clair); }

.hero .eyebrow { color: rgba(232,240,235,.8); }
.hero h1 { color: var(--blanc); }

.hero .subtitle {
  margin-top: 24px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: rgba(255,255,255,.72);
  max-width: 58ch;
  line-height: 1.55;
}
.reassurance {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  color: rgba(255,255,255,.65);
  font-size: 15.5px;
  font-weight: 500;
}
.reassurance .motif { flex: none; }
.hero .motif::before, .hero .motif::after { background: rgba(255,255,255,.3); }
.hero .motif i { background: var(--vert-clair); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ===== LE PROBLÈME ===== */
.probleme { background: var(--vert-pale); }
.probleme .body {
  margin-top: 26px;
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.62;
  color: var(--encre);
  max-width: 56ch;
}

/* ===== CARDS (Ce que fait Caldeo / Pour les repreneurs) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: 14px;
  padding: 32px 30px;
  transition: border-color .18s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .18s ease, transform .18s ease; }
  .card:hover { border-color: color-mix(in srgb, var(--vert-profond) 40%, var(--gris-clair)); transform: translateY(-2px); }
}
.card .motif { margin-bottom: 22px; }
.card h3 { color: var(--bleu-nuit); }
.card p { margin-top: 12px; color: var(--gris); font-size: 16px; }

/* ===== DÉMARCHE (steps) ===== */
.demarche { background: var(--vert-pale); }
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--vert-profond);
}
.step .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  color: var(--vert-profond);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step p { color: var(--encre); font-size: 16.5px; }

/* ===== PREUVES ===== */
.preuves { background: var(--ivoire); }
.preuves-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.preuve {
  padding: 30px;
  border: 1px solid var(--gris-clair);
  border-radius: 14px;
  background: var(--ivoire);
}
.preuve .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-profond);
  margin-bottom: 14px;
}
.preuve p { color: var(--encre); font-size: 16.5px; }

/* ===== TROIS PORTES ===== */
.portes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.porte {
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
.porte-audience {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 16px;
  min-height: 3.5em;
}
.porte h3 { }
.porte p { margin-top: 14px; font-size: 16.5px; line-height: 1.62; flex: 1; }
.porte .btn { margin-top: 28px; align-self: flex-start; }

/* Porte 1 — Praticiens : navy */
.porte--praticiens { background: var(--bleu-nuit); }
.porte--praticiens .porte-audience { color: rgba(255,255,255,.5); }
.porte--praticiens h3 { color: var(--blanc); }
.porte--praticiens p { color: rgba(255,255,255,.78); }

/* Porte 2 — Dirigeants en anticipation : vert pâle + bordure verte */
.porte--anticipation {
  background: var(--vert-pale);
  border-left: 4px solid var(--vert-profond);
  padding-left: 28px;
}
.porte--anticipation .porte-audience { color: var(--vert-profond); }
.porte--anticipation h3 { color: var(--bleu-nuit); }
.porte--anticipation p { color: var(--encre); }

/* Porte 3 — Repreneurs : blanc */
.porte--repreneurs {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
}
.porte--repreneurs .porte-audience { color: var(--bleu-acier); }
.porte--repreneurs h3 { color: var(--bleu-nuit); }
.porte--repreneurs p { color: var(--gris); }

/* ===== SECTION REPRENEURS ===== */
.repreneurs { background: var(--vert-pale); }
.repreneurs-cta { margin-top: 40px; }

/* ===== SECTION CAPTURE ===== */
.capture { background: var(--bleu-nuit); color: var(--blanc); }
.capture .motif::before,
.capture .motif::after { background: var(--vert-clair); }
.capture .motif i { background: var(--vert-clair); }

.capture-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

.capture-pitch { padding-top: 6px; }
.capture-pitch .motif { margin-bottom: 22px; }
.capture-pitch h2 { color: var(--blanc); }
.capture-pitch .sub {
  margin-top: 18px;
  color: color-mix(in srgb, #fff 78%, var(--bleu-nuit));
  font-size: 17.5px;
  line-height: 1.6;
  max-width: 40ch;
}
.capture-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.capture-points li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: color-mix(in srgb, #fff 88%, var(--bleu-nuit));
  font-size: 15.5px;
  line-height: 1.5;
}
.capture-points .ck {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vert-clair) 24%, transparent);
  display: grid;
  place-items: center;
}
.capture-points .ck svg { width: 12px; height: 12px; display: block; }
.capture-points .ck path { stroke: var(--vert-clair-echo); }

.capture-embed {
  background: var(--blanc);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.55);
}
.capture-embed iframe {
  width: 100%;
  height: 980px;
  border: 0;
  display: block;
  border-radius: 12px;
  background: var(--blanc);
}
.embed-fallback { margin: 10px 6px 2px; font-size: 13px; color: var(--gris); text-align: center; }
.embed-fallback a { color: var(--vert-profond); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ivoire);
  border-top: 1px solid var(--gris-clair);
  padding-block: 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand .logo { align-items: center; }
.footer-signature {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}
.footer-brand .place { margin-top: 8px; color: var(--gris); font-size: 15px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  align-items: center;
}
.footer-links a { color: var(--bleu-nuit); font-weight: 500; }
.footer-links .soon { color: var(--gris-clair); font-size: 14px; }
.footer-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gris-clair);
  color: var(--gris);
  font-size: 13.5px;
  max-width: 70ch;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .cards, .steps, .preuves-grid { grid-template-columns: 1fr 1fr; }
  .portes-grid { grid-template-columns: 1fr; }
  .capture-layout { grid-template-columns: 1fr; gap: 40px; }
  .capture-pitch .sub, .capture-pitch h2 { max-width: none; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .lang-switch { margin-left: auto; margin-right: 0; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    background: none;
    border: 1.5px solid var(--gris-clair);
    border-radius: 8px;
    padding: 9px 14px;
    font: 500 14px var(--sans);
    color: var(--bleu-nuit);
    cursor: pointer;
    touch-action: manipulation;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 24px 18px;
    background: var(--ivoire);
    border-bottom: 1px solid var(--gris-clair);
    z-index: 99;
  }
  .nav.open a { padding: 10px 0; width: 100%; }
  .cards, .steps, .preuves-grid, .portes-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}
