/* 
Theme Name: Le thème des Tutos de la Baleine
Theme URI: https://labaleinebasque.fr
Description: Le thème du site des Tutos de la Baleine
Author: Anthony Sabatier
Author URI: La Baleine Basque
Template: hello-elementor
Version: 2.0.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Add your custom styles here */

/* Header menu */
.menu-logged-in a,
.menu-logged-out a {
  font-weight: 400;
  text-decoration: none;
}

.link-text-decoration-none a {
  text-decoration: none;
}

/* Boutons de la page d'accueil */
.home-btn {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-btn:hover {
  transform: translateY(5px); 
}

/* Content Restriction */
.edd_cr_message {
  background-color: #f7f7f7;
  padding: 25px;
}

.cr_message {
  margin: 0;
  text-align: center;
}

/* SINGLE LECON */
.lecon-list ul {
  list-style: none;
  padding: 0;
}

.lecon-list li {
  background-color: #ffffff;
  border-radius: 0 10px;
  margin-bottom: 16px;
  padding: 10px 20px;
  transition: 0.2s ease-in;
}

.lecon-list li:hover {
  transform: translateX(5px);
}

.lecon-list li:hover a {
  font-weight: bold;
}

.lecon-list li a {
  color: #004363;
  font-weight: 600;
  text-decoration: none !important;
}

/* Compte client */
.title-section {
  margin-top: 32px;
}

a.kxs-card:hover p,
span.elementor-icon-list-text {
  color: #dff3fe;
}

a.kxs-card:hover span.elementor-post-info__item--type-author {
  color: #dff3fe !important;
}

.kxs-card h3,
.kxs-card p:hover,
.kxs-card span:hover {
  color: #dff3fe;
  transition: 0.1s ease-in;
}

a.kxs-card {
  font-weight: 400;
  text-decoration: none;
}

#kxs-card a:hover h3,
#kxs-card:hover h3 {
  color: #ffffff;
}

.kxs-card .elementor-heading-title span {
  background-color: #004363;
  color: #dff3fe;
  padding: 4px 9px;
  border-radius: 25px;
}

.kxs-card .elementor-heading-title span:not(:last-child) {
  margin-right: 8px;
}

/* Archive podcasts */
.card-podcast a {
  font-weight: 600;
  text-decoration: none;
}

/* Personnalisation mon Espace */

#profil-info fieldset,
#edd_purchase_form fieldset {
  background-color: #f7f7f7;
}

fieldset#edd_profile_submit_fieldset {
  background-color: transparent;
  border: none;
}

#edd_profile_editor_form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

#edd_profile_editor_form input,
#profile_editor_form select,
#edd_purchase_form input,
#edd_purchase_form select {
  border: 1px solid #e8eded;
  border-radius: 4px;
}

#edd_profile_editor_form legend,
#edd_purchase_form legend {
  display: block;
  font-size: 110%;
  line-height: 1.2;
  font-weight: 700;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  white-space: wrap;
}

#edd_profile_editor_form label {
  font-weight: 700;
  display: block;
  position: relative;
  line-height: 100%;
  font-size: 95%;
  margin: 0 0 5px;
}

#edd_profile_editor_submit {
  color: white;
  background-color: #333;
  border: solid 1px #333;
  border-radius: 4px;
  transition: 0.3s ease-in;
}

#edd_profile_editor_submit:hover {
  color: #333;
  background-color: white;
  border: solid 1px #333;
}

/* Responsive Table */
#edd_user_history {
  width: 100%;
  border-collapse: collapse;
}

#edd_user_history th,
#edd_user_history td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
}

/* Responsive Styles for Tablets and Mobiles */
@media screen and (max-width: 768px) {
  #edd_user_history {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media screen and (max-width: 480px) {
  #edd_user_history thead {
    display: none;
  }

  #edd_user_history tr {
    display: block;
    margin-bottom: 15px;
  }

  #edd_user_history td {
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ddd;
  }
}

/* Personnalisation du bouton de déconnexion */
#edd_purchase_submit {
  text-align: center;
}

