/* Yenilik — feuille de style principale
   Identité partagée avec 2af.ca et recru2af.com : Sora (titres), Figtree (texte),
   bleu 2AF, encre marine, accent ambre propre à Yenilik. */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #05092B;
  --ink-2: #1B2250;
  --text: #3A4260;
  --muted: #4A5370;
  --on-dark: #C9CFE3;
  --on-dark-muted: #9AA3C0;
  --line: #E4E7EF;
  --line-strong: #C9D0DE;
  --soft: #F4F6FB;
  --white: #FFFFFF;
  --blue: #0A4DFF;
  --blue-dark: #0638B8;
  --blue-soft: #EAF0FF;
  --amber: #F6A21A;
  --amber-text: #A35F00;
  --amber-soft: #FFF4DE;
  --green-text: #1F7A35;
  --green-soft: #E8F6EC;
  --green: #37B853;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 16px 40px rgba(5, 9, 43, 0.08);
  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-title); color: var(--ink); margin: 0; line-height: 1.15; }
h1 { font-weight: 700; font-size: clamp(38px, 5.6vw, 60px); letter-spacing: -0.025em; line-height: 1.06; }
h2 { font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 22px; }
p { margin: 0; }
ul, ol { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: #4A5370; }
.btn-ghost-dark:hover { border-color: var(--white); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--blue-soft); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Barre supérieure et en-tête */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); }
.topbar strong { color: var(--white); }
.topbar-right { display: flex; gap: 16px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--font-title); font-weight: 700; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-dot { color: var(--amber); }
.logo-tag { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.nav-panel { display: flex; align-items: center; gap: 32px; }
.nav-list { list-style: none; padding: 0; display: flex; gap: 28px; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 8px; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-panel { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 20px; }
  .nav-panel.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-login { text-align: center; }
}

/* Sections */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--amber); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head-row .section-head { margin-bottom: 0; }
.lead { font-size: 19px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Grilles */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid-4 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* Héros */
.hero { background: var(--ink); color: var(--white); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--on-dark); margin-top: 24px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--on-dark-muted); }
.page-hero { background: var(--ink); color: var(--on-dark); padding: 72px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 52px); }
.page-hero .lead { margin-top: 20px; max-width: 680px; }
.page-hero .hero-actions { margin-top: 28px; }
.trust-strip { border-top: 1px solid var(--ink-2); }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; padding: 24px; margin: 0 auto; max-width: 1200px; font-size: 15px; color: var(--on-dark); }
.trust-strip li { display: flex; gap: 10px; align-items: center; }
.breadcrumb { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--on-dark); }

