/* === Solitaire — surcharge identité jeu ===
   Le hero (.hero-jeu, ses taches de coin, le flottement des cartes) et le
   filigrane du bloc des règles viennent de fichiers-partages-des-jeux/css/accueil.css.
   Ne garder ici que ce qui distingue visuellement le solitaire des autres jeux. */

/* Hero : patron partagé .hero-jeu motif-lignes. Ici seulement la marge et
   l'arrondi d'origine, la seconde teinte (le rouge vif du jeu) et le
   quadrillage de dos de carte des coins (lignes croisées à 45° et -45°, plus
   serrées que les diagonales du motif partagé). */
.hero-jeu {
  --hero-marge: -40px -32px 28px;
  --hero-radius: 24px 24px 0 0;
  --hero-teinte-2: #ef4444;
  --hero-motif: repeating-linear-gradient(45deg, rgba(252,165,165,0.08) 0px, rgba(252,165,165,0.08) 2px, transparent 2px, transparent 16px), repeating-linear-gradient(-45deg, rgba(248,113,113,0.06) 0px, rgba(248,113,113,0.06) 2px, transparent 2px, transparent 16px);
  --hero-motif-taille: 32px 32px;
  --hero-motif-2: repeating-linear-gradient(45deg, rgba(239,68,68,0.06) 0px, rgba(239,68,68,0.06) 2px, transparent 2px, transparent 14px), repeating-linear-gradient(-45deg, rgba(220,38,38,0.05) 0px, rgba(220,38,38,0.05) 2px, transparent 2px, transparent 14px);
  --hero-motif-2-taille: 28px 28px;
}

/* Les trois cartes qui flottent en haut du hero. Le flottement vient de
   .deco-flottante ; ici seulement leur forme de carte (rectangle aux coins
   arrondis au lieu de la pastille ronde) et leur remplissage.
   Relief interne seulement : pas d'ombre portée */
.carte-deco {
  width: 32px;
  height: 46px;
  border-radius: 8px;
  font-size: 1.3rem;
}
.carte-pique {
  background: radial-gradient(circle at 35% 35%, #333, #1a1a1a);
  box-shadow: inset 0 -2px 4px rgba(255,255,255,0.1);
  color: #aaa;
}
.carte-coeur {
  background: radial-gradient(circle at 35% 35%, #fca5a5, #dc2626);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
  color: #fff;
}
.carte-carreau {
  background: radial-gradient(circle at 35% 35%, #f87171, #ef4444);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
  color: #fff;
}

/* Titre hero en dégradé rouge */
.hero-jeu .hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--color-light), var(--color-mid), var(--color-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-jeu .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* Bouton CTA hero : aplat sans halo ni anneau pulsant */
.btn-cta-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 36px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: #dc2626;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.btn-cta-hero:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Indicateur sous le CTA : point fixe, sans onde */
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
}
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

/* Cartes modes de jeu - plus "game" */
.modes { gap: 14px; margin-bottom: 24px; }
.mode-card {
  position: relative;
  padding: 24px 18px;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-light), var(--color-mid));
  opacity: 0;
  transition: opacity 0.3s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252,165,165,0.3);
}

/* Badge sur les cartes */
.mode-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}
.badge-solo {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.badge-defi {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.2);
}
.badge-action {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}
.badge-quotidien {
  background: rgba(168,85,247,0.15);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.2);
}

/* Séparateur "ou choisissez votre mode" */
.modes-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: 14px;
}

/* Boutons primaires plus punchy */
.btn-primary {
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-primary:hover {
  transform: translateY(-3px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Donnes verifiees : l'argument qui distingue ce solitaire des autres.
   Assez visible pour etre lu, assez sobre pour ne pas passer pour une publicite. */
.donnes-verifiees {
  margin: 20px 0 28px;
  padding: 18px 22px;
  text-align: left;
  background: linear-gradient(135deg, rgba(74,222,128,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(74,222,128,0.22);
  border-radius: 16px;
}
.donnes-titre {
  font-size: 1rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 8px;
}
.donnes-verifiees p:not(.donnes-titre) {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.donnes-verifiees p + p { margin-top: 8px; }
.donnes-verifiees strong { color: #e2e8f0; }
@media (max-width: 600px) {
  .donnes-verifiees { padding: 14px 16px; }
  .donnes-titre { font-size: 0.92rem; }
  .donnes-verifiees p:not(.donnes-titre) { font-size: 0.85rem; }
}

/* Section rules - touche visuelle ; filigrane : le pique */
.rules {
  position: relative;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  --rules-symbole: '\2660';
}

/* Responsive hero : le titre en dégradé et les cartes gardent leurs tailles d'origine */
@media (max-width: 480px) {
  .hero-jeu .hero-title { font-size: 1.8rem; }
  .hero-jeu .hero-h1 { font-size: 0.95rem; }
  .btn-cta-hero { font-size: 1rem; padding: 12px 28px; }
  .carte-deco { width: 26px; height: 38px; font-size: 1rem; }
}

/* Accueil : styles sortis des attributs style="" (03/10/2026) */
.app-accueil { position: relative; z-index: 1; }
a.mode-card { text-decoration: none; }
#code-partie { text-transform: uppercase; max-width: 90px; text-align: center; }
#zone-max-joueurs[hidden] { display: none; }

/* Autres façons de jouer, sous les cartes de mode (03/10/2026) */
.modes-autres { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: -8px 0 24px; font-size: 0.9rem; }
.modes-autres-titre { color: rgba(255,255,255,0.6); }
.modes-autres a {
  padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600;
  color: #fff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
}
.modes-autres a:hover { background: rgba(255,255,255,0.12); }

/* Le Solitaire en bref : définition et tableau des règles (03/10/2026) */
.en-bref { margin: 20px 0 28px; padding: 18px 22px; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; }
.en-bref h2 { margin: 0 0 10px; font-size: 1.2rem; }
.en-bref p { line-height: 1.6; margin: 0 0 14px; }
.en-bref a { color: inherit; }
.tableau-defilant { overflow-x: auto; }
.tableau-regles { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tableau-regles caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.tableau-regles th, .tableau-regles td { padding: 7px 10px; border-top: 1px solid rgba(255,255,255,0.08); vertical-align: top; text-align: left; }
.tableau-regles th { white-space: nowrap; color: rgba(255,255,255,0.75); font-weight: 600; width: 1%; }
@media (max-width: 480px) {
  .en-bref { padding: 14px; }
  .tableau-regles th { white-space: normal; width: 34%; }
}
