.tempo-exercice-container {
    margin-bottom: 20px;
    width: 100%;
    padding: 4px 0;
    background: transparent;
    border: none;
}

.tempo-header {
    font-size: 0.85em;
    font-style: italic;
    color: #555;
    margin-bottom: 4px;
}

.tempo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tempo-input {
    width: 70px;
    padding: 4px 6px;
    box-sizing: border-box;
    text-align: center;
}

.tempo-save-button,
.save-tempo-btn,
.chart-tempo-btn {
    background-color: #8C692A;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.tempo-save-button:hover,
.save-tempo-btn:hover,
.chart-tempo-btn:hover {
    background-color: #6e541f;
}

.tempo-note {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
    min-height: 40px;
}

.tempo-status {
    font-size: 0.85em;
    color: green;
    margin: 4px 0;
}

.tempo-chart-container {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    margin-top: 15px;
    position: relative;
}

.tempo-delete-point {
    position: absolute;
    display: none;
    background: #c0392b;
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.tempo-delete-point:hover {
    background: #922b21;
}

.tempo-delete-tooltip {
    position: absolute;
    display: none;
    transform: translate(-50%, calc(-100% - 8px));
    background: #fffdf9;
    color: #2c3e50;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(140, 105, 42, 0.35);
    font-size: 12px;
    line-height: 1.35;
    max-width: 260px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    z-index: 3;
    pointer-events: none;
}

.tempo-delete-tooltip:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(140, 105, 42, 0.35) transparent transparent transparent;
}

.tempo-delete-tooltip-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.tempo-context-menu {
    position: absolute;
    display: none;
    background: #fffdf9;
    border: 1px solid rgba(140, 105, 42, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    padding: 6px;
    gap: 6px;
    flex-direction: column;
    z-index: 5;
}

.tempo-context-menu button {
    background: #8C692A;
    color: #fff;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}

.tempo-context-menu button:hover {
    background: #6e541f;
}

.tempo-combinaisons {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    font-size: 0.9rem;
}

.tempo-combinaisons th,
.tempo-combinaisons td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}

.tempo-combinaisons th {
    background: #f2f2f2;
}

.tempo-combinaisons td {
    vertical-align: middle;
}

.tempo-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.chart-tempo-btn,
.save-tempo-btn {
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 3px;
}

@media (max-width: 480px) {
    .tempo-cell { gap: 4px; }
    .tempo-input { width: 58px; }
    .save-tempo-btn, .chart-tempo-btn { padding: 3px 5px; }
}

.tempo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tempo-modal__dialog {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 640px;
    position: relative;
}

.tempo-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

.tempo-modal__title {
    margin-top: 0;
}

.tempo-combinaisons-wrapper h3 {
    margin-bottom: 10px;
}

/* Croix de suppression */
.te-point-delete {
    position: absolute;
    z-index: 10;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #b33939;
    background: #ffecec;
    color: #b33939;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    padding: 0;
}

/* Tooltip tempo + notes (style beige / bois) */
.te-point-tooltip {
    position: absolute;
    z-index: 9;
    max-width: 260px;
    background: #f8f1e4;
    border: 1px solid #d7c4a3;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    color: #3e2e1a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.te-tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.te-tooltip-note {
    margin-top: 2px;
    white-space: pre-line;
}

/* Mini-form flottant */
.te-edit-form {
    position: absolute;
    z-index: 20;
    background: #f8f1e4;
    border: 1px solid #d7c4a3;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    padding: 8px 10px;
    min-width: 220px;
    max-width: 280px;
    box-sizing: border-box;
}

.te-edit-form-inner {
    font-size: 12px;
    color: #3e2e1a;
}

.te-edit-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 4px;
}

.te-edit-row label {
    font-weight: 600;
    min-width: 46px;
}

.te-edit-row input.te-edit-tempo {
    width: 60px;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #c29b61;
}

.te-edit-row textarea.te-edit-note {
    flex: 1;
    width: 100%;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #c29b61;
    resize: vertical;
}

.te-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.te-edit-actions button {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #c29b61;
    background: #f2d7a5;
    cursor: pointer;
}

.te-edit-actions .te-edit-cancel {
    background: #eee;
    border-color: #bbb;
}

