/* ==========================================================================
   1. LAYOUT GLOBAL & CONTENEURS
   ========================================================================== */

.los-main-container {
    display: flex;
}

.los-main-content {
    min-width: 75%;
}

#top .los-full-container {
    display: block;
}

#top .los-info i::before {
    padding: 7px;
}

.los-width-constraint {
    display: inline !important;
}

/* ==========================================================================
   2. COMPOSANT CARTE GLOBAL (Cards Base)
   ========================================================================== */

.los-content-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 2em;
    background-color: #ffffff;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 5px;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.los-content-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.los-content-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

/* Image / Média de la carte */
.los-content-image {
    width: 33.33%;
    overflow: hidden;
    border-radius: 7px 0 0 7px;
}

.los-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Corps de la carte */
.los-card-body {
    width: 100%;
    min-width: 70%;
    display: flex;
    flex-direction: column;
    border-radius: 0 7px 0 0;
}

.los-card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.los-card-titre-bloc {
    border-radius: 7px 7px 0 0;
}

.los-card-titre {
    display: flex;
    justify-content: space-between;
    padding: 0.5em 0;
    background-color: #f5f5f5;
    border-bottom: none;
    border-radius: 0 7px 0 0;
}

#top #wrap_all .los-card-titre h2 {
    margin: 0;
}

.los-tuile-content {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    padding: 1em 0.7em;
}

.los-tuile-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.5%;
}

/* ==========================================================================
   3. ÉLÉMENTS DE CONTENU & TYPOGRAPHIE
   ========================================================================== */

.los-content-line {
    display: flex;
    align-items: center;
    min-height: 2em;
}

.los-content-saison {
    font-size: large;
    font-weight: bold;
    margin-left: -5px;
}

.los-separateur {
    margin: -0.1% 1%;
}

#top #wrap_all .main_color .los-icone-a {
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
}

/* Blocs d'alignement Gauche / Droite */
.los-content-left,
.los-content-right {
    display: flex;
    align-items: center;
}

.los-content-left {
    justify-content: flex-end;
    margin-left: 0.5em;
}

.los-content-right {
    justify-content: flex-end;
    gap: 0.5rem;
    margin-right: 0.5em;
}

.los-content-right i {
    font-size: 25px;
    margin: 0;
}

.los-content-right a {
    margin: 0;
}

/* Liseré et flags */
#top .los-card-text {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-left: 5px;
    padding-left: 10px;
    border-left: 1px solid var(--main_color_primary);
}

.los-card-flag {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.los-content-flag {
    width: 100%;
    font-size: smaller;
    font-weight: bold;
    text-transform: uppercase;
}

.los-content-flag span {
    font-weight: normal;
}

.los-first-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Boutons d'action */
.los-tuile-btn {
    width: 100%;
    margin: 0;
}

.los-tuile-btn a {
    margin-left: 1.5%;
}

/* ==========================================================================
   4. BADGES, PASTILLES & FORMES
   ========================================================================== */

.los-badge {
    display: inline-block;
    min-width: 10px;
    padding: 0.5em;
    color: #000000;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: transparent;
    border: 1px solid #e1e1e1;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 5px;
}

.los-badge-liste {
    display: flex;
    gap: 0.2em;
    flex-wrap: wrap;
    margin: 0.5em 0;
}

#cercle,
.cercle {
  width: 10px;
  height: 10px;
  border-radius: 20px;
  margin-right: 6px;
}

#top .los-badge-cercle.cercle {
  height: 38px;
}

.los-badge-cercle-picto.cercle {
  margin-right: -20px;
}

/*  Modified the second span */
.los-badge-cercle.cercle > span:last-of-type {
  padding: 12px 1rem 12px 1rem;
  border-radius: 20px;
}

.los-badge-cercle {
  padding: 12px 1rem 12px 0;
  display: flex;
  margin: 0 0.5rem;
  font-size: 1rem !important;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  font-weight: bold;
}

.los-badge-cercle-picto {
  background: #878787;
  display: inline-flex;
  margin: 0;
  padding: 12px;
}

#top .los-badge-cercle.los-element-pastille {
  padding: 5px;
  margin: 0;
  background: #edf1f5;
  border-radius: 10px;
  gap: 3px;
  height: fit-content;
}

