/* ========================================
   Import des polices personnalisées 
   ======================================== */
   
@font-face {
    font-family: 'CostaStdBold';
    src: url('./fonts/Costa std (extrait)/Costa Ptf Demi.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'LatoLight';
    src: url('./fonts/Lato/Lato-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'LatoLightItalic';
    src: url('./fonts/Lato/Lato-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* ========================================
   Bootstrap overrides : personnalisation des couleurs et des polices
	 (en utilisant les variables CSS de Bootstrap 5)
   ======================================== */
:root {	
    --bs-font-sans-serif: 'LatoLight', Arial, sans-serif;
    --bs-body-font-family: 'LatoLight', Arial, sans-serif;
    --bs-body-font-weight: 300;
    --bs-body-font-style: normal;
    --bs-heading-font-family: 'CostaStdBold', Arial, sans-serif;
    --bs-heading-font-weight: bold;
    --bs-heading-font-style: normal;
    --bs-font-italic: 'LatoLightItalic', Arial, sans-serif;

	/* Bootstrap theme override: couleur primaire */
	--bs-primary: #009B9C;
	--bs-primary-rgb: 0, 155, 156;
	--bs-link-color: var(--bs-primary);
	--bs-link-hover-color: #00787a;
	
	/* Bootstrap theme override: couleur secondaire */
	--bs-secondary: #E73728;
	--bs-secondary-rgb: 231, 55, 40;

	--bs-light: #F3997B;
	--bs-light-rgb: 243, 153, 123;
}

.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: #009B9C;
	--bs-btn-border-color: #009B9C;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #00787a;
	--bs-btn-hover-border-color: #00787a;
	--bs-btn-focus-shadow-rgb: 0, 155, 156;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #00787a;
	--bs-btn-active-border-color: #00787a;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 155, 156, 0.125);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #009B9C;
	--bs-btn-disabled-border-color: #009B9C;
}
.btn-outline-primary {
    --bs-btn-color: #009B9C;
    --bs-btn-border-color: #009B9C;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #009B9C;
    --bs-btn-hover-border-color: #009B9C;
    --bs-btn-focus-shadow-rgb: 0, 155, 156;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00787a;
    --bs-btn-active-border-color: #00787a;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 155, 156, 0.125);
    --bs-btn-disabled-color: #009B9C;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #009B9C;
    --bs-gradient: none;
}

.dropdown-item.active, .dropdown-item:active {
	--bs-dropdown-link-active-bg: #00787a;
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #E73728;
    --bs-btn-border-color: #E73728;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #c72e1f;
    --bs-btn-hover-border-color: #c72e1f;
    --bs-btn-focus-shadow-rgb: 231, 55, 40;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c72e1f;
    --bs-btn-active-border-color: #c72e1f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(231, 55, 40, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #E73728;
    --bs-btn-disabled-border-color: #E73728;
}
.btn-outline-secondary {
    --bs-btn-color: #E73728;
    --bs-btn-border-color: #E73728;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #E73728;
    --bs-btn-hover-border-color: #E73728;
    --bs-btn-focus-shadow-rgb: 231, 55, 40;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c72e1f;
    --bs-btn-active-border-color: #c72e1f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(231, 55, 40, 0.125);
    --bs-btn-disabled-color: #E73728;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #E73728;
    --bs-gradient: none;
}

.btn-light {
    --bs-btn-color: #fff;
    --bs-btn-bg: #F3997B;
    --bs-btn-border-color: #F3997B;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d87c5f;
    --bs-btn-hover-border-color: #d87c5f;
    --bs-btn-focus-shadow-rgb: 243, 153, 123;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d87c5f;
    --bs-btn-active-border-color: #d87c5f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(243, 153, 123, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #F3997B;
    --bs-btn-disabled-border-color: #F3997B;
}
.btn-outline-light {
    --bs-btn-color: #F3997B;
    --bs-btn-border-color: #F3997B;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #F3997B;
    --bs-btn-hover-border-color: #F3997B;
    --bs-btn-focus-shadow-rgb: 243, 153, 123;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d87c5f;
    --bs-btn-active-border-color: #d87c5f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(243, 153, 123, 0.125);
    --bs-btn-disabled-color: #F3997B;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #F3997B;
    --bs-gradient: none;
}


/* ========================================
   GÉNÉRAL
   ======================================== */
.body-container {
	width: 100%;
}

.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader .spinner-border {
    width: 5rem;
    height: 5rem;
    border-width: 8px;
}

.lightbox-trigger {
	cursor: pointer;
}

/* ========================================
   PANIER (MODAL)
   ======================================== */
@media (min-width: 1300px) {
    .modal-xl {
        --bs-modal-width: 95vw;
    }
}

.modal-xl {	
	height: 90vh;
}

.modal-xl .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-xl .modal-body {
    flex: 1 1 auto;
    min-height: 0;
}

.cart-modal .cart-filters .form-label {
    font-size: 0.9rem;
}

.cart-modal .cart-filter-type {
    min-width: 180px;
}

.cart-modal,
.cart-modal .row,
.cart-modal .col-lg-7 {
    min-height: 0;
}

.cart-modal {
	height: 100%;
}

.cart-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #e3e3e3;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: #f8f8f8;
}

.cart-list-scroll .list-group-item {
    background: #fff;
}

@media (max-width: 991.98px) {
    .modal-xl {
        height: 90vh;
    }

    .modal-xl .modal-body {
        overflow: hidden;
    }

    .cart-modal > .row {
        flex-direction: column;
        height: 100%;
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .cart-modal .col-lg-7,
    .cart-modal .col-lg-5 {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-height: 0;
    }

    .cart-list-scroll {
        flex: 1 1 auto;
    }

    .cart-modal .col-lg-5 .card {
        flex: 1 1 auto;
        min-height: 0;
    }

    .cart-modal .col-lg-5 .card-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .cart-modal .cart-filters {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .cart-modal .nav-tabs {
        margin-bottom: 0.5rem;
    }

    .cart-modal .d-flex.gap-2.mt-3 {
        margin-top: 0.5rem !important;
    }
}


/* ========================================
   SYSTÈME DE NOTIFICATIONS
   ======================================== */

/* Container des notifications */
#notification-container {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 9999;
    pointer-events: none;
}

#notification-container .notification-alert {
    pointer-events: auto;
}

/* Animation d'entrée (glissement depuis la droite) */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de sortie */
.notification-alert.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Style pour les alertes de notification */
.notification-alert {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 10px;
}

/* Responsive : ajuster la largeur sur mobile */
@media (max-width: 576px) {
    #notification-container {
        padding: 0.5rem;
        left: 0;
        right: 0;
    }
    
    .notification-alert {
        min-width: auto;
        max-width: 100%;
    }
}


/* ========================================
   SYSTÈME DE MEDIA LIBRARY
   ======================================== */
.media-card-container {
	max-width: 250px;
}
.media-card-container .card-body {
    min-width: 0;
}

.media-card-container .flex-grow-1 {
    min-width: 0;
}

.media-card-container .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ========================================
   BADGES DE RÔLE
   ======================================== */
.badge-ROLE_SUPER_ADMIN {
	background-color: #343a40; 
	color: #fff;
}
.badge-ROLE_ADMIN {
	background-color: #8B1D02;
	color: #fff;
}
.badge-ROLE_COMMERCIAL {
	background-color: #ED694B; 
	color: #fff;
}
.badge-ROLE_CLUB {
	background-color: #009B9C; 
	color: #fff;
}
.badge-ROLE_PROSPECT {
	background-color: #E73728;
	color: #fff;
}


/* ========================================
   BADGES DE STATUT DE MESSAGE
   ======================================== */
.badge-STATUS_DRAFT {
	background-color: #F3997B; 
	color: #fff;
}
.badge-STATUS_SCHEDULED {
	background-color: #E73728; 
	color: #fff;
}
.badge-STATUS_SEND_NOW {
	background-color: #E73728; 
	color: #fff;
}
.badge-STATUS-SENT {
	background-color: #009B9C; 
	color: #fff;
}

/* ========================================
   Slick Carousel: flèches de navigation custom
   ======================================== */
.slick-arrow {
    border-radius: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.slick-arrow:before {
    color: var(--bs-light) !important;
    font-size: 28px !important;
    line-height: 1;
}
.slick-prev {
    left: 10px;
}
.slick-next {
    right: 10px;
}
.slick-arrow + .slick-arrow {
    display: none !important;
}