/* ═══════════════════════════════════════════════════════════════
   TAPIS VERT — site public (tapisvert.ohfrere.fr)
   Couleurs reprises de l'app : tapis vert, bois, crème, or.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --felt:      #223123;
  --felt-d:    #172A20;
  --felt-l:    #2C6B50;
  --row:       #1F5E46;
  --panel:     #1C2A1E;
  --gold:      #D8B76C;
  --gold-l:    #FAD98A;
  --gold-d:    #B0823E;
  --wood:      #7A4A26;
  --wood-d:    #4A2A14;
  --cream:     #FBEBC8;
  --cream-d:   #F1D49B;
  --ink:       #3A2614;
  --ink-m:     #6A4A2A;
  --mint:      #9BF0BE;
  --terracotta:#8A4B2A;

  --font-t: 'Lilita One', 'Arial Rounded MT Bold', sans-serif;
  --font-b: 'Crimson Pro', Georgia, serif;

  --nh: 64px;
  --r: 14px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--felt);
  color: var(--cream);
  font-family: var(--font-b);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nh);
  background: rgba(23,42,32,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216,183,108,.25);
}
.nav__inner {
  max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.brand__name { font-family: var(--font-t); font-size: 24px; color: var(--cream); letter-spacing: .5px; }
.nav__links { display: flex; gap: 22px; font-size: 17px; }
.nav__links a { color: var(--cream-d); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--gold-l); }
@media (max-width: 640px) {
  .nav__links { gap: 14px; font-size: 15px; }
  .nav__links .hide-sm { display: none; }
  .brand__name { font-size: 21px; }
}
@media (max-width: 420px) {
  .nav__links { gap: 12px; font-size: 14px; }
  .brand__mark { width: 34px; height: 34px; }
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-t); font-size: 19px; letter-spacing: .3px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-l), #F0B85A 55%, #E0A03C);
  border: 2.5px solid var(--gold-d);
  box-shadow: 0 4px 0 var(--wood-d), 0 8px 18px rgba(0,0,0,.35);
}
.btn--soon { cursor: default; opacity: .92; }
.btn small { font-family: var(--font-b); font-size: 14px; font-weight: 600; opacity: .8; }

/* ── Accueil : héros ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nh) + 48px) 20px 72px;
  background:
    linear-gradient(180deg, rgba(23,42,32,.15) 0%, rgba(23,42,32,.55) 55%, var(--felt) 100%),
    url('../img/bandeau_village.webp') center top / cover no-repeat;
}
.hero__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero__title {
  font-family: var(--font-t); font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 5.4rem); line-height: 1;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--wood-d), 0 8px 24px rgba(0,0,0,.45);
}
.hero__family { display: block; font-size: .32em; color: var(--gold-l); letter-spacing: 1px; margin-bottom: 8px; }
.hero__tagline {
  margin: 18px 0 28px; max-width: 30ch;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.45;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero__meta { margin-top: 14px; font-size: 15px; color: var(--cream-d); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__tagline { margin-left: auto; margin-right: auto; }
}

/* ── Ardoise de démonstration (tableau des scores en HTML) ──── */
.slate {
  max-width: 360px; margin: 0 auto;
  background: linear-gradient(180deg, #213A2C, var(--felt-d));
  border: 8px solid var(--wood);
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--gold-d), 0 18px 40px rgba(0,0,0,.5);
  padding: 18px 18px 22px;
  font-family: var(--font-t);
}
.slate__plank {
  margin: -6px auto 14px; padding: 6px 18px; width: fit-content;
  background: linear-gradient(180deg, #9A6236, var(--wood) 55%, #5E3519);
  border-radius: 10px; border: 2px solid var(--wood-d);
  color: var(--cream); font-size: 20px;
}
.slate__head, .slate__row, .slate__total {
  display: grid; grid-template-columns: 44px 1fr 1fr; align-items: center; text-align: center;
}
.slate__head { color: var(--gold-l); font-size: 19px; padding-bottom: 6px; border-bottom: 2px solid rgba(216,183,108,.35); }
.slate__row { color: var(--cream); font-size: 18px; padding: 5px 0; border-bottom: 1px dashed rgba(251,235,200,.12); }
.slate__row:nth-child(even) { background: rgba(31,94,70,.35); }
.slate__n { color: var(--mint); font-size: 15px; }
.slate__row .zero { color: rgba(251,235,200,.45); }
.slate__total {
  margin-top: 12px; padding: 8px 0; border-radius: 12px;
  background: linear-gradient(180deg, #F6DFAE, var(--cream) 50%, var(--cream-d));
  border: 2px solid #C79A55; color: var(--ink); font-size: 24px;
}
.slate__total span:first-child { font-size: 14px; color: var(--terracotta); }
.slate__pending {
  margin-top: 10px; text-align: center; font-family: var(--font-b); font-size: 15px; font-style: italic; color: var(--gold-l);
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 72px 20px; }
.section--wood {
  background:
    linear-gradient(180deg, rgba(74,42,20,.55), rgba(74,42,20,.75)),
    url('../img/table_terrasse.webp') center / cover no-repeat;
}
.wrap { max-width: 1120px; margin: 0 auto; }
.section__title {
  font-family: var(--font-t); font-weight: 400; text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold-l);
  text-shadow: 0 2px 0 var(--wood-d);
}
.section__lead { text-align: center; max-width: 46ch; margin: 10px auto 40px; color: var(--cream-d); font-size: 1.15rem; }
.ornament { text-align: center; color: var(--gold); letter-spacing: 6px; opacity: .7; margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card {
  background: rgba(28,42,30,.82);
  border: 1px solid rgba(216,183,108,.28);
  border-radius: var(--r);
  padding: 24px 24px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.card__icon { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.card h3 { font-family: var(--font-t); font-weight: 400; font-size: 1.35rem; color: var(--cream); margin-bottom: 6px; }
.card p { color: var(--cream-d); font-size: 1.05rem; line-height: 1.6; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.game {
  background: linear-gradient(180deg, #F6DFAE, var(--cream) 50%, var(--cream-d));
  border: 2px solid #C79A55; border-radius: var(--r);
  padding: 18px 20px; color: var(--ink);
}
.game h3 { font-family: var(--font-t); font-weight: 400; font-size: 1.4rem; color: var(--wood-d); }
.game p { font-size: 1rem; line-height: 1.5; color: var(--ink-m); }
.game .tag {
  display: inline-block; margin-top: 8px; padding: 1px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; background: var(--row); color: var(--cream);
}
.game .tag--soon { background: var(--terracotta); }
.note { text-align: center; margin-top: 24px; font-size: .95rem; color: var(--cream-d); opacity: .85; }

.cta { text-align: center; }
.cta p { margin: 12px auto 28px; max-width: 44ch; color: var(--cream-d); }

/* ── Pages juridiques ───────────────────────────────────────── */
.legal { max-width: 800px; margin: 0 auto; padding: calc(var(--nh) + 40px) 20px 80px; }
.legal__hero { text-align: center; margin-bottom: 36px; }
.legal__hero h1 { font-family: var(--font-t); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--gold-l); line-height: 1.15; }
.legal__hero p { color: var(--cream-d); font-size: 1rem; margin-top: 6px; }
.legal section {
  background: linear-gradient(180deg, #F6DFAE, var(--cream) 40%);
  color: var(--ink);
  border: 2px solid #C79A55; border-radius: var(--r);
  padding: 26px 32px; margin-bottom: 16px;
}
@media (max-width: 600px) { .legal section { padding: 20px 18px; } }
.legal h2 {
  font-family: var(--font-t); font-weight: 400; font-size: 1.3rem; color: var(--wood-d);
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.legal h2 .n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--row); color: var(--cream); font-size: .9rem;
}
.legal p, .legal li { font-size: 1.05rem; line-height: 1.75; margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; margin: 6px 0 10px; }
.legal li { margin-bottom: 4px; }
.legal strong { color: var(--wood-d); }
.legal a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.legal h3 { font-size: 1.05rem; font-weight: 700; color: var(--row); margin: 14px 0 4px; }

/* ── Pied de page ───────────────────────────────────────────── */
.footer {
  background: var(--felt-d);
  border-top: 3px solid var(--wood);
  padding: 36px 20px 28px; text-align: center; color: var(--cream-d); font-size: 15px;
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 12px 0 14px; font-size: 16px; }
.footer__links a { color: var(--cream); }
.footer__links a:hover { color: var(--gold-l); }
.footer p { margin-top: 4px; }
.footer .small { font-size: 13px; opacity: .75; max-width: 70ch; margin: 10px auto 0; }
.footer a.inline { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }

/* ── Captures de l'app (2026-11-13) ─────────────────────────── */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, #3a2a1c, #120c07);
  border: 2px solid var(--gold-d);
  box-shadow: 0 22px 50px rgba(0,0,0,.55), inset 0 0 0 2px rgba(250,217,138,.18);
}
.phone img { width: 100%; aspect-ratio: 720 / 1404; border-radius: 28px; object-fit: cover; }
.hero .phone { max-width: 290px; transform: rotate(2deg); }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px);
  gap: 22px; overflow-x: auto; padding: 8px 4px 22px;
  scroll-snap-type: x mandatory; scrollbar-color: var(--gold-d) transparent;
}
.shot { scroll-snap-align: center; margin: 0; }
.shot .phone { max-width: none; padding: 8px; border-radius: 32px; }
.shot .phone img { border-radius: 24px; }
.shot figcaption { text-align: center; margin-top: 12px; color: var(--cream-d); font-size: 1rem; line-height: 1.45; }
.shot figcaption strong { display: block; font-family: var(--font-t); font-weight: 400; color: var(--gold-l); font-size: 1.15rem; }
.shots-hint { text-align: center; font-size: .95rem; color: var(--cream-d); opacity: .75; margin-top: -4px; }

.split {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.split--rev { grid-template-columns: 1.2fr 1fr; }
.split--rev .split__media { order: 2; }
.split h2 { text-align: left; }
.split .section__lead { text-align: left; margin: 10px 0 22px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--cream-d); font-size: 1.08rem; line-height: 1.55; }
.ticks li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: var(--gold); }
.ticks strong { color: var(--cream); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .split h2, .split .section__lead { text-align: center; }
  .split .section__lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) { .duo { gap: 10px; } .duo .phone { padding: 6px; border-radius: 26px; } }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.langs span {
  padding: 4px 14px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  border: 1px solid rgba(216,183,108,.45); color: var(--cream);
}

/* ── Éventail de cartes du héros ────────────────────────────── */
.hero__visual { position: relative; display: flex; justify-content: flex-end; padding-right: 10px; }
.hero__visual .phone { position: relative; z-index: 2; margin: 0; }
.fan {
  --w: 168px;
  position: absolute; z-index: 1;
  width: var(--w); aspect-ratio: 2 / 3;
  right: 300px; bottom: 120px;
}
.fan__card {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: calc(var(--w) * .07);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  transform-origin: 50% 175%;
  transform: rotate(calc(-26deg + var(--i) * 12deg));
  transition: transform .35s ease;
}
.hero__visual:hover .fan__card { transform: rotate(calc(-31deg + var(--i) * 14deg)); }
@media (max-width: 860px) {
  .hero__visual { justify-content: center; padding: 0 0 0 90px; }
  .fan { --w: 120px; right: auto; left: calc(50% - 215px); bottom: 110px; }
}
@media (max-width: 560px) {
  /* Petit écran : l'éventail s'ouvre derrière le haut du téléphone. */
  .hero__visual { padding: 120px 0 0; }
  .hero .phone { max-width: 250px; transform: none; }
  .fan { --w: 104px; left: calc(50% - 52px); top: 34px; bottom: auto; }
  .fan__card { transform-origin: 50% 190%; transform: rotate(calc(-40deg + var(--i) * 20deg)); }
  .hero__visual:hover .fan__card { transform: rotate(calc(-40deg + var(--i) * 20deg)); }
}
@media (prefers-reduced-motion: reduce) { .fan__card { transition: none; } }

/* ── De la même famille (Oh frère ! Pétanque) ───────────────── */
.family {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #1E3550, #13243A);
  border: 2px solid var(--gold-d);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.family__art { width: 100%; height: 100%; object-fit: cover; }
.family__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.family__head { display: flex; align-items: center; gap: 14px; }
.family__icon { width: 72px; height: 72px; border-radius: 18px; border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.family h3 { font-family: var(--font-t); font-weight: 400; font-size: 1.6rem; color: var(--cream); line-height: 1.1; }
.family__meta { font-size: .95rem; color: var(--gold-l); }
.family__body > p { color: var(--cream-d); font-size: 1.08rem; line-height: 1.6; }
.family__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.family__site { color: var(--gold-l); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .family { grid-template-columns: 1fr; }
  .family__art { aspect-ratio: 16 / 9; height: auto; }
  .family__body { padding: 22px 20px 26px; }
}
