.clickable-composite {
    cursor: pointer;
}

/* CSS pour changer le background-color lors du survol */
.clickable-composite:hover .shadow-sm {

    background-color: rgba(var(--cnvs-themecolor-rgb), 0.2) !important;
}

.clickable-composite:hover .entry-title a {
    color: var(--cnvs-themecolor);
    text-decoration: underline;
}

.clickable-composite:hover .portfolio-desc h2 a {
    color: var(--cnvs-themecolor);
    text-decoration: underline;
}

/* Ne pas afficher le contenu à l'aide cette classe : dp-none */
.dp-none {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Style des TAB de navigation dans le détails d'un evenement */
.block-tab-2 .nav-tabs {
    --bs-nav-tabs-border-width: 0px;
    --bs-nav-link-color: #111;
    --bs-nav-link-hover-color: var(--cnvs-color-sortir-2);
}

.block-tab-2 .nav-tabs .nav-item .nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 400;
    padding: 0 0 20px 0;
}

.block-tab-2 .nav-tabs .nav-item .nav-link i {
    display: block;
    font-size: 38px;
    margin: 0 0 10px 0;
}

.block-tab-2 .nav-tabs .nav-item .nav-link.active {
    top: 0;
}

.block-tab-2 .nav-tabs .nav-item .nav-link.active i {
    color: var(--cnvs-color-sortir-2);
}

.block-tab-2 .nav-tabs .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--cnvs-color-sortir-2);
}

.i-plain:hover {
    --cnvs-i-bg-color: transparent !important;
    --cnvs-i-color: var(--cnvs-color-sortir-3);
    cursor: default;
}

.entry-categories {
    padding: 5px 7px !important;
    font-size: 12px !important;
}

footer .list-unstyled li a,
.copyright-links a {
    color: #fff;
}

.image-view-container,
.image-list-container,
.image-index-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

.image-view-container {
    max-height: 500px;
    aspect-ratio: 746 / 500;
}

.image-list-container,
.image-index-container {
    max-height: 330px;
    aspect-ratio: 416 / 278;
    min-height: 15rem;
}

.image-view-container img,
.image-list-container img,
.image-index-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo-credit {
    position: absolute;
    left: 17px;
    /* Aligné à gauche */
    top: 100%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    /* Ajuste le pivot pour une meilleure rotation */
    background: rgba(0, 0, 0, 0.3);
    /* Fond semi-transparent */
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    border-radius: 3px;
}


.splide-hero {
    background: transparent;
    padding: 0;
}

.splide-hero-carousel {
    min-height: 34rem;
    position: relative;
}

.splide-hero-carousel .splide__track {
    padding: 0;
}

.splide-hero-carousel .splide__slide {
    height: 32rem;
    opacity: 1;
    transition: transform .3s ease;
    margin: 0 !important;
}

.splide-hero-carousel .splide__slide:not(.is-active) .hero-slide__overlay {
    background: rgba(0, 0, 0, 0.78);
}

.splide-hero-carousel .splide__slide.is-prev .hero-slide__overlay,
.splide-hero-carousel .splide__slide.is-next .hero-slide__overlay {
    background: rgba(0, 0, 0, 0.82);
}

.splide-hero-carousel .splide__slide.is-active {
    transform: scale(1.02);
}

.splide-hero-carousel .splide__slide.is-active .hero-slide__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.85) 85%);
}

