:root {
    --custom-success-bg: #d4edda;
    --custom-success-color: #155724;
    --custom-success-border: #c3e6cb;
    --custom-success-icon: #28a745;

    --custom-error-bg: #f8d7da;
    --custom-error-color: #721c24;
    --custom-error-border: #f5c6cb;
    --custom-error-icon: #dc3545;

    --custom-warning-bg: #fff3cd;
    --custom-warning-color: #856404;
    --custom-warning-border: #ffeeba;
    --custom-warning-icon: #ffc107;

    --custom-info-bg: #d1ecf1;
    --custom-info-color: #0c5460;
    --custom-info-border: #bee5eb;
    --custom-info-icon: #17a2b8;

    --custom-default-bg: #ffffff;
    --custom-default-color: #333333;
    --custom-default-border: #cccccc;
    --custom-default-icon: #888888;

    --custom-color-view: #656de7;
    --custom-color-list: #325579;
    --custom-color-return: #34495e;
    --custom-color-refresh: #90a097;
    --custom-color-edit: #696d6a;
    --custom-color-create: #27ae60;
    --custom-color-archive: #f39c12;
    --custom-color-unarchive: #2e977d;
    --custom-color-delete: #e74c3c;
    --custom-color-remove: #e74c3c;
    --custom-color-reset: #6b2f66;
    --custom-color-confirm: #288850;
    --custom-color-user: #87a091;
    --custom-color-close: #c04d40;
    --custom-color-cancel: #c04d40;

    --toast-bg: #2d2d2d;
    --toast-text-color: #fff;
    --toast-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    --toast-progress-bar: #4ea8f7; 
}

/* Cacher la barre de progression Turbo */
.turbo-progress-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Big Quote - FOR FRONTEND*/
.big-quote {
    font-size: 16px;
    font-style: italic;
    position: relative;
    padding: 20px 40px;
}

.big-quote:before,
.big-quote:after {
    position: absolute;
    font-size: 70px;
    color: #777;
    font-weight: bold;
    line-height: 0.3;
}

.big-quote:before {
    content: "“";
    left: 0;
    top: -10px;
}

.big-quote:after {
    content: "”";
    right: 0;
    bottom: -20px;
}

/* Speach Director - FOR FRONTEND */
.director-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding: 40px;
    border-radius: 10px;
}
.director-info img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0; /* Empêche l'image de rétrécir */
}
.director-info > div {
    flex: 1;
    min-width: 300px;
}
/* Defilement logo Partner - FOR FRONTEND */
/* Wrapper général */
.logos-wrapper {
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Scroller qui masque le surplus */
.logos-wrapper .logos-scroller {
    overflow: hidden;
    width: 100%;
}

/* Ligne des logos */
.logos-wrapper .logos-scroller .logos-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-infinite 10s linear infinite;
}

.logos-wrapper .logos-scroller:hover .logos-track {
    animation-play-state: paused;
}

/* Espacement + taille */
.logos-wrapper .logos-scroller .logos-track .logo-item {
    height: 150px;
    width: auto;
    margin: 0 60px; /* ✔️ ESPACEMENT HORIZONTAL AUGMENTÉ */
    display: inline-block;
    object-fit: contain;
}

/* Animation du défilement */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.custom-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    margin: auto;
    margin-bottom: 15px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: relative;
    background-color: #fff;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s ease, transform 0.4s ease, margin 0.4s ease;
}

/* Animation d'apparition (slide-in + fade-in) */
.custom-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de disparition (slide-out + fade-out) */
.custom-alert.hide {
    opacity: 0;
    transform: translateY(-15px);
    margin-bottom: 0;
}

/* Variantes de type - Success */
.custom-alert.custom-success {
    background-color: var(--custom-success-bg);
    color: var(--custom-success-color);
    border: 2px solid var(--custom-success-border);
    border-left: 8px solid var(--custom-success-icon);
}

.custom-alert.custom-success .custom-icon-alert svg {
    fill: var(--custom-success-icon);
}

.custom-alert.custom-success .custom-close-btn {
    color: var(--custom-success-color);
}

/* Variantes de type - Error */
.custom-alert.custom-error {
    background-color: var(--custom-error-bg);
    color: var(--custom-error-color);
    border: 2px solid var(--custom-error-border);
    border-left: 8px solid var(--custom-error-icon);
}

