/* ==========================================================================
   SIMULATEUR - STYLES SPÉCIFIQUES
   ========================================================================== */

/* Notification de copie */
#copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2e7d32;
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

#copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Conteneur des poches */

.bee-section {
    background: #f7d9b0;
    border-radius: 16px;
    padding: 20px 0 00px;
    margin: 0 auto;
    max-width: 640px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.run-section {
    background: #f7d9b0;
    border-radius: 16px;
    padding: 5px 0 5px;
    margin: 0 auto;
    max-width: 640px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.poches {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 1px 0;
}

.poche-container {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

/* Couleurs des poches */
.poche-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px none white;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.65rem;
    color: #1b5e20;
    position: relative;
    z-index: 2;
}

.poche-color:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.poche-color.gray {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: white;
}

.poche-color.yellow {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: white;
}

.poche-color.blue {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
}

.poche-color.red {
    background: linear-gradient(135deg, #ef5350, #c62828);
    color: white;
}

.poche-color.purple {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
    color: white;
}

.poche-color.emerald {
    background: linear-gradient(135deg, #26a69a, #00796b);
    color: white;
}

/* Taille des poches */
.poche-size {
    display: flex;
    align-items: center;
    gap: 4px;
}

.size-arrow {
    width: 24px;
    height: 24px;
    background: transparent;
    color: green;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.size-arrow:hover {
    background: transparent;
    transform: scale(1.15);
}

.size-arrow.minus::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 17px solid white;
   
position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.size-arrow.plus::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 17px solid white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.size-display {
    min-width: 45px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    pointer-events: none;
    color: inherit;
}

/* Image abeille */
.abeille-img {
    text-align: center;
    margin: 15px 0 0 0;
}

.abeille-img img {
    width: 140px;
    height: auto;
}



.icone-info-img img {
    width: 22px;
    height: 22px;
	margin-left: 10px;  
}
.icone-info-img {
    display: flex;
    align-items: center;
    gap: 6px;          /* espace entre image et 50 */
    position: relative; /* important pour le tooltip */
	margin-left: 30px;
}

.icone-label-pt {
    font-weight: 600;
    font-size: 1.05rem;
}
.tooltip {
    position: absolute;
    bottom: 130%;         /* au-dessus de l’icône */
    left: 50%;
    transform: translateX(-50%);
    
    background: #1b5e20;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.icone-info-img:hover .tooltip {
    opacity: 1;
    visibility: visible;
}


.pts-a-distribuer {
font-size: 1.2rem;
    font-weight: 700;
    color: #9F57B2;	
}

/* Grille du formulaire */
.form-grid {
    max-width: 560px;
    margin: 30px auto;
    padding: 25px;
    background: #f7d9b0;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.top-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    width: 100%;
    padding: 0 10px 5px 10px;
	
}

.top-row input {
    padding: 12px;
    border: 2px solid #9F57B2;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
	height:30px;
}

.top-row input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

/* Numéro (environ 9 chiffres) */
#numero {
    min-width: 180px;
    text-align: center;
    flex: 0 1 auto;
}

/* Âge (max 4 caractères : 99.9) */
#age {
    width: 100px;
    text-align: center;
    flex: 0 1 auto;
}

/* Bouton particularité */
.part-bouton {
    padding: 0px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s;
    text-align: center;
    min-width: 70px;
    white-space: nowrap;
    flex: 0 1 auto;
	height:28px;
}

.part-bouton.part-normal {
    background: #9e9e9e;
    color: white;
    border: 2px solid #757575;
	height:28px;
}

.part-bouton.part-og {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #1b5e20;
    border: 2px solid #f57f17;
	height:28px;
}

.part-bouton.part-genesis {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
    color: white;
    border: 2px solid #6a1b9a;
	height:28px;
}

.part-bouton:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	
}

/* Type et excellence */
.type-ex-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
	/* Centre les boutons */
}

.select-btn {
    flex: 0 1 auto;               /* Ne prend que la place nécessaire */
    max-width: 180px;             /* Largeur maximale (ajustez selon vos besoins) */
    min-width: 140px;             /* Largeur minimale pour le texte */
    padding: 0px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s;
    border: 2px solid transparent;
	height:28px;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Couleurs types */
.select-btn.t-forager {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #1b5e20;
}

.select-btn.t-nurse {
    background: linear-gradient(135deg, #ef5350, #c62828);
    color: white;
}

.select-btn.t-guardian {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
}

.select-btn.t-ventilator {
    background: linear-gradient(135deg, #26a69a, #00796b);
    color: white;
}

.select-btn.t-storer {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
    color: white;
}

.select-btn.t-cleaner {
    background: linear-gradient(135deg, #9e9e9e, #616161);
    color: white;
}

.select-btn.t-none {
    background: #e0e0e0;
    color: #666;
}

/* Couleurs excellence */
.select-btn.e-basic {
    background: #706F6F;
    color: white;
}

.select-btn.e-advanced {
    background: #00AC6C;
    color: white;
}

.select-btn.e-rare {
    background: #006FB5;
    color: white;
}

/* Level control */
.level-row {
    margin-bottom: 18px;
	background: #f7d9b0;
}

.level-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f7d9b0;
    padding: 12px;
    border-radius: 12px;
}

.level-arrow {
    width: 30px;
    height: 30px;
    background: #9F57B2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s;
}

.level-arrow:hover {
    /* background: #388e3c; */
    transform: scale(1.1);
}

.level-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9F57B2;
    min-width: 80px;
    text-align: center;
	border: 2px solid #9F57B2;
	border-radius: 14%;
}

.level-display.small {
    font-size: 1.15rem;
    min-width: 60px;
}

/* Stats rows */
.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.stat-row label {
    flex: 0 0 160px;
    font-weight: 600;
    color: #444;
}

.stat-input-base {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #9F57B2;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: right;
	height:30px;
	min-width:45px;
	max-width : 60px;
}

.stat-input-base:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.add-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #9F57B2;
}

.stat-input-add {
    flex: 0 0 80px;
    padding: 10px 12px;
    border: 2px solid #9F57B2;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: right;
	height:30px;
	min-width:45px;
	max-width : 60px;
}

.stat-input-add:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

/* Support boxes */
.support-boxes {
    display: flex;
    gap: 16px;
    margin-top: 2px;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
	margin: 0 0 0 10px;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
	margin: 0 10px 0 0;
}

.support-frame {
    background: #f9f9f9;
    border: 2px solid #9F57B2; /*#e0e0e0;*/
    border-radius: 12px;
    padding: 4px;
	margin: 0 5px;
	height: 100px;
}

.support-frame h3 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    color: #1b5e20;
    text-align: center;
}



.support-types-compact {
    display: flex;
    gap: 8px;
	justify-content: space-evenly;
	
}

.select-btn.small {
    padding: 4px 8px;
    font-size: 0.9rem;
    min-width: 90px;
}

.ventilators-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 15px;
}