.los-badge-cercle.los-element-pastille .los-badge-cercle-picto {
  padding: 7px;
}

.los-badge-pastille {
    width: 20px;
    height: 20px;
    margin: 0.155%;
    margin-right: 6px;
    border-radius: 50%;
}

/* ==========================================================================
   5. VARIANTES DE LISTES ET MODE COMPACT
   ========================================================================== */

#top .los-liste-image {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#top .los-liste-liste .panel-group {
    margin: 0;
}

#top .los-liste-liste .panel {
    border: 1px solid var(--enfold-main-color-border);
    border-radius: 5px;
    overflow: hidden;
}

#top .los-liste-liste h3 {
    width: 100%;
}

#top #wrap_all .los-liste-liste .los-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px;
    color: inherit;
}

#top #wrap_all .los-liste-liste .los-accordion-toggle:not(.collapsed) {
    background-color: #f5f5f5;
}

#top .los-liste-liste .los-accordion-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

#top .los-liste-liste .los-content-card,
#top .los-liste-liste .los-card-body,
#top .los-liste-liste .los-card-titre {
    border-radius: 0;
}

#top .los-liste-liste .los-card-titre {
    padding: 1em;
    background-color: inherit;
}

#top .panel-body,
#top .los-card-liste,
#top .los-liste-liste .los-category-group,
#top .los-liste-liste .los-category-item {
    margin: 0;
    padding: 0;
}

#top .los-liste-liste .los-category-group {
    list-style: none;
}

#top .los-liste-liste .los-category-item {
    border-top: 1px solid var(--enfold-main-color-border);
}

/* Mode Compact */
#top .los-content-card.is-compact {
    flex-direction: column;
}

#top .los-content-card.is-compact .los-content-image {
    border-radius: 0;
}

#top .los-content-card.is-compact .los-card-media {
    flex: 0 0 50%;
    max-width: 100%;
    overflow: hidden;
}

#top .los-content-card.is-compact .los-card-body {
    gap: 1.5em;
    text-align: center;
    overflow: hidden;
}

#top .los-content-card.is-compact .los-card-titre {
    text-align: center;
}

#top .los-content-card.is-compact .los-tuile-content {
    overflow-y: auto;
}

#top .los-content-card.is-compact .los-card-text {
    height: 100%;
}

.los_liste_catalogue .row > [class*="col-"] {
    display: flex;
}

.los_liste_catalogue.los-liste-image .row .col-12 {
    padding: 10px 15px;
}

/* ==========================================================================
   6. MEDIA QUERIES (Responsive Design)
   ========================================================================== */

/* Écrans moyens / Tablettes paysage */
@media (max-width: 1280px) {
    #top .los-main-content {
        min-width: 100%;
    }
}

/* Tablettes & Mobiles */
@media (max-width: 768px) {
    .content .entry-content-wrapper,
    .los-card-titre,
    .los-card-body,
    .los-content-card,
    #top .los-content-image,
    .los-dispositif-image {
        width: 100%;
    }

    .los-content-card {
        flex-direction: column;
        text-align: center;
    }

    .los-card-body {
        text-align: center;
        border-radius: 0 7px 0 0;
    }

    .los-card-titre,
    #top .los-card-titre {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        text-align: center;
        border-radius: 0 7px 0 0;
    }

    .los-content-line {
        height: auto;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0.4em;
    }

    .los-content-img img {
        max-height: 190px;
    }

    .los-card-flag {
        display: block;
    }

    #top .los-content-flag {
        display: flex;
        flex-direction: column;
        margin: 10px 0;
    }

    #top .los-content-flag span {
        width: 100%;
    }

    .los-tuile-footer {
        align-items: flex-start;
        height: auto;
    }

    #top .los-content-left,
    #top .los-content-right {
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    #top .los-content-left h2,
    #top .los-content-right h2 {
        text-align: center;
    }

    .los-content-right {
        flex-direction: row;
        font-size: 20px;
    }

    .los-content-right i {
        font-size: 20px;
    }

    .los-badge-liste {
        justify-content: center;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .los-content-left,
    .los-content-right,
    .los-content-right i {
        font-size: 18px;
    }

    .colored-tag-label {
        font-size: 14px;
    }
}