a.elementor-button {
  text-decoration: none;
}

/* Tous nos cours */
#course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.course-item {
  border: 1px solid #ddd;
  padding: 15px;
  background: #fff;
  text-align: center;
}

.course-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

#load-more {
  background: #0073aa;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  text-align: center;
}

.loader {
  text-align: center;
  font-size: 16px;
  color: #f05454;
  margin: 20px 0;
}

/* Style Jessica */

.menu-navigation a {
  background-color: var(--e-global-color-secondary);
  border-radius: 4px;
  border: 1px solid var(--e-global-color-secondary);
}

.menu-navigation a:hover {
  background-color: #ffffff;
  border: 1px solid var(--e-global-color-primary);
}

/* Bouton de déconnexion */
.elementor-shortcode {
  padding: 8px;
}
.elementor-kit-8 a {
  text-decoration: none;
}

* .bx-shadows {
  box-shadow: 3px 3px 1px #d4e7f1, -3px -3px 1px #eaffff;
}

/* Animation H1 underline */
div.scroll-animated .animated-title h2 {
  position: relative;
  display: inline-block;
}

div.scroll-animated .animated-title h2::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #004363, #dff3fe);
  transition: width 0.6s ease-in-out;
}

div.scroll-animated .animated-title h2:scrolled::after {
  width: 100%;
}

/* Card effects */
.elementor-element.elementor-element-342f3d8 {
  box-shadow: 3px 3px 1px #d4e7f1, -3px -3px 1px #eaffff;
}

.elementor-element.elementor-element-342f3d8:hover {
  box-shadow: 3px 3px 1px #eaffff, -3px -3px 1px #d4e7f1;
}

.elementor-element.elementor-element-342f3d8:hover
  .elementor-heading-title
  span {
  background-color: var(--e-global-color-secondary);
  color: var(--e-global-color-primary);
}

/* Section étapes de la home page */
.etapes-container .elementor-widget-container {
  background-color: var(--e-global-color-secondary);
}

/*Barre de recherche, liste des cours */
input#search-ff637fb {
  padding: 5px;
}

/* Boutons du site */
.btn-secondary .elementor-shortcode {
  display: inline-block;
  text-align: center;
  background-color: #7fd7ff;
  padding: 8px 16px;
  border-radius: 4px;
}
@media screen and (max-width: 480px) {
  .btn-secondary .elementor-shortcode {
    font-size: 14px;
  }
}

.btn-secondary .elementor-shortcode a {
  color: var(--e-global-color-primary);
}

.btn-secondary .elementor-shortcode:hover {
  background-color: #ffff;
}

.menu-navigation .elementor-nav-menu a {
  padding: 8px 16px;
}

.menu-navigation .elementor-nav-menu a:hover {
  padding: 8px 16px;
}

@media screen and (max-width: 480px) {
  .menu-logged .elementor-element-624ffaa,
  .elementor-element-a059015,
  .elementor-element-1c6903c {
    width: auto;
  }
}

.hauteur-bloc {
  height: 100px;
}

/* Differencier la leçon actuelle */
.lecons-meme-niveau .current-lecon,
.lecons-enfants .current-lecon {
  font-weight: bold;
}

li.current-lecon a {
  text-decoration: none !important;
}

.elementor-11433 .elementor-element.elementor-element-f1dbaf6 {
  position: sticky;
  top: 0;
  max-height: 100%;
  overflow: hidden;
  width: 100%;
}

/* Leçon */
.wp-block-heading {
  margin: 30px 0;
}

/* Leçon, espacement des listes */
#infos-tutos .elementor-element .elementor-widget-container ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Flèches de navigations des pages cours */
span.post-navigation__next--label,
span.post-navigation__next--label {
  font-weight: bold;
}

.form-container .elementor-field-label {
  font-weight: bold;
}

.wp-block-list {
  margin-bottom: 16px;
}

.wp-block-list li:not(:last-of-type) {
  margin-bottom: 6px;
}

