/*body {
    background-color: skyblue;
}
*/

.btn:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}


.centimes {
    font-size: 0.3em; /* Réduit la taille de police à 70% */
    vertical-align: top; /* Aligne les centimes légèrement au-dessus des euros */
}


.remove-media {
    background-color: transparent;
    color: #dc3545; /* Rouge Bootstrap */
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.remove-media:hover {
    opacity: 1;
    color: #bd2130; /* Rouge légèrement plus sombre */
}

.media-item.removing {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.social-option {
    cursor: pointer;
    position: relative;
}

.social-option .icon-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    width: 100px;
    height: 100px;
    padding: 10px;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-option .icon-wrapper span {
    margin-top: 8px; /* Ajoute de l'espace entre l'icône et le texte */
    font-size: 0.85rem;
    color: #6c757d;
}

.social-option input:checked + .icon-wrapper {
    border-color: #0d6efd;
    background-color: #e9f5ff;
    color: #0d6efd;
}

.social-option .icon-wrapper:hover {
    border-color: #0d6efd;
}

/* testimonial */
.testimonial-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 300px; /* Ajustez selon vos besoins */
    margin-right: 20px;
}

/*
==============================================
Modern Calendar Styles - V4 (Unified)
==============================================
*/

/*.calendar-modern-wrapper .calendar-header .btn-group .btn {
    border-radius: 0.5rem;
}*/

.calendar-modern-wrapper .calendar-header .btn-group .btn.active {
    background-color: var(--bs-dark);
    color: var(--bs-white);
}

/* --- Grid Structure --- */
.month-view-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
}

.week-view-container {
    overflow-x: auto;
    border: 1px solid #f0f2f5;
    border-radius: 0.5rem;
}

.week-view-grid {
    display: flex;
    min-width: 900px;
}

/* --- Day/Time Headers --- */
.weekday-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #67748e;
    padding-bottom: 8px;
}

.time-column-week {
    flex: 0 0 60px;
    font-size: 0.75rem;
    color: #67748e;
    background-color: #fdfdff;
}

.time-column-week > .time-label {
    height: 120px; /* Match hour-cell height */
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid #f0f2f5;
}

.day-header-week {
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
}

/* --- Calendar Cells --- */
.day-cell {
    border: 1px solid #f0f2f5;
    background-color: #fdfdff;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.day-column-week {
    flex: 1 1 0;
    border-left: 1px solid #f0f2f5;
    display: flex;
    flex-direction: column;
}

.hour-cell-week {
    height: 120px;
    border-top: 1px dotted #f0f2f5;
    padding: 4px;
    position: relative;
    flex-shrink: 0;
    overflow-y: auto;
}

.day-cell.other-month { background-color: #f8f9fa; }
.day-cell.today { border-color: var(--bs-primary); background-color: #fdf4fb; }
.day-column-week.today .day-header-week { color: var(--bs-primary); }

.day-number {
    font-weight: 600;
    font-size: 0.8rem;
    color: #67748e;
    text-align: right;
    padding: 8px 8px 0 8px;
}
.day-cell.today .day-number { color: var(--bs-primary); }

.posts-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0; /* CRITICAL FIX: Prevents flex item from growing parent */
}

/* --- Unified Post Item --- */
.calendar-post-item {
    background-color: #fff;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.calendar-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.calendar-post-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #f0f2f5;
    border-radius: 0.375rem 0.375rem 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.calendar-post-thumbnail img,
.calendar-post-thumbnail .media-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-post-details {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-post-subject {
    font-size: 0.8rem;
    font-weight: 500;
    color: #344767;
    line-height: 1.3;
}

.calendar-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

/* --- Shared --- */
.social-icons-stacked {
    display: flex;
}

.social-icons-stacked img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
}
.social-icons-stacked img:first-child {
    margin-left: 0;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    color: #ced4da;
    font-size: 0.75rem;
    text-align: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.draft { background-color: var(--bs-dark); }
.status-dot.validated { background-color: var(--bs-success); }
.status-dot.published { background-color: var(--bs-primary); }
.status-dot.refused { background-color: var(--bs-danger); }
.status-dot.canceled { background-color: var(--bs-secondary); }

/* --- Mobile adjustments --- */
@media (max-width: 767.98px) {
    .month-view-grid {
        display: block; /* Switch to vertical list */
        gap: 0;
    }
    .month-view-grid .weekday-header {
        display: none; /* Hide weekday headers on mobile */
    }
    .day-cell {
        min-height: unset;
        margin-bottom: 10px;
        border-radius: 0.5rem !important; /* Ensure radius is applied */
    }
    .day-cell.other-month {
        display: none; /* Hide other month days on mobile */
    }
}
