/* ═══════════════════════════════════════════════
   style.css — Soirées Jeux de Société
   Partagé par boardgames.html et lieu.html
   ═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

/* ── Tokens ── */
:root {
  --cream:      #F5F0E8;
  --cream-dark: #EBE4D4;
  --wood:       #8B5E3C;
  --wood-light: #C4956A;
  --wood-dark:  #5C3A1E;
  --ink:        #1E1510;
  --ink-muted:  #6B5744;
  --green:      #2D5016;
  --green-felt: #3A6B1E;
  --green-mid:  #4E8A2A;
  --gold:       #C9902A;
  --gold-light: #F0C060;
  --red:        #8B2020;
  --white:      #FFFEF9;
  --radius:     10px;
  --radius-lg:  16px;
}

/* ── Body / Fond ── */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0 34L0 84V52l28 16 28-16v32L28 100z' fill='none' stroke='%238B5E3C' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  color: var(--ink);
  min-height: 100vh;
}

/* ════════════════════════════════
   BANDEAU COMMUN
   ════════════════════════════════ */
.banner {
  background: linear-gradient(160deg, var(--wood-dark) 0%, var(--wood) 50%, var(--wood-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Bande feutrine verte en bas du bandeau */
.banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-felt) 0px,
    var(--green-felt) 12px,
    var(--green)      12px,
    var(--green)      24px
  );
  opacity: 0.7;
}

.banner-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.banner-art {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.banner-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-text .tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.banner-text .tagline em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 500;
}

.banner-deco {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
}

/* ════════════════════════════════
   MISE EN PAGE PRINCIPALE
   ════════════════════════════════ */
.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wood-light);
  margin-bottom: 1rem;
}

.reminder-note {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0 auto 1.5rem;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.reminder-die {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' fill='%23F5F0E8' stroke='%238B5E3C' stroke-width='2'/%3E%3Ccircle cx='8' cy='8' r='2' fill='%235C3A1E'/%3E%3Ccircle cx='16' cy='8' r='2' fill='%235C3A1E'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%235C3A1E'/%3E%3Ccircle cx='8' cy='16' r='2' fill='%235C3A1E'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%235C3A1E'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: die-spin 3.5s linear infinite;
}

.reminder-die:last-child {
  animation-direction: reverse;
}

@keyframes die-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ════════════════════════════════
   FOOTER COMMUN
   ════════════════════════════════ */
.page-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(139,94,60,0.15);
}

.footer-count,
.footer-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-add,
.footer-home {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--wood);
  background: var(--wood);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.18s;
}
.footer-add:hover,
.footer-home:hover {
  background: var(--wood-dark);
  border-color: var(--wood-dark);
}

.footer-note-link {
  text-decoration: none;
  transition: color 0.15s;
}
.footer-note-link:hover {
  color: var(--wood);
  text-decoration: underline;
}

/* ════════════════════════════════
   BOUTONS GÉNÉRIQUES
   ════════════════════════════════ */
.action-btn,
.contact-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--wood-light);
  background: transparent;
  color: var(--wood-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}
.action-btn:hover,
.contact-btn:hover {
  background: var(--cream);
  border-color: var(--wood);
}
.action-btn.primary {
  background: var(--wood);
  border-color: var(--wood-dark);
  color: var(--gold-light);
  padding: 6px 14px;
}

/* Badge condition de participation */
.condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(201,144,42,0.12);
  border: 1px solid rgba(201,144,42,0.45);
  color: #7A5510;
  cursor: default;
  width: fit-content;
  margin-top: 4px;
}
.condition-badge svg { flex-shrink: 0; }

/* Bouton "+ d'infos" sur les cartes session */
.info-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  background: rgba(201,144,42,0.08);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.info-btn::before {
  content: '▸';
  font-size: 0.65rem;
}
.info-btn:hover {
  background: rgba(201,144,42,0.18);
  border-color: var(--gold);
  color: var(--wood-dark);
  box-shadow: 0 1px 6px rgba(201,144,42,0.25);
}
.action-btn.primary:hover {
  background: var(--wood-dark);
}
.info-action{
  background: rgba(201,144,42,0.10);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.info-action:hover{
  background: rgba(201,144,42,0.18);
  color: var(--wood-dark);
  border-color: var(--gold);
}

/* ════════════════════════════════
   BOARDGAMES.PHP — Sessions
   ════════════════════════════════ */

/* Grille sessions */
.sessions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Carte session */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139,94,60,0.18);
  box-shadow: 0 2px 12px rgba(30,21,16,0.06);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 0 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: rgba(139,94,60,0.35);
  box-shadow: 0 4px 20px rgba(30,21,16,0.1);
}

