/*
 Theme Name:   Astra Child
 Theme URI:    https://fakirpresse.info
 Description:  Thème enfant d’Astra
 Author:       Mathieu Hourdin
 Template:     astra
 Version:      1.0
 Text Domain:  astra-child
*/

/* Tu peux ajouter ton CSS personnalisé ici */
.elementor-nav-menu--main .current-menu-ancestor > .elementor-item + .sub-menu,
.elementor-nav-menu--main .current-menu-item > .elementor-item + .sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    transform: none !important;
}

.liste-articles-meme-numero {
  font-family: "Francois One", sans-serif;
  padding-left: 10px;
  padding-right: 10px;
}

.liste-articles-meme-numero .article {
  margin-bottom: 1.2em;
}

.liste-articles-meme-numero .categorie {
  color: #B9141A;
  font-weight: bold;
  font-size: 0.9em;
  font-family: "Open Sans", sans-serif;
}

.liste-articles-meme-numero .titre {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1.4;
}
.picto-abonne-inline {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 0.4em;
  width: 1em;
  height: 1em;
  position: relative;
  top: 0.1em; /* ajuste finement pour l’aligner au centre optique */
}

.liste-articles-meme-numero .titre a {
  text-decoration: none;
  color: rgb(18, 18, 18);
}
.picto-abonne-inline img {
  margin-top: 0.1em; /* ajuste finement pour l’aligner au centre optique */
  width: 100%;
  height: auto;
  display: block;
}
.liste-articles-meme-numero .titre img.picto-abonne {
  width: 100%;
}

.liste-articles-meme-numero .pagination {
  margin-top: 2em;
  font-weight: bold;
}

.liste-articles-meme-numero .pagination a {
  margin-right: 10px;
  color: black;
  text-decoration: none;
}

.liste-articles-meme-numero .pagination .suivant {
  color: #cc0000;
}

.contenu-abonne {
    text-align: left;
    color: var(--e-global-color-text);
    font-family: "Open Sans", Sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 2em;
}
.date-publication {
    color: #B9141A;
}

.bloc-paywall {
    border: 5px solid #B9141A;
    padding: 3em;
}

.preview-fade {
  position: relative;
  display: inline-block;
}

.preview-fade::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.encart {
  padding: 2em;
  border: 2px solid #B9141A;
  background: #f4f4f4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-radius: 6px;
}


/* Carousel */

.archives-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: top;
}

.serie-scroll-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.serie-scroll-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 200px;
  border-radius: 10px;
  text-align: left;
}

.serie-scroll-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.serie-scroll-item h3 {
  font-size: 1.4rem;
  padding-left: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.serie-desc {
  font-size: 1.2rem;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.serie-count {
  font-size: 0.85rem;
  padding-left: 1rem;
  color: #888;
  font-style: italic;
}
@media (max-width: 768px) {
  .serie-scroll-arrow {
    display: none;
  }
}
.serie-scroll-arrow {
  margin-top: 4em;
  padding: 0 !important;
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #ccc;
  border-radius: 10px !important;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}
.serie-scroll-arrow:hover {
  background: #f2f2f2;
}

.serie-scroll-arrow.left {
  margin-right: 1rem;
}

.serie-scroll-arrow.right {
  margin-left: 1rem;
}

.evosv_event {
  white-space: normal !important;
}


/* Woocommerce extension */
.woocommerce-deja-abonne {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 8px;
}
.champ-radio-natif .woocommerce-input-wrapper input[type="radio"] {
  margin-right: 2px;
  margin-left: 8px;
}

.champ-radio-natif .woocommerce-input-wrapper label {
  margin-bottom: 5px;
}


/* Calendrier */
.calendrier-evenements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}
.calendrier-evenements .event {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fafafa;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
}
.calendrier-evenements .event .event-header {
    display: flex;
    align-items: center;
    width: 33%;
}
@media (max-width: 768px) {
    .calendrier-evenements .event .event-header {
        flex-direction: column;
    }
}
.calendrier-evenements .event .event-infos {
    text-align: left;
    padding-left: 15px;
}
.event-image {
    width: 95%;
}
.event-image img {
    width: auto;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.event-dates {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
    margin-left: 18px;
}
@media (max-width: 768px) {
    .event-dates {
        margin-left: 0;
    }
}
.event-dates .date-weekday {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}
.event-dates .date-day {
    font-size: 38px;
    font-weight: 800;
    color: #B9141A;
    margin-bottom: 5px;
}
.event-dates .date-month {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}
.event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
    text-decoration: none;
}
.event-title:hover {
    text-decoration: underline;
}
.event-location {
    font-size: 14px;
    color: #666;
}

.redirect-login-message {
    font-size: 1.3em;
    margin: 1em 0 2em;
    text-align: center;
    font-weight: 600;
}
.post-1454 .woocommerce {
  display: flex;
  gap: 3em;
}
.wc-proceed-to-checkout a {
  color: white !important;
}