:root{
  --tc-orange:#e15a0b;        /* terre battue principale */
  --tc-orange-dark:#b94808;   /* hover / contrastes */
  --tc-yellow:#ffd400;        /* balle de tennis */
  --tc-yellow-dark:#e6bf00;
  --tc-white:#ffffff;
  --tc-ink:#0f172a;           /* gris bleuté lisible */
}
body{font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji"; color:var(--tc-ink);}
.btn{display:inline-block;padding:.8rem 1.2rem;border-radius:.75rem;font-weight:700}
.btn-primary{background:var(--tc-orange);color:var(--tc-white)}
.btn-primary:hover{background:var(--tc-orange-dark)}
.chip{background:var(--tc-yellow); color:#111; font-weight:700; padding:.25rem .6rem; border-radius:999px;}
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:9999px;
  background:var(--tc-yellow); color:#111; font-size:22px;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  transition:transform .15s ease, background-color .2s ease;
}
.icon-btn:hover{ background:var(--tc-yellow-dark); transform:translateY(-1px); }
.btn-tenup{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.7rem 1rem; border-radius:.75rem; font-weight:700;
  background:var(--tc-white); color:var(--tc-orange);
  border:2px solid var(--tc-orange);
}
.btn-tenup:hover{ background:var(--tc-orange); color:#fff; }
 /* Correction affichage listes et paragraphes dans le contenu principal */
.prose ul { list-style-type: disc; margin-left: 2em; margin-bottom: 1.2em; }
.prose ol { list-style-type: decimal; margin-left: 2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { 
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.prose h1 {
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--tc-orange);
}
.prose h3 {
  margin-top: 1.7em;
  margin-bottom: 0.6em;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--tc-ink);
}
.prose h4 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.22;
  color: var(--tc-ink);
}
.prose figure { margin: 2em 0; }
.prose img {
  max-width: 300px;
  height: auto;
  float: right;
  margin: 0 0 1.2em 2em;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  background: #fff;
  /* Pour éviter que l'image ne dépasse du parent sur mobile */
  width: 100%;
  max-width: 300px;
  max-height: 70vh;
  object-fit: contain;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .prose img {
    float: none;
    display: block;
    margin: 1.2em auto;
    width: 100%;
    max-width: 95vw;
  }
}
/* Preview banner styles */
#preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.preview-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}
.preview-banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.preview-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.preview-banner-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.preview-banner-subtitle {
  font-size: 13px;
  opacity: 0.95;
}
.preview-banner-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-banner-close:hover {
  background: rgba(255,255,255,0.35);
}
.preview-banner-link {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.preview-banner-link:hover {
  background: rgba(255,255,255,0.35);
  text-decoration: none;
}
/* Adjust body padding when banner is visible */
body.preview-banner-shown {
  padding-top: 60px;
}
@media (max-width: 640px) {
  .preview-banner-content {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .preview-banner-icon {
    font-size: 20px;
  }
  .preview-banner-text strong {
    font-size: 13px;
  }
  .preview-banner-subtitle {
    font-size: 11px;
  }
  .preview-banner-link {
    padding: 6px 10px;
    font-size: 11px;
    order: 4;
    margin-top: 6px;
    width: 100%;
    justify-content: center;
  }
  /* 80px = banner content (~52px) + PR link row (~22px) + margins (6px) on mobile where link wraps to new line */
  body.preview-banner-shown {
    padding-top: 80px;
  }
}
[x-cloak]{display:none!important}

/* Article Reactions Styles */
.reaction-btn,
.reaction-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.reaction-info {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.reaction-count {
  min-width: 1.2em;
  text-align: center;
}

/* Like button states */
.like-btn .like-icon {
  display: inline;
}

.like-btn .like-icon-filled {
  display: none;
}

.like-btn.liked {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 1);
}

.like-btn.liked .like-icon {
  display: none;
}

.like-btn.liked .like-icon-filled {
  display: inline;
  color: white;
}

.like-btn.liked:hover {
  background: rgba(239, 68, 68, 1);
}

/* Like animation */
.like-btn.like-animate {
  animation: likePopup 0.3s ease;
}

@keyframes likePopup {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive adjustments for reactions */
@media (max-width: 640px) {
  .reaction-btn,
  .reaction-info {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}