.custom-alert.custom-error .custom-icon-alert svg {
    fill: var(--custom-error-icon);
}

.custom-alert.custom-error .custom-close-btn {
    color: var(--custom-error-color);
}

/* Variantes de type - Danger */
.custom-alert.custom-danger {
    background-color: var(--custom-error-bg);
    color: var(--custom-error-color);
    border: 2px solid var(--custom-error-border);
    border-left: 8px solid var(--custom-error-icon);
}

.custom-alert.custom-danger .custom-icon-alert svg {
    fill: var(--custom-error-icon);
}

.custom-alert.custom-danger .custom-close-btn {
    color: var(--custom-error-color);
}

/* Variantes de type - Warning */
.custom-alert.custom-warning {
    background-color: var(--custom-warning-bg);
    color: var(--custom-warning-color);
    border: 2px solid var(--custom-warning-border);
    border-left: 8px solid var(--custom-warning-icon);
}

.custom-alert.custom-warning .custom-icon-alert svg {
    fill: var(--custom-warning-icon);
}

.custom-alert.custom-warning .custom-close-btn {
    color: var(--custom-warning-color);
}

/* Variantes de type - Info */
.custom-alert.custom-info {
    background-color: var(--custom-info-bg);
    color: var(--custom-info-color);
    border: 2px solid var(--custom-info-border);
    border-left: 8px solid var(--custom-info-icon);
}

.custom-alert.custom-info .custom-icon-alert svg {
    fill: var(--custom-info-icon);
}

.custom-alert.custom-info .custom-close-btn {
    color: var(--custom-info-color);
}

/* Variantes de type - Default */
.custom-alert.custom-default {
    background-color: var(--custom-default-bg);
    color: var(--custom-default-color);
    border: 2px solid var(--custom-default-border);
    border-left: 8px solid var(--custom-default-icon);
}

.custom-alert.custom-default .custom-icon-alert svg {
    fill: var(--custom-default-icon);
}

.custom-alert.custom-default .custom-close-btn {
    color: var(--custom-default-color);
}

/* Icône */
.custom-alert .custom-icon-alert {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0px;
}

/* Texte */
.custom-alert .custom-text-alert {
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.custom-alert .custom-text-alert .custom-message-title {
    margin-bottom: 0rem;
    padding-bottom: 0.3rem;
    font-weight: 600;
}

/* Bouton de fermeture */
.custom-alert .custom-close-btn {
    flex-shrink: 0;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-left: auto;
    line-height: 1;
}

.custom-alert .custom-close-btn:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 480px) {
    .custom-alert {
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
        padding: 12px 16px;
    }

    .custom-alert .custom-close-btn {
        align-self: flex-end;
        margin-left: 0;
    }
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    background-color: currentColor; /* important */
}

.file-uploader {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
}

.file-uploader .drop-zone {
    cursor: pointer;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
}

.file-uploader .drop-zone:hover {
    background: #f0f0f0;
}

.file-uploader .drop-zone p {
    margin: 0 0 5px 0;
    color: #666;
    font-weight: 400;
}

.file-uploader .upload-info {
    margin: 0 0 8px 0;
    color: #999;
    font-size: 0.85em;
    font-weight: 400;
}

.file-uploader .current-info {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.file-uploader .current-info p {
    margin: 4px 0;
    color: #1976d2;
    font-size: 0.9em;
    font-weight: 500;
}

.file-uploader .current-files,
.file-uploader .current-size {
    margin: 2px 0;
}

.file-uploader.dragover {
    border-color: #4caf50;
    background: #e8f5e9;
}

.file-uploader .input-field-input {
    display: none;
}

.file-uploader .file-preview {
    margin-top: 15px;
}

/* Suppression de l'ancien style total-info */

.file-uploader .image-preview-item {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background: white;
}

.file-uploader .image-preview-item img {
    display: block;
    margin: 0 auto 10px;
    object-fit: cover;
    border-radius: 4px;
}

.file-uploader .file-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 5px 0;
}

.file-uploader .file-type,
.file-uploader .file-size {
    font-size: 0.85em;
    color: #666;
    margin: 3px 0;
}