/* Bande couleur latérale gauche selon confirmation */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.card[data-confirm="confirmed"]::before   { background: var(--green-mid); }
.card[data-confirm="unconfirmed"]::before { background: var(--gold); }
.card[data-confirm="cancelled"]::before   { background: #888; }

/* Carte annulée : atténuée */
.card[data-confirm="cancelled"] {
  opacity: 0.6;
  filter: grayscale(0.4);
}

/* Bloc date */
.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid rgba(139,94,60,0.15);
  border-radius: var(--radius);
  padding: 0.6rem 0.4rem;
  text-align: center;
  min-height: 76px;
}
.date-weekday {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wood-light);
}
.date-day {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--wood-dark);
  line-height: 1;
  margin: 2px 0;
}
.date-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood);
}

/* Corps de la carte session */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 2px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.meta-item svg { flex-shrink: 0; }

/* Badges jeux */
.games-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.game-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--cream);
  border: 1px solid rgba(139,94,60,0.2);
  color: var(--wood-dark);
}
.game-tag.star {
  background: rgba(45,80,22,0.08);
  border-color: rgba(78,138,42,0.35);
  color: var(--green);
}

/* Actions carte session */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 2px;
}

/* Pilules de statut */
.status-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.pill-confirmed   { background: rgba(45,80,22,0.10);  color: var(--green); border: 1px solid rgba(78,138,42,0.3); }
.pill-unconfirmed { background: rgba(201,144,42,0.12); color: #7A5510;      border: 1px solid rgba(201,144,42,0.4); }
.pill-cancelled   { background: rgba(100,100,100,0.1); color: #555;         border: 1px solid rgba(100,100,100,0.3); }

/* ════════════════════════════════
   LIEU.HTML — Venues
   ════════════════════════════════ */

/* Grille lieux */
.venues {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Carte lieu */
.venue-card {
  background: var(--white);
  border: 1px solid rgba(139,94,60,0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(30,21,16,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.venue-card:hover {
  border-color: rgba(139,94,60,0.35);
  box-shadow: 0 4px 20px rgba(30,21,16,0.1);
}

/* Barre colorée en haut de chaque carte */
.card-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--wood-dark), var(--wood-light));
}
.venue-card:nth-child(2) .card-stripe {
  background: linear-gradient(90deg, var(--green), var(--green-mid));
}

/* Corps carte lieu */
.venue-body {
  padding: 1.25rem 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.venue-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.venue-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.venue-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(45,80,22,0.1);
  color: var(--green);
  border: 1px solid rgba(78,138,42,0.3);
}

/* Lignes d'infos */
.venue-infos {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.info-row svg { flex-shrink: 0; margin-top: 1px; }
.info-row a {
  color: var(--wood);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.info-row a:hover { color: var(--wood-dark); text-decoration: underline; }

/* Bloc condition */
.condition-block {
  margin-top: 0.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(45,80,22,0.06);
  border: 1px solid rgba(78,138,42,0.2);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
}

/* Actions carte lieu */
.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Séparateur interne */
.venue-divider {
  height: 1px;
  background: rgba(139,94,60,0.1);
  margin: 0 1.5rem;
}

/* Pied de carte : adresse + minimap */
.venue-map {
  padding: 0.85rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid rgba(139,94,60,0.2);
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.map-address {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.map-address strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
}
.map-link {
  font-size: 0.75rem;
  color: var(--wood);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}
.map-link:hover { text-decoration: underline; }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 600px) {
  .banner-deco  { display: none; }
  .banner-art   { width: 80px; height: 80px; }
  .banner-inner { gap: 1rem; padding: 1.5rem 1rem; }

  /* Sessions */
  .card {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .card-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .date-block { min-height: 64px; }
  .date-day   { font-size: 1.6rem; }

  /* Lieux */
  .venue-body    { grid-template-columns: 1fr; }
  .venue-actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}
