/* Modèle Colligo « Cabinet » — direction écran partagé : colonne fixe à gauche, chapitres à droite.
   Pour un client : changer les couleurs ci-dessous. */
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-normal-300_700.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --ivory: #f5f2ec;
  --sand: #e9e3d7;
  --ink: #12211e;
  --green: #1e5a4c;
  --green-2: #2c7a66;
  --muted: #5e6b67;
  --line: rgba(18, 33, 30, .14);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: clamp(18px, 3vw, 48px);
  --hdr: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--green); color: var(--ivory); }

.demo { background: var(--ink); color: var(--ivory); text-align: center; font-size: 13px; padding: 7px 16px; }
.demo a { color: var(--ivory); }

/* En-tête */
.hdr { position: sticky; top: 0; z-index: 20; height: var(--hdr); display: flex; align-items: center; gap: 32px; padding: 0 var(--gut);
  background: rgba(245, 242, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 30px; text-decoration: none; line-height: 1; display: flex; align-items: baseline; gap: 14px; margin-right: auto; }
.logo span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.hdr__cta { text-decoration: none; font-size: 14.5px; font-weight: 500; background: var(--green); color: var(--ivory); padding: 10px 18px; border-radius: 6px; }
.hdr__cta:hover { background: var(--ink); }
.menu { display: none; background: none; border: 1px solid var(--ink); border-radius: 6px; padding: 7px 14px; font-size: 14px; cursor: pointer; }

/* Boutons */
.btn { display: inline-block; text-decoration: none; background: var(--green); color: var(--ivory); border: 0; border-radius: 6px; padding: 15px 22px;
  font-size: 15.5px; font-weight: 500; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--ink); }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Écran partagé */
.split { display: grid; grid-template-columns: 5fr 7fr; }
.pin { border-right: 1px solid var(--line); }
.pin__in { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px) var(--gut); }
.pin__n { font-size: 13px; color: var(--muted); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.pin__title { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: .98; margin: 0 0 32px; letter-spacing: -.01em; transition: opacity .3s, transform .3s; }
.pin__title em { color: var(--green); }
.pin__title.is-out { opacity: 0; transform: translateY(8px); }
.pin__chapters { list-style: none; padding: 0; margin: auto 0 22px; display: grid; gap: 4px; font-size: 13.5px; counter-reset: c; }
.pin__chapters li { counter-increment: c; color: var(--muted); display: flex; gap: 12px; align-items: center; transition: color .25s; }
.pin__chapters li::before { content: "0" counter(c); font-variant-numeric: tabular-nums; width: 1.6em; }
.pin__chapters li::after { content: ""; flex: 0 0 0; height: 1px; background: var(--ink); transition: flex-basis .4s; }
.pin__chapters li.is-on { color: var(--ink); }
.pin__chapters li.is-on::after { flex-basis: 48px; }
.pin__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; filter: saturate(.9); }

.flow { min-width: 0; }
.chap { padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 88px); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13.5px; color: var(--green); font-weight: 500; margin: 0 0 18px; }
.chap h1 { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; }
.chap h1 em { color: var(--green); }
.chap h2 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; margin: 22px 0; }
.lead--sm { font-size: 1rem; margin-top: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 30px 0 22px; }
.proof { font-size: 13.5px; color: var(--muted); margin: 0; }
.proof b { color: var(--ink); }

/* Méthode */
.timeline { list-style: none; margin: 28px 0 36px; padding: 0; border-left: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 9.5em 1fr; gap: 18px; padding: 0 0 26px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--ink); }
.timeline li:first-child::before { background: var(--green); border-color: var(--green); }
.timeline__when { font-size: 13px; color: var(--green); font-weight: 600; padding-top: 2px; }
.timeline h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
.inline-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }

