/* Pittari — site vitrine
   Grammaire reprise de Tinomi (réflexion R03, « le calme lucide ») : fond neutre ardoise,
   une couleur = un seul sens, sérif d'affichage réservé aux titres et aux grands chiffres.
   Indigo : ce qui se clique. Bleu-vert Pittari : ce qui tombe juste (correspondance, score).
   Corail : l'écart à combler. Points des temps du récit et des publics : petites marques seulement. */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --hollow: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --filet: #94a3b8;

  --btn: #5558e3;          /* aplat du bouton principal (blanc dessus : 5,40) */
  --link: #4f46e5;         /* lien, focus */

  --juste: #12868a;        /* marque : ce qui tombe juste */
  --juste-text: #0d6b6e;   /* le même, lisible en texte */
  --ecart: #e0703c;        /* l'écart à combler */
  --ecart-text: #b4521f;

  --t-recit: #2a78d6;      /* temps 1 : se raconter */
  --t-mesure: #8a4fb8;     /* temps 2 : se mesurer */
  --p-ent: #6f9ce0;        /* public : entreprises (sur fond sombre) */
  --p-exp: #c98a00;        /* public : experts */

  --band: #0f172a;
  --band-ink: #e8ecf4;
  --band-2: #aab3c7;
  --band-line: #2a3550;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--btn); color: #fff; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.sec { padding-block: 88px; }