.action-btn {
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.action-btn.calculate {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.action-btn.calculate:hover {
    background: linear-gradient(135deg, #66bb6a, #388e3c);
}

.action-btn.share {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
}

.action-btn.share:hover {
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
}

/* Popup overlay */
.popup-overlay-rendement {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.popup-content-rendement {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 10px;
    max-width: 540px;
    border: 5px solid green;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

.popup-close-rendement {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #777;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.popup-close-rendement:hover {
    color: #c62828;
}

.result-line {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.result-line:last-child {
    border-bottom: none;
}

.result-line strong {
    flex: 1;               /* prend tout l’espace à gauche */
    text-align: left;
    color: #1b5e20;
    font-size: 1.05rem;
    margin: 5px;
}

.result-big {
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
    white-space: nowrap;   /* empêche le retour à la ligne */
}
.error-popup {
    border: 4px solid #c62828;
}

.error-popup h3 {
    color: #c62828;
    margin: 0 0 16px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .poches {
        gap: 20px;
    }
    
    .poche-container {
        gap: 3px;
    }
    
    .poche-color {
        width: 50px;
        height: 50px;
    }
    
    .size-arrow {
        width: 20px;
        height: 20px;
    }
    
    .form-grid {
        padding: 50px 16px;
    }
    
    .top-row {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    
    #numero,
    #age {
        width: 100%;
        max-width: 280px;
    }
    
    .part-bouton {
        width: 100%;
        max-width: 280px;
    }
    
    .support-boxes {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .stat-row {
        flex-wrap: wrap;
    }
    
    .stat-row label {
        flex: 0 0 100%;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .poches {
        gap: 15px;
    }
    
    .poche-container {
        gap: 2px;
    }
    
    .poche-color {
        width: 45px;
        height: 45px;
        font-size: 0.85rem;
    }
    
    .size-arrow {
        width: 18px;
        height: 18px;
    }
    
    .abeille-img img {
        width: 120px;
    }
    
    #numero,
    #age {
        width: 100%;
        max-width: 240px;
    }
    
    .part-bouton {
        width: 100%;
        max-width: 240px;
    }
}



/*PARTIE POUR DENETRE DE SAUVEGARDE */
.modal-beefile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-beefile-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.modal-beefile-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
}
.rename-beefile-icon {
    cursor: pointer;
    transition: transform 0.15s;
}
.rename-beefile-icon:hover {
    transform: scale(1.15);
}

.bee-card:hover {
    background: #e8f5e9;
    border-color: #81c784;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loading-text {
    text-align: center;
    color: #777;
    padding: 40px 0;
    font-style: italic;
}

.error-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.error-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px 36px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 3px solid #dc3545;
}

.error-icon {
    font-size: 3.2rem;
    margin-bottom: 12px;
    color: #dc3545;
}

.error-content p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #333;
}

.popup-content-rendement {
    max-height: 80vh; /* Limite la hauteur pour scroll */
    overflow-y: auto;
}