/* Site de la suite Écritoire : mêmes jetons que les applis (suite.css du socle), papier et encre, une couleur par appli. */
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/literata-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/literata-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/literata-latin-700-normal.woff2') format('woff2'); }

:root {
  --paper: #f3eee4;
  --sheet: #fbf8f2;
  --ink: #27241f;
  --ink-soft: #6d665b;
  --line: #e2dacb;
  --shadow: rgb(60 45 20 / 0.1);
  --accent: #27241f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1a18; --sheet: #23211e; --ink: #ece6da; --ink-soft: #a69e91; --line: #38342e; --shadow: rgb(0 0 0 / 0.4); }
  .app[id='plume'] { --accent: #8fb0e0 !important; }
  .app[id='encre'] { --accent: #e0928a !important; }
  .app[id='carnet'] { --accent: #8cc4a4 !important; }
  .hero-art, .app h2 img { background: #e9e2d3; border-radius: 10px; }
  .hero-art { padding: 12px; opacity: .9; }
  .hero-apps a { color: var(--ink) !important; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 'Literata', Georgia, serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav .lang { border-left: 1px solid var(--line); padding-left: 20px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 24px; }
.hero-art { justify-self: center; }
.hero-apps { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-apps a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--accent); }
.hero-apps a:hover img { transform: translateY(-3px); }
.hero-apps img { transition: transform .15s; }

.app {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.app:nth-of-type(odd) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.app:nth-of-type(odd) .app-text { order: 2; }
.app h2 { display: flex; align-items: center; gap: 14px; font-size: 2rem; margin: 0 0 16px; color: var(--accent); }
.app ul { padding-left: 1.2em; }
.app li { margin: 6px 0; }
.app li::marker { color: var(--accent); }
.app-shot { margin: 0; }
.app-shot img {
  display: block; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px var(--shadow);
}
.button {
  display: inline-block; padding: 10px 22px; border-radius: 8px; margin-top: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .button { color: #17150f; } }
.button:hover { filter: brightness(1.1); }

.note { padding: 48px 0; border-top: 1px solid var(--line); max-width: 760px; }
.note h2 { font-size: 1.6rem; margin: 0 0 12px; }
code { font-size: .9em; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

footer { max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px; color: var(--ink-soft); font-size: .9rem; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .hero, .app, .app:nth-of-type(odd) { grid-template-columns: 1fr; gap: 28px; }
  .app:nth-of-type(odd) .app-text { order: 0; }
  .hero-art { max-width: 320px; }
}