/* Simulateur */
.sim fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.sim legend { font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; }
.sim legend output { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--green); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: #fff; transition: all .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }
.chips input:disabled + span { opacity: .35; cursor: not-allowed; }
input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; }
.scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--sand); }
.stepper output { min-width: 40px; text-align: center; font-family: var(--serif); font-size: 1.5rem; }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 15px; }
.opt input { width: 18px; height: 18px; accent-color: var(--green); }
.opt small { color: var(--muted); margin-left: auto; }
.quote { background: var(--ink); color: var(--ivory); padding: clamp(22px, 3vw, 36px); border-radius: 6px; margin-top: 8px; }
.quote__label { margin: 0; font-size: 13px; color: #9fb3ac; text-transform: uppercase; letter-spacing: .08em; }
.quote__price { margin: 6px 0 2px; font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.quote__price small { font-family: var(--sans); font-size: 15px; color: #9fb3ac; }
.quote__year { margin: 0 0 18px; font-size: 14px; color: #9fb3ac; }
.quote__incl { list-style: none; padding: 16px 0 0; margin: 0 0 20px; border-top: 1px solid #2c3d39; display: grid; gap: 6px; font-size: 14.5px; }
.quote__incl li::before { content: "✓"; color: #7fd3b6; margin-right: 10px; }
.quote__warn { background: #2c3d39; padding: 10px 12px; border-radius: 4px; font-size: 14px; margin: 0 0 18px; }
.quote .btn { background: var(--ivory); color: var(--ink); }
.quote .btn:hover { background: #fff; }
.quote__proof { margin: 16px 0 0; font-size: 13.5px; color: #9fb3ac; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* Équipe */
.team { list-style: none; padding: 0; margin: 24px 0 44px; }
.team li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.team__ini { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--green); font-weight: 600; font-size: 14px; }
.team h3 { font-size: 18px; font-weight: 600; }
.team__role { margin: 0 0 6px; color: var(--green); font-size: 14px; }
.team li p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.faq h3 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Rendez-vous */
.slots { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.slots__label { margin: 0 0 10px; font-weight: 600; font-size: 14px; }
.slots .chips { margin-bottom: 20px; }
.slots .chips span { background: var(--ivory); }
.slots .chips span small { display: block; font-size: 12px; color: var(--muted); }
.slots .chips input:checked + span small { color: #b9c9c3; }
.slots__summary { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.slots__summary.is-set { font-weight: 600; color: var(--green); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green-2); outline-offset: 0; border-color: transparent; }
.form .full { grid-column: 1 / -1; }
.form .check { flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form .btn { justify-self: start; }
.form__micro { margin: 0; font-size: 13px; color: var(--muted); }
.form__demo { grid-column: 1 / -1; margin: 0; padding: 12px 14px; background: var(--sand); border-radius: 6px; font-size: 14.5px; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.ftr { background: var(--ink); color: #c8d3cf; padding: clamp(40px, 6vw, 80px) var(--gut) 28px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 28px; }
.ftr__grid > * { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ftr__grid p { margin: 0; }
.ftr__grid nav p { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: #84958f; margin-bottom: 4px; }
.ftr__logo { font-family: var(--serif); font-size: 2.6rem; color: var(--ivory); line-height: 1; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__small { margin: 40px 0 0; font-size: 12.5px; color: #84958f; }

/* Pages secondaires */
.merci { min-height: 100vh; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; }
.merci h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.merci .btn { justify-self: center; }
.section { padding: 64px 0; }
.wrap { width: min(1100px, 100% - 2 * var(--gut)); margin: 0 auto; }
.legal { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-size: 3rem; margin-bottom: .5em; }
.legal h2 { font-family: var(--serif); font-size: 1.6rem; margin-top: 1.4em; }

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .pin { display: none; }
  .chap { padding-left: var(--gut); padding-right: var(--gut); }
  .chap::before { content: attr(data-n); display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .logo span { display: none; }
  .hdr { gap: 12px; }
  .hdr__cta { padding: 9px 12px; font-size: 13.5px; }
  .menu { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); flex-direction: column; gap: 0; padding: 6px var(--gut) 18px;
    border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { font-family: var(--serif); font-size: 2rem; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hdr__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
