/**
Theme Name: rayonnantes
Author: Simon Depaix
Author URI: https://simondpx.fr/
Description: child theme for rayonnantes
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rayonnantes
Template: astra
*/

/* GLOBAL */
* {
  box-sizing: border-box;
}
:root {
  --primary-color: #006d64;
  --secondary-color: #da715e;
  --tertiary-color: #fcead2;
  --quaternary-color: #fef9f2;
  --quinary-color: #4d4d4d;
  --senary-color: #808080;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* PODCAST */
.single-podcast article {
  padding: 0 !important;
  background-color: transparent;
}

.podcast-header,
.podcast-container {
  margin-top: 10px;
  background-color: var(--quaternary-color);
}

.podcast-header {
  display: flex;
  justify-content: space-between;
  height: 400px;
}
.podcast-header-left {
  width: 33%;
}
.podcast-header-right {
  width: 66%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.podcast-header figure {
  width: 100%;
  height: 100%;
}
.podcast-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.podcast-title {
  font-size: 3rem;
  font-weight: 500;
  color: var(--primary-color);
  margin: 0;
}
.podcast-subtitle {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin: 0;
  margin-top: -15px;
  line-height: 1;
}

.podcast-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}
.podcast-number {
  font-size: 3rem;
  font-weight: 400;
  color: var(--primary-color);
}

.podcast-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.podcast-link {
  font-size: 1.5rem;
  font-weight: 700;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0px 20px;
  font-size: 1.125rem;
  text-transform: uppercase;
  border-radius: 20px;
}
.podcast-link:hover {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
}
.podcast-socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.podcast-link-item {
  width: 20px;
  height: 20px;
  background-color: var(--tertiary-color);
  display: inline-block;
  border-radius: 50%;
  margin-right: 10px;
}

.podcast-content {
  padding: 30px;
}
.podcast-description,
.podcast-more-content,
.podcast-content {
  padding: 30px;
  max-width: 960px;
  margin: auto;
}
.podcast-description h2,
.podcast-more-content h2 {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1;
}

.podcast-description ul li::marker,
.podcast-more-content ul li::marker {
  content: ">";
  color: #026666;
  font-weight: 700;
  font-size: 0.7rem;
}
.podcast-description ul li,
.podcast-more-content ul li {
  padding-left: 10px;
}

.podcast-description ul,
.podcast-more-content ul {
  margin-left: 10px;
}
/* CUSTOM MOBILE MENU */
.rayonnantes-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--quaternary-color);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.rayonnantes-mobile-menu.active {
  transform: translateX(0);
}

.rayonnantes-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.rayonnantes-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rayonnantes-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.rayonnantes-mobile-logo {
  flex: 1;
}

.rayonnantes-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rayonnantes-logo-rayon {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.rayonnantes-logo-mic {
  font-size: 1.5rem;
  margin: 5px 0;
  color: var(--primary-color);
}

.rayonnantes-logo-nantes {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}

.rayonnantes-logo-podcast {
  font-size: 0.9rem;
  color: var(--quinary-color);
  margin-top: 5px;
}

.rayonnantes-mobile-logo img {
  max-height: 60px;
  width: auto;
}

.rayonnantes-mobile-close {
  background: #004945;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.rayonnantes-mobile-close:hover {
  color: var(--secondary-color);
}

.rayonnantes-mobile-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80%;
}

.rayonnantes-mobile-menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.rayonnantes-mobile-menu-items li {
  margin: 20px 0;
}

.rayonnantes-mobile-menu-items a {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  display: block;
  padding: 10px 0;
}

.rayonnantes-mobile-menu-items a:hover {
  color: var(--secondary-color);
}

.rayonnantes-mobile-socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.rayonnantes-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: var(--tertiary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.rayonnantes-social-link:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.rayonnantes-mobile-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50px;
  right: 30px;
  z-index: 999;
  display: none;
}
.rayonnantes-mobile-trigger:hover,
.rayonnantes-mobile-trigger:focus,
.rayonnantes-mobile-trigger:active {
  background-color: transparent !important;
}

.rayonnantes-trigger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 35px;
  height: 18px;
}

