/*<div id="maj-photos-auto" class="popup-info-logo-bt popup-click" style="height: 20px;right: 0;width: 30px;left:unset;border-radius: 10px;">
						<i class="fa fa-rotate popup-undo-icon-bt" style="top:unset;transform: none;"></i>
					</div>*/


/*source popup-info-logo-bt*/

.photo-gallery-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin-bottom: 0.75rem;
    border: 1px solid #1769aa;
    border-radius: 6px;
    background: #fff;
    color: #1769aa;
    cursor: pointer;
    font-size: 1.1rem;
}

.photo-gallery-toggle-button:hover {
    background: #e7f0fa;
}

.photo-gallery-collapsed .photo-gallery-toggle-button {
    background: #1769aa;
    color: #fff;
}

.photo-gallery-collapsed .photo-gallery-collapsible-content {
    display: none;
}

.photo-gallery-upload-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f7fafc;
}

.photo-gallery-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 6px;
    background: #1769aa;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.photo-gallery-upload-button:hover {
    background: #12558b;
}

.photo-gallery-upload-button input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.photo-gallery-upload-status {
    color: #486581;
    font-size: 0.9rem;
}

.photo-gallery-paste-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #1769aa;
    border-radius: 6px;
    background: #fff;
    color: #1769aa;
    cursor: pointer;
    font-size: 1.1rem;
}

.photo-gallery-paste-button:hover {
    background: #e7f0fa;
}

.photo-gallery-paste-target {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.photo-gallery-delete-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.photo-gallery-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.6rem;
    border: 1px solid #c53030;
    border-radius: 6px;
    background: #fff;
    color: #c53030;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-gallery-delete-count {
    font-size: 0.85rem;
}

.photo-gallery-delete-button:hover:not(:disabled) {
    background: #c53030;
    color: #fff;
}

.photo-gallery-delete-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.photo-gallery-delete-status {
    color: #486581;
    font-size: 0.9rem;
}

.photo-gallery-comment-editable {
    cursor: text;
}



.checkbox-top{
	position: absolute !important;
	top: 0;
	right:0;/*left: 0;*/
	transform: translateY(-50%);
}
.checkbox-inner{
	position:relative;
	top:unset;
	right:unset;
	transform:unset
}
.popup-checkbox-logo-bt {
	min-width: 30px;
	max-width: 50px;
	height:20px;
	position: relative;
	/*top: 0;
	right:0;left: 0;*/
	
	border:black solid 1px;
	border-radius:10px;
	background-color: rgb(217, 122, 122);
	cursor:pointer;

	    
    /* Masquer l'apparence native */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	

}
.popup-checkbox-logo-bt:checked {
	background-color: rgb(136, 181, 138);
}	
.popup-checkbox-logo-bt:not(:checked) {
	background-color: rgb(217, 122, 122);
}

/* source .popup-undo-icon-bt */
.popup-checkbox-logo-bt:not(:checked) +.popup-checkbox-bt{
	all:unset;
	position: absolute;
    left: 0;
	top:2.5px;
    /*transform: translateY(-50%);*/
    border: black 1px solid;
    font-size: 0.9em;
    border-radius: 10px;
    padding: 2px;
    color:white;
    background-color: rgb(135, 4, 4);
	cursor: pointer;
}
.popup-checkbox-logo-bt:checked +.popup-checkbox-bt{
	all:unset;
	position: absolute;
    right: 0;
	top:2.5px;
    /*transform: translateY(-50%);*/
    border: black 1px solid;
    font-size: 0.9em;
    border-radius: 10px;
    padding: 2px;
    color:white;
   	background-color: rgb(13, 135, 4);
	cursor:pointer;
}


.popup-chekbox-logo-bt-disable{
	background-color: rgb(136, 181, 138);
}

.popup-checkbox-bt{
	position: absolute;
    /*top: 0;*/
    left: 0;
	top:2.5px;
    /*transform: translateY(-50%);*/
    border: black 1px solid;
    font-size: 0.9em;
    border-radius: 10px;
    padding: 2px;
    
    color:white;
	background-color:  rgb(135, 4, 4) ;
	cursor: pointer;
}

.ctrl-top{
	position: absolute !important;
    top: 0;
    right: 0;
    
    transform: translateY(-50%);
}
/*
.ctrl-info-bt{
	padding-left: 20px;
    padding-right: 20px;
    min-width: 30px;
    height: 20px;
    position: relative;
    border: black solid 1px;
    border-radius: 10px;
    background-color: #e2dbdb;;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.ctrl-bt-left{
    position: absolute;
  
    left: 0;
    top: 0px;
   
    border: black 1px solid;
    font-size: 0.9em;
    border-radius: 10px;
    padding: 2px;
    color: white;
    background-color: black;
    cursor: pointer;
}

.ctrl-bt-right{
    position: absolute;
   
    right: 0;
    top: 0px;
  
    border: black 1px solid;
    font-size: 0.9em;
    border-radius: 10px;
    padding: 2px;
    color: white;
    background-color: black;
    cursor: pointer;
}
.ctrl-bt-right:enabled{

    background-color: black;
    cursor: pointer;
}
.ctrl-bt-right:disabled{
    background-color:rgb(102, 102, 102);
    cursor: default;
}
.ctrl-bt-left:enabled{

    background-color: black;
    cursor: pointer;
}
.ctrl-bt-left:disabled{
    background-color:rgb(102, 102, 102);
    cursor: default;
}
*/

