/* Shift CFO — feuille de style commune du site */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/kalam-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/kalam-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1F3A; --jade: #00875A; --jade-dark: #006B47; --jade-soft: #E3F3EC; --emerald: #10B981;
  --ground: #F3F5F8; --white: #FFFFFF; --slate: #475467; --body: #344054; --mist: #C9D1DC; --line: #DCE1E8; --grid: #DDE1E7;
  --labo: #2F6BFF; --warn: #9A5B00; --warn-soft: #FDF1DC;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --hand: "Kalam", "Comic Sans MS", cursive;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--jade); }
a:hover { color: var(--jade-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hand { font-family: var(--hand); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.dots { background-color: var(--white); background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.section { padding-block: clamp(64px, 9vw, 96px); }
.section-ground { background: var(--ground); }
.stack { display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.h1 { font-size: clamp(38px, 6.2vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.h2 { font-size: clamp(32px, 4.6vw, 44px); line-height: 1.15; font-weight: 700; }
.lead { margin: 0; font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--body); }
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: -4px; bottom: -16px; width: 100%; height: 18px; overflow: visible; }

/* Logo */
.logo { text-decoration: none; color: var(--navy); display: inline-flex; align-items: flex-start; gap: 3px; letter-spacing: -0.025em; }
.logo .w { font-size: 30px; line-height: 1; display: flex; align-items: center; font-weight: 700; }
.logo .b { font-family: var(--mono); font-weight: 300; color: var(--jade); }
.logo .w > span:nth-child(2) { padding: 0 1px; }
.logo .c { font-size: 15px; font-weight: 700; line-height: 1; margin-top: 3px; }
.logo:hover { color: var(--navy); }
.logo-dark { color: var(--white); }
.logo-dark .b { color: var(--emerald); }
.logo-dark .w { font-size: 24px; }
.logo-dark .c { font-size: 12px; margin-top: 2px; }

/* Touches */
.key-shift { display: inline-flex; align-items: center; gap: 8px; background: var(--jade); color: var(--white); border: 3px solid var(--navy); border-bottom-width: 9px; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 24px; line-height: 1; }
.key-shift svg { width: .8em; height: .8em; flex: none; }
.key-shift.xl { gap: 12px; border-bottom-width: 12px; border-radius: 16px; padding: 14px 24px; font-size: clamp(28px, 4vw, 34px); }
.key-shift.sm { gap: 6px; border-width: 2px; border-bottom-width: 6px; border-radius: 9px; padding: 7px 12px; font-size: 17px; }
.key { display: inline-flex; align-items: center; background: var(--white); border: 3px solid var(--navy); border-bottom-width: 9px; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 24px; line-height: 1; }
.key.sm { border-width: 2px; border-bottom-width: 6px; border-radius: 9px; padding: 7px 12px; font-size: 17px; }
.key-f12 { flex: none; background: var(--navy); color: var(--white); border-bottom: 6px solid var(--jade); border-radius: 9px; padding: 8px 13px; font-family: var(--mono); font-weight: 700; font-size: 19px; line-height: 1.2; }
.key-f12.xs { border-bottom-width: 3px; border-radius: 5px; padding: 2px 6px; font-size: 12px; }
.key-f12.xl { border-bottom-width: 10px; border-radius: 14px; padding: 12px 20px; font-size: 32px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 8px; padding: 14px 24px; font-weight: 600; font-size: 17px; line-height: 1.2; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--jade); color: var(--white); border-color: var(--jade); }
.btn-primary:hover { background: var(--jade-dark); border-color: var(--jade-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--navy); font-weight: 500; }
.btn-ghost:hover { background: var(--ground); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { color: var(--white); background: #13305a; }
.btn-emerald { background: var(--emerald); color: var(--navy); border-color: var(--emerald); font-weight: 700; font-size: 18px; padding: 16px 28px; }
.btn-emerald:hover { color: var(--navy); background: #34d399; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { max-width: 1360px; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.site-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { padding: 7px 11px; border-radius: 999px; transition: background-color .3s, color .3s; }
.site-nav a.is-active:not(.btn) { background: var(--jade-soft); color: var(--jade); }
.site-nav a.is-active .soon span { background: var(--white); }
.site-nav .soon { color: var(--jade); font-weight: 700; margin-left: 1px; }
.site-nav .soon span { margin-left: 5px; font-size: 11px; font-weight: 600; color: var(--slate); background: var(--ground); border-radius: 999px; padding: 2px 7px; vertical-align: 2px; }
section[id], main [id] { scroll-margin-top: 84px; }
.site-nav a { text-decoration: none; color: var(--navy); }
.site-nav a:hover { color: var(--jade); }
.site-nav a.btn-navy, .site-nav a.btn-navy:hover { color: var(--white); }
.site-nav .f12-link { display: inline-flex; align-items: center; gap: 8px; }
.site-nav .btn { margin-left: 10px; padding: 11px 18px; font-size: 15px; font-weight: 500; }
.menu-btn { display: none; background: var(--white); border: 1.5px solid var(--navy); border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 15px; cursor: pointer; align-items: center; gap: 8px; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 1300px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11,31,58,.08); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .js .site-nav.open { display: flex; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
  .js .site-nav a:not(.btn) { padding: 13px 14px; border-radius: 10px; }
  .js .site-nav .btn { margin: 12px 0 0; padding: 14px 20px; }
  .site-nav { gap: 14px 20px; }
}

/* Pied de page */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-block: clamp(72px, 10vw, 104px); }
.cta-band h2 { font-size: clamp(38px, 6vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.cta-band p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--mist); }
.cta-band .small { font-size: 16px; }
.cta-band a:not(.btn) { color: var(--white); }
.site-footer { background: var(--navy); color: var(--mist); border-top: 1px solid #1E3354; }
.site-footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--mist); }
.site-footer .maj { flex-basis: 100%; margin: 0; padding-top: 16px; border-top: 1px solid #1E3354; font-family: var(--mono); font-size: 12.5px; color: #8C9AAD; }
.site-footer a:hover { color: var(--white); }

/* Croquis à l'échelle : un dessin de taille fixe réduit pour tenir dans son conteneur */
.fit { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.fit > .fit-inner { position: relative; }
.fit-hint { display: none; margin: 8px 0 0; text-align: center; font-family: var(--hand); font-size: 15px; color: var(--slate); }
.fit.scrolls + .fit-hint { display: block; }
.fit .lbl { position: absolute; margin: 0; font-family: var(--hand); line-height: 1.15; }
.fit svg.draw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* Cartes et listes */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-ground { background: var(--ground); border: none; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 C6 15 8 17 10 19 C13 13 16 8 21 4' fill='none' stroke='%2300875A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge-free { background: var(--jade-soft); color: var(--jade); }
.badge-paid { background: var(--navy); color: var(--white); }
.badge-soft { background: var(--ground); color: var(--slate); }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
.crumbs a { color: var(--slate); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.crumbs a:hover { color: var(--jade); }

/* Pages de texte */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.65; color: var(--body); }
.prose h2 { font-size: 26px; line-height: 1.25; color: var(--navy); margin-top: 18px; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.todo { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 6px; font-weight: 600; font-size: .92em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
