/* Capot — site vitrine statique (SEO). Thème bistrot, optimisé lecture. */
:root {
  --felt: #1d4d3a; --felt-deep: #143628;
  --wood: #4a2f1d; --slate: #20262a;
  --chalk: #f0ead8; --chalk-dim: #c9c3b2;
  --wine: #8e2f3c; --wine-bright: #b8404f;
  --brass: #c9a45c; --card: #fcf9f0; --ink: #1d1a16;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--chalk);
  background: radial-gradient(ellipse at 50% 20%, var(--felt) 0%, var(--felt-deep) 80%) fixed;
  min-height: 100vh;
  line-height: 1.65;
}
a { color: var(--brass); }
a:hover { color: var(--chalk); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; padding: 18px 20px;
}
.brand {
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 38px;
  color: var(--chalk); text-decoration: none; transform: rotate(-2deg);
  display: inline-block; text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a {
  color: var(--chalk-dim); text-decoration: none; padding: 8px 14px;
  border-radius: 8px; font-size: 16px;
}
nav.main a:hover, nav.main a.on { color: var(--chalk); border: 1px solid rgba(240,234,216,0.3); padding: 7px 13px; }
.btn-play {
  background: var(--wine); color: var(--chalk) !important; border-radius: 8px;
  padding: 9px 20px !important; border: 1px solid var(--wine-bright) !important;
}
.btn-play:hover { background: var(--wine-bright); }

h1 {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: clamp(42px, 8vw, 68px); line-height: 1.05;
  margin: 34px 0 16px; text-shadow: 0 3px 0 rgba(0,0,0,0.3);
}
.lede { font-size: 19px; color: var(--chalk-dim); max-width: 58ch; }
.lede strong, article strong { color: var(--chalk); }

h2 {
  font-family: 'Caveat', cursive; font-size: 34px; font-weight: 700;
  color: var(--brass); margin: 44px 0 10px;
}
h3 { font-size: 19px; margin: 26px 0 8px; }
article p, article li { color: var(--chalk-dim); font-size: 17px; }
article p { margin: 10px 0; }
article ul, article ol { margin: 10px 0 10px 24px; }
article li { margin: 5px 0; }
article em { color: var(--brass); font-style: normal; }

.cta-row { margin: 28px 0; }
.cta {
  display: inline-block; background: var(--wine); color: var(--chalk);
  text-decoration: none; font-size: 19px; padding: 14px 34px;
  border-radius: 10px; border: 1px solid var(--wine-bright);
}
.cta:hover { background: var(--wine-bright); color: var(--chalk); }
.cta-note { font-size: 14px; color: var(--chalk-dim); margin-top: 10px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
@media (max-width: 700px) { .cards3 { grid-template-columns: 1fr; } }
.tile {
  background: rgba(0,0,0,0.28); border: 1px solid rgba(240,234,216,0.18);
  border-radius: 12px; padding: 20px;
}
.tile h3 { margin-top: 0; }
.tile .num { font-family: 'Caveat', cursive; font-size: 32px; font-weight: 700; color: var(--brass); }

table.values {
  border-collapse: collapse; margin: 14px 0; width: 100%; max-width: 480px;
  background: rgba(0,0,0,0.25); border-radius: 10px; overflow: hidden;
}
table.values th, table.values td {
  padding: 9px 14px; text-align: left; font-size: 16px;
  border-bottom: 1px solid rgba(240,234,216,0.12);
}
table.values th { color: var(--brass); font-weight: 600; }
table.values td { color: var(--chalk-dim); }

dl.gloss dt {
  font-weight: 600; font-size: 19px; color: var(--chalk);
  margin-top: 22px;
}
dl.gloss dd { color: var(--chalk-dim); margin: 4px 0 0; font-size: 17px; }

details.faq {
  background: rgba(0,0,0,0.28); border: 1px solid rgba(240,234,216,0.18);
  border-radius: 12px; padding: 16px 20px; margin: 12px 0;
}
details.faq summary {
  font-size: 18px; font-weight: 600; cursor: pointer; color: var(--chalk);
  list-style-position: outside;
}
details.faq p { color: var(--chalk-dim); margin-top: 10px; }

footer.bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px dashed rgba(240,234,216,0.25);
  font-size: 14px; color: var(--chalk-dim);
}
footer.bottom a { margin-right: 16px; }
.ardoise-box {
  background: var(--slate); border: 6px solid var(--wood); border-radius: 8px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.45); padding: 22px 26px;
  font-family: 'Caveat', cursive; font-size: 21px; margin: 26px 0;
}


