/**
 * YCO Cours & Ateliers — styles du widget Elementor.
 * Reproduction de la maquette fournie, intégralement portée sous le préfixe
 * « .yca » pour éviter toute fuite de styles dans le reste du site / l'éditeur.
 * Les couleurs sont des variables CSS sur « .yca » : les contrôles de style
 * Elementor peuvent les surcharger (ou les relier aux couleurs globales).
 */

.yca {
  --yca-ink: #27302b;
  --yca-muted: #6d746d;
  --yca-cream: #f7f3eb;
  --yca-paper: #fffdf8;
  --yca-line: #e7dfd2;
  --yca-sage: #7b8f7a;
  --yca-sage-deep: #5d735e;
  --yca-terracotta: #c98063;

  font-family: 'DM Sans', sans-serif;
  color: var(--yca-ink);
}

.yca *,
.yca *::before,
.yca *::after { box-sizing: border-box; }

.yca-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yca-page-shell {
  width: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--yca-cream);
}

.yca-ambient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: .45;
  filter: blur(2px);
}

.yca-ambient-one {
  width: 280px;
  height: 280px;
  top: 120px;
  left: -90px;
  background: rgba(184, 204, 181, .3);
}

.yca-ambient-two {
  width: 230px;
  height: 230px;
  right: -70px;
  top: 480px;
  background: rgba(218, 176, 155, .22);
}

.yca-music-lines {
  position: absolute;
  right: 4%;
  top: 38px;
  opacity: .08;
  color: var(--yca-sage-deep);
  pointer-events: none;
}

.yca-section-wrap {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 86px 28px 96px;
}

.yca-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.yca-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--yca-sage-deep);
}

.yca-eyebrow::before,
.yca-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.yca-display-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 0;
  font-weight: 600;
  color: var(--yca-ink);
}

.yca-intro-copy {
  max-width: 650px;
  margin: 20px auto 0;
  line-height: 1.75;
  font-size: 17px;
  color: var(--yca-muted);
}

.yca-toolbar {
  margin: 30px auto 40px;
  background: rgba(255, 253, 248, .9);
  border: 1px solid rgba(231, 223, 210, .95);
  box-shadow: 0 18px 50px rgba(54, 68, 58, .07);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.yca-search-wrap {
  min-width: 250px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #7f877f;
}

.yca-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--yca-ink);
  font-size: 15px;
  padding: 12px 0;
  font-family: inherit;
}

.yca-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.yca-filter-btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4efe7;
  color: #687168;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.yca-filter-btn:hover,
.yca-filter-btn.active {
  background: var(--yca-sage-deep);
  color: #fff;
}

.yca-category-block + .yca-category-block {
  margin-top: 40px;
}

.yca-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.yca-category-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(31px, 3.5vw, 44px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--yca-ink);
}

.yca-category-kicker {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--yca-muted);
}

.yca-category-line {
  width: 90px;
  height: 1px;
  background: #d7cec0;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.yca-course-list {
  border-top: 1px solid var(--yca-line);
  background: rgba(255, 253, 248, .52);
  border-radius: 18px;
  overflow: hidden;
}

.yca-course-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 10px 24px;
  text-decoration: none;
  color: var(--yca-ink);
  border-bottom: 1px solid var(--yca-line);
  background: rgba(255, 253, 248, .72);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.yca-course-row:last-child {
  border-bottom: 0;
}

.yca-course-row:hover,
.yca-course-row:focus-visible {
  background: rgba(255, 253, 248, .98);
  transform: translateX(4px);
  box-shadow: inset 4px 0 0 var(--yca-sage-deep);
  outline: none;
}

.yca-icon-disc {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf1ea;
  color: var(--yca-sage-deep);
  flex-shrink: 0;
  transition: transform .25s ease;
  font-size: 16px;
}

.yca-icon-disc svg { width: 1em; height: 1em; }
.yca-icon-disc i { font-size: inherit; }

.yca-course-row:hover .yca-icon-disc {
  transform: rotate(-4deg) scale(1.03);
}

.yca-course-main {
  min-width: 0;
}

.yca-course-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--yca-ink);
}

.yca-course-copy {
  margin: 8px 0 0;
  color: var(--yca-muted);
  line-height: 1.55;
  font-size: 14px;
  max-width: 680px;
}

.yca-row-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yca-sage-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  padding-left: 16px;
}

.yca-row-action svg {
  width: 17px;
  height: 17px;
  transition: transform .25s ease;
}

.yca-course-row:hover .yca-row-action svg {
  transform: translateX(4px);
}

.yca-empty-state {
  display: none;
  margin-top: 28px;
  padding: 26px;
  text-align: center;
  color: var(--yca-muted);
  background: rgba(255, 255, 255, .55);
  border: 1px dashed #d8cfbf;
  border-radius: 18px;
}

.yca-empty-state.is-visible { display: block; }

.yca-editor-note {
  margin-top: 16px;
  padding: 16px 20px;
  text-align: center;
  color: var(--yca-muted);
  background: rgba(255, 255, 255, .6);
  border: 1px dashed #d8cfbf;
  border-radius: 14px;
  font-size: 14px;
}

.yca-cta-panel {
  margin-top: 86px;
  background: #26342d;
  color: #fff;
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.yca-cta-panel::before,
.yca-cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.yca-cta-panel::before {
  width: 180px;
  height: 180px;
  top: -70px;
  left: -45px;
}

.yca-cta-panel::after {
  width: 130px;
  height: 130px;
  right: 28px;
  bottom: -60px;
}

.yca-cta-title {
  position: relative;
  z-index: 1;
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
}

.yca-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px auto 24px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.7;
  font-size: 15px;
}

.yca-cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: #f1e5d3;
  color: #26342d;
  font-weight: 700;
  font-size: 14px;
  transition: transform .25s ease, background .25s ease;
}

.yca-cta-button:hover,
.yca-cta-button:focus-visible {
  transform: translateY(-2px);
  background: #fff0dc;
  outline: none;
}

/* Ligne de cours masquée par la recherche / le filtre. */
.yca-course-row[hidden],
.yca-category-block[hidden] { display: none !important; }

@media (max-width: 900px) {
  .yca-section-wrap { padding: 72px 22px 80px; }
  .yca-toolbar { flex-direction: column; align-items: stretch; }
  .yca-filter-group { justify-content: flex-start; }
  .yca-category-head { align-items: start; flex-direction: column; gap: 10px; }
  .yca-category-line { display: none; }
  .yca-course-row { grid-template-columns: auto minmax(0, 1fr); }
  .yca-row-action { grid-column: 2; padding-left: 0; margin-top: 4px; }
}

@media (max-width: 620px) {
  .yca-section-wrap { padding: 58px 16px 64px; }
  .yca-intro { text-align: left; }
  .yca-eyebrow::before { display: none; }
  .yca-eyebrow::after { width: 18px; }
  .yca-intro-copy { margin-left: 0; font-size: 15px; }
  .yca-toolbar { margin: 34px auto 52px; border-radius: 18px; }
  .yca-search-wrap { min-width: 0; }
  .yca-filter-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .yca-category-block + .yca-category-block { margin-top: 58px; }
  .yca-course-row { gap: 14px; min-height: 0; padding: 18px 16px; }
  .yca-icon-disc { width: 42px; height: 42px; }
  .yca-course-title { font-size: 18px; }
  .yca-course-copy { font-size: 13px; }
  .yca-cta-panel { margin-top: 66px; padding: 38px 22px; border-radius: 22px; }
}