.hero-splide-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.hero-splide-toggle {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-splide-toggle:hover,
.hero-splide-toggle:focus {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.hero-splide-toggle::before {
    content: '';
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #2ecc71;
}

.hero-splide-toggle[data-state="paused"]::before {
    background: #e74c3c;
}

.hero-slide {
    position: relative;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    min-height: 32rem;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
}

.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.hero-slide__content {
    position: absolute;
    inset: auto 0 0;
    padding: 2.5rem;
    color: #fff;
    z-index: 1;
    transition: opacity .3s ease;
}

.hero-slide__title a:hover {
    text-decoration: underline;
}

.hero-slide__date {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
}

.hero-slide__excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.splide__arrow {
    background: rgba(0, 0, 0, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    opacity: 1;
}

.splide__arrow svg {
    fill: #fff;
}

.header-misc,
.header-extras {
    min-height: 64px;
}

.header-misc .btn {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-extras {
    gap: 1.5rem;
}

.header-extras .i-plain {
    width: 2.75rem;
    height: 2.75rem;
    line-height: 2.75rem;
    font-size: 1.1rem;
}

.header-extras .header-extra-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.header-extras .header-extra-link:hover,
.header-extras .header-extra-link:focus-visible {
    text-decoration: none;
}

.header-extras .header-extra-link::after {
    opacity: 0;
    content: '';
    position: absolute;
    background: #fff;
    height: 3px;
    bottom: 0;
    left: 50%;
    width: 0;
    transform: translateX(-50%);
    transition: all 0.25s ease;
}

.header-extras .header-extra-link:hover::after,
.header-extras .header-extra-link:focus-visible::after {
    opacity: 1;
    width: 100%;
}

.header-extras .header-extra-link .he-text span {
    color: #fff;
}

.header-extras .header-extra-link:hover .i-plain,
.header-extras .header-extra-link:focus-visible .i-plain,
.header-extras .header-extra-link .i-plain:hover {
    --cnvs-i-bg-color: transparent !important;
    --cnvs-i-color: #fff;
    cursor: pointer;
}

.header-extras .header-extra-link:hover .he-text span,
.header-extras .header-extra-link:focus-visible .he-text span {
    color: #fff;
}

.splide-hero-carousel .splide__slide:not(.is-active) .hero-slide__content {
    opacity: 0;
}

.splide-hero-carousel .splide__slide.is-active .hero-slide__content {
    opacity: 1;
}

/* Neutralise totalement le style natif du <button> */
#copyrights .as-link {
    appearance: none;
    -webkit-appearance: none;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    /* on gère le focus nous-mêmes plus bas */
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

/* Effets hover/focus sans "cadre" */
#copyrights .as-link:hover,
#copyrights .as-link:focus-visible,
#copyrights .copy-links a.copy-link:hover,
#copyrights .copy-links a.copy-link:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* Si un style global rajoute une ombre/focus, on la coupe ici aussi */
#copyrights .as-link:focus,
#copyrights .as-link:active {
    box-shadow: none !important;
    outline: none !important;
}

/* =========================
   Liste des points map pour un affichage en verision liste
========================= */
.map-card {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(4px);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s;
}

.map-card:focus-within {
    outline: 2px solid #0a58ca;
    outline-offset: 2px;
}

.map-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Titre + index badge */
.map-card__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.map-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(214, 11, 81, 0.15);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Ligne adresse */
.map-card__addr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.95;
}

.map-card__addr i {
    opacity: 0.85;
}

/* Texte */
.map-card p {
    margin: 0.35rem 0 0;
}

/* Actions */
.map-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.map-card__actions .button {
    line-height: 1.2;
}

/* Affichage des dates et horaires dans la vue d'un evenement */
.event-schedule-card {
    margin-bottom: 2rem;
    border: 1px solid rgba(25, 37, 52, 0.10);
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    box-shadow: 0 18px 40px rgba(25, 37, 52, 0.07);
    overflow: hidden;
}

.event-schedule-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f4efe2 0%, #fff8ec 100%);
    border-bottom: 1px solid rgba(25, 37, 52, 0.08);
}

.event-schedule-kickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.event-schedule-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #243447;
    font-size: 0.95rem;
    font-weight: 600;
}

.event-schedule-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0 0;
}

.event-schedule-btn {
    border: 1px solid rgba(36, 52, 71, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #243447;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    transition: all 0.2s ease;
}

.event-schedule-btn:hover,
.event-schedule-btn:focus {
    background: #243447;
    color: #fff;
}

.event-schedule-btn:focus-visible,
.event-schedule-summary:focus-visible,
.event-schedule-more-summary:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 3px;
    border-radius: 14px;
}

.event-schedule-list {
    padding: 1rem 1.5rem 1.5rem;
}

.event-schedule-list--compact {
    padding-bottom: 1rem;
}

.event-schedule-item {
    border: 1px solid rgba(36, 52, 71, 0.10);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.event-schedule-item+.event-schedule-item {
    margin-top: 0.85rem;
}

.event-schedule-item:focus-within,
.event-schedule-more:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.16);
}

.event-schedule-more {
    margin: 0 1.5rem 1.5rem;
    border: 1px dashed rgba(36, 52, 71, 0.18);
    border-radius: 18px;
    background: #fcfcfd;
    overflow: hidden;
}

.event-schedule-more-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #243447;
}

.event-schedule-more-summary::-webkit-details-marker {
    display: none;
}

.event-schedule-more-summary::marker {
    content: '';
}

.event-schedule-more-panel {
    padding: 0 1rem 1rem;
}

.event-schedule-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #1f2d3d;
}

.event-schedule-summary::-webkit-details-marker {
    display: none;
}

.event-schedule-summary::marker {
    content: '';
}

.event-schedule-summary-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.event-schedule-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: #fff4db;
    color: #8a5a00;
    flex-shrink: 0;
}

.event-schedule-summary-label {
    min-width: 0;
}

.event-schedule-summary-label small {
    display: block;
    margin-top: 0.2rem;
    color: #6a7785;
    font-size: 0.88rem;
    font-weight: 500;
}

.event-schedule-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.event-schedule-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f3f6f9;
    color: #34495e;
    font-size: 0.85rem;
    font-weight: 700;
}

.event-schedule-chevron {
    color: #6a7785;
    transition: transform 0.2s ease;
}

.event-schedule-item[open] .event-schedule-chevron {
    transform: rotate(180deg);
}

.event-schedule-item[open] {
    border-color: rgba(36, 52, 71, 0.18);
}

.event-schedule-panel {
    padding: 0 1.1rem 1.1rem;
}

.event-schedule-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.event-schedule-line {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: #f7f8fa;
    color: #243447;
    line-height: 1.5;
}

.event-schedule-empty {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: #f7f8fa;
    color: #6a7785;
    font-style: italic;
}

@media (max-width: 767.98px) {

    .event-schedule-header,
    .event-schedule-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .event-schedule-more {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .event-schedule-summary {
        align-items: flex-start;
    }

    .event-schedule-summary-meta {
        align-self: center;
    }
}