.file-uploader .remove-btn {
    margin-top: 10px;
    padding: 5px 15px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.file-uploader .remove-btn:hover {
    background: #d32f2f;
}

.file-uploader .file-error {
    color: #f44336;
    margin-top: 10px;
    font-weight: 500;
}

/* Empecher le sursaut au hover des bouton de pagination */
button,
.page-link,
.btn {
    transition: none !important;
    box-shadow: none !important;
}

button:hover,
.page-link:hover,
.btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.page-link,
.page-item.disabled .page-link {
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;

    /* Normalisation de la hauteur */
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    line-height: 1.5 !important;

    /* Alignement vertical */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.page-link:hover {
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Styles de base pour les icônes d'action */
.custom-action-icons {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0 15px;
    font-weight: 500;
    cursor: pointer;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.custom-action-icons:hover {
    transform: scale(1.3);
}

/* Styles de base pour les boutons d'action */
.custom-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.3rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    font-weight: 500;
    margin: 0 0.35rem;
    cursor: pointer;
    vertical-align: middle;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.custom-action-btn:active {
    transform: translateY(0);
}

/* Les icônes dans les boutons réutilisent le CSS des icônes */
.custom-action-btn .custom-action-icons {
    width: 20px;
    height: 20px;
    margin: 0;
}

.custom-action-btn .custom-action-icons:hover {
    transform: none !important;
}

.custom-action-label {
    padding-right: 10px;
}

/* Adaptation des icônes pour fond coloré (les rendre blanches) */
.custom-action-btn .custom-action-icons {
    filter: brightness(0) invert(1);
}

/* Couleurs par type d'action */
.custom-action-icons.view {
    color: var(--custom-color-view);
}

.custom-action-icons.list {
    color: var(--custom-color-list);
}

.custom-action-icons.refresh {
    color: var(--custom-color-refresh);
}

.custom-action-icons.return {
    color: var(--custom-color-return);
}

.custom-action-icons.edit {
    color: var(--custom-color-edit);
}

.custom-action-icons.create {
    color: var(--custom-color-create);
}

.custom-action-icons.user {
    color: var(--custom-color-user);
}

.custom-action-icons.confirm {
    color: var(--custom-color-confirm);
}

.custom-action-icons.archive {
    color: var(--custom-color-archive);
}

.custom-action-icons.unarchive {
    color: var(--custom-color-unarchive);
}

.custom-action-icons.reset {
    color: var(--custom-color-reset);
}

.custom-action-icons.delete {
    color: var(--custom-color-delete);
}

.custom-action-icons.remove {
    color: var(--custom-color-remove);
}

.custom-action-icons.close {
    color: var(--custom-color-close);
}

.custom-action-icons.cancel {
    color: var(--custom-color-cancel);
}

/* Couleurs par type de bouton (à personnaliser selon vos besoins) */
.custom-action-btn.view {
    background-color: var(--custom-color-view);
    color: #fff;
}

.custom-action-btn.list {
    background-color: var(--custom-color-list);
    color: #fff;
}

.custom-action-btn.refresh {
    background-color: var(--custom-color-refresh);
    color: #fff;
}

.custom-action-btn.return {
    background-color: var(--custom-color-return);
    color: #fff;
}

.custom-action-btn.edit {
    background-color: var(--custom-color-edit);
    color: #fff;
}

.custom-action-btn.create {
    background-color: var(--custom-color-create);
    color: #fff;
}

.custom-action-btn.user {
    background-color: var(--custom-color-user);
    color: #fff;
}

.custom-action-btn.confirm {
    background-color: var(--custom-color-confirm);
    color: #fff;
}

.custom-action-btn.archive {
    background-color: var(--custom-color-archive);
    color: #fff;
}

.custom-action-btn.unarchive {
    background-color: var(--custom-color-unarchive);
    color: #fff;
}

.custom-action-btn.reset {
    background-color: var(--custom-color-reset);
    color: #fff;
}

.custom-action-btn.delete {
    background-color: var(--custom-color-delete);
    color: #fff;
}

.custom-action-btn.remove {
    background-color: var(--custom-color-remove);
    color: #fff;
}

.custom-action-btn.close {
    background-color: var(--custom-color-close);
    color: #fff;
}

.custom-action-btn.cancel {
    background-color: var(--custom-color-cancel);
    color: #fff;
}

/* Icônes SVG en background (encodées en data URI) */
.custom-action-icons.send {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2v7z'/%3E%3C/svg%3E");
}

/* Flèche vers la droite */
.custom-action-icons.arrow-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2'%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14,6 20,12 14,18'/%3E%3C/svg%3E");
}

/* Flèche vers la gauche */
.custom-action-icons.arrow-left {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2'%3E%3Cline x1='20' y1='12' x2='4' y2='12'/%3E%3Cpolyline points='10,6 4,12 10,18'/%3E%3C/svg%3E");
}

/* Icône utilisateur qui commente/parle */
.custom-action-icons.user-comment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 20c0-3.3 2.7-6 6-6s6 2.7 6 6H6z'/%3E%3Cpath d='M18 14h2v4h-4v-2l2-2z'/%3E%3C/svg%3E");
}

.custom-action-icons.create {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2327ae60'%3E%3Cpath d='M19 11H13V5h-2v6H5v2h6v6h2v-6h6z'/%3E%3C/svg%3E");
}

.custom-action-icons.view {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b39ff'%3E%3Cpath d='M12 4.5C7 4.5 2.73 8.11 1 12c1.73 3.89 6 7.5 11 7.5s9.27-3.61 11-7.5c-1.73-3.89-6-7.5-11-7.5zm0 13a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11zm0-9a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z'/%3E%3C/svg%3E");
}

.custom-action-icons.return {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334495e'%3E%3Cpath d='M19 11H7.83l5.58-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H19v-2z'/%3E%3C/svg%3E");
}

.custom-action-icons.reset {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334495e'%3E%3Cpath d='M17 8V6a5 5 0 0 0-10 0v2H6a1 1 0 0 0-1 1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9a1 1 0 0 0-1-1h-1zm-8-2a3 3 0 0 1 6 0v2h-6V6zm3 7a1.5 1.5 0 0 1 1.5 1.5c0 .65-.42 1.2-1 1.41V18h-1v-2.09a1.5 1.5 0 0 1-.99-1.41A1.5 1.5 0 0 1 12 13z'/%3E%3C/svg%3E");
}

.custom-action-icons.user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23696d6a'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E");
}

.custom-action-icons.confirm {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2327ae60'%3E%3Cpath d='M9 16.17l-3.88-3.88L4 13.41l5 5 10-10L17.59 7 9 15.17z'/%3E%3C/svg%3E");
}

.custom-action-icons.close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23e74c3c' fill='none'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.custom-action-icons.cancel {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23e74c3c' fill='none'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.custom-action-icons.edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23696d6a'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
}