/* 🎯 AJOUTS À VOTRE CSS EXISTANT POUR LES NUMÉROS DE PAGES */

.ctrl-info-bt {
    padding-left: 20px;
    padding-right: 20px;
    min-width: 30px;
    height: 18px;  /*modifié*/
    position: relative;
    border: black solid 1px;
    border-radius: 10px;
    background-color: #e2dbdb;
    cursor: default; /* Pas de pointer sur l'info centrale */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* ✅ AJOUTS POUR MEILLEUR ALIGNEMENT AVEC NUMÉROS */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    gap: 4px; /* Espace entre les éléments */
}

/* 🔢 CONTENEUR POUR LES NUMÉROS DE PAGES */
.ctrl-page-numbers {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0 5px;
}

/* 🎯 STYLES POUR CHAQUE NUMÉRO DE PAGE (CERCLES) */
.ctrl-page-dots{
        width: 16px;
    height: 16px;
    border-radius: 50%; /* Cercle parfait */
    border: black 1px solid;
    background-color: rgb(102, 102, 102); /* Gris par défaut */
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1;
    padding: 0;
    min-width: 16px;
    width: 20px; /* Plus large pour 2 chiffres */
    border-radius: 10px; /* Légèrement oblong */
    font-size: 0.6em;
}
.ctrl-page-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%; /* Cercle parfait */
    border: black 1px solid;
    background-color: rgb(102, 102, 102); /* Gris par défaut */
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1;
    padding: 0;
    min-width: 16px;
    
}

/* 🎯 NUMÉRO DE PAGE ACTIF (NOIR) */
.ctrl-page-btn.active {
    background-color: black;
    border-color:#333;
    color: white;
}

/* 🎯 NUMÉRO DE PAGE HOVER */
.ctrl-page-btn:not(.active):hover {
    background-color: #333;
    border-color: black;
    color: white;
}

/* 🎯 NUMÉROS À 2 CHIFFRES (LÉGÈREMENT OBLONG) */
.ctrl-page-btn.two-digits {
    width: 20px; /* Plus large pour 2 chiffres */
    border-radius: 10px; /* Légèrement oblong */
    font-size: 0.6em;
}

/* 🎯 NUMÉROS À 3 CHIFFRES (PLUS OBLONG) */
.ctrl-page-btn.three-digits {
    width: 24px; /* Encore plus large */
    border-radius: 12px;
    font-size: 0.55em;
}

/* 📊 POINTS DE SUSPENSION ENTRE LES PAGES */
.ctrl-page-dots {
    color: #666;
    font-size: 0.8em;
    margin: 0 2px;
    line-height: 1;
}

/* 🎨 AJUSTEMENTS POUR VOS BOUTONS FLÈCHES EXISTANTS */
.ctrl-bt-left,
.ctrl-bt-right {
    position: absolute;
    top: -1px;
    border: black 1px solid;
    font-size: 0.9em;
    border-radius: 100%; /* ✅ CERCLE PARFAIT COMME DESIGN */
    padding: 3.25px;
    color: white;
    background-color: black;
    cursor: pointer;
    
    /* ✅ DIMENSIONS EXACTES POUR CERCLES */
    /*width: 18px;*/
    /*height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;*/
    transition: background-color 0.2s ease;
}

.ctrl-bt-left {
    left: -2px;
}

.ctrl-bt-right {
    right: -2px;
}

/* ✅ ÉTATS DISABLED POUR VOS BOUTONS FLÈCHES */
.ctrl-bt-left[disabled],
.ctrl-bt-left.disabled {
    background-color: rgb(102, 102, 102) !important;
    cursor: default !important;
    pointer-events: none;
}

.ctrl-bt-right[disabled],
.ctrl-bt-right.disabled {
    background-color: rgb(102, 102, 102) !important;
    cursor: default !important;
    pointer-events: none;
}

/* 📱 RESPONSIVE POUR PETITS ÉCRANS */
@media (max-width: 768px) {
    .ctrl-page-btn {
        width: 14px;
        height: 14px;
        font-size: 0.6em;
    }
    
    .ctrl-page-btn.two-digits {
        width: 18px;
        font-size: 0.55em;
    }
    
    .ctrl-page-btn.three-digits {
        width: 22px;
        font-size: 0.5em;
    }
    
    .ctrl-page-numbers {
        gap: 2px;
    }
}