/* KONGA TECHNOLOGY — feuille de style du site public */
:root {
  --ink: #0B1F33;
  --ink-2: #132C45;
  --ink-line: #22405E;
  --ink-deep: #071523;
  --amber: #F5B23D;
  --amber-text: #9A5B00;
  --mist: #F4F6F9;
  --line: #E1E6EC;
  --muted: #4A5B6E;
  --muted-light: #C9D3DF;
  --radius: 18px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.55; }
img, svg { display: block; }
a { color: var(--ink); }
a:hover { color: #B26B00; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #FFC45E; color: var(--ink); }
.btn-ghost { border: 1.5px solid #4A6178; color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* En-tête */
.site-header { background: var(--ink); color: #fff; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo { display: block; width: 64px; height: 40px; border-radius: 10px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand-name span { color: var(--amber); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.main-nav a:not(.btn) { color: #D6DEE8; text-decoration: none; padding: 10px 0; }
.main-nav a:not(.btn):hover { color: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: #fff; }
.kicker { color: var(--amber-text); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.section-dark .kicker { color: var(--amber); }
.section-title { font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }

/* Héros */
.hero { background: var(--ink); color: #fff; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 104px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .kicker { color: var(--amber); }
.hero h1 { font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.hero-lead { font-size: 19px; color: var(--muted-light); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero-tiles { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-tile { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--amber); }
.hero-tile span { color: #fff; font-family: var(--display); font-size: 18px; font-weight: 500; }
.hero-tile:nth-child(even) { margin-top: 32px; }

/* À propos */
.about { display: flex; flex-wrap: wrap; gap: 48px; }
.about-head { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; color: #3A4B5E; }
.about-body .strong { color: var(--ink); font-weight: 500; }

/* Services */
.featured { background: var(--ink); color: #fff; border-radius: 22px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-bottom: 20px; }
.featured-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.badge { align-self: flex-start; background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.featured h3 { font-size: 28px; }
.featured p { color: var(--muted-light); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }

/* Secteurs */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 12px 22px; font-weight: 500; }

/* Approche */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--amber); padding-top: 20px; }
.step-num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--amber-text); }
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-info .lead { color: var(--muted-light); font-size: 18px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; font-size: 17px; padding-top: 8px; }
.contact-lines a { color: #fff; }
.contact-form { flex: 1 1 460px; min-width: 0; background: #fff; color: var(--ink); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; border: 1.5px solid #C5CED8; border-radius: 10px; padding: 13px 14px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--amber); outline-offset: 1px; }
.field .error { color: #B42318; font-size: 14px; font-weight: 500; }
.field [aria-invalid="true"] { border-color: #B42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.alert-success { background: #E7F6EC; color: #11622F; }
.alert-error { background: #FDECEA; color: #8A1C12; }

/* Pied de page */
.site-footer { background: var(--ink-deep); color: #A9B6C4; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 32px; }
.site-footer a { color: #A9B6C4; }

/* Pages d'erreur */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }

/* Contact direct et réseaux sociaux */
.contact-links { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--ink-line); border-radius: 14px; background: var(--ink-2); color: #fff; text-decoration: none; max-width: 440px; }
.contact-link:hover { border-color: var(--amber); }
.contact-link svg { flex: none; color: var(--amber); }
.contact-link > span:not(.sr-only) { display: flex; flex-direction: column; min-width: 0; }
.contact-link strong { font-weight: 600; }
.contact-link strong + span { color: var(--muted-light); font-size: 15px; overflow-wrap: anywhere; }
.contact-address { display: flex; align-items: flex-start; gap: 12px; color: var(--muted-light); }
.contact-address svg { flex: none; color: var(--amber); margin-top: 2px; }
.contact-social { display: flex; flex-direction: column; gap: 10px; }
.contact-social > p { font-weight: 600; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--ink-line); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.social-links a:hover { border-color: var(--amber); color: var(--amber); }
.site-footer .footer-social { padding-top: 28px; padding-bottom: 0; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px 12px 16px; border-radius: 999px; background: #25D366; color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(7, 21, 35, .28); }
.whatsapp-float:hover { background: #3EE07B; color: var(--ink); }
@media (max-width: 640px) {
  .whatsapp-float { right: 14px; bottom: 14px; padding: 14px; }
  .whatsapp-float > span:not(.sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .whatsapp-float { display: none; } }

/* Bibliothèque */
.main-nav a[aria-current="page"]:not(.btn) { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); }
.page-hero { background: var(--ink); color: #fff; }
.page-hero .container { display: flex; flex-direction: column; gap: 18px; padding-top: 64px; padding-bottom: 72px; }
.page-hero .kicker { color: var(--amber); }
.page-hero h1 { font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.1; max-width: 760px; }
.section.library { padding-top: 56px; }
.library-search { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.library-search input { flex: 1 1 280px; min-width: 0; font: inherit; border: 1.5px solid #C5CED8; border-radius: 12px; padding: 13px 16px; }
.library-search input:focus { border-color: var(--ink); outline: 2px solid var(--amber); outline-offset: 1px; }
.library-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.library-filters a { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 500; font-size: 15px; }
.library-filters a:hover { border-color: var(--ink); color: var(--ink); }
.library-filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.library-count { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.library-empty { border: 1.5px dashed #C5CED8; border-radius: var(--radius); padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.section-head-row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; max-width: none; }
.section-head-row > div { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.link-more { font-weight: 600; text-underline-offset: 4px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.book { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.book-cover { flex: 0 0 104px; aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px; overflow: hidden; background: var(--ink-2); box-shadow: inset 7px 0 0 var(--ink-deep); display: flex; align-items: center; justify-content: center; align-self: flex-start; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-format { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--amber); letter-spacing: .04em; padding-left: 7px; }
.book-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.book-category { color: var(--amber-text); font-weight: 600; font-size: 14px; }
.book h3 { font-size: 20px; line-height: 1.25; }
.book-author { color: var(--muted); font-size: 15px; }
.book-desc { color: #3A4B5E; font-size: 15px; }
.book-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.book-meta { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero .container { padding-top: 48px; padding-bottom: 64px; }
  .featured, .contact-form { padding: 24px; }
  .hero-tile:nth-child(even) { margin-top: 0; }
  .page-hero .container { padding-top: 44px; padding-bottom: 52px; }
  .book { padding: 18px; gap: 16px; }
  .book-cover { flex-basis: 76px; }
}
