.calendrier-disponibilites-wrapper {
    background-color: var(--wp--preset--color--bleu-sombre);
        color:var(--wp--preset--color--bg-creme-pale);
    padding: 2rem;
    display: flex;
    gap:1rem;
    flex-direction: column;
    border-radius: 16px;
    position: sticky;
     top: 30px;
     color:white;
}

.calendrier-btn-disponibilites .pricewrapper {
    display: flex;
    flex-direction: column;
    gap:.5rem;
}

.calendrier-disponibilites-wrapper .price {
    font-size: 40px;
    font-family: var(--wp--preset--font-family--sora);
    font-weight: 600;
        color:var(--wp--preset--color--bg-creme-pale);
}
.calendrier-disponibilites-wrapper .infoprice {
    color:var(--wp--preset--color--bg-creme-pale);
}



/* Bouton principal */
.calendrier-btn-disponibilites {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 16px 24px;
    background: var(--wp--preset--color--rouge-rose);
    font-family: var(--wp--preset--font-family--sora);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.calendrier-btn-disponibilites:hover {
    background: color-mix(in srgb, var(--wp--preset--color--rouge-rose) 90%, black 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.calendrier-btn-disponibilites svg {
    width: 20px;
    height: 20px;
}

/* Overlay popup */
.calendrier-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.calendrier-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Popup */
.calendrier-popup {
    position: relative;
    background: var(--wp--preset--color--bg-creme-pale);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.availability {
    display: inline-flex;
    gap:.5rem;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 12px;
    color:#FCF4E7;
}

.availability.availability-free {
    background-color: #00A5A3;
}

.availability.availability-half {
    background-color: #FAAB00;
}

.availability.availability-last {
    background-color: #F15D50;
}
.availability.availability-full {
    background-color: #991b1b;
} 


.calendrier-popup-small {
    max-width: 450px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bouton fermeture */
.calendrier-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--wp--preset--color--text-color);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    color: #6b7280;
}

.calendrier-popup-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

/* Header */
.calendrier-popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.calendrier-popup-header h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--sora);
    font-weight: normal;
     color: var(--wp--preset--color--text-color)
}

.calendrier-popup-subtitle {
    margin: 0;
    font-size: 20px;
    font-family: var(--wp--preset--font-family--sora);
       font-weight: 600;
    color: var(--wp--preset--color--text-color)
}

/* Content */
.calendrier-popup-content {
    padding: 24px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

/* Liste des dates */
.calendrier-dates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.calendrier-date-item {
    padding: 16px;
    background: #f9fafb;
    text-decoration: none!important;
    border: 1px solid #e5e7eb;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.06);

box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.1);

    border-radius: 12px;
    transition: all 0.2s;
    display: flex;
  flex-direction: row;
  justify-content: space-between;
}

 @media (max-width: 767px) {
.calendrier-date-item {
    flex-direction: column;
}

.pricewrapper {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.calendrier-disponibilites-wrapper {
  position: fixed;
  width: calc(100% - 2rem);
  box-sizing: border-box;
  bottom: 10px;
  top: auto;
  z-index: 10000;
  flex-direction: column;
  flex-wrap: wrap;
  left: 1rem;
  right: 1rem;
  gap: 0;
  padding: 1rem;
}



 }


.calendrier-date-item:hover {
    border-color: var(--wp--preset--color--bleu-sombre);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.calendrier-date-item.is-today {
    border-color: #2563eb;
    background: #eff6ff;
}

.calendrier-date-header {
display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-direction: column;
  gap:6px;
}

.calendrier-date-day {
    display: flex;
    flex-direction: row;
    gap:.5rem;
    align-items: center;
}

.day-name {
    font-size: 14px;
    font-weight: normal;
    text-transform: norm;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.date-number {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.calendrier-counter-wrapper {
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
}

.calendrier-counter-wrapper button {
    border: 1px solid #333333;
    border-radius: 100%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendrier-counter-wrapper button, .calendrier-counter-wrapper input {
    background: none;
    text-align: center;
}

.calendrier-counter-wrapper input[type="number"] {
    width: 80px;
    border:1px solid #AAAAAA;
    border-radius: 10px;;
}

.calendrier-counter-wrapper input[type="number"].counter-value {
    -moz-appearance: textfield;
    appearance: textfield;
}

.calendrier-counter-wrapper input[type="number"].counter-value::-webkit-outer-spin-button,
.calendrier-counter-wrapper input[type="number"].counter-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calendrier-booking-section {
flex-basis: 45%;
  gap: .5rem;
  display: flex;
  flex-direction: column;
}

.calendrier-date-time {
padding: 3px 3px;
  background: transparent;
  color: #444444;
  border-radius: 6px;
  font-size: 12px;
  font-weight: normal;
  border: 1px solid #EEEEEE;
  display: inline-flex;
  gap: 3px;
}

.calendrier-btn-reserve {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 21C11.3284 21 12 20.3284 12 19.5C12 18.6716 11.3284 18 10.5 18C9.67157 18 9 18.6716 9 19.5C9 20.3284 9.67157 21 10.5 21Z' fill='white'/%3E%3Cpath d='M17.5 21C18.3284 21 19 20.3284 19 19.5C19 18.6716 18.3284 18 17.5 18C16.6716 18 16 18.6716 16 19.5C16 20.3284 16.6716 21 17.5 21Z' fill='white'/%3E%3Cpath d='M13 13H15V10.01H17.99V8.01003H15V5.03003H13V8.01003H10.01V10.01H13V13Z' fill='white'/%3E%3Cpath d='M10 17H18C18.2014 16.9994 18.398 16.938 18.564 16.8238C18.7299 16.7096 18.8575 16.5479 18.93 16.36L21.76 9H19.62L17.31 15H10.67L6.18 4.23C6.02776 3.86507 5.77077 3.55344 5.44149 3.33452C5.11221 3.11559 4.72542 2.99918 4.33 3H2V5H4.33L9.08 16.38C9.15502 16.5626 9.28242 16.719 9.44614 16.8293C9.60986 16.9396 9.80257 16.999 10 17Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-color: #E86D3A;
    background-position: 20px center;
    color:#FCF4E7;
    padding: 12px 12px 12px 40px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    font-family: var(--wp--preset--font-family--sora);
}

.reserve-count {
    margin: 0 3px;
}




.calendrier-date-lieu {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.calendrier-date-statut {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.statut-info {
    background: #dbeafe;
    color: #1e40af;
}

.statut-warning {
    background: #fed7aa;
    color: #c2410c;
}

.statut-error {
    background: #fecaca;
    color: #991b1b;
}

.statut-success {
    background: #d1fae5;
    color: #065f46;
}

.calendrier-date-notes {
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* Pas de dates */
.calendrier-no-dates {
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

/* Encart notification */
.calendrier-notification-box {
    display: flex;
   align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.06);
    box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 24px;
    color:var(--wp--preset--color--text-color);
}

.notification-icon {
    font-size: 32px;
    flex-shrink: 0;
    background-color: var(--wp--preset--color--rouge-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 100%;
}

.calendrier-notification-box .notification-content {
   flex: 1;
   font-family: var(--wp--preset--font-family--sora) !important;
   display: flex;
   flex-direction: column;
   gap:1rem;
}

.calendrier-notification-box .notification-content h4 {
    margin: 0 0 4px;
       font-family: var(--wp--preset--font-family--sora) !important;
       color:var(--wp--preset--color--text-color);
    font-size: 20px;
    font-weight: 700;

}

.calendrier-notification-box .notification-content p {
    margin: 0;
    font-size: 14px;
}

.calendrier-btn-notify {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.calendrier-btn-notify:hover {
    transform: translateY(-2px);
}

/* Formulaire notification */
.calendrier-notification-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input[type="email"] {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    display: block;
    background: #fecaca;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.calendrier-btn-submit {
    padding: 14px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.calendrier-btn-submit:hover:not(:disabled) {
    background: #1d4ed8;
}

.calendrier-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .calendrier-popup {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .calendrier-notification-box {
        flex-direction: column;
        text-align: center;
    }
    
    .calendrier-btn-notify {
        width: 100%;
    }
    
    .calendrier-date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}