.alt { background: var(--card); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.gap-8 { gap: 8px; } .gap-24 { gap: 24px; } .gap-40 { gap: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.grid2 > * { min-width: 0; }

/* Typographie */
.h1, .h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
.h1 { font-size: clamp(36px, 5.2vw, 60px); }
.h2 { font-size: clamp(29px, 3.6vw, 43px); max-width: 24ch; }
.h3 { font-size: 17px; font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.num { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.body { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-2); }
.note { font-size: 13px; color: var(--ink-3); }
.punch { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.35; max-width: 36ch; }
.juste { font-family: var(--serif); font-weight: 600; color: var(--juste-text); }
.small .juste { font-family: inherit; }
.ecart-txt { font-weight: 600; color: var(--ecart-text); }
.fic { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* Logo : le point du dernier i porte la couleur de ce qui tombe juste */
.logo { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.logo-i { position: relative; }
.logo-i::after {
  content: ""; position: absolute; left: 50%; top: -.02em; width: .2em; height: .2em;
  border-radius: 50%; background: var(--juste); transform: translateX(-50%);
}

/* En-tête */
.hd { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-bar { display: flex; align-items: center; gap: 28px; height: 64px; }
/* Sélecteur de public : chaque page ne parle qu'à un public */
.aud { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 4px; border-radius: 12px; background: var(--hollow); font-size: 14.5px; font-weight: 500; }
.aud-label { color: var(--ink-3); padding: 0 8px 0 8px; }
.aud a { padding: 6px 12px; border-radius: 9px; color: var(--ink-2); }
.aud a:hover { color: var(--ink); }
.aud a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.aud a:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

/* Entrée « Vous êtes » : le public choisit sa page ; candidat par défaut sur l'accueil */
.entree { padding-top: 28px; }
.entree-bar { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 12px; align-items: stretch; }
.entree-q { align-self: center; font-family: var(--serif); font-size: 22px; font-weight: 600; padding-right: 8px; }
.entree a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); transition: border-color .15s, background .15s; }
.entree a .dot { margin-top: 7px; }
.entree a > span { display: flex; flex-direction: column; gap: 2px; }
.entree a b { font-size: 17px; color: var(--ink); }
.entree-d { font-size: 14px; line-height: 1.4; }
.entree a:hover { border-color: var(--filet); background: var(--card); }
.entree a[aria-current="page"] { background: var(--card); border-color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.entree a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.entree + .sec { padding-top: 56px; }

/* Boutons : une seule action pleine par écran */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font: 600 16px/1 inherit; font-family: inherit; border: 0; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-main { background: var(--btn); color: #fff; }
.btn-main:hover { background: #4a4dd6; }
.btn-main:disabled { opacity: .55; cursor: default; }
.btn-ghost { border: 1px solid var(--line); color: var(--link); background: var(--card); }
.btn-ghost:hover { border-color: #c7cdf6; }
.btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Petites marques de couleur */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.t-recit { color: var(--t-recit); }
.t-mesure { color: var(--t-mesure); }
.t-juste { color: var(--juste); }
.p-ent { color: var(--p-ent); }
.p-exp { color: var(--p-exp); }
.dot.ecart { background: var(--ecart); }
.c-loin-dot { color: var(--filet); }
.phases { display: flex; flex-wrap: wrap; gap: 20px; font-size: 16px; font-weight: 500; }
.phases span { display: inline-flex; align-items: center; gap: 8px; }

/* Cartes et preuves chiffrées */
.card { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12); }
.alt .card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ba { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.was { font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--ink-3); text-decoration: line-through; }
.big { font-family: var(--serif); font-size: clamp(48px, 6vw, 64px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--juste-text); font-variant-numeric: tabular-nums; }
.ba-label { color: var(--ink-2); font-weight: 500; padding-bottom: 6px; }
.bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; gap: 3px; }
.bar > div { min-width: 4px; }
.c-juste { background: var(--juste); }
.c-proche { background: #8fc9c9; }
.c-loin { background: var(--hollow); box-shadow: inset 0 0 0 1px var(--line); }
.proche-dot { color: #8fc9c9; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.mini-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ecart { background: var(--ecart); }

.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 14px; }
.legend > div { display: flex; flex-direction: column; gap: 2px; }
.k { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.v { font-family: var(--serif); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.d { font-size: 13px; color: var(--ink-3); }

.recit { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.piles { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.pile { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; font-size: 14.5px; color: var(--ink-2); padding-top: 4px; }
.pile b { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--ink-2); }
.tick { width: 14px; height: 14px; margin-top: 5px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.flow { display: flex; flex-direction: column; gap: 12px; }
.flowrow { display: grid; grid-template-columns: 190px 1fr 72px; gap: 12px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.flowrow b { text-align: right; font-variant-numeric: tabular-nums; }
.flowrow-end > span { font-weight: 600; color: var(--ink); }
.flowrow-end b { color: var(--juste-text); }
.track { height: 16px; border-radius: 6px; background: var(--hollow); overflow: hidden; }
.track > div { height: 16px; border-radius: 6px; min-width: 6px; }
.track .c-loin { background: #cbd5e1; box-shadow: none; }

/* Bande sombre : entreprises */
.band { background: var(--band); color: var(--band-ink); }
.band .lead, .band .tag, .band .fic, .band-2 { color: var(--band-2); }
.band b { color: var(--band-ink); }
.juste-band { color: #6fd0cf; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--band-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-pro { border-color: #4d5bd0; box-shadow: inset 0 0 0 1px #4d5bd0; }
.plan-price .v { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--band-ink); }
.plan-price { color: var(--band-2); }
.plan-for { font-size: 14.5px; color: var(--band-2); padding-bottom: 12px; border-bottom: 1px solid var(--band-line); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p-ent); transform: translateY(-1px); }

/* Étapes et missions */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .num { font-size: 22px; color: var(--ink-3); }
.exp-txt { color: #8a5f00 !important; }

/* Garanties */
.guar { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.guar > div { background: var(--card); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.guar-neutral > div { background: var(--bg); box-shadow: none; }
.guar span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* Dépôt du CV */
.cta-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 48px; align-items: center; }
.form { box-shadow: none; border: 1px solid var(--line); gap: 16px; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-ui { display: grid; gap: 2px; text-align: center; cursor: pointer; border: 1.5px dashed var(--filet); border-radius: 12px; padding: 20px; transition: border-color .15s, background .15s; }
.file-ui:hover, .file input:focus-visible + .file-ui { border-color: var(--link); background: #f5f6ff; }
.file-title { font-weight: 600; color: var(--link); }
.file-name { font-size: 14px; color: var(--ink-3); }
.file.has-file .file-ui { border-style: solid; border-color: var(--juste); background: #effafa; }
.file.has-file .file-title { color: var(--juste-text); }
.field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.field input:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: .3em; accent-color: var(--btn); }
.form-msg { font-size: 14.5px; min-height: 1.4em; }
.form-msg.error { color: #9b2323; }
.form-msg.success { color: var(--juste-text); font-weight: 600; }

/* Pied de page */
.ft { border-top: 1px solid var(--line); background: var(--card); padding-block: 40px; }
.ft-bar { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ft-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 15px; color: var(--ink-2); }
.ft-nav a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hd-bar > .btn { display: none; }
  .entree-bar { grid-template-columns: repeat(3, 1fr); }
  .entree-q { grid-column: 1 / -1; font-size: 19px; }
  .plans, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sec { padding-block: 56px; }
  .hd-bar { gap: 12px; }
  .aud-label { display: none; }
  .aud a { padding: 6px 10px; }
  .entree { padding-top: 20px; }
  .entree-bar { gap: 8px; }
  .entree a { flex-direction: column; gap: 6px; padding: 12px; }
  .entree a .dot { margin-top: 0; }
  .entree-d { display: none; }
  .entree + .sec { padding-top: 36px; }
  .cta-box { padding: 24px 18px; }
  .flowrow { grid-template-columns: 1fr 72px; }
  .flowrow .track { grid-column: 1 / -1; grid-row: 2; }
  .pile { grid-template-columns: 10px 1fr; }
  .pile b { grid-column: 2; }
}
