/* Wallume — feuille de style unique. Aucune police ni ressource externe (pas de suivi, pas de CDN). */

:root {
  color-scheme: dark light;
  --bg: #0e0e10;
  --bg-raised: #17171a;
  --line: #2a2a2f;
  --text: #f3efe8;
  --muted: #aaa49a;
  --accent: #d8a95a;
  --accent-ink: #1a1305;
  --focus: #f3efe8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ee;
    --bg-raised: #ffffff;
    --line: #e1dbd0;
    --text: #1b1a18;
    --muted: #5d5850;
    --accent: #8a5a12;
    --accent-ink: #ffffff;
    --focus: #1b1a18;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: var(--gutter); }

/* En-tête */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

/* Accueil */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin: 0 0 16px; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 0;
}
.button[aria-disabled="true"] { cursor: default; opacity: .92; }
.note { color: var(--muted); font-size: .9rem; }

/* Téléviseur en CSS : un cadre, un passe-partout, trois « tableaux » qui se succèdent lentement. */
.tv { position: relative; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.tv-screen { aspect-ratio: 16 / 9; background: #050506; border-radius: 10px; padding: 2.2%; border: 2px solid #26262b; }
.mat { position: relative; width: 100%; height: 100%; background: #efe9dd; padding: 6%; display: grid; place-items: center; }
.painting { position: relative; width: 100%; height: 100%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.painting i { position: absolute; inset: 0; opacity: 0; animation: fade 18s infinite; animation-delay: -1.2s; }
.painting i:nth-child(1) { background: radial-gradient(circle at 70% 30%, #f6d48a 0 9%, transparent 10%), linear-gradient(180deg, #274a7c 0%, #7d9ec0 55%, #e8c98a 56%, #8a6a3a 100%); }
.painting i:nth-child(2) { animation-delay: 4.8s; background: radial-gradient(ellipse at 30% 85%, #2d4a2f 0 38%, transparent 39%), radial-gradient(ellipse at 75% 90%, #3e6b3f 0 34%, transparent 35%), linear-gradient(180deg, #f1c7a0 0%, #e59a74 45%, #ad5d5d 100%); }
.painting i:nth-child(3) { animation-delay: 10.8s; background: radial-gradient(circle at 25% 40%, rgba(255, 255, 255, .18) 0 14%, transparent 15%), radial-gradient(circle at 60% 55%, rgba(255, 255, 255, .12) 0 20%, transparent 21%), linear-gradient(135deg, #3a1d4f 0%, #a24a6f 55%, #f0a07a 100%); }
@keyframes fade { 0% { opacity: 0 } 6% { opacity: 1 } 33% { opacity: 1 } 39% { opacity: 0 } 100% { opacity: 0 } }
.tv-stand { width: 22%; height: 14px; margin: 0 auto; background: #1c1c20; border-radius: 0 0 8px 8px; }
.tv-label { position: absolute; left: 8.5%; bottom: 7.5%; font-size: clamp(.55rem, 1.4vw, .8rem); color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 9px; border-radius: 4px; font-family: var(--sans); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) {
  .painting i { animation: none; }
  .painting i:nth-child(1) { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--bg); }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.pill { display: inline-block; font: 600 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 4px 8px; margin-left: 8px; vertical-align: middle; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.keys li { border-top: 2px solid var(--accent); padding-top: 14px; }
.keys strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.keys span { color: var(--muted); font-size: .96rem; }

/* Pages de texte (confidentialité, assistance) */
.page { padding: 36px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 10px; }
.updated { color: var(--muted); font-size: .92rem; margin: 0 0 32px; }
.page h2 { font-size: 1.5rem; margin: 44px 0 10px; }
.page h3 { font-size: 1.15rem; margin: 26px 0 6px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.callout { background: var(--bg-raised); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }
kbd { font: .85em var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: var(--bg-raised); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero { padding: 24px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid, .keys { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .nav { gap: 16px; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
