/* =========================================================
   PAGE PARENTE – 15 minutes de Python
   (copie fidèle de semaine-classique)
   ========================================================= */

/* ---------- CONTAINER GLOBAL ---------- */

.usc-weeks-home {
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ---------- HERO ---------- */

.usc-weeks-home .semaine-hero {
  max-width: 1160px;
  width: min(1160px, calc(100% - 2rem));
  margin: 2rem auto 2.5rem;
  padding: 2rem 2.2rem 2.4rem;
  border-radius: 26px;
  background: radial-gradient(circle at top left,
      #e0f2fe 0%,
      #f9fafb 45%,
      #eef2ff 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.semaine-hero-inner {
  max-width: 780px;
}

.semaine-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.semaine-title {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem;
}

.semaine-subtitle {
  font-size: 1.08rem;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

/* ---------- INDEX BLOCK ---------- */

.usc-weeks-index-block {
  max-width: 1160px;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.usc-weeks-inner {
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem 2.2rem 2.4rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

/* ---------- HEADER + SEARCH ---------- */

.usc-weeks-index-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.usc-weeks-index-header .bloc-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  position: relative;
}

.usc-weeks-index-header .bloc-title::after {
  content: "";
  display: block;
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  margin-top: 0.4rem;
}

.usc-weeks-search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.usc-weeks-search-wrapper label span {
  font-size: 0.85rem;
  color: #475569;
}

.usc-weeks-search {
  width: 280px;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  font-size: 0.9rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.usc-weeks-search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ---------- GRID ---------- */

.usc-weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

/* ---------- CARDS ---------- */

.usc-week-card {
  position: relative;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.usc-week-card.has-link {
  cursor: pointer;
}

.usc-week-card.has-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  border-color: #3b82f6;
}

.usc-week-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.usc-week-meta {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 0.5rem;
}

.usc-week-meta span {
  white-space: nowrap;
}

.usc-week-tags {
  font-size: 0.85rem;
  color: #334155;
  margin: 0.3rem 0 0;
}

.usc-week-warning {
  font-size: 0.85rem;
  color: #b91c1c;
  margin-top: 0.4rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {

  .usc-weeks-index-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .usc-weeks-search {
    width: 100%;
  }

  .semaine-hero {
    padding: 1.6rem 1.4rem 1.8rem;
  }

  .usc-weeks-inner {
    padding: 1.6rem 1.4rem 2rem;
  }
}




/* =========================================================
   INDEX – sections par thème + grille 2 colonnes centrée
   ========================================================= */

.usc-theme-section{
  margin-top: 2.2rem;
}

.usc-theme-title{
  margin-top: 1.2rem;
}

/* Grille des cartes : 2 colonnes max, centrée, large */
.usc-weeks-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 1.35rem;
  max-width: 1050px;
  margin: 1.1rem auto 0; /* centre horizontalement */
  justify-content: center;
}

/* Cartes un peu plus "pleines" */
.usc-week-card{
  width: 100%;
}

/* Responsive : 1 colonne */
@media (max-width: 900px){
  .usc-weeks-grid{
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

/* ==========================
   TITRES DE SECTIONS (thèmes)
   même style que "Toutes les pages disponibles"
   ========================== */

.usc-weeks-inner .usc-theme-title.bloc-title{
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  letter-spacing: 0.02em;
  position: relative;
}

.usc-weeks-inner .usc-theme-title.bloc-title::after{
  content: "";
  display: block;
  width: 250px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  margin-top: 0.4rem;
    margin-bottom: 2rem;
}


.usc-filter-icon {
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Wrapper */
.usc-filter-bar{
  display: flex;
  align-items: center;
  gap: 0.6rem;

  width: 100%;
  max-width: min(800px, 100%);

  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #e6eefc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);

  margin: 1.5rem auto 2.5rem; /* ✅ CENTRAGE */
}


/* L’input : on écrase les styles thème/Elementor */
.usc-filter-bar input,
.usc-filter-bar input#sp-python-search-input,
.usc-filter-bar input.usc-weeks-search{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  font-size:1rem;
  color:#111827;
  padding:0 !important;            /* évite un “cadre” visuel */
}

/* Focus joli (et sans cadre interne) */
.usc-filter-bar:focus-within{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,0.12);
}

/* Placeholder */
.usc-filter-bar input::placeholder{
  color:#9ca3af;
  font-weight:500;
}

/* Meta : niveau + année */
.usc-week-meta,
.usc-week-meta span {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280; /* gris discret */
  line-height: 1.3;
}

/* Petit espace avant l’objectif */
.usc-week-objective {
  margin-top: 0.6rem;
}

/* Première lettre en majuscule (sans toucher au contenu) */
.usc-week-objective::first-letter {
  text-transform: uppercase;
}


/* Année + niveau (meta lignes) */
.usc-week-meta-line {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280; /* discret */
  line-height: 1.35;
}

/* Un peu d’espace avant l’objectif */
.usc-week-meta-line:last-of-type {
  margin-bottom: 0.5rem;
}

.usc-week-meta-line {
  letter-spacing: 0.01em;
}
.usc-week-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
/* --- Ajustement <code> dans les cartes --- */
.usc-week-card code,
.usc-week-objective code {
  font-size: 0.9em;          /* ↓ léger */
  padding: 0.05em 0.25em;
  border-radius: 4px;
}

/* --- Ajustement MathJax dans les cartes --- */
.usc-week-card mjx-container,
.usc-week-objective mjx-container {
  font-size: 0.9em !important;
}

/* ==========================
   FAQ – version discrète
   ========================== */

.sp-python-faq{
  max-width: 820px;          /* beaucoup plus étroit */
  margin: 2.5rem auto 0;
  padding: 0 1rem 1.5rem;
  opacity: 0.95;
}

.sp-python-faq .bloc-title{
  font-size: 1.25rem;        /* plus petit que les autres H2 */
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.8rem;
}

/* Liste compacte */
.sp-faq-list{
  display: grid;
  gap: 0.55rem;
}

/* Carte FAQ */
.sp-faq-item{
  border-radius: 12px;
  background: #f8fafc;       /* fond très léger */
  border: 1px solid #e5e7eb;
  box-shadow: none;          /* pas d’ombre lourde */
}

/* Question */
.sp-faq-q{
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;        /* plus petit */
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* enlève le triangle */
.sp-faq-q::-webkit-details-marker{
  display:none;
}

/* Icône + / - discrète */
.sp-faq-q::after{
  content: "+";
  font-size: 1rem;
  font-weight: 600;
  color: #3b82f6;
  transition: transform .15s ease;
}

.sp-faq-item[open] .sp-faq-q::after{
  content: "–";
}

/* Réponse */
.sp-faq-a{
  padding: 0 0.9rem 0.7rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
}

/* État ouvert : très léger */
.sp-faq-item[open] .sp-faq-q{
  background: #eef6ff;
  border-bottom: 1px solid #dbeafe;
}

.sp-python-faq .bloc-title{
  text-align: center;
  margin-bottom: 0.6rem;   /* réduit l’espace sous le titre */
}
.sp-faq-list{
  gap: 0.35rem;   /* au lieu de 0.55rem ou plus */
}
.sp-faq-q{
  padding: 0.55rem 0.8rem;  /* plus compact */
  font-size: 0.9rem;
}
.sp-faq-a{
  padding: 0 0.8rem 0.6rem;
  font-size: 0.88rem;
}
.sp-python-faq{
  opacity: 0.92;
}