/* ═══ Accessibilité (public senior) ═══════════════════════════════════════ */
body { font-size: 18px; line-height: 1.7; }
article p, article li { font-size: 18px; }
nav.main a { font-size: 17px; padding: 10px 16px; }
.btn-play { padding: 11px 22px !important; }
.lede { font-size: 20px; }
table.values th, table.values td { padding: 11px 16px; font-size: 17px; }
dl.gloss dd { font-size: 18px; }
details.faq summary { font-size: 19px; padding: 4px 0; }
details.faq p { font-size: 17px; }
.cta { font-size: 21px; padding: 16px 38px; }
:root { --chalk-dim: #d2ccbc; }

/* ═══ Illustrations animées du hero ═══════════════════════════════════════ */
.hero-cards {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end; gap: 46px;
  margin: 34px auto 6px;
  height: 150px;
  max-width: 480px;
}

.pcard {
  width: 86px; height: 122px;
  background: var(--card);
  border: 1px solid #d8d2c2;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  position: relative;
  color: var(--ink);
}
.pc-red { color: #b3303a; }
.pc-corner {
  position: absolute; top: 6px; left: 8px;
  font-weight: 700; font-size: 17px; line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}
.pc-corner i { font-style: normal; font-size: 15px; }
.pc-pip {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}

/* Éventail qui respire */
.fan { position: relative; width: 150px; height: 140px; }
.fan .pcard { position: absolute; bottom: 0; left: 30px; transform-origin: 50% 115%; }
.fan .pcard-1 { animation: fan1 5.5s ease-in-out infinite; }
.fan .pcard-2 { animation: fan2 5.5s ease-in-out infinite; }
.fan .pcard-3 { animation: fan3 5.5s ease-in-out infinite; }
@keyframes fan1 { 0%, 12%, 88%, 100% { transform: rotate(-4deg); } 38%, 62% { transform: rotate(-24deg); } }
@keyframes fan2 { 0%, 12%, 88%, 100% { transform: rotate(0deg) translateY(-2px); } 38%, 62% { transform: rotate(0deg) translateY(-10px); } }
@keyframes fan3 { 0%, 12%, 88%, 100% { transform: rotate(4deg); } 38%, 62% { transform: rotate(24deg); } }

/* Le chien se retourne (face cachée → face visible) */
.chien-flip { position: relative; width: 86px; height: 140px; perspective: 700px; }
.chien-inner {
  position: absolute; bottom: 18px; width: 86px; height: 122px;
  transform-style: preserve-3d;
  animation: chienflip 7s ease-in-out infinite;
}
.chien-back, .chien-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
}
.chien-back {
  background: repeating-linear-gradient(45deg, var(--wine) 0 6px, #7a2733 6px 12px);
  border-color: var(--wood-dark, #34200f);
}
.chien-face { transform: rotateY(180deg); }
@keyframes chienflip {
  0%, 30% { transform: rotateY(0deg); }
  45%, 80% { transform: rotateY(180deg); }
  95%, 100% { transform: rotateY(360deg); }
}
.chien-label {
  position: absolute; bottom: -6px; left: 0; right: 0;
  text-align: center;
  font-family: 'Caveat', cursive; font-size: 21px; color: var(--brass);
}

/* Symboles qui flottent discrètement */
.float-suit {
  position: absolute;
  font-size: 22px;
  color: rgba(240,234,216,0.35);
  animation: floaty 9s ease-in-out infinite;
}
.float-suit.pc-red { color: rgba(184,64,79,0.45); }
.fs-1 { left: -4%; top: 12%; animation-delay: 0s; }
.fs-2 { right: -2%; top: 4%; animation-delay: 2.2s; }
.fs-3 { left: 8%; bottom: 4%; animation-delay: 4.4s; font-size: 17px; }
.fs-4 { right: 10%; bottom: 14%; animation-delay: 6.6s; font-size: 18px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.55; }
  50% { transform: translateY(-16px) rotate(5deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fan .pcard, .chien-inner, .float-suit { animation: none !important; }
  .chien-inner { transform: rotateY(180deg); }
}
@media (max-width: 560px) {
  .hero-cards { gap: 26px; height: 130px; }
  .pcard { width: 70px; height: 100px; }
  .pc-pip { font-size: 34px; }
}