.rayonnantes-trigger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Hide Astra mobile menu */
@media (max-width: 960px) {
  /* Hide Astra mobile menu components */
  #ast-mobile-popup-wrapper,
  .ast-mobile-popup-drawer,
  .ast-mobile-header-content,
  .ast-mobile-menu-buttons {
    display: none !important;
  }

  /* Hide Astra mobile trigger */
  [data-section="section-header-mobile-trigger"] {
    display: none !important;
  }

  /* Show our custom trigger */
  .rayonnantes-mobile-trigger {
    display: flex !important;
  }

  .latest-podcast-block {
    flex-direction: column !important;
  }

  /* Prevent body scroll when menu is open */
  body.rayonnantes-mobile-menu-open {
    overflow: hidden;
  }

  /* Adjust mobile menu for smaller screens */
  .rayonnantes-mobile-menu {
    padding: 15px;
  }

  .rayonnantes-mobile-menu-header {
    margin-bottom: 30px;
  }

  .rayonnantes-logo-rayon {
    font-size: 1.8rem;
  }

  .rayonnantes-logo-nantes {
    font-size: 1.6rem;
  }

  .rayonnantes-mobile-menu-items a {
    font-size: 2rem;
    font-weight: 400;
  }

  .rayonnantes-mobile-socials {
    gap: 20px;
    margin-top: 30px;
  }

  .rayonnantes-social-link {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  .latest-podcast-block {
    gap: 15px !important;
  }
  .latest-podcast-block__container-right {
    padding-top: 0 !important;
  }
  .latest-podcast-block__content p {
    font-size: 1.4rem !important;
    line-height: 1 !important;
  }
  .podcasts-carousel-block__arrow--left {
    margin-right: -50px !important;
    margin-top: -140px !important;
  }
  .podcasts-carousel-block__arrow--right {
    margin-left: -50px !important;
    margin-top: -140px !important;
  }
  .podcasts-carousel-block__container .podcasts-carousel-block__item {
    flex: 1 0 45% !important;
  }
  .podcasts-carousel-block__container .podcasts-carousel-block__item-subtitle {
    height: 50px !important;
  }
  footer {
    padding: 45px;
  }
  footer * {
    text-align: left !important;
  }
  .ast-builder-footer-grid-columns {
    align-items: flex-start !important;
  }
  footer .ast-builder-footer-grid-columns {
    align-items: flex-start !important;
    grid-column-gap: 30px !important;
  }
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
    margin-top: 0 !important;
  }
  footer figure {
    margin-top: -20px !important;
  }
  footer .ast-footer-copyright p {
    text-align: center !important;
  }
  .rayonnantes-mobile-socials svg {
    fill: #004945 !important;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 12px;
  }
  .podcast-card img {
    object-fit: contain !important;
  }
  /* Mobile menu adjustments for very small screens */
  .rayonnantes-mobile-menu {
    padding: 45px;
  }

  .rayonnantes-mobile-menu-header {
    position: fixed;
    width: 80%;
  }

  .rayonnantes-logo-rayon {
    font-size: 1.5rem;
  }

  .rayonnantes-logo-nantes {
    font-size: 1.3rem;
  }

  .rayonnantes-logo-podcast {
    font-size: 0.8rem;
  }

  .rayonnantes-mobile-menu-items a {
    font-size: 2rem;
    padding: 8px 0;
  }

  .rayonnantes-mobile-menu-items li {
    margin: 15px 0;
  }

  .rayonnantes-mobile-socials {
    gap: 15px;
    margin-top: 20px;
  }

  .rayonnantes-social-link {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .podcast-header,
  .podcast-links {
    flex-direction: column;
    align-items: start;
  }
  .podcast-subtitle {
    margin: 0;
    margin-bottom: 20px;
  }
  .podcast-link {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .podcast-header {
    height: auto;
  }
  .podcast-header-left {
    width: 100%;
  }
  .podcast-header-right {
    width: 100%;
  }
  .latest-podcast-block__container-left {
    width: 100% !important;
  }
  .podcast-single .latest-podcast-block,
  .podcast-infos-container {
    flex-direction: column;
  }
  .podcast-description,
  .podcast-more-content,
  .podcast-content {
    padding: 0;
  }
  .single-podcast {
    padding: 30px;
  }
}

/* SCROLL ANIMATIONS */
.rayonnantes-scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.rayonnantes-scroll-anim.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Animation variants */
.rayonnantes-scroll-anim.fade-left {
  transform: translateX(-50px);
}

.rayonnantes-scroll-anim.fade-right {
  transform: translateX(50px);
}

.rayonnantes-scroll-anim.fade-up {
  transform: translateY(50px);
}

.rayonnantes-scroll-anim.fade-down {
  transform: translateY(-50px);
}

.rayonnantes-scroll-anim.scale {
  transform: scale(0.8);
}

.rayonnantes-scroll-anim.rotate {
  transform: rotate(-10deg);
}

/* Animation delays */
.rayonnantes-scroll-anim.delay-100 {
  transition-delay: 0.1s;
}

.rayonnantes-scroll-anim.delay-200 {
  transition-delay: 0.2s;
}

.rayonnantes-scroll-anim.delay-300 {
  transition-delay: 0.3s;
}

.rayonnantes-scroll-anim.delay-400 {
  transition-delay: 0.4s;
}

.rayonnantes-scroll-anim.delay-500 {
  transition-delay: 0.5s;
}

/* Animation durations */
.rayonnantes-scroll-anim.duration-fast {
  transition-duration: 0.3s;
}

.rayonnantes-scroll-anim.duration-slow {
  transition-duration: 0.9s;
}

/* Disable animations on mobile if needed */
@media (max-width: 768px) {
  .rayonnantes-scroll-anim.disable-mobile {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rayonnantes-scroll-anim.disable-mobile.animate {
    opacity: 1;
    transform: none;
  }
}
