/* INNOVATECH AFRIKA — compléments V3 (s'ajoutent à style.css de la V1). */
:root { --gold-ink: #7a5714; --ok: #2f6b45; --warn: #8a5a00; --danger: #a3302a; }

/* Icônes */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .expertise-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.expertise-icon { width: 34px; height: 34px; stroke-width: 1.25; color: var(--gold); }
.icon-small { width: 0.95em; height: 0.95em; opacity: 0.75; }

/* Barre de mode */
.prototype-bar { gap: 6px; padding: 0 12px; text-align: center; height: auto; min-height: 31px; font-size: 11px; }
.prototype-bar strong { font-weight: 600; letter-spacing: 1px; }
.prototype-bar.mode-connected { background: #1f3b2c; }

/* En-tête : logotype fidèle sur fond noir d'origine */
.brand { gap: 14px; }
.brand-logo { display: block; width: 92px; height: 60px; background: #000; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: block; }
.header nav { gap: 22px; font-size: 13px; }
.nav-institutional { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); }
.nav-institutional .icon { color: var(--gold); }

@media (max-width: 1240px) {
  .header { padding-inline: 24px; height: 86px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; border: 1px solid var(--line); background: white; align-items: center; border-radius: 3px; }
  .menu-toggle span { width: 19px; height: 1px; background: var(--ink); display: block; }
  .header nav { display: none; position: absolute; top: 85px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: 16px 24px; align-items: stretch; box-shadow: var(--shadow); }
  .header nav.open { display: flex; flex-direction: column; gap: 0; }
  .header nav > a { padding: 14px 12px; font-size: 15px; }
  .header nav .button { margin-top: 10px; padding: 15px; }
}

/* Deux sites, deux rôles */
.two-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block: 48px 0; }
.site-role { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--cream); }
.site-role h3 { font: 24px Georgia, serif; margin: 8px 0 10px; }
.site-role p:not(.tiny-label) { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.site-role-institutional { background: white; }
.site-role .text-link { display: inline-flex; align-items: center; gap: 8px; }

/* Cartes d'expertise */
.card-benefit { font-size: 13px; color: var(--gold-ink); font-style: italic; margin-top: -4px; }

/* Planches dans les sections */
.board-figure { margin: 48px 0 0; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.board-zoom { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); overflow: hidden; }
.board-zoom img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
.board-zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: #202b28e6; color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 3px; }
.board-figure figcaption strong { display: block; font: 22px Georgia, serif; }
.board-subtitle { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.board-summary { margin: 0 0 16px; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.board-summary li { margin-bottom: 6px; }
.board-downloads { display: grid; gap: 8px; font-size: 13px; }
.board-downloads a, .dialog-actions a { display: inline-flex; align-items: center; gap: 6px; }

/* Institutions */
.institutions-block { margin-top: 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.institutions-block h3 { font: 23px Georgia, serif; margin: 8px 0 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: 3px; }

/* Principes data / IA */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 26px 22px 6px 0; }
.principles li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.principles span { font: 20px Georgia, serif; color: var(--gold); }
.principles h3 { font-size: 17px; margin: 10px 0 6px; }
.principles p { font-size: 14px; color: var(--muted); margin: 0; }

/* Confidentialité */
.conf-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.conf-steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--cream); }
.conf-steps li > span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: white; color: var(--gold); margin-bottom: 10px; }
.conf-steps strong { display: block; font-size: 15px; }
.conf-steps p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.conf-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.suggestion { margin-top: 12px; padding: 14px 16px; border-left: 3px solid var(--gold); background: #fbf6e8; font-size: 13px; }
.suggestion p { margin: 0 0 10px; }

/* Formulaire : client connu, transmission */
.known-contact { padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; }
.known-contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.known-contact dt { color: var(--muted); }
.known-contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.submit-panel { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 14px; }
.submit-panel .button { justify-self: start; }
.submit-panel .button[disabled] { opacity: .6; }
.submit-result { margin-top: 20px; padding: 22px; border: 1px solid #b9d3c1; background: #f1f8f3; border-radius: var(--radius); display: grid; gap: 10px; }
.submit-result h4 { font: 22px Georgia, serif; margin: 0; }
.submit-result p { margin: 0; font-size: 14px; }
.submit-result .button { justify-self: start; }
.dossier-link { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: white; }
.aside-note a, .check-label a { color: var(--gold-ink); text-decoration: underline; }
.aside-mail { display: inline-flex; gap: 8px; align-items: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; min-height: 56px; }
.contact-link:hover { border-color: var(--gold); }
.contact-link > .icon:first-child { width: 22px; height: 22px; color: var(--gold); }
.contact-text { display: grid; min-width: 0; }
.contact-label { font-weight: 600; overflow-wrap: anywhere; }
.contact-text small { color: var(--muted); font-size: 12px; }
.contact-link .icon-small { margin-left: auto; }
.partner-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.partner-card h3 { font: 22px Georgia, serif; margin: 6px 0 8px; }
.partner-card p:not(.tiny-label) { font-size: 13px; color: var(--muted); }
.partner-card .text-link { display: inline-flex; align-items: center; gap: 8px; }

/* Pied de page */
.footer-brand img { width: 220px; height: auto; border-radius: 3px; margin-bottom: 14px; }
.footer-contact { min-width: min(420px, 100%); }
.footer .contact-list { gap: 4px; }
.footer .contact-link { background: transparent; border: 0; padding: 6px 0; min-height: 0; color: #e6e9e0; }
.footer .contact-link > .icon:first-child { color: var(--gold-light); width: 18px; height: 18px; }
.footer .contact-text small { color: #bac2b5; }
.footer-bottom { flex-wrap: wrap; font-size: 12px; }
.footer-bottom a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-reset, .footer-confidentiality { font-size: 12px; }
.footer-confidentiality { justify-self: start; margin-top: 8px; background: none; border: 1px solid #ffffff33; color: #e6e9e0; padding: 8px 12px; border-radius: 3px; }

/* Dialogue d'infographie : consultation détaillée, défilement libre sur mobile */
.dialog-actions { display: flex; gap: 16px; align-items: center; }
.dialog-scroll { overflow: auto; max-height: 70dvh; background: var(--cream); }
.dialog-scroll img { width: 100%; max-width: none; }
#dialog-description { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 850px) { .dialog-scroll img { width: 200%; } }

/* Pages documentaires et applicatives */
.page-main { padding-block: 48px 80px; }
.page-main h1 { font: 40px/1.15 Georgia, serif; margin: 0 0 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .3px; background: #fbf0d6; color: var(--warn); border: 1px solid #ecd59a; }
.status-pill.ok { background: #e6f3ea; color: var(--ok); border-color: #b9d3c1; }
.status-pill.danger { background: #f9e6e4; color: var(--danger); border-color: #e7b7b2; }
.draft-banner { margin: 18px 0 28px; padding: 16px 18px; border: 1px dashed var(--gold); background: #fbf6e8; font-size: 14px; }
.doc-body { max-width: 860px; font-size: 16px; line-height: 1.7; }
.doc-body h2 { font: 26px Georgia, serif; margin: 34px 0 10px; }
.doc-body h3 { font-size: 18px; margin: 24px 0 8px; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-body code { background: var(--cream); padding: 1px 4px; border-radius: 3px; font-size: .9em; overflow-wrap: anywhere; }
.doc-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: white; margin-bottom: 20px; }
.panel h2 { font: 24px Georgia, serif; margin: 0 0 12px; }
.panel h3 { margin: 0 0 8px; font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 16px; position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline small { color: var(--muted); display: block; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.form-inline { display: grid; gap: 10px; max-width: 560px; }
.form-inline input:not([type="checkbox"]), .form-inline select, .form-inline textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 3px; font: inherit; }
.notice { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin: 12px 0; border: 1px solid var(--line); background: var(--cream); }
.notice.error { border-color: #e7b7b2; background: #f9e6e4; color: #6d1f1a; }
.notice.ok { border-color: #b9d3c1; background: #f1f8f3; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.doc-scroll { max-height: 55vh; overflow: auto; padding: 16px 20px; border: 1px solid var(--line); background: #fcfcfa; border-radius: var(--radius); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }

/* Lisibilité mobile : tailles minimales relevées par rapport à la V1 */
@media (max-width: 850px) {
  .two-sites, .board-figure, .institutions-block, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .conf-steps { grid-template-columns: 1fr 1fr; }
  .brand-logo { width: 74px; height: 48px; }
  .hero .eyebrow, .eyebrow { font-size: 11px; }
  .lead { font-size: 16px; }
  .hero-note { font-size: 13px; }
  .hero-actions .text-link { font-size: 13px; }
  .section-intro { font-size: 15px; max-width: none; }
  .discipline-line .wrap { font-size: 11px; }
  .sector-button { font-size: 13px; }
  .gallery-caption strong { font-size: 14px; }
  .gallery-caption small, .sector-feature small, .footer-bottom { font-size: 12px; }
  .page-main h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 34px; letter-spacing: -1px; overflow-wrap: break-word; }
  .hero > * { min-width: 0; }
  .conf-steps, .principles { grid-template-columns: 1fr; }
  .principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sector-list { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-brand img { width: 180px; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.project-aside a.aside-mail { justify-content: flex-start; gap: 10px; }
@media (max-width: 850px) { .prototype-bar { display: block; line-height: 1.5; padding: 6px 14px; } }
