/*
Theme Name: Astra Child
Template: astra
*/

@import url("../astra/style.css");

/* Styles personnalisés */

/* Design personnalisé page cours */

body.single-cours {
  background-color: #ffffff;
  color: #222;
}

.cours-single {
  background-color: #ffffff;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  text-align: center;
}

.cours-single h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.video-content iframe {
  max-width: 100%;
  height: 400px;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: #EE003B;
}

.breadcrumb a {
  color: #EE003B;
  text-decoration: none;
}

.cours-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.btn-back, .btn-next {
  background: #EE003B;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-back:hover, .btn-next:hover {
  background: #c80030;
}

/* Styles accordéons catégories */

.module-overview {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.accordion-toggle {
  background: #f2f2f2;
  color: #222;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  transition: background 0.3s;
}

.accordion-toggle:hover {
  background: #eaeaea;
}

.accordion-content {
  display: none;
  background: #fff;
  padding: 1rem 1.5rem;
  border-left: 4px solid #EE003B;
  border-radius: 0 0 6px 6px;
  margin-bottom: 1rem;
}

.cours-item a {
  color: #EE003B;
  text-decoration: none;
  font-weight: 500;
}

.cours-item a:hover {
  text-decoration: underline;
}

.mon-espace {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.accordion-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: #f4f4f4;
  color: #111;
  font-weight: bold;
  padding: 1rem;
  border: none;
  margin: 0.5rem 0;
  border-radius: 6px;
  cursor: pointer;
}

.accordion-toggle.inner {
  background: #fff3f6;
  font-weight: normal;
  font-size: 1rem;
  margin-left: 1rem;
}

.accordion-content {
  display: none;
  padding: 1rem 1.5rem;
  background: white;
  border-left: 4px solid #EE003B;
  margin-bottom: 1rem;
}

.accordion-content.inner {
  background: #fff;
  border-left: 2px dashed #ccc;
  margin-left: 1rem;
}

.accordion-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.accordion-content li {
  margin-bottom: 0.4rem;
}

.accordion-content a {
  color: #EE003B;
  text-decoration: none;
}
.accordion-content a:hover {
  text-decoration: underline;
}
