/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ============================================================
   PGR (Puzzle Game Renderer) — CORE LAYOUT & BOARD SCALING
   ============================================================ */

/* Wrapper for one puzzle level */
.pgr-game {
  --pgr-radius: 18px;
  position: relative;
  overflow: hidden;
  border-radius: var(--pgr-radius);
  background: linear-gradient(180deg, #0b3d33 0%, #0e2723 100%);
  min-height: 70vh;
  color: #fff;
padding-bottom: 20px;	
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Blurred background image layer, using inline --pgr-bg:url(...) */
.pgr-bg {
  position: absolute;
  inset: 0;
  background-image: var(--pgr-bg);
  background-size: cover;
  background-position: center;
  /* softened look */
  filter: blur(18px) saturate(.75) brightness(1.15);
  transform: scale(1.08); /* avoid seeing edges after blur */
  will-change: transform, filter;
  z-index: 0;
}

/* subtle dark/light overlay to keep grid readable */
.pgr-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.18) 0%,
    rgba(0,0,0,.45) 80%
  );
}

/* Everything above bg sits above z-index 1+ */
.pgr-hud,
.pgr-board-wrap,
.pgr-audio-wrap,
.pgr-bonus,
.pgr-bonus--cloud,
.pgr-nav {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   HUD (title + coins). It's pinned near the top, centered text.
------------------------------------------------------------ */
.pgr-hud {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  pointer-events: none;
  text-align: center;
  color: #fff;
}

.pgr-level-title {
  color: #fff;
  text-align: center;
  margin: 0;
}

.pgr-level-title .pgr-lvl {
  margin: 0;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: .03em;
}

.pgr-level-title .pgr-pack {
  display: block;
  opacity: .85;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .03em;
  margin: 0;
}

.pgr-hud-right {
  /* we hide coins for now */
  display: none !important;
  position: absolute;
  right: 12px;
  top: 6px;
  font-weight: 700;
  font-size: 14px;
  pointer-events: auto;
  color: #fff;
}

/* ------------------------------------------------------------
   BOARD WRAP (centers the grid under the HUD)
------------------------------------------------------------ */
.pgr-board-wrap {
  /* extra top padding to clear the HUD */
  padding: 68px 16px 12px;
  display: flex;
  justify-content: center;
}

/* ------------------------------------------------------------
   BOARD SIZING
------------------------------------------------------------ */
/* DESKTOP + TABLET DEFAULT */
.pgr-board {
  --pgr-gap: 8px;

  --pgr-tile: min(
    40px,
    calc((100vw - (var(--pgr-gap) * (var(--pgr-w) - 1))) / var(--pgr-w)),
    calc((100vh - (var(--pgr-gap) * (var(--pgr-h) - 1))) / var(--pgr-h))
  );

  width: calc(var(--pgr-w) * var(--pgr-tile) + (var(--pgr-w) - 1) * var(--pgr-gap));
  height: calc(var(--pgr-h) * var(--pgr-tile) + (var(--pgr-h) - 1) * var(--pgr-gap));
  max-height: 100vh;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

/* MOBILE ≤768px */
@media (max-width:768px){
  .pgr-board-wrap{
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 4px;
    padding-top: 60px;
  }
  .pgr-board{
    --pgr-gap: 6px;
    --pgr-tile: min(
      40px,
      calc(((100vw - 32px) - (var(--pgr-gap) * (var(--pgr-w) - 1))) / var(--pgr-w)),
      calc((100vh - (var(--pgr-gap) * (var(--pgr-h) - 1))) / var(--pgr-h))
    );
    width: calc(var(--pgr-w) * var(--pgr-tile) + (var(--pgr-w) - 1) * var(--pgr-gap));
    height: calc(var(--pgr-h) * var(--pgr-tile) + (var(--pgr-h) - 1) * var(--pgr-gap));
  }
  .pgr-tile.filled {
    background: linear-gradient(180deg,#36b24a 0%, #1e8f37 90%) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35);
  }
  .pgr-tile .pgr-ch {
    font-size: clamp(16px, 3.8vw, 22px);
    line-height: 1;
  }
  .pgr-audio-wrap {
    padding: 12px 12px 0;
    font-size: 13px;
    line-height: 1.3;
  }
}

/* narrow phones ≤480px */
@media (max-width:480px){
  .pgr-board { --pgr-gap: 4px; }
  .pgr-tile.filled {
    background: linear-gradient(180deg,#36b24a 0%, #1e8f37 90%) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.35);
  }
  .pgr-tile .pgr-ch {
    font-size: clamp(14px, 4vw, 20px);
    line-height: 1;
  }
  .pgr-audio-wrap { padding: 10px 10px 0; }
}

/* EXTRA TIGHT for narrow phones ≤400px */
@media (max-width:400px){
  .pgr-board{
    --pgr-gap: 4px;
    --pgr-tile: min(
      40px,
      calc(((100vw - 32px) - (var(--pgr-gap) * (var(--pgr-w) - 1))) / var(--pgr-w)),
      calc((100vh - (var(--pgr-gap) * (var(--pgr-h) - 1))) / var(--pgr-h))
    );
  }
}

/* ultra-narrow (~360px and below) */
@media (max-width:360px){
  .pgr-board { --pgr-gap: 2px; }
  .pgr-tile.filled {
    box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.35);
  }
  .pgr-tile .pgr-ch {
    font-size: clamp(13px, 4.2vw, 18px);
    line-height: 1;
  }
  .pgr-audio-wrap {
    padding: 8px 8px 0;
    font-size: 12px;
    line-height: 1.3;
  }
}

/* ULTRA NARROW emergency mode ≤340px */
@media (max-width:340px){
  .pgr-board{
    --pgr-gap: 2px;
    --pgr-tile: min(
      40px,
      calc(((100vw - 32px) - (var(--pgr-gap) * (var(--pgr-w) - 1))) / var(--pgr-w)),
      calc((100vh - (var(--pgr-gap) * (var(--pgr-h) - 1))) / var(--pgr-h))
    );
  }
}

/* The 2 layers of the board */
.pgr-grid,
.pgr-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--pgr-w), var(--pgr-tile));
  grid-template-rows: repeat(var(--pgr-h), var(--pgr-tile));
  gap: 5px;
}

.pgr-grid {
  display: none !important;
}

/* ------------------------------------------------------------
   CELLS / TILES (letters)
------------------------------------------------------------ */

.pgr-cell {
  border-radius: 0;
  background: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}

.pgr-tile {
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.pgr-tile.filled {
  border-radius: 0;
  background: linear-gradient(180deg,#36b24a 0%, #1e8f37 90%);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35);
}

.pgr-tile .pgr-ch {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-family: inherit;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1;
  letter-spacing: .02em;
}

/* ------------------------------------------------------------
   BONUS WORDS (list mode)
------------------------------------------------------------ */
.pgr-bonus {
  padding: 12px 16px 0;
  color: #fff;
  font-family: inherit;
}

.pgr-bonus-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .02em;
  opacity: .95;
  color: #fff;
}

.pgr-bonus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.pgr-bonus-list li {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.28);
}

.pgr-bonus-list li.is-hidden { display: none !important; }

.pgr-bonus-reset {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
}
.pgr-bonus-reset:hover {
  background: rgba(255,255,255,.2);
}

/* ------------------------------------------------------------
   BONUS WORDS (cloud / radial layout)
------------------------------------------------------------ */
.pgr-bonus--cloud {
  padding: 8px 16px 0;
  color: #fff;
  text-align: center;
  font-family: inherit;
}

.pgr-bonus--cloud .pgr-bonus-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .02em;
  opacity: .95;
  color: #fff;
}

.pgr-bonus-cloud {
  --cloud-size: 360px;
  position: relative;
  width: min(100%, var(--cloud-size));
  aspect-ratio: 1/1;
  margin: 6px auto 0;
  border-radius: 50%;
  color: #fff;
}

.pgr-cloud-word {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.28);
}

.pgr-cloud-word.is-hidden { display: none !important; }

/* ------------------------------------------------------------
   PREV / NEXT NAVIGATION (bottom of level)
------------------------------------------------------------ */
/* Conteneur de navigation : on assure qu'il reste dans les limites */
.pgr-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px;
  z-index: 1;
  position: relative;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box; /* Force le calcul à l'intérieur du cadre */
}

.pgr-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px; 
  max-width: 48%;   
  padding: 10px 14px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  /* Sécurité anti-débordement du texte préservée */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}



.pgr-nav-btn:hover { background: rgba(255,255,255,.26); }
.pgr-nav-btn.prev::before { content: "«"; font-size: 18px; line-height: 1; }
.pgr-nav-btn.next::after { content: "»"; font-size: 18px; line-height: 1; }

/* ============================================================
   EXTRA CONTENT BLOCKS AROUND THE GRID
   ============================================================ */
.ws-intro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #1e293b;
  margin: 16px 0 20px;
  font-weight: 400;
}

.ws-level-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #334155;
}

.ws-meta-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

.ws-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ws-meta-list li { margin: 4px 0; }


/* ============================================================
   ARTICLE TITLE ICON
   ============================================================ */
