/* CareerCore — site public (accueil et connexion) */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #ffffff;
  --ink: #0b1f33;
  --ink-2: #33475b;
  --muted: #66727f;
  --line: #ddd8cc;
  --line-strong: #c9c2b2;
  --accent: #b5832a;
  --accent-ink: #7a5514;
  --navy: #0b1f33;
  --danger: #a63d40;
  --success: #1d6b4c;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #17344f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible,
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 239, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 18px/1 var(--sans);
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-nav .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 88px; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-ink);
  font: 600 13px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-weight: 600; }

.hero h1 {
  font: 500 clamp(40px, 5.4vw, 64px)/1.04 var(--serif);
  letter-spacing: -.02em;
}

.hero h1 em { font-style: italic; color: var(--accent-ink); }

.hero .lead {
  max-width: 34em;
  margin: 24px 0 32px;
  color: var(--ink-2);
  font-size: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Aperçu de CV dessiné en CSS */

.preview {
  position: relative;
  padding: 28px 28px 28px 0;
}

.sheet {
  display: grid;
  grid-template-columns: 34% 1fr;
  aspect-ratio: 210 / 270;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 24px 48px -24px rgba(11, 31, 51, .28);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.sheet-side {
  padding: 26px 16px;
  background: var(--navy);
  color: #fff;
}

.sheet-main { padding: 26px 22px; }

.sheet-name { font: 500 20px/1.1 var(--serif); }
.sheet-name b { display: block; font-weight: 700; }
.sheet-role { margin: 8px 0 22px; color: #f0c674; font-size: 10px; font-weight: 600; }

.sheet-label {
  margin: 18px 0 8px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sheet-main .sheet-label { margin-top: 0; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.sheet-main .sheet-label + * { margin-bottom: 18px; }

.bar { height: 5px; margin: 6px 0; border-radius: 3px; background: #e7e3da; }
.sheet-side .bar { background: rgba(255, 255, 255, .22); }
.bar.w90 { width: 90%; } .bar.w80 { width: 80%; } .bar.w70 { width: 70%; } .bar.w60 { width: 60%; } .bar.w45 { width: 45%; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips i { width: 30px; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .2); }
.chips i:nth-child(3n) { width: 42px; }

.sheet-job { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.sheet-job .bar { margin: 0; }
.sheet-job .date { width: 34px; height: 5px; border-radius: 3px; background: #e9cf9a; }

.note {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 232px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -18px rgba(11, 31, 51, .4);
  font-size: 13px;
  line-height: 1.45;
}

.note strong { display: block; margin-bottom: 8px; font-size: 13px; }
.note ul { margin: 0; padding: 0; list-style: none; }
.note li { display: flex; gap: 8px; padding: 3px 0; color: var(--ink-2); }
.note li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.note li.ok::before { background: var(--success); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head h2 {
  font: 500 clamp(30px, 3.4vw, 40px)/1.15 var(--serif);
  letter-spacing: -.015em;
}

.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.feature { padding-top: 22px; border-top: 2px solid var(--ink); }
.feature h3 { margin-bottom: 10px; font-size: 19px; letter-spacing: -.01em; }
.feature p { margin: 0 0 14px; color: var(--ink-2); }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.feature li { margin: 3px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  color: var(--accent-ink);
  font: 500 26px/1 var(--serif);
}

.steps h3 { margin-bottom: 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.privacy-list { margin: 0; padding: 0; list-style: none; }
.privacy-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.privacy-list li:first-child { padding-top: 0; }
.privacy-list strong { display: block; margin-bottom: 4px; }
.privacy-list span { color: var(--ink-2); font-size: 15px; }

.cta {
  padding: 72px 0;
  background: var(--navy);
  color: #fff;
}

.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 { font: 500 clamp(26px, 3vw, 34px)/1.2 var(--serif); }
.cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .72); }
.cta .btn-primary { background: #fff; color: var(--ink); flex: none; }
.cta .btn-primary:hover { background: var(--paper); }

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Connexion ---------- */

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  background: var(--navy);
  color: #fff;
}

.auth-aside .brand { color: #fff; }

.auth-quote { max-width: 26em; }
.auth-quote p { margin: 0; font: 500 clamp(24px, 2.4vw, 30px)/1.3 var(--serif); }
.auth-quote span { display: block; margin-top: 16px; color: rgba(255, 255, 255, .6); font-size: 14px; }

.auth-aside small { color: rgba(255, 255, 255, .5); font-size: 13px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card { width: min(380px, 100%); }
.auth-card h1 { font: 500 34px/1.15 var(--serif); letter-spacing: -.015em; }
.auth-card > p { margin: 10px 0 28px; color: var(--ink-2); }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 16px var(--sans);
}

.field input:focus { border-color: var(--ink); }

.auth-card .btn { width: 100%; margin-top: 8px; }

.alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.alert[hidden] { display: none; }
.alert-error { background: #f8e9e9; color: var(--danger); border: 1px solid #ecc9ca; }
.alert-info { background: #e8f1ec; color: var(--success); border: 1px solid #c8ded2; }

.auth-foot { margin-top: 28px; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap,
  .privacy { grid-template-columns: 1fr; gap: 48px; }
  .preview { max-width: 440px; }
  .features,
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav a:not(.btn) { display: none; }
  .note { right: -4px; bottom: 24px; width: 200px; font-size: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

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