/* Design system repris tel quel de specialiste.net (charte-graphique-specialiste-net.md) */

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

:root {
  --white: #FFFFFF;
  --cream: #FAF7F2;
  --black: #0A0A0A;
  --navy: #1A1A2E;
  --blue: #2D6BE4;
  --grey-light: #F1ECE3;
  --grey-mid: #AAAAAA;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--black); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* NAV */
nav.app-nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; background: rgba(250,247,242,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.logo { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--black); text-decoration: none; letter-spacing: -0.2px; }
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a, .nav-links button { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); text-decoration: none; opacity: 0.55; background: none; border: none; cursor: pointer; padding: 0; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links button:hover { opacity: 1; }

main.app-main { max-width: 700px; margin: 48px auto; padding: 0 24px 100px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; }

.page-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 300; line-height: 1.15; color: var(--black); margin-bottom: 8px; }
.page-subtitle { font-size: 15px; font-weight: 300; color: var(--black); opacity: 0.6; margin-bottom: 32px; line-height: 1.7; }

.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-label::before { content: ''; display: block; width: 3px; height: 36px; background: var(--blue); flex-shrink: 0; }
.section-label-text { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-mid); }

/* CARTES */
.card { background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: 2px; padding: 28px; margin-bottom: 14px; position: relative; overflow: hidden; transition: transform 0.2s; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-2px); }
.card-accent { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.3s ease; }
a.card:hover .card-accent { width: 100%; }
.card-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--black); margin: 12px 0 6px; }
.card-desc { font-size: 14px; font-weight: 300; color: var(--black); opacity: 0.6; line-height: 1.7; }

/* TAGS */
.tag { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue); padding: 4px 10px; border-radius: 2px; margin-right: 6px; }
.tag-muted { color: var(--grey-mid); border-color: rgba(0,0,0,0.15); }

/* BOUTONS */
.btn-primary { display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: var(--black); padding: 13px 28px; border: none; border-radius: 2px; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); opacity: 0.5; text-decoration: none; background: none; border: none; padding: 13px 0; border-bottom: 1px solid currentColor; cursor: pointer; transition: opacity 0.2s; }
.btn-ghost:hover { opacity: 1; }

/* FORMULAIRES */
.field { padding: 12px 16px; border: 1px solid rgba(0,0,0,0.15); border-radius: 2px; font-family: var(--font-body); font-size: 14px; background: var(--white); color: var(--black); width: 100%; }
.field:focus { outline: none; border-color: var(--blue); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* CHAT */
.chat-log { border: 1px solid var(--grey-light); border-radius: 2px; padding: 24px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; background: var(--white); }
.msg-joueur, .msg-pnj { max-width: 78%; padding: 12px 16px; border-radius: 2px; font-size: 15px; line-height: 1.6; }
.msg-joueur { align-self: flex-end; background: var(--black); color: var(--white); }
.msg-pnj { align-self: flex-start; background: var(--grey-light); color: var(--black); min-height: 1.4em; }

/* Encart CTA (cta-box) — reprend le composant du site, réservé aux messages
   brefs avec une action unique (ici : fin de rendez-vous, connexion...) */
.cta-box { background: var(--grey-light); padding: 32px 36px; border-radius: 2px; margin-bottom: 24px; }
.cta-box-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--black); margin-bottom: 8px; line-height: 1.3; }
.cta-box-desc { font-size: 14px; font-weight: 300; color: var(--black); opacity: 0.7; line-height: 1.7; margin-bottom: 6px; }

footer.app-footer { padding: 24px 40px; background: var(--black); border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; margin-top: 60px; }
.footer-copy { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.3); }

@media (max-width: 900px) {
  nav.app-nav, main.app-main, footer.app-footer { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 14px; }
}