/* Conversation */
.chat-card { flex: 1 1 380px; min-width: 0; max-width: 460px; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.chat-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; }
.chat-head-text span { font-size: 13px; color: var(--muted); }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; }
.bubble { max-width: 86%; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.bubble-agent { align-self: flex-start; background: var(--soft); border-radius: 4px 14px 14px 14px; }
.bubble-user { align-self: flex-end; background: var(--blue); color: var(--white); border-radius: 14px 4px 14px 14px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.chip:hover { background: #DCE6FF; color: var(--blue-dark); }

/* Avatars et badges */
.avatar { flex: none; display: block; overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; }
.avatar-xl { width: 112px; height: 112px; border-radius: 28px; }
.avatar-lg { width: 72px; height: 72px; border-radius: 20px; }
.avatar-md { width: 52px; height: 52px; border-radius: 14px; }
.avatar-sm { width: 36px; height: 36px; border-radius: 10px; }
.avatar-round { border-radius: 50%; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { color: var(--green-text); background: var(--green-soft); }
.badge-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge-soon { color: var(--amber-text); background: var(--amber-soft); }
.badge-blue { color: var(--blue-dark); background: var(--blue-soft); }

/* Cartes */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.section-soft .card { border-color: transparent; }
.card .link-arrow { margin-top: auto; }
.card-link { text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.card-link:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link .link-arrow { color: var(--blue); }
.card-dark { background: transparent; border: 1px solid var(--ink-2); border-radius: var(--radius); padding: 28px; }
.card-dark p { color: var(--on-dark); font-size: 15px; margin-top: 8px; }
.card-dark h3 { font-size: 19px; }
.icon { width: 32px; height: 32px; color: var(--blue); }
.agent-head { display: flex; gap: 16px; align-items: center; }
.agent-head-text { flex: 1; min-width: 0; }
.agent-head-text h3 { font-size: 24px; }
.agent-role { font-size: 15px; color: var(--muted); }
.agent-meta { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.mini-card { background: var(--soft); border-radius: 14px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.mini-card strong { color: var(--ink); display: block; }
.mini-card p { font-size: 15px; margin-top: 4px; }

/* Étapes */
.steps { list-style: none; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: step; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 32px; }
.step-num { font-family: var(--font-title); font-weight: 700; font-size: 15px; color: var(--blue); }
.steps h3 { margin: 12px 0 8px; }

/* Liste à cocher */
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 2px; color: var(--blue); }
.checklist-no svg { color: var(--muted); }

/* Console */
.console { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.console-bar { background: var(--ink); color: var(--white); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.console-bar b { font-family: var(--font-title); }
.console-bar b span { color: var(--amber); }
.console-bar small { color: var(--on-dark); font-size: 14px; }
.console-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.console-title { display: flex; justify-content: space-between; align-items: center; }
.console-title strong { color: var(--ink); }
.console-title span { font-size: 13px; color: var(--muted); }
.log-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.log-row p { flex: 1 1 200px; min-width: 0; font-size: 15px; }
.log-row p strong { color: var(--ink); }
.log-row-pending { border-color: var(--amber); background: #FFF8EC; }
.log-actions { display: flex; gap: 8px; }
.log-actions span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.log-approve { color: var(--white); background: var(--blue); }
.log-refuse { color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); }

/* Tarifs */
.price-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.price-card-featured { border: 2px solid var(--blue); }
.price-flag { position: absolute; top: -14px; left: 32px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price { font-family: var(--font-title); font-weight: 700; font-size: 36px; color: var(--ink); }
.price small { font-family: var(--font-body); font-weight: 400; font-size: 16px; color: var(--muted); }
.price-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.price-card .btn { margin-top: auto; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); color: var(--ink); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 600; }

/* Calculateur */
.roi { background: var(--white); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.roi-fields { display: flex; flex-direction: column; gap: 18px; }
.roi-result { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.roi-result .big { font-family: var(--font-title); font-weight: 700; font-size: 40px; color: var(--white); line-height: 1.1; }
.roi-result .label { font-size: 14px; color: var(--on-dark-muted); }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: 15px; }
.field-hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.notice-error { background: #FDECEE; color: #8E1520; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-title); font-size: 22px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
[data-agent][hidden] { display: none; }

/* Bandeaux */
.ci-band { background: var(--amber-soft); }
.ci-band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.ci-band .eyebrow { color: var(--amber-text); margin-bottom: 8px; }
.ci-band h2 { font-size: 28px; line-height: 1.2; max-width: 760px; }
.cta-band { background: var(--blue); color: #E3EAFF; border-radius: 24px; padding: 64px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 16px; font-size: 18px; max-width: 560px; }
.cta-band .hero-actions { margin-top: 0; }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

/* Fiche agent */
.agent-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.agent-hero-text { flex: 1 1 480px; min-width: 0; }
.agent-hero .badge { margin-bottom: 16px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; font-size: 15px; color: var(--on-dark); }
.facts strong { color: var(--white); }

/* Texte long (pages légales) */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 48px 0 16px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .placeholder, .placeholder { background: var(--amber-soft); color: var(--amber-text); padding: 0 4px; border-radius: 4px; }
.to-validate { background: var(--amber-soft); color: var(--amber-text); border-radius: 12px; padding: 14px 18px; margin-bottom: 32px; font-size: 15px; }

/* Pied de page */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 2fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); } }
.footer-brand p { margin-top: 12px; max-width: 380px; }
.footer-col h2 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-brand a:not(.logo) { color: var(--text); text-decoration: none; }
.footer-col a:hover, .footer-brand a:not(.logo):hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--muted); }

/* Utilitaires */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
