/**
 * Theme Name: OSPAPIK
 * Version: 1.0.1
 * Author: Studio Pyxes
 * Author URI: https://pyxes-studio.com/
 */

.wp-caption {
  max-width: 100%;
}

.c-modules {
  display: flex;
  flex-direction: column;
  row-gap: 52px;
}

.c-modules .c-projet_blocs-grid:not(:last-of-type) {
  margin-bottom: 52px;
}

.wpml-ls ul {
  list-style: none;
}

.c-iframe {
  position: relative;
  padding-bottom: 56.25%;
  width: 100%;
  overflow: hidden;
  max-width: 80%;
  height: auto;
  margin-inline: auto;
}

.c-iframe iframe,
.c-iframe object,
.c-iframe embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.c-embed iframe {
  width: 100%;
}

.c-list_container h4 {
  color: #8d8d8d;
  margin-bottom: 20px;
}

.c-list {
  list-style: dot;
}

.c-wysiwyg {
  border-top: 3px dotted #000;
  border-bottom: 3px dotted #000;
  padding-top: 16px;
  padding-bottom: 16px;
}

.c-agenda_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.c-agenda_card {
    display: flex;
}

.c-agenda_card_link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.c-agenda_card_thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.c-agenda_card_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.c-agenda_card_link:hover .c-agenda_card_thumb img {
    transform: scale(1.06);
}

.c-agenda_card_thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd, #f0f0f0);
}

.c-agenda_card_meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.9rem;
}

.c-agenda_card_category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary, #6d71cf);
}

.c-agenda_card_date {
    font-size: 0.75rem;
    color: #8d8d8d;
    position: relative;
    padding-left: 12px;
}

.c-agenda_card_date::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8d8d8d;
}

.c-agenda_card_title {
    margin-top: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
}

@media (max-width: 700px) {
  .c-hero_p .custom > * {
    flex: 0 0 100% !important;
  }

  .c-modules .c-projet_blocs-grid:not(:last-of-type) {
    margin-bottom: 40px;
  }

  .c-modules {
    row-gap: 40px;
  }
  .c-iframe {
    max-width: 100%;
  }
}
