/* ===== CALENDRIER - NOUVEAU LAYOUT ===== */





.calendar-card {
    padding: 0 !important;
    overflow: hidden;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    min-height: 650px;
    height: 100%;
}

/* ===== PHOTO SIDE ===== */
.calendar-photo-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 50, 35, 0.7) 0%, rgba(0, 86, 63, 0.90) 100%);
    z-index: 1;
}

.calendar-photo-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1; /* Prend tout l'espace disponible */
    gap: 1.5rem;
    /* justify-content: flex-end; - Retiré pour garder le header en haut */
}

.calendar-photo-header {
    margin-bottom: 0.5rem;
}

.calendar-photo-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.calendar-photo-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Filtres */
.calendar-grid-side .calendar-filters {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
}

.calendar-grid-side .filter-btn {

    padding: 0.65rem 1.5rem;
    border: none;
    background: var(--gdf-color-white);
    color: var(--gdf-color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}

.calendar-grid-side .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-grid-side .filter-btn.active {
    background: linear-gradient(135deg, var(--gdf-color-secondary) 0%, var(--gdf-color-accent) 100%);
    color: var(--gdf-color-white);
    box-shadow: 0 4px 16px rgba(184, 147, 95, 0.4);
}

/* Filtres dans la partie photo (old location - supprimer) */
.calendar-photo-side .calendar-filters {
    display: none;
}

/* Bouton reset */
.reset-selection-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.reset-selection-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.calendar-photo-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-top: auto; /* Pousse les événements en bas */
    max-height: 800px;
}

.calendar-photo-events::-webkit-scrollbar {
    width: 4px;
}

