/* Polices hébergées sur le site (licence SIL OFL 1.1, voir fonts/OFL-*.txt) : aucune requête vers Google. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/newsreader-latin-600-normal.woff2") format("woff2"); }

/* Page « Bientôt » : une colonne de texte à gauche, la démo à droite, pied de page collé en bas. */
:root {
  --bg: #F7F6F3; --surface: #FFFFFF; --ink: #2F2E2B; --text-2: #6F6E69; --text-3: #8A8984;
  --line: #E3E2DF; --line-soft: #ECEBE8; --green: #3B7A4E; --green-dot: #7FB08E; --green-bg: #EDF3EC;
  --bubble: #F1F0EE; --btn-bg: #2F2E2B; --btn-fg: #FFFFFF;
  --halo-blue: #EAF0FA; --halo-green: #EDF4EE; --mark-edge: transparent;
  --shadow: 0 1px 2px rgba(47,46,43,.04), 0 18px 40px -18px rgba(47,46,43,.18);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1B19; --surface: #242421; --ink: #EDECE7; --text-2: #AEADA7; --text-3: #8E8D87;
    --line: #363531; --line-soft: #2D2C29; --green: #86BD96; --green-bg: #22302A;
    --bubble: #2F2F2B; --btn-bg: #EDECE7; --btn-fg: #1B1B19;
    --halo-blue: rgba(80,110,160,.10); --halo-green: rgba(80,140,100,.08); --mark-edge: #3A3935;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1B19; --surface: #242421; --ink: #EDECE7; --text-2: #AEADA7; --text-3: #8E8D87;
  --line: #363531; --line-soft: #2D2C29; --green: #86BD96; --green-bg: #22302A;
  --bubble: #2F2F2B; --btn-bg: #EDECE7; --btn-fg: #1B1B19;
  --halo-blue: rgba(80,110,160,.10); --halo-green: rgba(80,140,100,.08); --mark-edge: #3A3935;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(55% 60% at 100% 0%, var(--halo-blue), transparent 70%),
    radial-gradient(50% 55% at 0% 100%, var(--halo-green), transparent 70%),
    var(--bg);
  color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

header { padding-block: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { display: block; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--mark-edge); flex: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark .ia { font-family: var(--sans); font-weight: 600; color: var(--green); letter-spacing: 0; margin-left: .08em; font-size: .86em; }

main { flex: 1; display: flex; align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; }
.copy { grid-column: span 6; display: grid; gap: 26px; justify-items: start; min-width: 0; }
.demo { grid-column: 8 / span 5; min-width: 0; }
@media (max-width: 960px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .copy, .demo { grid-column: auto; }
  .demo { max-width: 520px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot); box-shadow: 0 0 0 3px var(--green-bg); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .pill .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--green-bg); } }
}
h1 {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.lead { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 32em; }
.status { margin: 0; padding-left: 16px; border-left: 2px solid var(--green); color: var(--ink); max-width: 30em; }
.status span { display: block; color: var(--text-2); font-size: .95rem; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-size: .975rem; font-weight: 600; text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--text-3); }
.tags li + li::before { content: "·"; margin-right: 14px; }

.chat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.chat-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-id strong { display: block; font-size: .95rem; font-weight: 600; }
.chat-id span { display: block; font-size: .8rem; color: var(--text-3); }
.chat-body { display: grid; gap: 18px; padding: 22px 18px 24px; }
.msg-user { justify-self: end; max-width: 85%; background: var(--bubble); padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: .95rem; line-height: 1.5; }
.msg-bot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; max-width: 94%; }
.msg-bot .mark { width: 28px; height: 28px; border-radius: 7px; }
.who { font-size: .8rem; font-weight: 600; color: var(--green); margin-bottom: 4px; }
.msg-bot p { margin: 0; font-size: .95rem; line-height: 1.55; }
.typing { display: flex; gap: 5px; padding: 0 18px 20px 56px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: blink 1.4s infinite; }
  .typing i:nth-child(2) { animation-delay: .2s; }
  .typing i:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 30% { opacity: 1; } }
}
.caption { margin: 12px 0 0 4px; font-size: .8125rem; color: var(--text-3); }

footer { padding-block: 24px 32px; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
