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

/* ── Variables globales ── */
    :root {
      --bg: #f7f5f2;
      --surface: #ffffff;
      --border: #e8e3dc;
      --text: #1a1a18;
      --text-muted: #8a8680;
      --accent: #2d6a4f;
      --accent-light: #e8f4ef;
      --user-bg: #2d6a4f;
      --user-text: #ffffff;
      --bot-bg: #ffffff;
      --bot-border: #e8e3dc;
      --warning-bg: #fef9ec;
      --warning-border: #f0d080;
      --warning-text: #7a5c00;
    }

/* ── Reset & base ── */
    html, body {
      height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      line-height: 1.6;
    }

/* ── Commun ── */
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    /* Disclaimer */
    .disclaimer {
      margin: 0 32px;
      margin-top: 16px;
      padding: 10px 14px;
      background: var(--warning-bg);
      border: 1px solid var(--warning-border);
      border-radius: 8px;
      font-size: 12px;
      color: var(--warning-text);
      font-weight: 400;
    }

/* ── Landing page (index.html) ── */
/* logo, hero, features, footer... */

/* ── Layout ── */
    .page {
      max-width: 760px;
      margin: 0 auto;
      padding: 0 32px 80px;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ── Header ── */
    header {
      padding: 40px 0 32px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .logo {
      width: 48px;
      height: 48px;
      background: var(--accent);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .brand h1 {
      font-family: 'Lora', serif;
      font-size: 22px;
      font-weight: 500;
      letter-spacing: -0.03em;
      color: var(--text);
    }

    .brand p {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 300;
      margin-top: 2px;
    }

    /* ── Hero ── */
    .hero {
      padding: 72px 0 56px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: var(--accent-light);
      color: var(--accent);
      border: 1px solid #b7dece;
      border-radius: 20px;
      padding: 5px 13px;
      font-size: 12px;
      font-weight: 500;
      width: fit-content;
    }

    .tag-dot {
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 2.5s ease-in-out infinite;
    }

    .hero h2 {
      font-family: 'Lora', serif;
      font-size: 42px;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.03em;
      color: var(--text);
      max-width: 560px;
    }

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

    .hero p {
      font-size: 16px;
      color: var(--text-muted);
      font-weight: 300;
      max-width: 520px;
      line-height: 1.75;
    }

    .cta-group {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--accent);
      color: white;
      text-decoration: none;
      padding: 13px 24px;
      border-radius: 12px;
      font-size: 14.5px;
      font-weight: 500;
      transition: all 0.18s ease;
      box-shadow: 0 2px 12px rgba(45,106,79,0.25);
    }

    .btn-primary:hover {
      background: var(--accent-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 20px rgba(45,106,79,0.3);
    }

    .btn-primary svg {
      width: 16px;
      height: 16px;
      fill: white;
    }

    .btn-note {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 300;
    }

    /* ── Divider ── */
    .divider {
      height: 1px;
      background: var(--border);
      margin: 8px 0;
    }

    /* ── Features ── */
    .features {
      padding: 48px 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .features-title {
      font-family: 'Lora', serif;
      font-size: 13px;
      font-weight: 400;
      color: var(--text-muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media (max-width: 520px) {
      .feature-grid { grid-template-columns: 1fr; }
      .hero h2 { font-size: 30px; }
    }

    .feature-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 22px 24px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      transition: box-shadow 0.18s ease;
    }

    .feature-card:hover {
      box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }

    .feature-icon {
      font-size: 22px;
      line-height: 1;
    }

    .feature-card h3 {
      font-size: 14.5px;
      font-weight: 500;
      color: var(--text);
      margin-top: 4px;
    }

    .feature-card p {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 300;
      line-height: 1.6;
    }

    /* ── Footer ── */
    footer {
      margin-top: auto;
      padding-top: 48px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    footer p {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 300;
    }

    footer a {
      color: var(--accent);
      text-decoration: none;
      font-size: 12px;
    }

    footer a:hover { text-decoration: underline; }

/* ── Chat (oncologie-chat.html) ── */
/* messages, bubbles, input... */
    /* Layout */
    .page {
      display: flex;
      flex-direction: column;
      height: 100vh;
      max-width: 760px;
      margin: 0 auto;
    }

    /* Header */
    header {
      padding: 28px 32px 20px;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }

    .header-inner {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .avatar {
      width: 40px;
      height: 40px;
      background: var(--accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .header-text h1 {
      font-family: 'Lora', serif;
      font-size: 18px;
      font-weight: 500;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .header-text p {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 300;
      margin-top: 1px;
    }

    .status-dot {
      width: 7px;
      height: 7px;
      background: #52b788;
      border-radius: 50%;
      display: inline-block;
      margin-right: 5px;
      animation: pulse 2.5s ease-in-out infinite;
    }

    /* Messages area */
    #messages {
      flex: 1;
      overflow-y: auto;
      padding: 28px 32px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      scroll-behavior: smooth;
    }

    #messages::-webkit-scrollbar { width: 4px; }
    #messages::-webkit-scrollbar-track { background: transparent; }
    #messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    /* Message bubbles */
    .message {
      display: flex;
      flex-direction: column;
      gap: 4px;
      animation: fadeUp 0.25s ease;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .message.user { align-items: flex-end; }
    .message.bot  { align-items: flex-start; }

    .bubble {
      padding: 12px 16px;
      border-radius: 18px;
      max-width: 78%;
      font-size: 14.5px;
      line-height: 1.65;
    }

    .message.user .bubble {
      background: var(--user-bg);
      color: var(--user-text);
      border-bottom-right-radius: 4px;
    }

    .message.bot .bubble {
      background: var(--bot-bg);
      color: var(--text);
      border: 1px solid var(--bot-border);
      border-bottom-left-radius: 4px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }

    .msg-label {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 300;
      padding: 0 4px;
    }

    /* Typing indicator */
    .typing-dots {
      display: flex;
      gap: 5px;
      padding: 14px 18px;
      background: var(--bot-bg);
      border: 1px solid var(--bot-border);
      border-radius: 18px;
      border-bottom-left-radius: 4px;
      width: fit-content;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }

    .typing-dots span {
      width: 7px;
      height: 7px;
      background: var(--text-muted);
      border-radius: 50%;
      animation: bounce 1.2s ease-in-out infinite;
    }
    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes bounce {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
      30% { transform: translateY(-5px); opacity: 1; }
    }

    /* Suggested questions */
    .suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }

    .suggestion-pill {
      background: var(--accent-light);
      color: var(--accent);
      border: 1px solid #b7dece;
      border-radius: 20px;
      padding: 6px 13px;
      font-size: 12.5px;
      cursor: pointer;
      transition: all 0.15s ease;
      font-family: 'DM Sans', sans-serif;
    }

    .suggestion-pill:hover {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    /* Input area */
    .input-area {
      padding: 16px 32px 28px;
      background: var(--bg);
    }

    .input-box {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 10px 10px 10px 18px;
      transition: border-color 0.2s ease;
      box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    }

    .input-box:focus-within {
      border-color: var(--accent);
    }

    textarea {
      flex: 1;
      border: none;
      background: transparent;
      resize: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 14.5px;
      color: var(--text);
      outline: none;
      max-height: 120px;
      line-height: 1.5;
      padding: 3px 0;
    }

    textarea::placeholder { color: var(--text-muted); }

    button#send {
      width: 38px;
      height: 38px;
      background: var(--accent);
      border: none;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.15s ease;
      opacity: 0.4;
    }

    button#send.active {
      opacity: 1;
    }

    button#send:hover.active {
      background: #235c41;
      transform: scale(1.05);
    }

    button#send svg {
      width: 16px;
      height: 16px;
      fill: white;
    }

    .char-hint {
      text-align: right;
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 6px;
      padding-right: 4px;
    }