.calendar-photo-events::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-photo-events::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.calendar-photo-event {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

/* Style pour les événements cliquables (liens) */
a.calendar-photo-event.clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.calendar-photo-event.clickable:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

/* Bouton S'inscrire */
.calendar-photo-event-cta {
text-transform: uppercase;
    border: none;
    float: right;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 5px 25px;
    display: inline;
    margin-top: 0.5rem;
    /* padding-top: 0.5rem; */
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
    font-size: 0.80rem;
    font-weight: 600;
    color: #FFF;
    /* background-color: var(--gdf-color-accent); */
    opacity: 1;
    transition: opacity 0.3s ease;
    text-align: right;

}

a.calendar-photo-event.clickable:hover .calendar-photo-event-cta {
    opacity: 1;
}

/* Les couleurs des types sont injectées dynamiquement via JS (injectDynamicCSS)
   Les règles ci-dessous sont des fallbacks pour les types par défaut */
.calendar-photo-event.ligue { border-left-color: #c1a875; }
.calendar-photo-event.competition { border-left-color: #c1272d; }
.calendar-photo-event.course { border-left-color: #999; }
.calendar-photo-event.scramble { border-left-color: #4a90e2; }

.calendar-photo-event-date {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.calendar-photo-event-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.calendar-photo-event-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.calendar-photo-event-time {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== CALENDAR GRID SIDE ===== */
.calendar-grid-side {
    padding: 2.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gdf-color-primary);
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid rgba(0, 86, 63, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gdf-color-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(0, 86, 63, 0.05);
    border-color: var(--gdf-color-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 0.8rem 0.5rem;
    color: var(--gdf-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: var(--gdf-color-text);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-day:not(.other-month):hover {
    background: rgba(0, 86, 63, 0.08);
}

.calendar-day.today {
    background: var(--gdf-color-primary);
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Couleurs dots dynamiques (injectées via JS), fallbacks ci-dessous */
.calendar-day.has-event.ligue::after { background: #c1a875; }
.calendar-day.has-event.competition::after { background: #c1272d; }
.calendar-day.has-event.course::after { background: #999; }
.calendar-day.has-event.scramble::after { background: #4a90e2; }

.calendar-day.selected {
    background: var(--gdf-color-accent);
    color: #ffffff;
    font-weight: 700;
}

/* ===== WEATHER INFO CARD ===== */
.weather-info-card {
    padding: 2.5rem !important;
    background: #f9f9f9;
}

.weather-info-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Widget Infos Calendrier */
.calendar-info-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calendar-grid-info {
margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 86, 63, 0.1);
font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}




.calendar-grid-info strong {
    display: block;
    font-weight: 600;
    color: var(--gdf-color-primary);
    margin-bottom: 0.3rem;
}

/* Notice admin par défaut */
.admin-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.admin-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #856404;
}

/* ===== ZONE INFOS SOUS LE CALENDRIER GRID ===== */
.calendar-grid-info {
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 86, 63, 0.1);
}

.calendar-info-default {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-info-default .calendar-grid-info {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 86, 63, 0.03);
    border-left: 3px solid var(--gdf-color-primary);
    border-radius: 8px;
}

.calendar-info-default .info-icon {
    flex-shrink: 0;
    color: var(--gdf-color-primary);
    margin-top: 0.1rem;
}

.calendar-info-default .calendar-grid-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gdf-color-text);
}

.calendar-info-default .calendar-grid-info strong {
    font-weight: 600;
    color: var(--gdf-color-primary);
}

.widget-notice {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Styles pour les widgets dans cette zone */
.calendar-widget {
    margin-bottom: 1rem;
}

.calendar-widget .calendar-info-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-widget .calendar-grid-info {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 86, 63, 0.03);
    border-left: 3px solid var(--gdf-color-primary);
    border-radius: 8px;
}

.calendar-widget .info-icon {
    flex-shrink: 0;
    color: var(--gdf-color-primary);
    margin-top: 0.1rem;
}

.calendar-widget .calendar-grid-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gdf-color-text);
}


.calendar-shortcode-section.info-section{
	background-color:transparent!important;
	padding:0;
}
.calendar-shortcode-section .container{
	padding:0;
}

.calendar-shortcode-section .info-grid {
    grid-template-columns: 1fr;
}
.calendar-shortcode-section .calendar-layout {
    grid-template-columns: 2fr 1fr;
}
.calendar-shortcode-section .calendar-bg-image{
	display:none;
}
.calendar-shortcode-section .calendar-photo-overlay {
	background:#f9f9f9;
}
.calendar-shortcode-section .calendar-photo-content {
	color:#333;
}




















/* ===== BOUTON S'ABONNER ===== */
.calendar-subscribe-bar {
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1.5px solid var(--gdf-color-primary);
    border-radius: 25px;
    color: var(--gdf-color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: var(--gdf-color-primary);
    color: #fff;
}

/* ===== MODALE D'ABONNEMENT ===== */
.subscribe-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.subscribe-modal-overlay.active {
    display: flex;
}

.subscribe-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 460px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.subscribe-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.subscribe-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.subscribe-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gdf-color-primary);
    margin-bottom: 0.5rem;
}

.subscribe-modal-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subscribe-types {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.subscribe-type-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.subscribe-type-item:hover {
    background: #f5f5f5;
}

.subscribe-type-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gdf-color-primary);
    cursor: pointer;
}

.subscribe-type-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.subscribe-type-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.subscribe-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.subscribe-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.subscribe-action-btn.primary {
    background: var(--gdf-color-primary);
    color: #fff;
}

.subscribe-action-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.subscribe-action-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.subscribe-action-btn.secondary:hover {
    background: #e0e0e0;
}

.subscribe-modal-help {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-photo-side {
        min-height: 450px;
    }
    
    .calendar-photo-content {
        padding: 2rem 1.5rem;
    }
    
    .calendar-photo-header h3 {
        font-size: 2rem;
    }
    
    .calendar-photo-events {
        max-height: 200px;
    }
    
    .calendar-grid-side {
        padding: 2rem 1.5rem;
    }
    
    .calendar-header h3 {
        font-size: 1.3rem;
    }
    
    .weather-info-card {
        padding: 2rem 1.5rem !important;
    }
    
    .calendar-grid-info {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .calendar-info-default .calendar-grid-info,
    .calendar-widget .calendar-grid-info {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .subscribe-actions {
        flex-direction: column;
    }
    
    .subscribe-modal {
        padding: 1.5rem;
    }
    .calendar-grid-side .calendar-filters {
        gap: 0.4rem;
    }
    
    .calendar-grid-side .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .calendar-grid {
        gap: 0.3rem;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
}
.info-section:not(.calendar-shortcode-section) .calendar-photo-event{
	color:#FFF!important;
	background-color: unset!important;
}
.info-section:not(.calendar-shortcode-section) .calendar-photo-event-cta {

	background-color: rgba(255,255,255,0.1)!important;
}
.calendar-shortcode-section .calendar-photo-events{
	margin-top:unset;
}
.calendar-shortcode-section .calendar-photo-event {
    border: none;
}
.calendar-shortcode-section .info-card.calendar-card {
	box-shadow:none;
}
.calendar-shortcode-section .calendar-grid-side{
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.calendar-shortcode-section .calendar-photo-overlay {
    background: #FFF;
}

/* ===== ICÔNES MODE DE JEU + REPAS ===== */
.calendar-event-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.8;
}

.calendar-photo-event {
    position: relative;
}

/* Tooltip custom */
.cal-icon-tip {
    position: relative;
    cursor: default;
}

.cal-icon-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

.cal-icon-tip::before {
    content: '';
    position: absolute;
    top: calc(100% + 1px);
    right: 8px;
    border: 5px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.82);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.cal-icon-tip:hover::after,
.cal-icon-tip:hover::before {
    opacity: 1;
    transform: translateY(0);
}