.custom-action-icons.archive {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f39c12'%3E%3Cpath d='M20.54 5.23L19.15 3.5a1 1 0 0 0-.77-.36H5.62a1 1 0 0 0-.77.36L3.46 5.23a1 1 0 0 0-.21.79l1.47 11A2 2 0 0 0 6.7 19h10.6a2 2 0 0 0 1.98-1.98l1.47-11a1 1 0 0 0-.21-.79zM5.12 5h13.76l.84 1H4.28l.84-1zM12 17l-4-4h8l-4 4z'/%3E%3C/svg%3E");
}

.custom-action-icons.unarchive {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232e977d'%3E%3Cpath d='M20.54 5.23L19.15 3.5a1 1 0 0 0-.77-.36H5.62a1 1 0 0 0-.77.36L3.46 5.23a1 1 0 0 0-.21.79l1.47 11A2 2 0 0 0 6.7 19h10.6a2 2 0 0 0 1.98-1.98l1.47-11a1 1 0 0 0-.21-.79zM5.12 5h13.76l.84 1H4.28l.84-1zM12 7l4 4H8l4-4z'/%3E%3C/svg%3E");
}

.custom-action-icons.delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c'%3E%3Cpath d='M5 5h14v2H5z'/%3E%3Cpath d='M7 7h10l-1 13H8L7 7z'/%3E%3Cpath d='M10 3h4v2h-4z'/%3E%3C/svg%3E");
}