.post-title-icon {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.entry-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.single .entry-title {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
  line-height: 1.2;
}

.single .entry-title::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-image: url('https://www.solvingwordscapes.com/wp-content/uploads/2025/09/favicon.png');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

@media (max-width:480px){
  .single .entry-title {
    font-size: 28px;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    white-space: normal;
  }
  .single .entry-title::before {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    box-shadow: 0 2px 3px rgba(0,0,0,.25);
  }
}

/* ============================================================
   WORLDS INDEX PAGE (list of worlds and packs)
   ============================================================ */
.ws-head {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.ws-main-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 8px;
}
.ws-main-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.ws-worlds-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.ws-worlds-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px,100%),1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ws-world {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.18) 100%),
              radial-gradient(circle at 20% 20%, #6b7280 0%, #374151 60%, #1f2937 100%);
  border-radius: 14px;
  border: 1.5px solid rgba(31,41,55,.9);
  box-shadow: 0 12px 24px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.4) inset;
  color: #fff;
  padding: 16px 16px 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.ws-world-name {
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
}

.ws-world-range {
  color: rgba(255,255,255,.9);
  margin: 4px 0 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.ws-pack-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ws-pack-list a {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.28);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 12px rgba(0,0,0,.22);
  transition: transform .12s ease, filter .12s ease;
}

.ws-pack-list a:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.ws-world .ws-pack-list li:nth-child(8n+1) a { background: linear-gradient(180deg,#7CD992 0%, #64C47D 100%); }
.ws-world .ws-pack-list li:nth-child(8n+2) a { background: linear-gradient(180deg,#9BE3C3 0%, #7FD4AE 100%); }
.ws-world .ws-pack-list li:nth-child(8n+3) a { background: linear-gradient(180deg,#9EDAF5 0%, #7EC6E8 100%); }
.ws-world .ws-pack-list li:nth-child(8n+4) a { background: linear-gradient(180deg,#A7B3F6 0%, #8F9AF1 100%); }
.ws-world .ws-pack-list li:nth-child(8n+5) a { background: linear-gradient(180deg,#D3A6EF 0%, #C18EE8 100%); }
.ws-world .ws-pack-list li:nth-child(8n+6) a { background: linear-gradient(180deg,#F7B28F 0%, #F09A74 100%); }
.ws-world .ws-pack-list li:nth-child(8n+7) a { background: linear-gradient(180deg,#F9D27D 0%, #F4B949 100%); }
.ws-world .ws-pack-list li:nth-child(8n+8) a { background: linear-gradient(180deg,#6ED3E6 0%, #4DB9D3 100%); }

@media (max-width:480px){
  .ws-world-name { font-size: 18px; }
  .ws-world-range { font-size: 13.5px; }
  .ws-pack-list a { font-size: 15px; padding: 12px 14px; border-radius: 12px; }
}

/* ============================================================
   PACK PAGE (inside a given world → list of puzzle links)
   ============================================================ */
.pack-head {
  text-align: center;
  color: #222;
  padding: 24px 16px 16px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
  font-family: inherit;
}

.pack-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pack-tags .tag {
  background: linear-gradient(135deg, #ffdd66 0%, #ff914d 100%);
  color: #2b1a00;
  border-radius: 6px;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.pack-desc {
  color: #555;
  font-size: 18px !important;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.pack-puzzles {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 16px 24px;
  color: #222;
  text-align: center;
}

.pack-title {
  color: #222;
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
}

.puzzle-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 16px;
  max-width: 800px;
}

.puzzle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70px;
  width: 100%;
  padding: 16px 14px;
  background: linear-gradient(#26a72a 0%, #167a16 100%);
  border: 1px solid #0f5d0f;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18), 0 2px 3px rgba(255,255,255,0.25) inset;
  transition: all .15s ease;
}

@media (hover:hover){
  .puzzle-btn:hover,
  .puzzle-btn:focus {
    background: linear-gradient(#2ecf32 0%, #1f8f1f 100%);
    box-shadow: 0 14px 24px rgba(0,0,0,0.22), 0 2px 3px rgba(255,255,255,0.35) inset;
    transform: translateY(-2px);
  }
}

/* ------------------------------------------------------------
   Bottom Prev/Next navigation on pack page
------------------------------------------------------------ */
.pack-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.nav-card {
  flex: 0 0 auto;
  min-width: 140px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  background-color: #f9f9f9;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 12px 16px;
  color: #222;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: all .15s ease;
}

.nav-card .nav-label {
  display: inline-block;
  white-space: nowrap;
  font-size: 20px !important;
  line-height: 1.3;
  font-weight: 600;
}

@media (hover:hover){
  .nav-card:hover,
  .nav-card:focus {
    background-color: #fff;
    border-color: #555;
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
    transform: translateY(-2px);
  }
}

@media (min-width:768px){
  .pack-nav { flex-wrap: nowrap; gap: 0; }
  .nav-card { width: 170px; text-align: center; }
}

@media (max-width:480px){
  .pack-nav { justify-content: center; }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS FOR SMALL VIEWPORTS (PUZZLE VIEW)
   ============================================================ */
@media (max-width:540px){
  .pgr-board { --pgr-gap: 6px; }
  .pgr-board-wrap {
    padding-top: 60px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 4px;
  }
  .pgr-audio-wrap { padding: 12px 12px 0; }
  .pgr-audio-wrap .mejs-container { margin: 0; }
  .pgr-bonus { padding: 10px 12px 0; margin-top: 10px; }
  .pgr-bonus-title { font-size: 13px; }
  .pgr-bonus-list li { padding: 5px 9px; font-size: 14px; }
  .pgr-bonus--cloud { padding: 10px 12px 0; }
  .pgr-bonus-cloud { --cloud-size: 300px; }
  .pgr-cloud-word { font-size: clamp(12px, 3.6vw, 18px); }
  .pgr-nav { padding: 8px 12px 12px; gap: 8px; }
  .pgr-nav-btn { padding: 8px 12px; font-size: 14px; }
  .pgr-level-title .pgr-lvl { font-size: 20px; }
  .pgr-level-title .pgr-pack { font-size: 12px; }
}

/* ============================================================
   Daily Puzzle CTA (bouton homepage vers le daily du jour)
   ============================================================ */
.ws-daily-wrap{
  text-align: center;
  margin: 24px auto 32px;
  max-width: 100%;
}

.ws-daily-btn{
  background: rgba(0,0,0,.6) !important;
  border: 2px solid #fff !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: .5rem !important;
  padding: .6rem 2.75rem .6rem 1rem !important;
  line-height: 1.2 !important;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .03em;
  font-size: 15px;
  color: #fff !important;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 8px rgba(255,255,255,.15) inset;
  cursor: pointer;
  position: relative;
  transition: all .15s ease;
}

@media (hover:hover){
  .ws-daily-btn:hover,
  .ws-daily-btn:focus{
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,.55), 0 0 10px rgba(255,255,255,.25) inset;
  }
}

.ws-daily-top{
  color:#fff !important;
  margin:0 !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

.ws-daily-date{
  color:#fff !important;
  margin:2px !important;
  font-size:22px !important;
  font-weight:600 !important;
  line-height:1.8 !important;
  text-align:center !important;
  opacity:.9;
}

@media (max-width:480px){
  .ws-daily-btn{
    padding:.55rem 2.5rem .55rem .9rem !important;
    font-size:14px;
    letter-spacing:.02em;
  }
  .ws-daily-top,
  .ws-daily-date{
    font-size:18px !important;
  }
}

/* ============================================================
   SEARCH BLOCK WORDSCAPES
   ============================================================ */
/* 1. Le formulaire : on supprime la bordure en trop */
.ws-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Un peu plus d'espace entre la zone de texte et le bouton */
  justify-content: center;
  margin-bottom: 16px;
  border: none !important; /* Nettoyage de la double bordure */
}

/* 2. Le champ texte : un arrondi premium */
.ws-search-input {
  flex: 1 1 240px;
  min-width: 0;
  border-radius: 12px !important; /* Arrondi doux */
  border: 2px solid #e2e8f0 !important; /* Bordure plus claire et plus épaisse */
  padding: 14px 18px !important;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02) inset;
  transition: all 0.2s ease;
}

.ws-search-input:focus {
  outline: none;
  border-color: #26a72a !important; /* Liseré vert au clic */
  box-shadow: 0 0 0 3px rgba(38, 167, 42, 0.15);
}

/* 3. Le bouton : on lui redonne sa belle épaisseur */
.ws-search-form button,
.ws-search-btn {
  background: linear-gradient(180deg, #26a72a 0%, #167a16 100%) !important;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: .03em;
  font-size: 15px;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 24px !important;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(38, 167, 42, 0.2);
  transition: all .2s ease;
}

@media (hover:hover){
  .ws-search-form button:hover,
  .ws-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(38, 167, 42, 0.3);
  }
}

/* Optimisation spéciale Mobile (Bouton bien large et facile à cliquer) */
@media (max-width: 480px) {
  .ws-search-form button,
  .ws-search-btn {
    width: 100% !important; 
    padding: 15px 20px !important; 
    font-size: 16px !important;
    text-align: center !important;
  }
}

.ws-search-results{
  font-size: 15px;
  line-height: 1.4;
  color: #222;
}

.ws-search-loading,
.ws-search-empty,
.ws-search-error{
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 16px 8px;
}

.ws-search-block{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  padding: 16px;
  margin-bottom: 16px;
}

.ws-search-hero{
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.ws-search-hero-main{
  text-decoration: none;
  display: block;
}

.ws-search-hero-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.ws-search-hero-meta{
  font-size: 14px;
  color: #555;
}

.ws-search-hero a.ws-search-hero-main{
  text-decoration: none;
  color: inherit;
}

.ws-search-hero a.ws-search-hero-main:hover .ws-search-hero-title{
  text-decoration: underline;
}

.ws-search-row{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ws-search-subcard{
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1 1 240px;
  min-width: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.03);
  margin-bottom: 12px;
}

.ws-search-subtitle{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #666;
  margin-bottom: 6px;
}

.ws-search-link{
  color: #2a2a2a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.ws-search-link:hover{
  text-decoration: underline;
}

.ws-search-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.ws-search-list-item{
  margin-bottom: 8px;
}

.ws-search-list-item:last-child{
  margin-bottom: 0;
}

/* =======================================
   Résultats recherche pack : liste puzzles
   ======================================= */
.ws-search-puzzlelist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 8px;
}

.ws-search-puzzlelist .ws-search-list-item{
  margin: 0;
  padding: 0;
}

/* =========================================================
   Daily search result styling
   ========================================================= */
.ws-daily-hero{
  background: linear-gradient(#ffffff 0%, #fafafa 100%);
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 16px 20px 18px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.06), 0 1px 2px rgba(255,255,255,0.9) inset;
  margin-bottom: 16px;
}

.ws-daily-hero-header{
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.ws-daily-hero-badge{
  display: inline-block;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #444;
  background: #fff9e6;
  border: 1px solid #e6d18a;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ws-daily-hero-date{
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.ws-daily-hero-cta{
  font-size: 15px;
  line-height: 1.4;
}

.ws-daily-hero-link{
  font-weight: 600;
  color: #0a58ca;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #bcd0f8;
  background: #f5f8ff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (hover:hover){
  .ws-daily-hero-link:hover{
    text-decoration: underline;
    background: #eef3ff;
  }
}

.ws-daily-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  line-height: 1.2;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: rgba(0,0,0,.6);
  border: 2px solid #fff;
  border-radius: 9999px;
  padding: .55rem 3.2rem .55rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 8px rgba(255,255,255,.15) inset;
}

.ws-daily-pill:hover {
  background: rgba(0,0,0,.75);
  box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 10px rgba(255,255,255,.2) inset;
}

.ws-daily-text {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 600;
}

.ws-daily-cal {
  position: absolute;
  right: .5rem;
  top: -.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.45);
  min-width: 2.2rem;
  text-align: center;
}

.ws-daily-cal .cal-month {
  background: #e1252a;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .2rem .4rem;
  line-height: 1.1;
  text-transform: uppercase;
  width: 100%;
}

.ws-daily-cal .cal-day {
  background: #fff;
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem .4rem .45rem;
  line-height: 1.1;
  width: 100%;
  border-radius: 0 0 4px 4px;
}

@media (max-width:480px){
  .ws-daily-pill{ font-size:14px; padding:.5rem 3rem .5rem .9rem; }
  .ws-daily-cal{ right:.4rem; top:-.5rem; min-width:2rem; }
  .ws-daily-cal .cal-month{ font-size:.55rem; padding:.15rem .35rem; }
  .ws-daily-cal .cal-day{ font-size:.75rem; padding:.3rem .35rem .4rem; }
}

/* ===== Homepage background image / color ===== */
body.home { background-color:#fff; }
body.home .site { background-color:#fff; }
.site-content, .content-area { background-color:#fff; }
.inside-article { background-color:#fff !important; }

/* Remove opaque backgrounds on home page elements */
body.home .inside-header,
body.home .site-content,
body.home .content-area,
body.home .entry-content,
body.home .widget-area,
body.home .footer-widgets,
body.home .inside-footer-widgets,
body.home .inside-site-info,
body.home .ws-hero,
body.home .ws-search-wrap,
body.home .ws-worlds-index,
body.home .ws-worlds-list,
body.home .ws-world,
body.home .ws-hero-top,
body.home .ws-hero-search {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.home .ws-hero,
body.home .ws-search-wrap,
body.home .ws-worlds-list {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
}

body.home .ws-hero { margin-top: 16px; margin-bottom: 24px; }
body.home .ws-search-wrap { margin-top: 0; margin-bottom: 24px; padding: 16px; }
body.home .ws-worlds-list { padding: 16px; margin-bottom: 40px; }

body.home .ws-world-name { color: #000 !important; text-shadow: none !important; }
body.home .ws-world-range { color: #000 !important; text-shadow: none !important; }
body.home .ws-pack-list a {
  color: #000 !important;
  text-shadow: none !important;
  border-color: rgba(0,0,0,.4) !important;
}
body.home .ws-pack-list a:hover { filter: brightness(1.05); }
body.home .ws-pack-list { color: #000 !important; }
body.home .ws-world { color: #000 !important; }

/* ========== CATEGORY PAGE LAYOUT ========== */


/* HERO HEADER (top section) */
.cat-hero {
  max-width: 900px;
  margin: 0 auto 32px;
  background-image: linear-gradient(135deg, #fff7d1 0%, #ffdce8 50%, #e9e4ff 100%);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08), 0 2px 4px rgba(255,255,255,.7) inset;
  padding: 20px 20px 24px;
}

.cat-hero-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cat-hero-head-left { flex: 1 1 auto; min-width: 0; }
.cat-hero-title { margin: 0 0 6px 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: #1e1e1e; }
.cat-hero-desc { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 400; color: #444; max-width: 600px; }
.cat-hero-head-right { flex: 0 0 auto; display: flex; align-items: flex-start; }

.cat-hero-search { margin-top: 8px; }
.cat-hero-search .ws-search-wrap {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cat-hero-search .ws-search-form {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  border-radius: 10px !important;
  padding: .5rem .5rem .5rem .75rem !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.07);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-start;
}

.cat-hero-search .ws-search-input,
.cat-hero-search .ws-search-form input[type="text"],
.cat-hero-search .ws-search-form input[type="search"] {
  flex: 1 1 200px;
  min-width: 0;
  background: #fff !important;
  border: 0 !important;
  border-radius: 6px;
  box-shadow: none !important;
  padding: .6rem .6rem;
  font-size: .9rem;
  line-height: 1.4;
  color: #111 !important;
}

.cat-hero-search .ws-search-btn,
.cat-hero-search .ws-search-form button {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 8px !important;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .6rem .8rem;
  box-shadow: none !important;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width:480px){
  .cat-hero-search .ws-search-form { flex-direction: column; align-items: stretch; }
  .cat-hero-search .ws-search-btn,
  .cat-hero-search .ws-search-form button { width: 100%; text-align: center; }
}

/* ========== DAILY FEATURED CARD (Today's Daily) ========== */
.cat-featured { max-width: 900px; margin: 24px auto 32px; }

.cat-featured-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
  padding: 20px 20px 24px;
}

.cat-featured-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: #666;
  letter-spacing: .04em;
  margin-bottom: 6px;
  text-align: left;
}

.cat-featured-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}
.cat-featured-title a { color: inherit; text-decoration: none; }
.cat-featured-title a:hover { text-decoration: underline; }

.cat-featured-meta { font-size: 13px; line-height: 1.4; color: #555; margin-bottom: 12px; }
.cat-featured-excerpt { font-size: 15px; line-height: 1.45; color: #222; margin-bottom: 12px; }
.cat-featured-cta { display: inline-block; font-size: 14px; font-weight: 600; color: #0a58ca; text-decoration: none; }
.cat-featured-cta:hover { text-decoration: underline; }

/* ========== SECTION TITLES / LISTS ========== */
.cat-section-title {
  max-width: 900px;
  margin: 32px auto 12px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.cat-list-block { max-width: 900px; margin: 0 auto 40px; padding: 0 4px; }

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 20px 40px rgba(0,0,0,.04);
}

.cat-card { padding: 12px 16px; border-bottom: 1px solid #eee; }
.cat-card:last-child { border-bottom: 0; }
.cat-card-title { display: inline-block; font-size: 15px; font-weight: 600; line-height: 1.4; color: #0a58ca; text-decoration: none; }
.cat-card-title:hover { text-decoration: underline; }
.cat-card-meta { font-size: 13px; line-height: 1.3; color: #555; margin-top: 2px; }
.cat-card-excerpt { font-size: 14px; line-height: 1.4; color: #222; margin-top: 6px; }

/* ========== PUZZLE GRID (Latest Solved Levels) ========== */
.cat-card-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
}

.cat-card-tile { margin: 0; }
.cat-card-tile-link {
  display: block;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 18px 32px rgba(0,0,0,.05);
  transition: all .15s ease;
  height: 100%;
}
.cat-card-tile-link:hover { box-shadow: 0 22px 40px rgba(0,0,0,.07); transform: translateY(-2px); border-color: #999; }
.cat-card-tile-main { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; color: #111; }
.cat-card-tile-meta { font-size: 13px; line-height: 1.3; color: #666; }

/* ========== PACK GRID (All Packs chips) ========== */
.pack-chip-grid {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pack-chip-wrap { flex: 0 0 auto; }
.pack-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
  transition: all .12s ease;
}
.pack-chip:hover { transform: translateY(-2px); filter: brightness(1.05); }

.pack-color-1 .pack-chip { background: linear-gradient(180deg,#7CD992 0%, #64C47D 100%); }
.pack-color-2 .pack-chip { background: linear-gradient(180deg,#9BE3C3 0%, #7FD4AE 100%); }
.pack-color-3 .pack-chip { background: linear-gradient(180deg,#9EDAF5 0%, #7EC6E8 100%); }
.pack-color-4 .pack-chip { background: linear-gradient(180deg,#A7B3F6 0%, #8F9AF1 100%); }
.pack-color-5 .pack-chip { background: linear-gradient(180deg,#D3A6EF 0%, #C18EE8 100%); }
.pack-color-6 .pack-chip { background: linear-gradient(180deg,#F7B28F 0%, #F09A74 100%); }
.pack-color-7 .pack-chip { background: linear-gradient(180deg,#F9D27D 0%, #F4B949 100%); }
.pack-color-8 .pack-chip { background: linear-gradient(180deg,#6ED3E6 0%, #4DB9D3 100%); }

@media (max-width:480px){
  .cat-hero { padding:16px; border-radius:14px; }
  .cat-hero-title { font-size:18px; }
  .cat-hero-desc { font-size:13px; }
  .pack-chip { min-width: 46%; padding: 12px 10px; font-size:14px; }
}

@media (max-width: 600px) {
  body.category .cat-hero-head { flex-direction: column; }
  body.category .pack-chip-grid { justify-content: center; }
  body.category .pack-chip-wrap { flex: 1 1 100%; }
  body.category .pack-chip { width: 100%; text-align: center; }
}

/* === Daily category specific alignment === */
.cat-hero-daily .cat-hero-head-daily { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cat-hero-daily .cat-hero-head-left-daily { max-width: 600px; }
.cat-hero-daily .cat-hero-daily-btnwrap { margin-top: 12px; display: flex; justify-content: center; }
.cat-hero-daily .cat-hero-daily-btnwrap .ws-daily-btn { margin: 0 auto; }
.cat-hero-daily .cat-hero-search { margin-top: 16px; }



.cat-hero-404 .cat-hero-title { color: #1a2a3a; }
.cat-hero-404 .cat-hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 9999px;
  padding: .4rem 1.2rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .cat-hero-404 .cat-hero-actions { flex-direction: column; align-items: flex-start; }
}


/* Design des nouveaux boutons de réponses SEO */
.pgr-word-buttons {
    list-style: none !important;
    padding: 0;
    margin: 35px auto 0 auto; /* Aligné avec tes nouveaux espacements */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 10;
    max-width: 95%; /* Empêche de coller aux bords */
}
.pgr-answer-btn {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.pgr-answer-btn:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Effet quand le joueur clique sur un mot pour le barrer */
.pgr-answer-btn.collected {
    background-color: rgba(0, 0, 0, 0.4) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-decoration: line-through !important;
    transform: scale(0.95);
    box-shadow: none !important;
}

/* Nettoyage de la navigation pour éviter le collage à gauche et en bas */
.pgr-nav {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 15px 16px !important; /* Espacement interne constant */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important; /* Retire toute marge qui pousse vers les bords */
  position: relative !important;
  left: 0 !important;
}

/* 1) Stabilise la largeur du viewport quand la scrollbar apparaît/disparaît */
html { scrollbar-gutter: stable; }

/* 2) Empêche le puzzle de créer un overflow horizontal */
.pgr-game { position: relative; overflow-x: clip; }
@supports not (overflow: clip) {
  .pgr-game { overflow-x: hidden; }
}

/* 3) Très souvent le coupable: un background/overlay qui dépasse.
   On le force à suivre le conteneur (pas le viewport). */
.pgr-game .pgr-bg{
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}

/* 4) Ta nav reste safe */
.pgr-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding: 0 14px;
}
.pgr-nav .pgr-nav-btn{
  max-width: calc(50% - 6px);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* ============================================================
   DEEP LINK BUTTON (Retour au jeu - Mobile Only)
   ============================================================ */
.ws-deeplink-wrap {
  text-align: center;
  margin: 30px 0 20px 0; /* Ajoute un bel espace au-dessus du bouton */
  position: relative;
  z-index: 10;
}
.ws-deeplink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff914d 0%, #ff5722 100%); /* Orange vif */
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 2px 4px rgba(255,255,255,0.4) inset;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ws-deeplink-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4), 0 2px 4px rgba(255,255,255,0.4) inset;
}

@media (max-width: 480px) {
  .ws-deeplink-btn {
    font-size: 15px;
    padding: 12px 20px;
    width: 85%; /* Bouton bien large sur mobile */
  }
}

/* On cache totalement le bouton sur les ordinateurs (écrans > 768px) */
@media (min-width: 769px) {
  .ws-deeplink-wrap {
    display: none !important;
  }
}

/* ============================================================
   COMMENT SECTION CUSTOMIZATION
   ============================================================ */
/* La boîte globale des commentaires */
.comments-area {
    background: #f8fafc; /* Fond très légèrement grisé/bleuté pour détacher la zone */
    /*border-radius: 16px;
     padding: 30px;
    margin-top: 40px;*/
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Le titre "Leave a comment" */
.comment-reply-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Style des champs de saisie (Nom, Email, Message) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
    color: #333;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* Effet quand on clique dans un champ pour écrire */
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #26a72a; /* Vert Wordscapes */
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 167, 42, 0.15);
}

/* Le bouton "Post Comment" */
.comment-form .submit {
    background: linear-gradient(#26a72a 0%, #167a16 100%);
    color: #fff;
    border: 1px solid #0f5d0f;
    border-radius: 999px; /* Bouton pilule */
    padding: 12px 28px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15), 0 2px 3px rgba(255,255,255,0.2) inset;
    transition: all 0.2s ease;
}

/* Effet au survol du bouton */
.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2), 0 2px 3px rgba(255,255,255,0.3) inset;
    background: linear-gradient(#2ecf32 0%, #1f8f1f 100%);
}

/* Masquer définitivement le champ Site Web (URL) */
.comment-form-url {
    display: none !important;
}

/* Ajuster l'espacement de la case à cocher "Enregistrer mon nom..." si elle est présente */
.comment-form-cookies-consent {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* On s'assure que la case à cocher garde sa petite taille normale */
.comment-form-cookies-consent input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}
/* Réduire la taille du compteur de commentaires (ex: "0 thoughts on...") */
.comments-title {
    font-size: 18px !important; /* Taille beaucoup plus discrète */
    font-weight: 700;
    color: #334155; /* Un gris foncé doux pour ne pas agresser l'œil */
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ============================================================
   STYLE DES COMMENTAIRES PUBLIÉS (Design Carte)
   ============================================================ */
/* Enlever la ligne de séparation par défaut du thème */
.comment-list li.comment {
    border-bottom: none !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
}

/* Créer l'encadré moderne pour chaque commentaire */
.comment-list li.comment .comment-body {
    background: #ffffff; /* Fond blanc pour trancher */
    border: 1px solid #e2e8f0; /* Bordure gris très clair et discret */
    border-radius: 12px; /* Coins arrondis */
    padding: 20px 24px; /* Espace intérieur pour aérer le texte */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); /* Le reflet/ombre très doux */
    position: relative;
}

/* Optionnel : donner un peu de style au nom de l'auteur et à la date */
.comment-list .comment-author cite {
    font-weight: 700;
    color: #0f172a;
    font-style: normal;
    font-size: 16px;
}

.comment-list .comment-metadata a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

/* ============================================================
   MODERN FOOTER DESIGN
   ============================================================ */
/* La zone globale du footer */
.site-info {
    background-color: #0b1013 !important; /* Fond presque noir/bleuté très élégant */
    color: #94a3b8; /* Texte gris doux pour ne pas agresser l'œil */
    border-top: 4px solid #26a72a; /* Liseré vert Wordscapes */
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

/* Le bloc de texte qu'on a créé en PHP */
.ws-custom-footer p {
    margin: 0 0 8px 0;
}

/* Le style du petit texte légal (disclaimer) */
.ws-disclaimer {
    font-size: 12px;
    color: #64748b;
    opacity: 0.8;
    margin-top: 10px !important;
}

/* Si tu ajoutes des liens plus tard (ex: Privacy Policy) */
.site-info a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.site-info a:hover {
    color: #26a72a;
}

/* Style du menu des liens dans le footer */
.ws-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espace entre chaque lien */
    margin-bottom: 20px;
}

.ws-footer-links a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ws-footer-links a:hover {
    color: #26a72a; /* Vert au survol */
}

/* On donne un peu d'air au copyright */
.ws-copyright {
    margin: 0 0 8px 0 !important;
}

/* ============================================================
   HOMEPAGE PACKS GENERATOR DESIGN (Shortcode Multicolore)
   ============================================================ */
.ws-home-packs-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0;
}

/* Le bloc d'un univers */
.ws-pack-group {
    margin-bottom: 25px;
    background: #ffffff; /* Tranchons avec un fond blanc pur */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Petite ombre portée */
}

/* L'en-tête (Titre + Niveaux) */
.ws-group-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.ws-group-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 !important;
}

.ws-group-levels {
    font-size: 14px;
    font-weight: 600;
}

/* La grille des boutons */
.ws-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Le bouton du Pack (par défaut, on garde ton vert) */
.ws-pack-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #26a72a 0%, #167a16 100%); /* Vert par défaut */
    color: #fff !important;
    text-decoration: none;
    padding: 12px 5px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 15px rgba(38, 167, 42, 0.15); /* Ombre portée verte */
}

.ws-pack-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.ws-pack-btn .pack-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Le style des petits chiffres "801 > 820" */
.ws-pack-btn .pack-range {
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: 12px;
}

/* ============================================================
   PALETTES DE COULEURS GÉNÉRÉES AUTOMATIQUEMENT
   (Associe un dégradé de bouton et une couleur de titre)
   ============================================================ */

/* ws-color-1 : Univers Sunrise (Jaune/Orange chaud) */
.ws-color-1 .ws-group-title { color: #d97706; }
.ws-color-1 .ws-group-levels { color: #b45309; }
.ws-color-1 .ws-pack-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.2);
}

/* ws-color-2 : Univers Forest (Vert sapin) */
.ws-color-2 .ws-group-title { color: #166534; }
.ws-color-2 .ws-group-levels { color: #15803d; }
.ws-color-2 .ws-pack-btn {
    background: linear-gradient(135deg, #22c55e 0%, #166534 100%);
    box-shadow: 0 6px 15px rgba(22, 101, 52, 0.2);
}

/* ws-color-3 : Univers Canyon (Rouge/Orange terreux) */
.ws-color-3 .ws-group-title { color: #c2410c; }
.ws-color-3 .ws-group-levels { color: #ea580c; }
.ws-color-3 .ws-pack-btn {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 6px 15px rgba(194, 65, 12, 0.2);
}

/* ws-color-4 : Univers Sky (Bleu ciel) */
.ws-color-4 .ws-group-title { color: #0369a1; }
.ws-color-4 .ws-group-levels { color: #0ea5e9; }
.ws-color-4 .ws-pack-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
    box-shadow: 0 6px 15px rgba(3, 105, 161, 0.2);
}

/* ws-color-5 : Univers Tropic (Teal / Turquoise) */
.ws-color-5 .ws-group-title { color: #0f766e; }
.ws-color-5 .ws-group-levels { color: #0d9488; }
.ws-color-5 .ws-pack-btn {
    background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
    box-shadow: 0 6px 15px rgba(15, 118, 110, 0.2);
}

/* ws-color-6 : Univers Mountain (Gris/Bleu ardoise) */
.ws-color-6 .ws-group-title { color: #475569; }
.ws-color-6 .ws-group-levels { color: #64748b; }
.ws-color-6 .ws-pack-btn {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
    box-shadow: 0 6px 15px rgba(71, 85, 105, 0.2);
}

/* ws-color-7 : Univers Winter (Bleu givré) */
.ws-color-7 .ws-group-title { color: #1e40af; }
.ws-color-7 .ws-group-levels { color: #3b82f6; }
.ws-color-7 .ws-pack-btn {
    background: linear-gradient(135deg, #bfdbfe 0%, #1e40af 100%);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.2);
}

/* ws-color-8 : Univers Flora (Violet/Rose fuchsia) */
.ws-color-8 .ws-group-title { color: #a21caf; }
.ws-color-8 .ws-group-levels { color: #c026d3; }
.ws-color-8 .ws-pack-btn {
    background: linear-gradient(135deg, #e879f9 0%, #a21caf 100%);
    box-shadow: 0 6px 15px rgba(162, 28, 175, 0.2);
}

/* ws-color-9 : Univers Autumn (Marron/Bordeaux) */
.ws-color-9 .ws-group-title { color: #7f1d1d; }
.ws-color-9 .ws-group-levels { color: #b91c1c; }
.ws-color-9 .ws-pack-btn {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
    box-shadow: 0 6px 15px rgba(127, 29, 29, 0.2);
}

/* ws-color-10 : Univers Jungle (Vert émeraude vif) */
.ws-color-10 .ws-group-title { color: #15803d; }
.ws-color-10 .ws-group-levels { color: #166534; }
.ws-color-10 .ws-pack-btn {
    background: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
    box-shadow: 0 6px 15px rgba(21, 128, 61, 0.2);
}

/* ws-color-11 : Univers Desert (Jaune sable/Beige) */
.ws-color-11 .ws-group-title { color: #a16207; }
.ws-color-11 .ws-group-levels { color: #ca8a04; }
.ws-color-11 .ws-pack-btn {
    background: linear-gradient(135deg, #facc15 0%, #a16207 100%);
    box-shadow: 0 6px 15px rgba(161, 98, 7, 0.2);
}

/* ws-color-12 : Univers Ocean (Bleu marine profond) */
.ws-color-12 .ws-group-title { color: #1e3a8a; }
.ws-color-12 .ws-group-levels { color: #1d4ed8; }
.ws-color-12 .ws-pack-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #1e3a8a 100%);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.2);
}

/* ============================================================
   MOBILE OPTIMIZATION (3 Columns & No Boxed Effect)
   (Pas de changement ici, juste pour rappel de l'ordre)
   ============================================================ */
@media (max-width: 768px) {
    .ws-pack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .ws-pack-group {
        padding: 15px 10px;
    }
    .ws-group-header {
        flex-direction: column;
        gap: 2px;
    }
}


/* Nettoyage de l'espace sous le jeu et la navigation */
.pgr-game ~ * {
    margin-top: 0 !important;
}

.entry-content .pgr-game {
    margin-bottom: 20px !important; /* Ajuste ce chiffre selon l'espace que tu veux sous le bloc entier */
}

/* ============================================================
   CENTERING HOMEPAGE DESCRIPTION (Sun Image + Text)
   ============================================================ */
p.ws-main-desc {
    display: block !important; /* Retour au comportement naturel d'un paragraphe */
    text-align: center !important;
    margin: 30px auto !important; 
    width: 100% !important;
    max-width: 750px !important; /* Une belle largeur de lecture sur ordinateur */
}

p.ws-main-desc img {
    display: block !important;
    margin: 0 auto 15px auto !important; /* Centre l'image toute seule avec de l'espace en bas */
}

/* ============================================================
   ÉLARGIR LE CONTENU DE LA PAGE D'ACCUEIL (Bureau et Mobile)
   ============================================================ */

/* 1. On écrase les grosses marges de GeneratePress partout (Mobile + PC) */
body.home .inside-article {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 2. On autorise la grille à s'étirer au maximum uniquement sur ordinateur */
@media (min-width: 769px) {
    .ws-home-packs-container {
        max-width: 1300px !important; 
    }
}

/* ============================================================
   404 PAGE - MOBILE OVERFLOW & NESTED BOXES FIX
   ============================================================ */
@media (max-width: 768px) {
    /* 1. On force la séparation Gauche/Droite à s'empiler en 1 seule colonne */
    .cat-hero-404 .cat-hero-head {
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .cat-hero-404 .cat-hero-head-left,
    .cat-hero-404 .cat-hero-head-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

	    /* 2. On corrige le mille-feuille du formulaire de recherche (Boîte dans la boîte) */
    .cat-hero-404 .cat-hero-search,
    .cat-hero-404 .ws-search-wrap,
    .cat-hero-404 .ws-search-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    
    .cat-hero-404 .ws-search-form {
        flex-direction: column !important; /* Empile le champ de texte et le bouton */
    }

    .cat-hero-404 .ws-search-input,
    .cat-hero-404 .ws-search-btn {
        width: 100% !important;
        flex: 1 1 auto !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Laisse le texte du bouton respirer */
    }

    /* 3. On empêche les boutons d'action de déborder (Daily et autres) */
    .cat-hero-404 .cat-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .cat-hero-404 .ws-daily-wrap,
    .cat-hero-404 .ws-daily-btn,
    .cat-hero-404 .btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Casse la "barre de fer" du texte */
        text-align: center !important;
        margin: 0 !important;
    }
}

/* ============================================================
   404 PAGE - THE ULTIMATE RESPONSIVE FIX (GRIDS & TEXTS)
   ============================================================ */
@media (max-width: 768px) {
    /* 1. On force toute la page 404 à obéir à la largeur de l'écran */
    body.error404, 
    .not-found-wrap {
        width: 100vw !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* 2. On casse la rigidité du texte "We couldn't find..." */
    .cat-hero-404 .cat-hero-title,
    .cat-hero-404 .cat-hero-desc {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. LE COUPABLE : On force la grille des "Recent puzzle answers" à 1 seule colonne */
    .cat-card-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 1 seule colonne au lieu de la limite de 240px */
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 12px !important;
    }

    /* 4. Sécurité globale pour les boîtes des autres sections (Latest Daily) */
    .cat-list-block,
    .cat-card-tile,
    .cat-card-tile-link,
    .cat-list,
    .cat-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* ============================================================
   CATEGORY PAGES - MOBILE SEARCH & LAYOUT FIX
   ============================================================ */
@media (max-width: 768px) {
    /* 1. On force la séparation Gauche/Droite à s'empiler proprement */
    body.category .cat-hero-head {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }

    /* 2. La "boîte" de droite (la recherche) prend 100% de la largeur dispo */
    body.category .cat-hero-head-right,
    body.category .cat-hero-search,
    body.category .cat-hero-search .ws-search-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Le formulaire : on casse la limite des 200px et on empile le bouton */
    body.category .cat-hero-search .ws-search-form {
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px !important; /* Jolie marge interne unifiée */
    }

    /* 4. On assouplit le champ texte et le bouton */
    body.category .cat-hero-search .ws-search-input,
    body.category .cat-hero-search .ws-search-form input[type="text"],
    body.category .cat-hero-search .ws-search-form input[type="search"],
    body.category .cat-hero-search .ws-search-btn,
    body.category .cat-hero-search .ws-search-form button {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important; /* Annule la limite des 200px */
        box-sizing: border-box !important;
        white-space: normal !important; /* Fait sauter la rigidité du texte */
        margin: 0 !important;
    }
    
    /* 5. Petit espace élégant entre le champ texte et le bouton noir */
    body.category .cat-hero-search .ws-search-input,
    body.category .cat-hero-search .ws-search-form input[type="text"],
    body.category .cat-hero-search .ws-search-form input[type="search"] {
        margin-bottom: 8px !important;
    }
}

/* ============================================================
   FIX DÉFINITIF : ALIGNEMENT AUDIO & BOUTON (RACE CONDITION)
   ============================================================ */

/* 1. Le conteneur global de l'audio */
.pgr-audio-wrap {
    width: 100% !important;
    display: block !important;
}

/* 2. Le lecteur audio : Divisé par 2 et centré sur Ordinateur */
.pgr-audio-wrap audio,
.pgr-audio-wrap .mejs-container {
    width: 100% !important;
    max-width: 50% !important; /* <-- C'est ici qu'on réduit la barre de moitié */
    margin: 0 auto !important; /* Le secret pour la garder parfaitement centrée */
    display: block !important;
}

/* 3. L'optimisation Mobile : On lui redonne 100% de la place pour les petits écrans */
@media (max-width: 768px) {
    .pgr-audio-wrap audio,
    .pgr-audio-wrap .mejs-container {
        max-width: 100% !important; 
    }
}
/* 2. On utilise Flexbox pour créer un centrage indestructible pour le bouton */
.ws-deeplink-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 30px auto !important;
}

.ws-deeplink-btn {
    margin: 0 auto !important; /* Double sécurité pour clouer le bouton au centre */
}

/* ============================================================
   FIX ALIGNEMENT PAGE PACK (FULL WIDTH & LEFT ALIGN)
   ============================================================ */

/* 1. On détruit les "boîtes" pour prendre 100% de la largeur et on aligne à gauche */
.pack-head,
.pack-puzzles,
.pack-nav {
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important; /* Retire les marges intérieures invisibles */
    padding-right: 0 !important;
    text-align: left !important;
}

/* 2. On pousse les petites étiquettes (Tags) à gauche avec le texte */
.pack-tags {
    justify-content: flex-start !important;
}

/* 3. On libère le texte de description pour qu'il s'aligne parfaitement */
.pack-desc {
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}

/* 4. La magie : La grille de niveaux s'étend maintenant sur tout l'écran ! */
.puzzle-grid {
    max-width: 100% !important;
    margin: 0 !important;
}

/* ============================================================
   FIX : BOUTONS DE NAVIGATION CENTRÉS SUR DESKTOP
   ============================================================ */
/* 1. On limite la largeur de la navigation et on la centre sur PC */
.pgr-nav {
    max-width: 50% !important; /* Exactement la même taille que la barre audio */
    margin: 0 auto !important; /* On centre le bloc entier sous le puzzle */
}

/* 2. Optimisation Mobile : On redonne 100% de la largeur sur petit écran */
@media (max-width: 768px) {
    .pgr-nav {
        max-width: 100% !important; 
    }
}

/* ============================================================
   FIX : CACHER LE BOUTON DE RETOUR AU JEU SUR ORDINATEUR
   ============================================================ */
@media (min-width: 769px) {
    .ws-deeplink-wrap {
        display: none !important;
    }
}

/* ============================================================
   DARK MODE - THEME & TOGGLE BUTTON
   ============================================================ */

/* 1. Le bouton flottant en bas à droite */
.ws-dark-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1e293b; /* Bleu nuit */
    border: 3px solid #334155;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ws-dark-btn:hover { transform: scale(1.1) translateY(-4px); }
.ws-dark-btn .sun-icon { display: none; } /* Cache le soleil par défaut */

/* État du bouton quand le Dark Mode est actif */
html.dark-mode .ws-dark-btn {
    background: #f8fafc; /* Blanc/Gris clair */
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}
html.dark-mode .ws-dark-btn .moon-icon { display: none; }
html.dark-mode .ws-dark-btn .sun-icon { display: block; }

/* 2. Les Fonds Généraux et Textes (Le coeur du mode sombre) */
html.dark-mode body, 
html.dark-mode .site, 
html.dark-mode .site-content, 
html.dark-mode .inside-article {
    background-color: #0f172a !important; /* Bleu nuit très profond */
    color: #cbd5e1 !important; /* Texte gris clair (jamais blanc pur pour les yeux) */
}

/* 3. Les Titres (H1, H2, Titres de Packs, etc.) */
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3, html.dark-mode h4,
html.dark-mode .ws-main-title, html.dark-mode .cat-hero-title, 
html.dark-mode .pack-title, html.dark-mode .ws-group-title,
html.dark-mode .cat-section-title, html.dark-mode .comment-reply-title {
    color: #f8fafc !important; /* Blanc lumineux pour les titres */
}

html.dark-mode p, html.dark-mode .pack-desc, html.dark-mode .cat-hero-desc {
    color: #94a3b8 !important;
}

/* 4. Les Boîtes Blanches (Intro, Meta, Cartes de recherche, Commentaires) */
html.dark-mode .ws-intro, 
html.dark-mode .ws-level-meta,
html.dark-mode .ws-search-block,
html.dark-mode .ws-search-subcard,
html.dark-mode .ws-daily-hero,
html.dark-mode .cat-featured-card,
html.dark-mode .cat-list,
html.dark-mode .cat-card-tile-link,
html.dark-mode .ws-pack-group,
html.dark-mode .comments-area,
html.dark-mode .comment-list li.comment .comment-body,
html.dark-mode .nav-card {
    background-color: #1e293b !important; /* Boîte gris-bleu pour trancher avec le fond */
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Effet survol des cartes */
html.dark-mode .cat-card-tile-link:hover,
html.dark-mode .nav-card:hover {
    background-color: #334155 !important;
}

/* 5. Les Liens Bleus (On les rend bleu fluo/pastel pour qu'ils soient lisibles sur fond noir) */
html.dark-mode .cat-card-tile-main,
html.dark-mode .cat-card-title,
html.dark-mode .ws-search-hero-title,
html.dark-mode .ws-search-link,
html.dark-mode .ws-daily-hero-link {
    color: #60a5fa !important;
}

/* 6. Les Formulaires de Saisie (Recherche & Commentaires) */
html.dark-mode .ws-search-input,
html.dark-mode .ws-search-form input[type="text"],
html.dark-mode .ws-search-form input[type="search"],
html.dark-mode .comment-form input,
html.dark-mode .comment-form textarea {
    background-color: #0f172a !important; /* Fond noir */
    color: #f8fafc !important; /* Texte blanc */
    border-color: #475569 !important;
}
html.dark-mode .ws-search-form,
html.dark-mode .cat-hero-search .ws-search-form {
    background: transparent !important;
}

/* 7. La Grosse bannière "Hero" des pages Catégories */
html.dark-mode .cat-hero {
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #334155 !important;
}

/* ============================================================
   DARK MODE - FIX DES ZONES BLANCHES OUBLIÉES
   ============================================================ */

/* 8. Fix : Les boîtes translucides de la page d'accueil */
html.dark-mode body.home .ws-hero,
html.dark-mode body.home .ws-search-wrap,
html.dark-mode body.home .ws-worlds-list {
    background: rgba(30, 41, 59, 0.8) !important; /* Bleu nuit translucide */
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 9. Fix : L'en-tête et la navigation du thème GeneratePress */
html.dark-mode .site-header,
html.dark-mode .main-navigation {
    background-color: #0f172a !important;
}
html.dark-mode .main-navigation a,
html.dark-mode .main-title a {
    color: #f8fafc !important;
}

/* 10. Fix : Boutons secondaires (404) et icône Calendrier Daily */
html.dark-mode .btn-secondary {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html.dark-mode .ws-daily-cal .cal-day {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

/* 11. Fix : Les textes gris foncé qui devenaient invisibles sur fond noir */
html.dark-mode .cat-featured-label,
html.dark-mode .cat-featured-meta,
html.dark-mode .cat-featured-excerpt,
html.dark-mode .cat-card-meta,
html.dark-mode .cat-card-excerpt,
html.dark-mode .cat-card-tile-meta,
html.dark-mode .ws-search-subtitle,
html.dark-mode .ws-search-results {
    color: #94a3b8 !important;
}

/* 12. Fix : Les Badges jaunes et les liens bleus de la recherche Daily */
html.dark-mode .ws-daily-hero-badge {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}
html.dark-mode .ws-daily-hero-link {
    background-color: #1e3a8a !important;
    border-color: #1d4ed8 !important;
    color: #bfdbfe !important;
}

/* 1. Le bouton flottant : Plus grand et plus visible */
.ws-dark-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;  /* Augmenté de 54px à 70px */
    height: 70px; /* Augmenté de 54px à 70px */
    border-radius: 50%;
    background: #1e293b;
    border: 4px solid #334155; /* Bordure plus épaisse */
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* Emoji plus grand */
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ws-dark-btn:active { transform: scale(0.9); }

/* Animation et visibilité */
html.dark-mode .ws-dark-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(255,255,255,0.15);
}

/* ============================================================
   DARK MODE - SUPPRESSION DU CERCLE (STYLE MINIMALISTE)
   ============================================================ */

/* 1. On rend le bouton invisible (pas de fond, pas de bordure, pas d'ombre) */
.ws-dark-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px; 
    height: 70px;
    background: transparent !important; /* Supprime le fond */
    border: none !important;             /* Supprime le cercle/bordure */
    box-shadow: none !important;         /* Supprime l'ombre portée */
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* On agrandit un peu l'emoji puisqu'il n'y a plus de cadre */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. On s'assure que le bouton reste transparent même en mode sombre */
html.dark-mode .ws-dark-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Petit effet de zoom au survol pour que l'utilisateur sache qu'il peut cliquer */
.ws-dark-btn:hover {
    transform: scale(1.2);
}
.dark-mode .content-area {
	background: rgb(15, 23, 42) !important;
}

/* ============================================================
   DARK MODE - DÉPLACEMENT DE L'ICÔNE SOUS LE HEADER
   ============================================================ */

.ws-dark-btn {
    position: absolute; /* Change de fixed à absolute */
    top: 180px;         /* Ajuste cette valeur pour qu'il soit pile sous ton header */
    right: 20px;
    width: 60px; 
    height: 60px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    transition: transform 0.3s ease;
}

/* Optimisation pour mobile : on le remonte un peu car le header est souvent moins haut */
@media (max-width: 768px) {
    .ws-dark-btn {
        top: 70px; 
        right: 15px;
        font-size: 30px;
    }
}

.ws-dark-btn:hover {
    transform: scale(1.1);
}

/* ============================================================
   MOBILE : AGRANDISSEMENT DU MENU HAMBURGER
   ============================================================ */
/* Agrandit l'icône elle-même */
.menu-toggle .gp-icon svg {
    width: 35px !important;
    height: 35px !important;
}

/* Ajuste la taille du bouton pour qu'il soit bien proportionné */
.menu-toggle {
    padding: 10px 15px !important;
    line-height: 1 !important;
}

/* Si tu as le texte "Menu" à côté, on l'agrandit aussi */
.mobile-menu {
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* ============================================================
   DARK MODE : COULEUR DU MENU HAMBURGER
   ============================================================ */
html.dark-mode .main-navigation .menu-toggle,
html.dark-mode .main-navigation .menu-toggle:hover,
html.dark-mode .main-navigation .menu-toggle:focus {
    color: #f8fafc !important; /* Blanc cassé pour une visibilité douce */
}

/* Si tu préfères le vert Wordscapes pour le bouton en mode sombre */
html.dark-mode .menu-toggle .gp-icon svg {
    fill: #26a72a !important; /* Utilise ton vert habituel */
}

/* ============================================================
   FIX CRITIQUE : RÉAPPARITION DES BOUTONS DE NAVIGATION
   ============================================================ */
/* On force l'affichage du conteneur et on réinitialise la largeur */
.pgr-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 50% !important; /* Largeur sur Desktop */
    margin: 20px auto !important; /* Centrage sous le puzzle */
    clear: both !important;
}

/* On s'assure que les boutons à l'intérieur ont une taille minimale */
.pgr-nav-btn {
    display: inline-flex !important;
    min-width: 120px !important;
    height: auto !important;
}

/* Ajustement pour Mobile */
@media (max-width: 768px) {
    .pgr-nav {
        max-width: 100% !important;
        padding: 10px 15px !important;
    }
}

/* ============================================================
   CORE WEB VITALS : ANTI-CLS (STABILISATION LECTEUR AUDIO)
   ============================================================ */
.pgr-audio-wrap {
    min-height: 40px; /* Réserve l'espace exact du lecteur audio (MEJS) */
    contain: layout; /* Indique au navigateur que ce bloc ne modifiera pas le reste de la page */
}

Ajoute ce code à la fin de ton fichier `style.css`. Il créera une magnifique grille de calendriers fluides (ils se mettront côte à côte sur PC et l'un en dessous de l'autre sur mobile), avec une gestion automatique des couleurs de ton Dark Mode ! 🎨

```css
/* ============================================================
   DAILY CALENDAR ARCHIVE
   ============================================================ */
.ws-calendar-archive {
  max-width: 900px;
  margin: 40px auto;
}
.ws-calendars-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.ws-cal-month {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}
.ws-cal-month-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}
.ws-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.ws-cal-th {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ws-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}
.ws-cal-day.empty {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.ws-cal-day.future {
  color: #cbd5e1;
  background: #ffffff;
  cursor: not-allowed;
}
.ws-cal-day.clickable {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0a58ca;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.ws-cal-day.clickable:hover {
  background: #0a58ca;
  border-color: #0a58ca;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(10, 88, 202, 0.2);
}
.ws-cal-day.is-today {
  border: 2px solid #0a58ca;
  background: #eff6ff;
  color: #0a58ca;
  font-weight: 800;
}

/* --- DARK MODE SUPPORT POUR LE CALENDRIER --- */
html.dark-mode .ws-cal-month {
  background: #1e293b;
  border-color: #334155;
}
html.dark-mode .ws-cal-month-title {
  color: #f1f5f9;
}
html.dark-mode .ws-cal-th {
  color: #94a3b8;
}
html.dark-mode .ws-cal-day {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}
html.dark-mode .ws-cal-day.future {
  color: #475569;
  background: #1e293b;
}
html.dark-mode .ws-cal-day.clickable {
  background: #1e293b;
  border-color: #4a6fa5;
  color: #60a5fa;
}
html.dark-mode .ws-cal-day.clickable:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}
html.dark-mode .ws-cal-day.is-today {
  border-color: #60a5fa;
  background: #1e3a8a;
  color: #bfdbfe;
}

/* ============================================================
   ÉTIREMENT GLOBAL DES CONTENEURS SUR DESKTOP
   ============================================================ */
@media (min-width: 1025px) {
    /* 1. Page d'accueil : on libère les blocs principaux */
    body.home .ws-hero,
    body.home .ws-search-wrap,
    body.home .ws-worlds-list,
    .ws-worlds-index,
    .ws-home-packs-container {
        max-width: 1400px !important;
    }

    /* 2. Pages Catégories et Archives : on libère les boîtes et les grilles */
    body.category .cat-wrap,
    .cat-wrap,
    .cat-hero,
    .cat-featured,
    .cat-section-title,
    .cat-list-block,
    .cat-card-grid,
    .pack-chip-grid,
    .ws-calendar-archive {
        max-width: 1400px !important;
        width: 100% !important;
    }
}


/* ============================================================
   VOICE SEARCH PAGE STYLES
   ============================================================ */
.ws-voice-wrap {
    max-width: 1000px;
    margin: 40px auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

.ws-voice-hero {
    text-align: center;
    margin-bottom: 30px;
}

.ws-voice-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.ws-voice-hero p {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.ws-voice-image-banner {
    width: 100%;
    height: 300px;
    background: #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    color: #64748b;
    font-style: italic;
    overflow: hidden;
}

.ws-voice-steps-title {
    text-align: center;
    margin-bottom: 25px;
}

.ws-voice-steps-title h2 {
    font-size: 24px;
    font-weight: 700;
}

.ws-voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ws-voice-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

.ws-voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.ws-voice-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
}

.ws-voice-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.ws-voice-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}

.ws-voice-card strong {
    display: block;
    background: #f8fafc;
    border-left: 4px solid #26a72a;
    padding: 10px;
    margin: 12px 0;
    color: #0f172a;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
}

.ws-voice-tip {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid #7dd3fc;
}

.ws-voice-tip h3 {
    margin: 0 0 10px;
    color: #0284c7;
}

.ws-voice-tip p {
    margin: 0;
    color: #0c4a6e;
    font-size: 16px;
    line-height: 1.5;
}

/* --- DARK MODE SUPPORT --- */
html.dark-mode .ws-voice-hero h1,
html.dark-mode .ws-voice-steps-title h2,
html.dark-mode .ws-voice-card h3 { color: #f8fafc; }
html.dark-mode .ws-voice-hero p,
html.dark-mode .ws-voice-card p { color: #cbd5e1; }
html.dark-mode .ws-voice-card { background: #1e293b; border-color: #334155; }
html.dark-mode .ws-voice-icon { background: #0f172a; }
html.dark-mode .ws-voice-card strong { background: #0f172a; color: #60a5fa; border-left-color: #3b82f6; }
html.dark-mode .ws-voice-tip { background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%); border-color: #0284c7; }
html.dark-mode .ws-voice-tip h3, html.dark-mode .ws-voice-tip p { color: #e0f2fe; }
html.dark-mode .ws-voice-image-banner { background: #1e293b; color: #475569; }


/* ============================================================
   AUDIO PLAYER GUIDE PAGE STYLES (UPDATED FOR IMAGES)
   ============================================================ */
.ws-audio-guide-wrap {
    max-width: 900px;
    margin: 40px auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1e293b;
    padding: 0 15px;
}

.ws-audio-hero {
    text-align: center;
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
}

.ws-audio-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

/* The 3 Steps Layout (Block instead of Flex to handle images) */
.ws-audio-steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Plus d'espace entre les cartes car elles sont plus grandes */
    margin-bottom: 40px;
}

.ws-audio-step-card {
    display: block; /* On abandonne Flexbox pour les images */
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 30px 30px 100px; /* Grand espace à gauche pour le numéro */
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
    line-height: 1.6;
    font-size: 16px;
    color: #475569;
}

.ws-audio-step-card:hover {
    transform: translateY(-3px);
    border-color: #26a72a;
}

/* Big Number styling (Position absolue) */
.ws-audio-step-card .step-number {
    position: absolute;
    top: 30px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #26a72a 0%, #167a16 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(38, 167, 42, 0.3);
}

.ws-audio-step-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* Design parfait pour les captures d'écran intégrées */
.ws-audio-step-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto 0 auto; /* Centre l'image et l'écarte du texte */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ws-audio-step-card {
        padding: 25px 20px;
        text-align: center;
    }
    .ws-audio-step-card .step-number {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 20px auto;
    }
}

/* --- DARK MODE SUPPORT --- */
html.dark-mode .ws-audio-hero h1,
html.dark-mode .ws-audio-step-card h3 { color: #f8fafc; }

html.dark-mode .ws-audio-hero,
html.dark-mode .ws-audio-step-card { color: #cbd5e1; }

html.dark-mode .ws-audio-step-card { 
    background: #1e293b; 
    border-color: #334155; 
}

html.dark-mode .ws-audio-step-card:hover {
    border-color: #4ade80; 
}

html.dark-mode .ws-audio-step-card img {
    border-color: #334155;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); /* Ombre plus forte en mode sombre */
}

/* ============================================================
   MAILPOET NEWSLETTER FORM STYLING
   ============================================================ */
.mailpoet_form {
    max-width: 600px;
    margin: 40px auto;
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Style des cases à cocher (Listes) */
.mailpoet_checkbox_label {
    display: block;
    font-size: 16px;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 500;
    cursor: pointer;
}

.mailpoet_checkbox_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #26a72a; /* Ton vert principal */
    vertical-align: middle;
}

/* Champ Email */
.mailpoet_text {
    width: 100%;
    padding: 14px 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    margin-bottom: 20px !important;
    transition: border-color 0.2s ease;
}

.mailpoet_text:focus {
    border-color: #26a72a !important;
    outline: none;
}

/* Bouton S'abonner */
.mailpoet_submit {
    width: 100%;
    background: linear-gradient(135deg, #26a72a 0%, #167a16 100%) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.mailpoet_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(38, 167, 42, 0.3);
}

/* --- DARK MODE SUPPORT --- */
html.dark-mode .mailpoet_form {
    background: #1e293b;
    border-color: #334155;
}

html.dark-mode .mailpoet_checkbox_label {
    color: #cbd5e1;
}

html.dark-mode .mailpoet_text {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}

html.dark-mode .mailpoet_text:focus {
    border-color: #4ade80 !important; /* Vert plus clair pour le mode sombre */
}

/* --- ADAPTATION WPFORMS POUR LE MODE NUIT --- */

/* On cible le formulaire uniquement quand la classe .dark-mode est active sur le site */
html.dark-mode .wpforms-container .wpforms-field-label,
html.dark-mode .wpforms-container .wpforms-field-sublabel,
html.dark-mode .wpforms-container .wpforms-field-description,
html.dark-mode .wpforms-container .wpforms-title,
html.dark-mode .wpforms-container .wpforms-field-limit-text {
    color: #f8fafc !important; /* Force le texte en blanc cassé */
}

/* Style des champs de saisie en mode nuit */
html.dark-mode .wpforms-container input[type="text"],
html.dark-mode .wpforms-container input[type="email"],
html.dark-mode .wpforms-container textarea,
html.dark-mode .wpforms-container select {
    background-color: #1e293b !important; /* Fond bleu très sombre */
    color: #f8fafc !important; /* Texte blanc */
    border: 1px solid #475569 !important; /* Bordure grise discrète */
}

/* Changement de couleur au survol des champs */
html.dark-mode .wpforms-container input:focus,
html.dark-mode .wpforms-container textarea:focus {
    border-color: #26a72a !important; /* Ton vert fétiche pour le focus */
    outline: none;
}

/* Style des boutons radio et cases à cocher en mode nuit */
html.dark-mode .wpforms-container .wpforms-field-radio label,
html.dark-mode .wpforms-container .wpforms-field-checkbox label {
    color: #cbd5e1 !important;
}

/* Le bouton d'envoi (Submit) */
html.dark-mode .wpforms-submit-container button.wpforms-submit {
    background-color: #26a72a !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

html.dark-mode .wpforms-submit-container button.wpforms-submit:hover {
    background-color: #1e8521 !important;
}

/* ============================================================
   HUB INTERLINKING (Pour /category/daily, /pack, /puzzle)
   ============================================================ */
.hub-interlinking {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.hub-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-link-card a {
    display: block;
    background-color: #1e293b; /* Bleu très sombre du mode nuit */
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hub-link-card a:hover {
    border-color: #26a72a; /* Ton vert fétiche */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.hub-link-card h4 {
    margin: 0 0 8px 0;
    color: #26a72a;
    font-size: 1.2rem;
    font-weight: 600;
}

.hub-link-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #94a3b8;
}

/* ============================================================
   FAQ SECTION STYLING (Pages Pack & Autres)
   ============================================================ */
.faq-section {
    max-width: 900px;
    margin: 40px auto;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 0 15px;
}

.faq-section h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
}

/* Design sous forme de "Cartes" */
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

/* La Question */
.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

/* Ajoute automatiquement un "Q." vert stylé devant la question */
.faq-item h3::before {
    content: "Q.";
    color: #26a72a;
    font-weight: 900;
    font-size: 20px;
}

/* La Réponse */
.faq-item p {
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    padding-left: 31px; /* Maintient l'alignement sous le texte de la question */
}

/* CORRECTIF : Ajoute "A." UNIQUEMENT sur le paragraphe juste en dessous du h3 */
.faq-item h3 + p::before {
    content: "A.";
    position: absolute;
    left: 0;
    top: -2px;
    color: #26a72a;
    font-weight: 900;
    font-size: 20px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .faq-section h2 { font-size: 20px; }
    .faq-item { padding: 16px 20px; }
    .faq-item h3 { font-size: 16px; }
    .faq-item p { font-size: 14px; padding-left: 28px; }
    .faq-item h3 + p::before { top: -1px; font-size: 18px; }
}

/* ============================================================
   DARK MODE SUPPORT POUR LA FAQ
   ============================================================ */
html.dark-mode .faq-section h2,
html.dark-mode .faq-item h3 {
    color: #f8fafc;
}

html.dark-mode .faq-item {
    background: #1e293b;
    border-color: #334155;
}

html.dark-mode .faq-item:hover {
    border-color: #475569;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

html.dark-mode .faq-item p {
    color: #cbd5e1;
}

html.dark-mode .faq-item h3::before,
html.dark-mode .faq-item h3 + p::before {
    color: #4ade80;
}

/* ============================================================
   DYNAMIC TABS (Packs Category Hub)
   ============================================================ */
.ws-tabs-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 4px 16px 4px;
    margin-bottom: 24px;
    scrollbar-width: thin; /* Pour Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
}

/* Style de la petite barre de défilement (Scrollbar) */
.ws-tabs-container::-webkit-scrollbar {
    height: 6px;
}
.ws-tabs-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Le bouton d'onglet par défaut */
.ws-tab-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.ws-tab-btn:hover {
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Le bouton d'onglet ACTIF */
.ws-tab-btn.active {
    background: linear-gradient(135deg, #26a72a 0%, #167a16 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(38, 167, 42, 0.25);
}

/* L'animation fluide d'apparition des puces (packs) */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- DARK MODE SUPPORT --- */
html.dark-mode .ws-tabs-container::-webkit-scrollbar-thumb {
    background: #475569;
}
html.dark-mode .ws-tab-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
html.dark-mode .ws-tab-btn:hover {
    border-color: #64748b;
    color: #f8fafc;
}
html.dark-mode .ws-tab-btn.active {
    background: linear-gradient(135deg, #26a72a 0%, #167a16 100%);
    color: #ffffff;
}

/* ============================================================
   CALENDAR MICRO-UX (Mobile Tooltip for future days)
   ============================================================ */
.ws-cal-day.future {
    position: relative;
    cursor: not-allowed;
}

/* Fait apparaître une bulle native quand l'utilisateur clique/tape sur la case */
.ws-cal-day.future:active::after {
    content: "Not available yet";
    position: absolute;
    bottom: 115%; /* S'affiche juste au-dessus de la case */
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 50;
    pointer-events: none;
}

/* ============================================================
   AUDIO QUICK SEARCH RESULT (Zero-Click UX)
   ============================================================ */
.ws-audio-quick-result {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border: 2px solid #26a72a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(38, 167, 42, 0.15);
    animation: fadeInDown 0.3s ease-out forwards;
}

.ws-audio-quick-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ws-audio-quick-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.ws-badge-fast {
    background: #26a72a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-audio-quick-desc {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #475569;
}

.ws-audio-quick-link {
    display: inline-block;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ws-audio-quick-link:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

/* --- DARK MODE SUPPORT --- */
html.dark-mode .ws-audio-quick-result {
    background: linear-gradient(to bottom right, #1e293b, #0f172a);
    border-color: #4ade80;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.1);
}
html.dark-mode .ws-audio-quick-head h4 { color: #f8fafc; }
html.dark-mode .ws-audio-quick-desc { color: #94a3b8; }
html.dark-mode .ws-audio-quick-link { background: #334155; color: #f8fafc; }
html.dark-mode .ws-audio-quick-link:hover { background: #475569; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}