.custom-action-icons.remove {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c'%3E%3Cpath d='M6 7h12v14H6z' opacity='0.3'/%3E%3Cpath d='M18 4h-3.5l-1-1h-5l-1 1H6v2h12z'/%3E%3C/svg%3E");
}

.custom-action-icons.list {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E");
}

.custom-action-icons.refresh {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
}

.woocommerce-pagination .page-numbers button.page-numbers {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    cursor: pointer;
}

.woocommerce-pagination .page-numbers button.page-numbers:disabled {
    opacity: 0.4;
    cursor: default;
}

.custom-toast {
    position: fixed !important; /* relative */
    bottom: 1rem !important;
    right: 1rem !important; /* Changé de left à right */
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    background: var(--toast-bg);
    color: var(--toast-text-color);
    border-radius: 4px;
    padding: 1rem 0.8rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--toast-shadow);
    border-left: 6px solid transparent;
    overflow: hidden !important;
    margin-bottom: 0.8rem;
 
    pointer-events: auto;
    animation: fadein 0.3s ease-out;
}

.custom-toast.show {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.custom-toast.hide {
    opacity: 0 !important;
    transform: translateX(20px) !important; /* Changé de -20px à +20px */
}

.custom-toast.toast-success {
    border-left-color: #4caf50;
}
.custom-toast.toast-error {
    border-left-color: #f44336;
}
.custom-toast.toast-danger {
    border-left-color: #f44336;
}
.custom-toast.toast-info {
    border-left-color: #2196f3;
}
.custom-toast.toast-warning {
    border-left-color: #ff9800;
}
.custom-toast.toast-default {
    border-left-color: #999;
}

.toast-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 0.65rem !important;
}

.custom-toast .toast-icon {
    width: 24px !important;
    height: 24px !important;
}

.custom-toast .toast-message {
    display: block !important;
    font-size: 14px !important;
    color: var(--toast-text-color);
    line-height: 1.5 !important;
    word-break: break-word !important;
}

.custom-toast .toast-close-btn {
    margin-left: 0.5rem ;
    cursor: pointer ;
    font-size: 20px ;
    font-weight: 600;
    background: none ;
    border: none ;
    color: var(--toast-color);
    opacity: 0.8 ;
    transition: opacity 0.2s ease;
    padding: 0 0.25rem ;
    user-select: none;
}

.custom-toast .toast-close-btn:hover {
    opacity: 1;
}

.custom-toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: var(--toast-progress-bar);
    width: 100%;
}


/* Empilement des toasts */
.custom-toast:nth-of-type(1) {
    bottom: 1rem !important;
}

.custom-toast:nth-of-type(2) {
    bottom: calc(1rem + 90px) !important;
}

.custom-toast:nth-of-type(3) {
    bottom: calc(1rem + 180px) !important;
}




/* Styles pour le wizard multi-étapes */
.wizard {
    margin-bottom: 2rem;
}

.wizard .nav-pills .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    color: #6c757d;
    cursor: default;
    transition: all 0.3s ease;
}

.wizard .nav-pills .nav-link.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-weight: 600;
}

.wizard .nav-pills .nav-link.completed {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.wizard .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.wizard .nav-link.active .step-number {
    background-color: rgba(255, 255, 255, 0.3);
}

.wizard .step-label {
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard .step-label {
        display: none;
    }
    
    .wizard .nav-pills .nav-link {
        padding: 0.75rem;
    }
}




/* Styles pour les actions en masse */

/* Ligne sélectionnée */
.table-active {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.table-active:hover {
    background-color: rgba(13, 110, 253, 0.15) !important;
}

/* Checkbox */
.form-check-input {
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Indeterminate state pour "select all" */
.form-check-input:indeterminate {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

/* Barre d'actions */
.alert .btn-group .btn {
    margin-left: 5px;
}

.alert .btn-group .btn i {
    margin-right: 5px;
}

/* Transition douce */
.table tbody tr {
    transition: background-color 0.2s ease;
}

/* Compteur */
#selected-count {
    font-size: 1.1em;
    color: #0d6efd;
}

.container-bg-selected {
    background-color:rgba(13, 110, 253, 0.1) !important;
}


label.required:before {
    content: "*";
    color: red;
}